C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / libgomp / ChangeLog
blob1a20629c441b047bd107304246b9c58c085326f8
1 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
3         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
4         (isa_hsa_name): Recognise gfx1030.
5         (isa_code): Likewise.
6         * team.c (defined): Remove s_endpgm.
8 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
10         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
11         _OPENMP >= 201811.
13 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
15         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
16         improve wording especially for Fortran; mention -fopenmp-simd.
17         (Enabling OpenACC): Minor cleanup; remove conditional compilation
18         sentinel.
20 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
22         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
23         Actually document what the function does.
24         (GCC_ACC_NOTIFY): Remove unused env var.
26 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
28         * libgomp.texi: Replace most future tense by present tense.
30 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
32         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
33         dg-additional-options "-fdump-tree-gimple"; fix scan.
35 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
37         * libgomp.texi: Fix some typos.
38         (Memory Management Routines): Document remaining 5.x routines.
39         (Memory allocation): Make clear when the section applies.
41 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
43         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
44         supports the allocate directive for stack variables.
45         * testsuite/libgomp.fortran/allocate-5.f90: New test.
46         * testsuite/libgomp.fortran/allocate-6.f90: New test.
47         * testsuite/libgomp.fortran/allocate-7.f90: New test.
48         * testsuite/libgomp.fortran/allocate-8.f90: New test.
50 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
52         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
53         OMP_TARGET_OFFLOAD.
54         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
55         clarify MANDATORY behavior.
57 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
59         * env.c (initialize_env): Use do_adjust_default_spincount.
60         * config/linux/x86/spincount.h: New file.
62 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
64         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
66 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
68         * libgomp.texi (Device Memory Routines): New.
70 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
72         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
73         and that other target archs have no 'arch'/'isa' traits implemented.
75 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
77         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
78         implemented for C only.
79         * testsuite/libgomp.c/allocate-4.c: New test.
80         * testsuite/libgomp.c/allocate-5.c: New test.
81         * testsuite/libgomp.c/allocate-6.c: New test.
83 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
85         PR c++/111392
86         * libgomp.texi: Mark decl attribute was added to the C++ attribute
87         syntax as implemented.
89 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
91         PR libgomp/111413
92         * env.c (initialize_env): Don't dereference environ if it is NULL.
93         Reindent.
95 2023-09-18  Richard Biener  <rguenther@suse.de>
97         PR tree-optimization/111294
98         * team.c (gomp_team_start): Assert alloca size to avoid false
99         positive alloc-size diagnostic.
101 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
102             Chung-Lin Tang  <cltang@codesourcery.com>
104         PR testsuite/91884
105         PR testsuite/109951
106         * configure.ac: Revert earlier changes, instead
107         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
108         * Makefile.in: Regenerate.
109         * configure: Likewise.
110         * testsuite/Makefile.in: Likewise.
111         * testsuite/lib/libgomp.exp (libgomp_init): Remove
112         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
113         If '--with-build-sysroot=[...]' was specified, use it for
114         build-tree testing.
115         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
116         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
117         (SYSROOT_CFLAGS_FOR_TARGET): Set.
118         * testsuite/libgomp.c++/c++.exp (lang_source_re)
119         (lang_include_flags): Set for build-tree testing.
120         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
121         (lang_include_flags): Likewise.
123 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
125         * libgomp.texi (Memory Management Routines): New; add documentation for
126         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
127         omp_get_default_allocator.
128         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
130 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
132         * target.c (gomp_unload_device): Remove tailing whitespace.
134 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
135             Thomas Schwinge  <thomas@codesourcery.com>
137         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
139 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
141         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
143 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
145         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
146         * testsuite/libgomp.fortran/imperfect1.f90: New.
147         * testsuite/libgomp.fortran/imperfect2.f90: New.
148         * testsuite/libgomp.fortran/imperfect3.f90: New.
149         * testsuite/libgomp.fortran/imperfect4.f90: New.
150         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
151         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
152         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
153         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
155 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
157         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
158         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
159         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
160         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
161         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
162         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
163         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
164         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
165         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
166         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
168 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
170         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
171         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
172         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
173         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
174         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
175         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
176         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
177         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
178         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
179         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
180         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
181         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
182         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
184 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
186         * testsuite/lib/libgomp.exp: Add effective target.
187         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
188         functions.
190 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
192         * libgomp.texi (OpenMP 5.2 status): Add depobj with
193         destroy-var argument as 'N'. Mark defaultmap with
194         'all' category as 'Y'.
196 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
198         PR middle-end/111017
199         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
201 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
203         PR libgomp/111024
204         * allocator.c (gomp_init_libnuma): Call numa_available; if
205         not available or not returning 0, disable libnuma usage.
207 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
209         * configure: Regenerate.
211 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
213         * configure: Regenerate.
215 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
217         * configure: Regenerate.
219 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
221         * configure: Regenerate.
223 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
225         * configure: Regenerate.
227 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
229         * configure: Regenerate.
231 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
233         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
234         GOMP_OFFLOAD_CAP_SHARED_MEM.
235         (omp_target_memcpy_rect_copy): Likewise for lock condition.
236         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
237         memcpy3d/memcpy2d.
238         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
239         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
240         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
242 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
244         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
245         GOMP_OFFLOAD_memcpy3d): New prototypes.
246         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
247         and memcpy3d_func.
248         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
249         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
250         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
251         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
252         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
253         GOMP_OFFLOAD_memcpy3d): New.
254         * target.c (omp_target_memcpy_rect_worker):
255         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
256         Permit all device-to-device copyies; invoke new plugins for
257         2D and 3D copying when available.
258         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
259         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
260         * testsuite/libgomp.fortran/target-12.f90: Likewise.
261         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
263 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
265         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
266         (Tasking Routines): Document omp_in_explicit_task.
267         (Implementation-defined ICV Initialization): Use @ref not @code.
269 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
271         * libgomp.texi (OpenMP Runtime Library Routines):
272         Split long list by adding sections and moving routines there.
273         (OMP_ALLOCATORS): Fix typo.
275 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
277         PR fortran/107424
278         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
279         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
280         commented tests.
281         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
282         test file; tests are in non-rectangular-loop-1.f90.
283         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
284         testcase to use a non-constant step to retain the 'sorry' test.
285         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
287 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
288             Chung-Lin Tang  <cltang@codesourcery.com>
290         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
291         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
293 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
295         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
296         the traits. Add crossref to 'Memory allocation'.
297         (Memory allocation): Refer to OMP_ALLOCATOR for the available
298         traits and allocators/mem spaces; document the default value
299         for the pool_size trait.
301 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
303         * allocator.c (omp_init_allocator): Check whether symbol from
304         dlopened libnuma is available before using libnuma for
305         allocations.
307 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
309         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
310         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
311         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
313 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
315         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
316         'Memory allocation' section which contains the full status.
317         (TR11): Remove differently worded duplicated entry.
319 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
321         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
322         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
323         add GOMP_MEMKIND_LIBNUMA.
324         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
325         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
326         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
327         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
328         needed.
329         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
330         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
331         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
332         updated for libnuma usage.
333         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
334         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
336 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
338         * allocator.c (omp_init_allocator): Use malloc for
339         omp_high_bw_mem_space when the memkind lib is unavailable
340         instead of returning omp_null_allocator.
341         * libgomp.texi (OpenMP 5.0): Fix typo.
342         (Memory allocation with libmemkind): Document implementation
343         in more detail.
345 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
347         * libgomp.texi: Use @var for ICV vars.
348         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
349         document which ICV is set and which scope the ICV has; extend/cleanup
350         some @ref.
351         (Implementation-defined ICV Initialization): New.
352         (nvptx): Document the implementation-defined used per-warp stack size.
354 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
356         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
357         error.
359 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
361         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
362         as expected dg-output.
364 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
366         PR middle-end/110270
367         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
368         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
369         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
370         * testsuite/libgomp.c/target-19.c: Update expected value.
371         * testsuite/libgomp.c++/target-18.C: Likewise.
372         * testsuite/libgomp.c++/target-19.C: Likewise.
373         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
374         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
375         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
377 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
379         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
380         gomp_init_targets_once was called before using default-device-var.
381         * testsuite/libgomp.c/target-55.c: New test.
382         * testsuite/libgomp.c/target-55a.c: New test.
384 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
386         * env.c (gomp_def_allocator_envvar): New var.
387         (parse_allocator): Handle OpenMP 5.1 syntax.
388         (cleanup_env): New.
389         (omp_display_env): Output gomp_def_allocator_envvar
390         for an allocator with traits.
391         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
392         OMP_DISPLAY_AFFINITY): New.
393         * testsuite/libgomp.c/allocator-1.c: New test.
394         * testsuite/libgomp.c/allocator-2.c: New test.
395         * testsuite/libgomp.c/allocator-3.c: New test.
396         * testsuite/libgomp.c/allocator-4.c: New test.
397         * testsuite/libgomp.c/allocator-5.c: New test.
398         * testsuite/libgomp.c/allocator-6.c: New test.
400 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
402         * target.c (resolve_device): Align a
403         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
404         * testsuite/libgomp.c/target-51.c: Adjust.
406 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
408         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
409         set.
410         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
411         Likewise.
412         * testsuite/libgomp.c/simd-math-1.c: Remove
413         '-foffload-options=-lm'.
414         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
415         Likewise.
416         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
417         Likewise.
419 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
421         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
422         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
423         Likewise.
425 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
427         * testsuite/libgomp.c/target-51.c: Fix typo.
429 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
431         * env.c (gomp_default_icv_values): Init default_device_var to
432         an nonconforming value - INT_MIN.
433         (initialize_env): After env-var parsing, set default_device_var to
434         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
435         (omp_display_env): If default_device_var is INT_MIN, call
436         gomp_init_targets_once.
437         * icv-device.c (omp_get_default_device): Likewise.
438         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
439         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
440         * target.c (resolve_device): Improve error message device-num < 0
441         with 'mandatory' and no no-host devices available.
442         (gomp_target_init): Set default-device-var if INT_MIN.
443         * testsuite/libgomp.c/target-48.c: New test.
444         * testsuite/libgomp.c/target-49.c: New test.
445         * testsuite/libgomp.c/target-50.c: New test.
446         * testsuite/libgomp.c/target-50a.c: New test.
447         * testsuite/libgomp.c/target-51.c: New test.
448         * testsuite/libgomp.c/target-52.c: New test.
449         * testsuite/libgomp.c/target-53.c: New test.
450         * testsuite/libgomp.c/target-54.c: New test.
452 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
454         PR libgomp/109837
455         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
456         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
458 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
460         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
461         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
462         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
463         error message.
464         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
465         changed error message.
466         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
467         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
468         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
469         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
470         extend testcase to check that data is copied when needed.
471         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
472         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
474 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
475             Tobias Burnus  <tobias@codesourcery.com>
477         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
478         also for non-offload_device targets; check that it runs
479         successfully for those and for all until a checkpoint for all
480         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
481         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
482         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
483         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
484         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
485         add missing vars to map clause.
487 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
489         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
490         unified_address requirement as supported.
491         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
492         'unified_address' from the not-supported requirements.
494 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
495             Tobias Burnus  <tobias@codesourcery.com>
497         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
498         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
499         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
500         modifier.
501         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
502         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
503         Emit runtime error if memory region not present.
504         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
505         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
506         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
507         * testsuite/libgomp.fortran/target-present-1.f90: New test.
508         * testsuite/libgomp.fortran/target-present-2.f90: New test.
509         * testsuite/libgomp.fortran/target-present-3.f90: New test.
511 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
513         PR testsuite/66005
514         * testsuite/lib/libgomp.exp: 'flock' through stdout.
515         * testsuite/flock: New.
516         * configure.ac (FLOCK): Point to that if no 'flock' available, but
517         'perl' is.
518         * configure: Regenerate.
520 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
522         * configure.ac (PERL): Remove.
523         * configure: Regenerate.
524         * Makefile.in: Likewise.
525         * testsuite/Makefile.in: Likewise.
527 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
529         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
531 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
533         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
535 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
537         PR libgomp/109875
538         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
539         * config/nvptx/target.c (GOMP_teams4): Likewise.
540         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
541         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
542         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
543         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
545 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
547         PR libgomp/109904
548         * configure.ac (link_gomp): Include also $DL_LIBS.
549         * configure: Regenerated.
551 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
553         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
554         'target exit data'.
555         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
556         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
557         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
558         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
560 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
562         PR testsuite/66005
563         * configure.ac: Look for 'flock'.
564         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
565         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
566         * testsuite/lib/libgomp.exp: ... but here, instead.
567         (libgomp_load): Override for parallel testing.
568         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
569         * configure: Regenerate.
570         * Makefile.in: Regenerate.
571         * testsuite/Makefile.in: Regenerate.
573 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
574             Thomas Schwinge  <thomas@codesourcery.com>
576         PR testsuite/66005
577         * testsuite/Makefile.am (PWD_COMMAND): New variable.
578         (%/site.exp): New target.
579         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
580         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
581         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
582         (check_p_subdirs)
583         (check_DEJAGNU_libgomp_targets): New variables.
584         ($(check_DEJAGNU_libgomp_targets)): New target.
585         ($(check_DEJAGNU_libgomp_targets)): New dependency.
586         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
587         * testsuite/Makefile.in: Regenerate.
588         * testsuite/lib/libgomp.exp: For parallel testing,
589         'load_file ../libgomp-test-support.exp'.
591 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
593         PR testsuite/91884
594         * configure.ac: 'AC_SUBST(CXX)'.
595         * configure: Regenerate.
596         * Makefile.in: Likewise.
597         * testsuite/Makefile.in: Likewise.
598         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
599         (GFORTRAN_UNDER_TEST): Set.
600         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
601         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
602         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
603         * testsuite/libgomp.fortran/fortran.exp: Use
604         'GFORTRAN_UNDER_TEST'.
605         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
607 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
609         PR testsuite/91884
610         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
611         specify compiler.
612         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
613         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
614         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
615         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
616         Likewise.
617         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
618         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
619         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
620         Likewise.
622 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
624         PR libstdc++/109816
625         * testsuite/libgomp.c++/target-map-class-1.C: New test.
626         * testsuite/libgomp.c++/target-map-class-2.C: New test.
628 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
630         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
631         'lang_library_path' into a list of 'lang_library_paths'.
632         * testsuite/libgomp.c++/c++.exp: Adjust.
633         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
634         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
635         libquadmath, too.
636         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
638 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
640         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
641         at 'lang_test_file_found'.
642         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
643         'return' early if not able to test.  Simplify 'ld_library_path' setup.
644         * testsuite/libgomp.fortran/fortran.exp: Likewise.
645         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
646         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
648 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
650         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
651         first.
652         * testsuite/libgomp.fortran/fortran.exp: Likewise.
653         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
654         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
656 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
658         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
659         * testsuite/libgomp.c/c.exp: Likewise.
660         * testsuite/libgomp.fortran/fortran.exp: Likewise.
661         * testsuite/libgomp.graphite/graphite.exp: Likewise.
662         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
663         * testsuite/libgomp.oacc-c/c.exp: Likewise.
664         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
666 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
668         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
669         * testsuite/libgomp.fortran/fortran.exp: Likewise.
670         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
671         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
672         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
673         'lang_test_file'.
674         * testsuite/libgomp.oacc-c/c.exp: Likewise.
675         * testsuite/libgomp.graphite/graphite.exp: Likewise.
676         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
677         'lang_test_file_found' instead of 'lang_test_file'.
679 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
681         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
682         set.
683         * testsuite/libgomp.c++/c++.exp: Likewise.
684         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
686 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
688         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
689         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
691 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
693         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
694         of 'libstdcxx_includes'.
695         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
697 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
699         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
700         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
701         * libgomp.h (gomp_target_rev): Adjust.
702         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
703         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
704         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
705         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
706         (rev_off_host_to_dev_cpy): Remove.
707         (GOMP_OFFLOAD_run): Adjust.
709 2023-05-04  Julian Brown  <julian@codesourcery.com>
711         PR fortran/109622
712         * testsuite/libgomp.fortran/pr109622.f90: Move test...
713         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
714         vector length warning.
715         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
716         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
717         missing copyin/copyout variable. Ignore vector length warnings.
718         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
719         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
720         vector length warnings.
721         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
723 2023-04-28  Julian Brown  <julian@codesourcery.com>
725         PR fortran/109622
726         * testsuite/libgomp.fortran/pr109622.f90: New test.
727         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
728         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
730 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
732         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
733         * testsuite/libgomp.c/scan-23.c: New test.
734         * testsuite/libgomp.fortran/scan-2.f90: New test.
736 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
738         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
739         weak_undefined options.
741 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
743         * libgomp.texi (Offload-Target Specifics): Grammar fix.
745 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
747         PR fortran/104949
748         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
749         caveat/safeguard.
751 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
753         PR libgomp/90596
754         * target.c (gomp_map_vars_internal): Allow for
755         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
756         * oacc-parallel.c (GOACC_parallel_keyed): Pass
757         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
758         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
759         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
760         Adjust, simplify.
761         (gomp_offload_free): Remove.
762         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
763         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
764         (cuda_free_argmem): Remove.
765         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
766         Adjust.
768 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
770         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
771         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
772         data.
774 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
776         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
777         'GOMP_MAP_IF_PRESENT'.
778         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
779         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
780         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
781         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
782         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
783         testing.
784         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
786 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
788         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
789         shortcut.
791 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
793         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
794         another aspect of OpenACC 'async' semantics.
796 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
798         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
799         position.
800         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
801         Verify 'acc_ev_alloc', 'acc_ev_free'.
803 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
805         PR libgomp/109062
806         * env.c (wait_policy): Initialize to -1.
807         (initialize_icvs): Initialize icvs->wait_policy to -1.
808         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
810 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
812         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
814 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
815             Paul-Antoine Arras  <pa@codesourcery.com>
817         * testsuite/libgomp.c/simd-math-1.c: New testcase.
819 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
821         PR middle-end/108546
822         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
823         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
825 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
827         * testsuite/libgomp.fortran/alloc-10.f90: Use
828         '-Wno-complain-wrong-lang'.
829         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
830         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
831         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
832         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
833         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
834         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
835         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
836         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
837         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
838         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
839         Likewise.
840         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
841         Likewise.
842         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
843         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
844         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
845         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
846         'dg-prune-output'.
848 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
850         * libgomp.texi: Fix typos - theads -> threads.
852 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
854         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
855         comment typo and improve its wording.
857 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
859         * target.c (gomp_target_rev): Dereference ptr
860         to get device address.
861         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
862         for unallocated allocatable.
864 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
866         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
867         kind check.
868         (GOMP_target_enter_exit_data): If the next map item is
869         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
870         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
872 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
874         PR fortran/107424
875         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
876         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
877         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
878         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
879         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
880         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
882 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
884         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
885         offloading compilation.
887 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
889         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
890         freeing not allocated memory.
891         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
893 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
895         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
896         reverse offload.
897         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
898         reverse-offload requirement.
900 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
902         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
903         (DEFAULT_TEAM_ARENA_SIZE): New define.
904         (struct heap): Move to this file.
905         (struct kernargs_abi): Likewise.
906         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
907         the kernargs.
908         * libgomp.h: Include libgomp-gcn.h.
909         (TEAM_ARENA_SIZE): Remove.
910         (team_malloc): Update the error message.
911         * plugin/plugin-gcn.c (struct kernargs): Move common content to
912         struct kernargs_abi.
913         (struct agent_info): Rename team arenas to ephemeral memories.
914         (struct team_arena_list): Rename ....
915         (struct ephemeral_memories_list): to this.
916         (struct heap): Delete.
917         (team_arena_size): New variable.
918         (stack_size): New variable.
919         (print_kernel_dispatch): Update debug messages.
920         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
921         Read GCN_STACK_SIZE.
922         (get_team_arena): Rename ...
923         (configure_ephemeral_memories): ... to this, and set up stacks.
924         (release_team_arena): Rename ...
925         (release_ephemeral_memories): ... to this.
926         (destroy_team_arenas): Rename ...
927         (destroy_ephemeral_memories): ... to this.
928         (create_kernel_dispatch): Add num_threads parameter.
929         Adjust for kernargs_abi refactor and ephemeral memories.
930         (release_kernel_dispatch): Adjust for ephemeral memories.
931         (run_kernel): Pass thread-count to create_kernel_dispatch.
932         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
933         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
935 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
937         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
939 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
941         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
942         usage, remove unused -fdump-tree-original.
943         * testsuite/libgomp.fortran/allocate-4.f90: New.
945 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
947         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
948         (GCN): Add item about 'omp requires'.
949         (nvptx): Likewise; add item about reverse offload.
951 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
953         PR fortran/108558
954         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
956 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
958         * libgomp.texi (OpenMP 5.0): Set non-rectangular
959         loop nest back to 'P' as Fortran support is incomplete.
961 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
963         PR middle-end/108459
964         * testsuite/libgomp.c/pr108459.c: New test.
966 2023-01-17  Martin Liska  <mliska@suse.cz>
968         * Makefile.in: Regenerate.
969         * configure: Regenerate.
971 2023-01-07  LIU Hao  <lh_mouse@126.com>
973         PR middle-end/108300
974         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
975         <windows.h>.
977 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
979         PR c++/108286
980         * testsuite/libgomp.c++/pr108286.C: New test.
982 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
984         * libgomp.texi: Bump @copying's copyright year.
986 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
988         PR target/99555
989         * config/nvptx/bar.c (generation_to_barrier): Remove.
990         (futex_wait,futex_wake,do_spin,do_wait): Remove.
991         (GOMP_WAIT_H): Remove.
992         (#include "../linux/bar.c"): Remove.
993         (gomp_barrier_wait_end): New function.
994         (gomp_barrier_wait): Likewise.
995         (gomp_barrier_wait_last): Likewise.
996         (gomp_team_barrier_wait_end): Likewise.
997         (gomp_team_barrier_wait): Likewise.
998         (gomp_team_barrier_wait_final): Likewise.
999         (gomp_team_barrier_wait_cancel_end): Likewise.
1000         (gomp_team_barrier_wait_cancel): Likewise.
1001         (gomp_team_barrier_cancel): Likewise.
1002         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1003         (gomp_barrier_init): Remove init of waiters, lock fields.
1004         (gomp_team_barrier_wake): Remove prototype, add new static inline
1005         function.
1007 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1009         PR c++/108180
1010         * testsuite/libgomp.c++/pr108180.C: New test.
1012 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1014         PR libfortran/108056
1015         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1016         accidentally added file.
1018 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1020         PR libfortran/108056
1021         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1023 2022-12-14  Julian Brown  <julian@codesourcery.com>
1025         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1026         test.
1028 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1030         * libgomp.h (struct target_mem_desc): Predeclare; move
1031         below after 'reverse_splay_tree_node' and add rev_array
1032         member.
1033         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1034         (reverse_splay_tree_node, reverse_splay_tree,
1035         reverse_splay_tree_key): New typedef.
1036         (struct gomp_device_descr): Add mem_map_rev member.
1037         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1038         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1039         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1040         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1041         splay_tree_callback but returning int not void.
1042         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1043         taking splay_tree_callback_stop as argument.
1044         * splay-tree.c (splay_tree_foreach_internal_lazy,
1045         splay_tree_foreach_lazy): New; but early exit if callback returns
1046         nonzero.
1047         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1048         (gomp_map_lookup_rev): New.
1049         (gomp_load_image_to_device): Handle reverse-offload function
1050         lookup table.
1051         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1052         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1053         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1054         gomp_map_cdata_lookup): New auxiliary structs and functions for
1055         gomp_target_rev.
1056         (gomp_target_rev): Implement reverse offloading and its mapping.
1057         (gomp_target_init): Init current_device.mem_map_rev.root.
1058         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1059         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1060         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1061         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1062         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1063         mapping of on-device allocated variables.
1065 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1067         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1068         item about 'align'; mark clause as 'Y' and directive as 'N'.
1069         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1070         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1072 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1074         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1075         allow processing of device-specific values.
1076         (omp_set_teams_thread_limit): Likewise.
1077         (ialias): Likewise.
1078         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1079         (omp_set_teams_thread_limit): Likewise.
1080         (ialias): Likewise.
1081         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1082         (ialias): Likewise.
1083         (omp_set_teams_thread_limit): Likewise.
1084         * icv.c (omp_set_teams_thread_limit): Removed.
1085         (omp_get_teams_thread_limit): Likewise.
1086         (ialias): Likewise.
1087         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1088         to the limitation of the number of teams.
1089         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1090         the number of teams by twice the number of compute units.
1091         (parse_target_attributes): Limit the number of teams on gcn offload
1092         devices.
1093         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1094         handling.
1095         (gomp_load_image_to_device): Added a size check for the ICVs struct
1096         variable.
1097         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1098         copy back the ICV values from device to host.
1099         (GOMP_target_ext): Update the number of teams and threads in the kernel
1100         args also considering device-specific values.
1101         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1102         of OMP_TEAMS_THREAD_LIMIT from the environment.
1103         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1104         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1105         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1106         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1107         * testsuite/libgomp.fortran/icv-5.f90: New test.
1108         * testsuite/libgomp.fortran/icv-6.f90: New test.
1110 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1112         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1113         (TR11): Add missing '@tab N @tab'.
1115 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1117         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1119 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1121         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1122         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1123         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1124         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1125         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1126         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1127         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1129 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1131         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1133 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1135         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1136         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1137         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1138         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1140 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1142         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1143         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1144         as valid and the code having no reverse-offload code.
1145         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1147 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1149         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1150         and status for Technical Report (TR) 11.
1152 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1154         * config/gcn/libgomp-gcn.h (struct output):
1155         Remove 'msg_u64' from the union, change
1156         value_u64[2] to value_u64[6].
1157         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1158         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1159         Likewise.
1161 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1163         * config/gcn/libgomp-gcn.h: New file; contains
1164         struct output, declared previously in plugin-gcn.c.
1165         * config/gcn/target.c: Include it.
1166         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1167         (GOMP_target_ext): Handle reverse offload.
1168         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1169         (struct kernargs): Replace struct def by the one
1170         from libgomp-gcn.h for output_data.
1171         (process_reverse_offload): New.
1172         (console_output): Call it.
1174 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1175             Andrew Stubbs  <ams@codesourcery.com>
1177         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1178         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1180 2022-11-14  Martin Liska  <mliska@suse.cz>
1182         Revert:
1183         2022-11-14  Martin Liska  <mliska@suse.cz>
1185         * doc/amd-radeon-gcn.rst: New file.
1186         * doc/conf.py: New file.
1187         * doc/copyright.rst: New file.
1188         * doc/cuda-streams-usage.rst: New file.
1189         * doc/enabling-openacc.rst: New file.
1190         * doc/enabling-openmp.rst: New file.
1191         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1192         * doc/first-invocation-openacc-library-api.rst: New file.
1193         * doc/funding.rst: New file.
1194         * doc/general-public-license-3.rst: New file.
1195         * doc/gnu-free-documentation-license.rst: New file.
1196         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1197         * doc/index.rst: New file.
1198         * doc/indices-and-tables.rst: New file.
1199         * doc/introduction.rst: New file.
1200         * doc/memory-allocation-with-libmemkind.rst: New file.
1201         * doc/nvptx.rst: New file.
1202         * doc/offload-target-specifics.rst: New file.
1203         * doc/openacc-environment-variables.rst: New file.
1204         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1205         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1206         * doc/openacc-environment-variables/accproflib.rst: New file.
1207         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1208         * doc/openacc-introduction.rst: New file.
1209         * doc/openacc-library-and-environment-variables.rst: New file.
1210         * doc/openacc-library-interoperability.rst: New file.
1211         * doc/openacc-profiling-interface.rst: New file.
1212         * doc/openacc-runtime-library-routines.rst: New file.
1213         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1214         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1215         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1216         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1217         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1218         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1219         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1220         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1221         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1222         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1223         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1224         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1225         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1226         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1227         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1228         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1229         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1230         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1231         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1232         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1233         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1234         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1235         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1236         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1237         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1238         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1239         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1240         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1241         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1242         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1243         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1244         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1245         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1246         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1247         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1248         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1249         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1250         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1251         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1252         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1253         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1254         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1255         * doc/openmp-context-selectors.rst: New file.
1256         * doc/openmp-environment-variables.rst: New file.
1257         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1258         * doc/openmp-environment-variables/gompdebug.rst: New file.
1259         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1260         * doc/openmp-environment-variables/gompspincount.rst: New file.
1261         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1262         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1263         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1264         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1265         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1266         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1267         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1268         * doc/openmp-environment-variables/ompnested.rst: New file.
1269         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1270         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1271         * doc/openmp-environment-variables/ompplaces.rst: New file.
1272         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1273         * doc/openmp-environment-variables/ompschedule.rst: New file.
1274         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1275         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1276         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1277         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1278         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1279         * doc/openmp-implementation-specifics.rst: New file.
1280         * doc/openmp-implementation-status.rst: New file.
1281         * doc/openmp-implementation-status/openmp-45.rst: New file.
1282         * doc/openmp-implementation-status/openmp-50.rst: New file.
1283         * doc/openmp-implementation-status/openmp-51.rst: New file.
1284         * doc/openmp-implementation-status/openmp-52.rst: New file.
1285         * doc/openmp-runtime-library-routines.rst: New file.
1286         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1287         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1288         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1289         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1290         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1291         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1292         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1293         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1294         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1295         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1296         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1297         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1298         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1299         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1300         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1301         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1302         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1303         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1304         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1305         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1306         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1307         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1308         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1309         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1310         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1311         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1312         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1313         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1314         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1315         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1316         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1317         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1318         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1319         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1320         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1321         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1322         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1323         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1324         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1325         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1326         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1327         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1328         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1329         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1330         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1331         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1332         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1333         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1334         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1335         * doc/reporting-bugs.rst: New file.
1336         * doc/the-libgomp-abi.rst: New file.
1337         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1338         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1339         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1340         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1341         New file.
1342         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1343         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1344         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1345         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1346         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1347         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1348         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1349         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1350         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1351         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1352         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1354 2022-11-14  Martin Liska  <mliska@suse.cz>
1356         Revert:
1357         2022-11-14  Martin Liska  <mliska@suse.cz>
1359         * Makefile.in: Support Sphinx based documentation.
1361 2022-11-14  Martin Liska  <mliska@suse.cz>
1363         Revert:
1364         2022-11-14  Martin Liska  <mliska@suse.cz>
1366         * libgomp.texi: Removed.
1368 2022-11-14  Martin Liska  <mliska@suse.cz>
1370         Revert:
1371         2022-11-14  Martin Liska  <mliska@suse.cz>
1373         * Makefile.in: Support --with-sphinx-build.
1374         * configure.ac: Likewise..
1375         * configure: Regenerate.
1377 2022-11-14  Martin Liska  <mliska@suse.cz>
1379         Revert:
1380         2022-11-09  Martin Liska  <mliska@suse.cz>
1382         * Makefile.in: Build info pages conditionally.
1384 2022-11-14  Martin Liska  <mliska@suse.cz>
1386         Revert:
1387         2022-11-14  Martin Liska  <mliska@suse.cz>
1389         * doc/amd-radeon-gcn.rst:
1390         Add trailing newline.
1391         * doc/copyright.rst:
1392         Add trailing newline.
1393         * doc/cuda-streams-usage.rst:
1394         Add trailing newline.
1395         * doc/enabling-openacc.rst:
1396         Add trailing newline.
1397         * doc/enabling-openmp.rst:
1398         Add trailing newline.
1399         * doc/first-invocation-nvidia-cublas-library-api.rst:
1400         Add trailing newline.
1401         * doc/first-invocation-openacc-library-api.rst:
1402         Add trailing newline.
1403         * doc/funding.rst:
1404         Add trailing newline.
1405         * doc/general-public-license-3.rst:
1406         Add trailing newline.
1407         * doc/gnu-free-documentation-license.rst:
1408         Add trailing newline.
1409         * doc/implementation-status-and-implementation-defined-behavior.rst:
1410         Add trailing newline.
1411         * doc/index.rst:
1412         Add trailing newline.
1413         * doc/indices-and-tables.rst:
1414         Add trailing newline.
1415         * doc/introduction.rst:
1416         Add trailing newline.
1417         * doc/memory-allocation-with-libmemkind.rst:
1418         Add trailing newline.
1419         * doc/nvptx.rst:
1420         Add trailing newline.
1421         * doc/offload-target-specifics.rst:
1422         Add trailing newline.
1423         * doc/openacc-environment-variables.rst:
1424         Add trailing newline.
1425         * doc/openacc-environment-variables/accdevicenum.rst:
1426         Add trailing newline.
1427         * doc/openacc-environment-variables/accdevicetype.rst:
1428         Add trailing newline.
1429         * doc/openacc-environment-variables/accproflib.rst:
1430         Add trailing newline.
1431         * doc/openacc-environment-variables/gccaccnotify.rst:
1432         Add trailing newline.
1433         * doc/openacc-introduction.rst:
1434         Add trailing newline.
1435         * doc/openacc-library-and-environment-variables.rst:
1436         Add trailing newline.
1437         * doc/openacc-library-interoperability.rst:
1438         Add trailing newline.
1439         * doc/openacc-profiling-interface.rst:
1440         Add trailing newline.
1441         * doc/openacc-runtime-library-routines.rst:
1442         Add trailing newline.
1443         * doc/openacc-runtime-library-routines/accasynctest.rst:
1444         Add trailing newline.
1445         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1446         Add trailing newline.
1447         * doc/openacc-runtime-library-routines/accattach.rst:
1448         Add trailing newline.
1449         * doc/openacc-runtime-library-routines/acccopyin.rst:
1450         Add trailing newline.
1451         * doc/openacc-runtime-library-routines/acccopyout.rst:
1452         Add trailing newline.
1453         * doc/openacc-runtime-library-routines/acccreate.rst:
1454         Add trailing newline.
1455         * doc/openacc-runtime-library-routines/accdelete.rst:
1456         Add trailing newline.
1457         * doc/openacc-runtime-library-routines/accdetach.rst:
1458         Add trailing newline.
1459         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1460         Add trailing newline.
1461         * doc/openacc-runtime-library-routines/accfree.rst:
1462         Add trailing newline.
1463         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1464         Add trailing newline.
1465         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1466         Add trailing newline.
1467         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1468         Add trailing newline.
1469         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1470         Add trailing newline.
1471         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1472         Add trailing newline.
1473         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1474         Add trailing newline.
1475         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1476         Add trailing newline.
1477         * doc/openacc-runtime-library-routines/acchostptr.rst:
1478         Add trailing newline.
1479         * doc/openacc-runtime-library-routines/accinit.rst:
1480         Add trailing newline.
1481         * doc/openacc-runtime-library-routines/accispresent.rst:
1482         Add trailing newline.
1483         * doc/openacc-runtime-library-routines/accmalloc.rst:
1484         Add trailing newline.
1485         * doc/openacc-runtime-library-routines/accmapdata.rst:
1486         Add trailing newline.
1487         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1488         Add trailing newline.
1489         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1490         Add trailing newline.
1491         * doc/openacc-runtime-library-routines/accondevice.rst:
1492         Add trailing newline.
1493         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1494         Add trailing newline.
1495         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1496         Add trailing newline.
1497         * doc/openacc-runtime-library-routines/accproflookup.rst:
1498         Add trailing newline.
1499         * doc/openacc-runtime-library-routines/accprofregister.rst:
1500         Add trailing newline.
1501         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1502         Add trailing newline.
1503         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1504         Add trailing newline.
1505         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1506         Add trailing newline.
1507         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1508         Add trailing newline.
1509         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1510         Add trailing newline.
1511         * doc/openacc-runtime-library-routines/accshutdown.rst:
1512         Add trailing newline.
1513         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1514         Add trailing newline.
1515         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1516         Add trailing newline.
1517         * doc/openacc-runtime-library-routines/accupdateself.rst:
1518         Add trailing newline.
1519         * doc/openacc-runtime-library-routines/accwait.rst:
1520         Add trailing newline.
1521         * doc/openacc-runtime-library-routines/accwaitall.rst:
1522         Add trailing newline.
1523         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1524         Add trailing newline.
1525         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1526         Add trailing newline.
1527         * doc/openmp-context-selectors.rst:
1528         Add trailing newline.
1529         * doc/openmp-environment-variables.rst:
1530         Add trailing newline.
1531         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1532         Add trailing newline.
1533         * doc/openmp-environment-variables/gompdebug.rst:
1534         Add trailing newline.
1535         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1536         Add trailing newline.
1537         * doc/openmp-environment-variables/gompspincount.rst:
1538         Add trailing newline.
1539         * doc/openmp-environment-variables/gompstacksize.rst:
1540         Add trailing newline.
1541         * doc/openmp-environment-variables/ompcancellation.rst:
1542         Add trailing newline.
1543         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1544         Add trailing newline.
1545         * doc/openmp-environment-variables/ompdisplayenv.rst:
1546         Add trailing newline.
1547         * doc/openmp-environment-variables/ompdynamic.rst:
1548         Add trailing newline.
1549         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1550         Add trailing newline.
1551         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1552         Add trailing newline.
1553         * doc/openmp-environment-variables/ompnested.rst:
1554         Add trailing newline.
1555         * doc/openmp-environment-variables/ompnumteams.rst:
1556         Add trailing newline.
1557         * doc/openmp-environment-variables/ompnumthreads.rst:
1558         Add trailing newline.
1559         * doc/openmp-environment-variables/ompplaces.rst:
1560         Add trailing newline.
1561         * doc/openmp-environment-variables/ompprocbind.rst:
1562         Add trailing newline.
1563         * doc/openmp-environment-variables/ompschedule.rst:
1564         Add trailing newline.
1565         * doc/openmp-environment-variables/ompstacksize.rst:
1566         Add trailing newline.
1567         * doc/openmp-environment-variables/omptargetoffload.rst:
1568         Add trailing newline.
1569         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1570         Add trailing newline.
1571         * doc/openmp-environment-variables/ompthreadlimit.rst:
1572         Add trailing newline.
1573         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1574         Add trailing newline.
1575         * doc/openmp-implementation-specifics.rst:
1576         Add trailing newline.
1577         * doc/openmp-implementation-status.rst:
1578         Add trailing newline.
1579         * doc/openmp-implementation-status/openmp-45.rst:
1580         Add trailing newline.
1581         * doc/openmp-implementation-status/openmp-50.rst:
1582         Add trailing newline.
1583         * doc/openmp-implementation-status/openmp-51.rst:
1584         Add trailing newline.
1585         * doc/openmp-implementation-status/openmp-52.rst:
1586         Add trailing newline.
1587         * doc/openmp-runtime-library-routines.rst:
1588         Add trailing newline.
1589         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1590         Add trailing newline.
1591         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1592         Add trailing newline.
1593         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1594         Add trailing newline.
1595         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1596         Add trailing newline.
1597         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1598         Add trailing newline.
1599         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1600         Add trailing newline.
1601         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1602         Add trailing newline.
1603         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1604         Add trailing newline.
1605         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1606         Add trailing newline.
1607         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1608         Add trailing newline.
1609         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1610         Add trailing newline.
1611         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1612         Add trailing newline.
1613         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1614         Add trailing newline.
1615         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1616         Add trailing newline.
1617         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1618         Add trailing newline.
1619         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1620         Add trailing newline.
1621         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
1622         Add trailing newline.
1623         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
1624         Add trailing newline.
1625         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
1626         Add trailing newline.
1627         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
1628         Add trailing newline.
1629         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
1630         Add trailing newline.
1631         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
1632         Add trailing newline.
1633         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
1634         Add trailing newline.
1635         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
1636         Add trailing newline.
1637         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
1638         Add trailing newline.
1639         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
1640         Add trailing newline.
1641         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
1642         Add trailing newline.
1643         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
1644         Add trailing newline.
1645         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
1646         Add trailing newline.
1647         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
1648         Add trailing newline.
1649         * doc/openmp-runtime-library-routines/ompinfinal.rst:
1650         Add trailing newline.
1651         * doc/openmp-runtime-library-routines/ompinitlock.rst:
1652         Add trailing newline.
1653         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
1654         Add trailing newline.
1655         * doc/openmp-runtime-library-routines/ompinparallel.rst:
1656         Add trailing newline.
1657         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
1658         Add trailing newline.
1659         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
1660         Add trailing newline.
1661         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
1662         Add trailing newline.
1663         * doc/openmp-runtime-library-routines/ompsetlock.rst:
1664         Add trailing newline.
1665         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
1666         Add trailing newline.
1667         * doc/openmp-runtime-library-routines/ompsetnested.rst:
1668         Add trailing newline.
1669         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
1670         Add trailing newline.
1671         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
1672         Add trailing newline.
1673         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
1674         Add trailing newline.
1675         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
1676         Add trailing newline.
1677         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
1678         Add trailing newline.
1679         * doc/openmp-runtime-library-routines/omptestlock.rst:
1680         Add trailing newline.
1681         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
1682         Add trailing newline.
1683         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
1684         Add trailing newline.
1685         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
1686         Add trailing newline.
1687         * doc/reporting-bugs.rst:
1688         Add trailing newline.
1689         * doc/the-libgomp-abi.rst:
1690         Add trailing newline.
1691         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
1692         Add trailing newline.
1693         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
1694         Add trailing newline.
1695         * doc/the-libgomp-abi/implementing-critical-construct.rst:
1696         Add trailing newline.
1697         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1698         Add trailing newline.
1699         * doc/the-libgomp-abi/implementing-flush-construct.rst:
1700         Add trailing newline.
1701         * doc/the-libgomp-abi/implementing-for-construct.rst:
1702         Add trailing newline.
1703         * doc/the-libgomp-abi/implementing-master-construct.rst:
1704         Add trailing newline.
1705         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
1706         Add trailing newline.
1707         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
1708         Add trailing newline.
1709         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
1710         Add trailing newline.
1711         * doc/the-libgomp-abi/implementing-private-clause.rst:
1712         Add trailing newline.
1713         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
1714         Add trailing newline.
1715         * doc/the-libgomp-abi/implementing-sections-construct.rst:
1716         Add trailing newline.
1717         * doc/the-libgomp-abi/implementing-single-construct.rst:
1718         Add trailing newline.
1719         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
1720         Add trailing newline.
1722 2022-11-14  Martin Liska  <mliska@suse.cz>
1724         Revert:
1725         2022-11-09  Martin Liska  <mliska@suse.cz>
1727         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1729 2022-11-14  Martin Liska  <mliska@suse.cz>
1731         Revert:
1732         2022-11-14  Martin Liska  <mliska@suse.cz>
1734         * doc/conf.py: Add newline at last line.
1736 2022-11-14  Martin Liska  <mliska@suse.cz>
1738         Revert:
1739         2022-11-14  Martin Liska  <mliska@suse.cz>
1741         PR other/107620
1742         * configure: Regenerate.
1743         * configure.ac: Always set sphinx-build.
1745 2022-11-13  Martin Liska  <mliska@suse.cz>
1747         PR other/107620
1748         * configure: Regenerate.
1749         * configure.ac: Always set sphinx-build.
1751 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
1753         PR libgomp/107641
1754         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
1755         unsigned long.  Change type of upper from unsigned to unsigned long.
1757 2022-11-10  Martin Liska  <mliska@suse.cz>
1759         * doc/conf.py: Add newline at last line.
1761 2022-11-09  Martin Liska  <mliska@suse.cz>
1763         * Makefile.in: Add missing HAS_SPHINX_BUILD.
1765 2022-11-09  Martin Liska  <mliska@suse.cz>
1767         * doc/amd-radeon-gcn.rst:
1768         Add trailing newline.
1769         * doc/copyright.rst:
1770         Add trailing newline.
1771         * doc/cuda-streams-usage.rst:
1772         Add trailing newline.
1773         * doc/enabling-openacc.rst:
1774         Add trailing newline.
1775         * doc/enabling-openmp.rst:
1776         Add trailing newline.
1777         * doc/first-invocation-nvidia-cublas-library-api.rst:
1778         Add trailing newline.
1779         * doc/first-invocation-openacc-library-api.rst:
1780         Add trailing newline.
1781         * doc/funding.rst:
1782         Add trailing newline.
1783         * doc/general-public-license-3.rst:
1784         Add trailing newline.
1785         * doc/gnu-free-documentation-license.rst:
1786         Add trailing newline.
1787         * doc/implementation-status-and-implementation-defined-behavior.rst:
1788         Add trailing newline.
1789         * doc/index.rst:
1790         Add trailing newline.
1791         * doc/indices-and-tables.rst:
1792         Add trailing newline.
1793         * doc/introduction.rst:
1794         Add trailing newline.
1795         * doc/memory-allocation-with-libmemkind.rst:
1796         Add trailing newline.
1797         * doc/nvptx.rst:
1798         Add trailing newline.
1799         * doc/offload-target-specifics.rst:
1800         Add trailing newline.
1801         * doc/openacc-environment-variables.rst:
1802         Add trailing newline.
1803         * doc/openacc-environment-variables/accdevicenum.rst:
1804         Add trailing newline.
1805         * doc/openacc-environment-variables/accdevicetype.rst:
1806         Add trailing newline.
1807         * doc/openacc-environment-variables/accproflib.rst:
1808         Add trailing newline.
1809         * doc/openacc-environment-variables/gccaccnotify.rst:
1810         Add trailing newline.
1811         * doc/openacc-introduction.rst:
1812         Add trailing newline.
1813         * doc/openacc-library-and-environment-variables.rst:
1814         Add trailing newline.
1815         * doc/openacc-library-interoperability.rst:
1816         Add trailing newline.
1817         * doc/openacc-profiling-interface.rst:
1818         Add trailing newline.
1819         * doc/openacc-runtime-library-routines.rst:
1820         Add trailing newline.
1821         * doc/openacc-runtime-library-routines/accasynctest.rst:
1822         Add trailing newline.
1823         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1824         Add trailing newline.
1825         * doc/openacc-runtime-library-routines/accattach.rst:
1826         Add trailing newline.
1827         * doc/openacc-runtime-library-routines/acccopyin.rst:
1828         Add trailing newline.
1829         * doc/openacc-runtime-library-routines/acccopyout.rst:
1830         Add trailing newline.
1831         * doc/openacc-runtime-library-routines/acccreate.rst:
1832         Add trailing newline.
1833         * doc/openacc-runtime-library-routines/accdelete.rst:
1834         Add trailing newline.
1835         * doc/openacc-runtime-library-routines/accdetach.rst:
1836         Add trailing newline.
1837         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1838         Add trailing newline.
1839         * doc/openacc-runtime-library-routines/accfree.rst:
1840         Add trailing newline.
1841         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1842         Add trailing newline.
1843         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1844         Add trailing newline.
1845         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1846         Add trailing newline.
1847         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1848         Add trailing newline.
1849         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1850         Add trailing newline.
1851         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1852         Add trailing newline.
1853         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1854         Add trailing newline.
1855         * doc/openacc-runtime-library-routines/acchostptr.rst:
1856         Add trailing newline.
1857         * doc/openacc-runtime-library-routines/accinit.rst:
1858         Add trailing newline.
1859         * doc/openacc-runtime-library-routines/accispresent.rst:
1860         Add trailing newline.
1861         * doc/openacc-runtime-library-routines/accmalloc.rst:
1862         Add trailing newline.
1863         * doc/openacc-runtime-library-routines/accmapdata.rst:
1864         Add trailing newline.
1865         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1866         Add trailing newline.
1867         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1868         Add trailing newline.
1869         * doc/openacc-runtime-library-routines/accondevice.rst:
1870         Add trailing newline.
1871         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1872         Add trailing newline.
1873         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1874         Add trailing newline.
1875         * doc/openacc-runtime-library-routines/accproflookup.rst:
1876         Add trailing newline.
1877         * doc/openacc-runtime-library-routines/accprofregister.rst:
1878         Add trailing newline.
1879         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1880         Add trailing newline.
1881         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1882         Add trailing newline.
1883         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1884         Add trailing newline.
1885         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1886         Add trailing newline.
1887         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1888         Add trailing newline.
1889         * doc/openacc-runtime-library-routines/accshutdown.rst:
1890         Add trailing newline.
1891         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1892         Add trailing newline.
1893         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1894         Add trailing newline.
1895         * doc/openacc-runtime-library-routines/accupdateself.rst:
1896         Add trailing newline.
1897         * doc/openacc-runtime-library-routines/accwait.rst:
1898         Add trailing newline.
1899         * doc/openacc-runtime-library-routines/accwaitall.rst:
1900         Add trailing newline.
1901         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1902         Add trailing newline.
1903         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1904         Add trailing newline.
1905         * doc/openmp-context-selectors.rst:
1906         Add trailing newline.
1907         * doc/openmp-environment-variables.rst:
1908         Add trailing newline.
1909         * doc/openmp-environment-variables/gompcpuaffinity.rst:
1910         Add trailing newline.
1911         * doc/openmp-environment-variables/gompdebug.rst:
1912         Add trailing newline.
1913         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
1914         Add trailing newline.
1915         * doc/openmp-environment-variables/gompspincount.rst:
1916         Add trailing newline.
1917         * doc/openmp-environment-variables/gompstacksize.rst:
1918         Add trailing newline.
1919         * doc/openmp-environment-variables/ompcancellation.rst:
1920         Add trailing newline.
1921         * doc/openmp-environment-variables/ompdefaultdevice.rst:
1922         Add trailing newline.
1923         * doc/openmp-environment-variables/ompdisplayenv.rst:
1924         Add trailing newline.
1925         * doc/openmp-environment-variables/ompdynamic.rst:
1926         Add trailing newline.
1927         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
1928         Add trailing newline.
1929         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
1930         Add trailing newline.
1931         * doc/openmp-environment-variables/ompnested.rst:
1932         Add trailing newline.
1933         * doc/openmp-environment-variables/ompnumteams.rst:
1934         Add trailing newline.
1935         * doc/openmp-environment-variables/ompnumthreads.rst:
1936         Add trailing newline.
1937         * doc/openmp-environment-variables/ompplaces.rst:
1938         Add trailing newline.
1939         * doc/openmp-environment-variables/ompprocbind.rst:
1940         Add trailing newline.
1941         * doc/openmp-environment-variables/ompschedule.rst:
1942         Add trailing newline.
1943         * doc/openmp-environment-variables/ompstacksize.rst:
1944         Add trailing newline.
1945         * doc/openmp-environment-variables/omptargetoffload.rst:
1946         Add trailing newline.
1947         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
1948         Add trailing newline.
1949         * doc/openmp-environment-variables/ompthreadlimit.rst:
1950         Add trailing newline.
1951         * doc/openmp-environment-variables/ompwaitpolicy.rst:
1952         Add trailing newline.
1953         * doc/openmp-implementation-specifics.rst:
1954         Add trailing newline.
1955         * doc/openmp-implementation-status.rst:
1956         Add trailing newline.
1957         * doc/openmp-implementation-status/openmp-45.rst:
1958         Add trailing newline.
1959         * doc/openmp-implementation-status/openmp-50.rst:
1960         Add trailing newline.
1961         * doc/openmp-implementation-status/openmp-51.rst:
1962         Add trailing newline.
1963         * doc/openmp-implementation-status/openmp-52.rst:
1964         Add trailing newline.
1965         * doc/openmp-runtime-library-routines.rst:
1966         Add trailing newline.
1967         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
1968         Add trailing newline.
1969         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
1970         Add trailing newline.
1971         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
1972         Add trailing newline.
1973         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
1974         Add trailing newline.
1975         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
1976         Add trailing newline.
1977         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
1978         Add trailing newline.
1979         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
1980         Add trailing newline.
1981         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
1982         Add trailing newline.
1983         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
1984         Add trailing newline.
1985         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
1986         Add trailing newline.
1987         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
1988         Add trailing newline.
1989         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
1990         Add trailing newline.
1991         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
1992         Add trailing newline.
1993         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
1994         Add trailing newline.
1995         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
1996         Add trailing newline.
1997         * doc/openmp-runtime-library-routines/ompgetnested.rst:
1998         Add trailing newline.
1999         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2000         Add trailing newline.
2001         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2002         Add trailing newline.
2003         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2004         Add trailing newline.
2005         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2006         Add trailing newline.
2007         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2008         Add trailing newline.
2009         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2010         Add trailing newline.
2011         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2012         Add trailing newline.
2013         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2014         Add trailing newline.
2015         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2016         Add trailing newline.
2017         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2018         Add trailing newline.
2019         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2020         Add trailing newline.
2021         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2022         Add trailing newline.
2023         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2024         Add trailing newline.
2025         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2026         Add trailing newline.
2027         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2028         Add trailing newline.
2029         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2030         Add trailing newline.
2031         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2032         Add trailing newline.
2033         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2034         Add trailing newline.
2035         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2036         Add trailing newline.
2037         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2038         Add trailing newline.
2039         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2040         Add trailing newline.
2041         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2042         Add trailing newline.
2043         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2044         Add trailing newline.
2045         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2046         Add trailing newline.
2047         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2048         Add trailing newline.
2049         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2050         Add trailing newline.
2051         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2052         Add trailing newline.
2053         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2054         Add trailing newline.
2055         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2056         Add trailing newline.
2057         * doc/openmp-runtime-library-routines/omptestlock.rst:
2058         Add trailing newline.
2059         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2060         Add trailing newline.
2061         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2062         Add trailing newline.
2063         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2064         Add trailing newline.
2065         * doc/reporting-bugs.rst:
2066         Add trailing newline.
2067         * doc/the-libgomp-abi.rst:
2068         Add trailing newline.
2069         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2070         Add trailing newline.
2071         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2072         Add trailing newline.
2073         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2074         Add trailing newline.
2075         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2076         Add trailing newline.
2077         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2078         Add trailing newline.
2079         * doc/the-libgomp-abi/implementing-for-construct.rst:
2080         Add trailing newline.
2081         * doc/the-libgomp-abi/implementing-master-construct.rst:
2082         Add trailing newline.
2083         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2084         Add trailing newline.
2085         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2086         Add trailing newline.
2087         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2088         Add trailing newline.
2089         * doc/the-libgomp-abi/implementing-private-clause.rst:
2090         Add trailing newline.
2091         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2092         Add trailing newline.
2093         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2094         Add trailing newline.
2095         * doc/the-libgomp-abi/implementing-single-construct.rst:
2096         Add trailing newline.
2097         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2098         Add trailing newline.
2100 2022-11-09  Martin Liska  <mliska@suse.cz>
2102         * Makefile.in: Build info pages conditionally.
2104 2022-11-09  Martin Liska  <mliska@suse.cz>
2106         * Makefile.in: Support --with-sphinx-build.
2107         * configure.ac: Likewise..
2108         * configure: Regenerate.
2110 2022-11-09  Martin Liska  <mliska@suse.cz>
2112         * libgomp.texi: Removed.
2114 2022-11-09  Martin Liska  <mliska@suse.cz>
2116         * Makefile.in: Support Sphinx based documentation.
2118 2022-11-09  Martin Liska  <mliska@suse.cz>
2120         * doc/amd-radeon-gcn.rst: New file.
2121         * doc/conf.py: New file.
2122         * doc/copyright.rst: New file.
2123         * doc/cuda-streams-usage.rst: New file.
2124         * doc/enabling-openacc.rst: New file.
2125         * doc/enabling-openmp.rst: New file.
2126         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2127         * doc/first-invocation-openacc-library-api.rst: New file.
2128         * doc/funding.rst: New file.
2129         * doc/general-public-license-3.rst: New file.
2130         * doc/gnu-free-documentation-license.rst: New file.
2131         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2132         * doc/index.rst: New file.
2133         * doc/indices-and-tables.rst: New file.
2134         * doc/introduction.rst: New file.
2135         * doc/memory-allocation-with-libmemkind.rst: New file.
2136         * doc/nvptx.rst: New file.
2137         * doc/offload-target-specifics.rst: New file.
2138         * doc/openacc-environment-variables.rst: New file.
2139         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2140         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2141         * doc/openacc-environment-variables/accproflib.rst: New file.
2142         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2143         * doc/openacc-introduction.rst: New file.
2144         * doc/openacc-library-and-environment-variables.rst: New file.
2145         * doc/openacc-library-interoperability.rst: New file.
2146         * doc/openacc-profiling-interface.rst: New file.
2147         * doc/openacc-runtime-library-routines.rst: New file.
2148         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2149         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2150         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2151         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2152         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2153         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2154         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2155         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2156         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2157         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2158         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2159         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2160         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2161         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2162         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2163         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2164         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2165         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2166         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2167         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2168         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2169         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2170         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2171         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2172         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2173         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2174         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2175         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2176         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2177         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2178         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2179         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2180         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2181         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2182         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2183         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2184         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2185         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2186         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2187         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2188         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2189         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2190         * doc/openmp-context-selectors.rst: New file.
2191         * doc/openmp-environment-variables.rst: New file.
2192         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2193         * doc/openmp-environment-variables/gompdebug.rst: New file.
2194         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2195         * doc/openmp-environment-variables/gompspincount.rst: New file.
2196         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2197         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2198         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2199         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2200         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2201         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2202         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2203         * doc/openmp-environment-variables/ompnested.rst: New file.
2204         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2205         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2206         * doc/openmp-environment-variables/ompplaces.rst: New file.
2207         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2208         * doc/openmp-environment-variables/ompschedule.rst: New file.
2209         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2210         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2211         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2212         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2213         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2214         * doc/openmp-implementation-specifics.rst: New file.
2215         * doc/openmp-implementation-status.rst: New file.
2216         * doc/openmp-implementation-status/openmp-45.rst: New file.
2217         * doc/openmp-implementation-status/openmp-50.rst: New file.
2218         * doc/openmp-implementation-status/openmp-51.rst: New file.
2219         * doc/openmp-implementation-status/openmp-52.rst: New file.
2220         * doc/openmp-runtime-library-routines.rst: New file.
2221         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2222         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2223         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2224         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2225         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2226         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2227         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2228         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2229         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2230         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2231         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2232         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2233         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2234         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2235         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2236         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2237         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2238         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2239         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2240         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2241         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2242         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2243         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2244         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2245         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2246         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2247         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2248         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2249         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2250         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2251         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2252         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2253         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2254         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2255         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2256         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2257         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2258         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2259         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2260         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2261         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2262         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2263         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2264         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2265         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2266         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2267         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2268         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2269         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2270         * doc/reporting-bugs.rst: New file.
2271         * doc/the-libgomp-abi.rst: New file.
2272         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2273         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2274         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2275         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2276         New file.
2277         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2278         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2279         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2280         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2281         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2282         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2283         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2284         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2285         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2286         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2287         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2289 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2291         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2292         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2293         documentation.
2294         * plugin/configfrag.ac <enable_offload_targets>
2295         [*-intelmic-* | *-intelmicemul-*]: Remove.
2296         * configure: Regenerate.
2297         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2298         handling.
2299         (offload_target_to_openacc_device_type)
2300         [$offload_target = *-intelmic*]: Remove.
2301         (check_effective_target_offload_device_intel_mic)
2302         (check_effective_target_offload_device_any_intel_mic): Remove.
2303         * testsuite/libgomp.c-c++-common/on_device_arch.h
2304         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2305         (any_device_arch_intel_mic): Remove.
2306         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2307         'offload_device_any_intel_mic' XFAIL.
2308         * testsuite/libgomp.fortran/target10.f90: Likewise.
2310 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2312         * testsuite/libgomp.fortran/target-11.f90: New test.
2313         * testsuite/libgomp.fortran/target-13.f90: New test.
2315 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2317         PR libgomp/106643
2318         PR fortran/96668
2319         * oacc-mem.c (goacc_enter_data_internal): Support
2320         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2321         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2322         Adjust.
2323         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2325 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2327         PR libgomp/106643
2328         * oacc-mem.c (goacc_enter_data_internal): Support
2329         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2330         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2331         New.
2332         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2333         New.
2335 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2337         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2338         New.
2340 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2342         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2343         New.
2345 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2346             Thomas Schwinge  <thomas@codesourcery.com>
2348         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2350 2022-10-28  Julian Brown  <julian@codesourcery.com>
2351             Thomas Schwinge  <thomas@codesourcery.com>
2353         PR middle-end/90115
2354         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2355         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2356         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2357         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2358         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2360 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2362         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2363         'ptx_dev->rev_data'.
2365 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2367         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2368         'static' for this variable.
2369         * config/nvptx/libgomp-nvptx.h: New file.
2370         * config/nvptx/target.c: Include it.
2371         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2372         (GOMP_REV_OFFLOAD_VAR): Declare var.
2373         (GOMP_target_ext): Handle reverse offload.
2374         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2375         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2376         * target.c (gomp_target_rev): ... this new stub function.
2377         * libgomp.h (gomp_target_rev): Declare.
2378         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2379         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2380         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2381         (struct ptx_device): Add rev_data member.
2382         (nvptx_open_device): Remove async_engines query, last used in
2383         r10-304-g1f4c5b9b; add unified-address assert check.
2384         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2385         support.
2386         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2387         offload functions exist. Make offload var available
2388         on host and device.
2389         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2390         (GOMP_OFFLOAD_run): Handle reverse offload.
2392 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2394         PR tree-optimization/107195
2395         PR target/107344
2396         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2397         regions checking.
2399 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2401         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2402         New.
2403         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2404         on_device_arch_gcn): New.
2405         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2406         requires-4.c but using heap-allocated memory.
2408 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2410         PR target/105421
2411         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2413 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2415         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2416         '-foffload-options' syntax.
2418 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2420         * testsuite/libgomp.fortran/task-7.f90: New test.
2421         * testsuite/libgomp.fortran/task-8.f90: New test.
2422         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2423         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2424         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2425         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2426         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2428 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2430         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2431         in deprecation bullet.
2433 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2435         * omp.h.in (omp_in_explicit_task): Declare.
2436         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2437         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2438         * libgomp.map (OMP_5.2): New symbol version, export
2439         omp_in_explicit_task and omp_in_explicit_task_.
2440         * task.c (omp_in_explicit_task): New function.
2441         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2442         (omp_in_explicit_task_): New function.
2443         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2444         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2445         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2446         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2448 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2450         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2451         from within explicit task.
2452         * target.c (GOMP_target_ext): Likewise.
2453         * testsuite/libgomp.c/task-7.c: New test.
2454         * testsuite/libgomp.c/task-8.c: New test.
2455         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2456         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2458 2022-10-12  Martin Liska  <mliska@suse.cz>
2460         * configure: Regenerate.
2462 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2463             Olivier Hainque  <hainque@adacore.com>
2465         * configure: Regenerate.
2467 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2469         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2471 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2473         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2474         Mark as implemented.
2476 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2478         PR fortran/105318
2479         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2481 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2483         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2484         for C/C++. Remove duplicated 'begin declare target' entry.
2486 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2488         PR c/106981
2489         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2491 2022-09-14  Julian Brown  <julian@codesourcery.com>
2493         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2494         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2495         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2496         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2497         test to here, make "run" test.
2499 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2501         PR libgomp/106906
2502         * env.c (get_icv_member_addr): Cast false to void * before assigning
2503         it to icv_addr[1], and comment the whole assignment out.
2505 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2507         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2508         (nvptx): ... here.
2510 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2512         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2513         that reverse offload requires >= -march=sm_35.
2514         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2515         with -misa=sm_35.
2516         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2517         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2518         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2519         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2520         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2522 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2524         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2525         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2527 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
2529         PR libgomp/106894
2530         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
2531         (main): Avoid tests for which corresponding non-_ALL suffixed variable
2532         is in the environment, or for OMP_NUM_TEAMS on the device
2533         OMP_NUM_TEAMS_DEV_?.
2535 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
2537         * env.c (initialize_env): Include libiberty environ.h.
2539 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2541         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
2542         function address table '$offload_func_table' if rev_fn_table
2543         is not NULL.
2545 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2547         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
2548         .offload_func_table to populate rev_fn_table when requested.
2550 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
2552         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
2553         'uint64_t **rev_fn_table' argument.
2554         * oacc-host.c (host_load_image): Likewise.
2555         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
2556         currently unused.
2557         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2558         * target.c (gomp_load_image_to_device): Update call but pass
2559         NULL for now.
2561 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
2563         PR libgomp/106894
2564         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
2565         char * for dest[1] initialization from params[1].  Formatting fixes.
2567 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2569         PR fortran/106670
2570         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
2572 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
2574         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
2575         section; move OpenMP Context Selectors from ...
2576         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
2577         'nvptx' sections.
2579 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
2581         * config/gcn/icv-device.c (omp_get_default_device): Return device-
2582         specific ICV.
2583         (omp_get_max_teams): Added for GCN devices.
2584         (omp_set_num_teams): Likewise.
2585         (ialias): Likewise.
2586         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
2587         specific ICV.
2588         (omp_get_max_teams): Added for NVPTX devices.
2589         (omp_set_num_teams): Likewise.
2590         (ialias): Likewise.
2591         * env.c (struct gomp_icv_list): New struct to store entries of initial
2592         ICV values.
2593         (struct gomp_offload_icv_list): New struct to store entries of device-
2594         specific ICV values that are copied to the device and back.
2595         (struct gomp_default_icv_values): New struct to store default values of
2596         ICVs according to the OpenMP standard.
2597         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
2598         (print_env_var_error): Function that prints an error for invalid values
2599         for ICVs.
2600         (parse_unsigned_long_1): Removed getenv.  Generalized.
2601         (parse_unsigned_long): Likewise.
2602         (parse_int_1): Likewise.
2603         (parse_int): Likewise.
2604         (parse_int_secure): Likewise.
2605         (parse_unsigned_long_list): Likewise.
2606         (parse_target_offload): Likewise.
2607         (parse_bind_var): Likewise.
2608         (parse_stacksize): Likewise.
2609         (parse_boolean): Likewise.
2610         (parse_wait_policy): Likewise.
2611         (parse_allocator): Likewise.
2612         (omp_display_env): Extended to output different variants of environment
2613         variables.
2614         (print_schedule): New helper function for omp_display_env which prints
2615         the values of run_sched_var.
2616         (print_proc_bind): New helper function for omp_display_env which prints
2617         the values of proc_bind_var.
2618         (enum gomp_parse_type): Collection of types used for parsing environment
2619         variables.
2620         (ENTRY): Preprocess string lengths of environment variables.
2621         (OMP_VAR_CNT): Preprocess table size.
2622         (OMP_HOST_VAR_CNT): Likewise.
2623         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
2624         number.
2625         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2626         (gomp_set_icv_flag): Sets a flag for a particular ICV.
2627         (print_device_specific_icvs): New helper function for omp_display_env to
2628         print device specific ICV values.
2629         (get_device_num): New helper function for parse_device_specific.
2630         Extracts the device number from an environment variable name.
2631         (get_icv_member_addr): Gets the memory address for a particular member
2632         of an ICV struct.
2633         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2634         (initialize_icvs): New function to initialize a gomp_initial_icvs
2635         struct.
2636         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
2637         (startswith): Checks if a string starts with a given prefix.
2638         (initialize_env): Extended to parse the new syntax of environment
2639         variables.
2640         * icv-device.c (omp_get_max_teams): Added.
2641         (ialias): Likewise.
2642         (omp_set_num_teams): Likewise.
2643         * icv.c (omp_set_num_teams): Moved to icv-device.c.
2644         (omp_get_max_teams): Likewise.
2645         (ialias): Likewise.
2646         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
2647         (GOMP_ADDITIONAL_ICVS): New target-side struct that
2648         holds the designated ICVs of the target device.
2649         * libgomp.h (enum gomp_icvs): Collection of ICVs.
2650         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
2651         no suffix.
2652         (enum gomp_env_suffix): Collection of possible suffixes of environment
2653         variables.
2654         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
2655         initial values.
2656         (struct gomp_default_icv):New struct to hold ICVs for which we need
2657         to store initial values.
2658         (struct gomp_icv_list): Definition of a linked list that is used for
2659         storing ICVs for the devices and also for _DEV, _ALL, and without
2660         suffix.
2661         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
2662         a device.
2663         (struct gomp_offload_icv_list): Definition of a linked list that holds
2664         device-specific ICVs that are copied to devices.
2665         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
2666         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
2667         * libgomp.texi: Updated.
2668         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
2669         further ICVs from the offload image.
2670         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
2671         * target.c (gomp_get_offload_icv_item): Get a list item of
2672         gomp_offload_icv_list.
2673         (get_gomp_offload_icvs): New. Returns the ICV values
2674         depending on the device num and the variable hierarchy.
2675         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
2676         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
2677         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
2678         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
2679         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
2680         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
2681         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
2683 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
2685         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
2686         fully supported.
2687         * testsuite/libgomp.c/doacross-4.c: New test.
2688         * testsuite/libgomp.c/doacross-5.c: New test.
2689         * testsuite/libgomp.c/doacross-6.c: New test.
2690         * testsuite/libgomp.c/doacross-7.c: New test.
2692 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
2694         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
2696 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
2698         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
2699         refer to 'requires'.
2700         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
2701         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
2702         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
2703         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
2705 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2707         PR middle-end/106548
2708         * testsuite/libgomp.c/linear-2.c: New test.
2710 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
2712         * splay-tree.h: Fix splay_* macro unsetting if
2713         splay_tree_prefix is defined.
2715 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
2717         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
2719 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
2721         PR middle-end/106449
2722         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
2724 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
2726         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
2728 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
2730         PR middle-end/101551
2731         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
2732         'offloading_enabled' diagnostics issue.
2734 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
2736         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
2737         '_Pragma' diagnostics verification.
2739 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
2741         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
2742         improved warning locations.
2743         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
2745 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
2747         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
2748         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
2749         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2750         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2751         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2753 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2755         * target.c (GOMP_offload_register, GOMP_offload_unregister):
2756         Denote as legacy entry points.
2757         * testsuite/lib/libgomp.exp
2758         (check_effective_target_offload_target_any): New proc.
2759         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
2760         'offload_target_any'.
2761         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
2762         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
2763         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
2765 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2767         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
2768         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2770 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
2772         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
2774 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
2776         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
2777         'data'.
2778         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
2780 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2781             Jakub Jelinek  <jakub@redhat.com>
2783         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
2785 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
2786             Chung-Lin Tang  <cltang@codesourcery.com>
2787             Thomas Schwinge  <thomas@codesourcery.com>
2789         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
2790         omp_requires_mask arg.
2791         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
2792         return -1 when device available but omp_requires_mask != 0.
2793         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
2794         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
2795         Update call.
2796         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
2797         goacc_attach_host_thread_to_device, acc_get_num_devices,
2798         acc_set_device_num, get_property_any): Likewise.
2799         * target.c (omp_requires_mask): New global var.
2800         (gomp_requires_to_name): New.
2801         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
2802         (gomp_target_init): Handle omp_requires_mask.
2803         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
2804         (OpenMP 5.1): Add a missed item.
2805         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
2806         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
2807         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
2808         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
2809         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
2810         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
2811         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
2812         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
2813         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
2814         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
2815         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
2816         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
2817         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
2818         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
2819         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
2820         * testsuite/libgomp.fortran/requires-1.f90: New test.
2822 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
2824         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
2825         with fromto as implemented.
2827 2022-06-28  Martin Liska  <mliska@suse.cz>
2829         * acinclude.m4: Fix typo in mold linker detection.
2830         * Makefile.in: Regenerate.
2831         * configure: Regenerate.
2833 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
2834             Paul Iannetta  <piannetta@kalrayinc.com>
2836         PR libgomp/106045
2837         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
2839 2022-06-17  Martin Liska  <mliska@suse.cz>
2841         * libgomp.texi: Add table header for new features of
2842         OpenMP 5.2.
2844 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
2846         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
2847         q to ddress of an automatic variable.  Use -5 instead of -1 in
2848         omp_get_mapped_ptr call.  Add test with omp_initial_device.
2849         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
2850         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
2851         Renumber stop arguments afterwards.
2853 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
2855         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
2856         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
2857         parameters.
2858         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
2859         * target.c (resolve_device): Add remapped argument, handle
2860         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
2861         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
2862         if remapped, otherwise treat omp_initial_device that way.  For
2863         omp_invalid_device, always emit gomp_fatal, even when
2864         OMP_TARGET_OFFLOAD isn't mandatory.
2865         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
2866         GOMP_target_update, GOMP_target_update_ext,
2867         GOMP_target_enter_exit_data): Pass true as remapped argument to
2868         resolve_device.
2869         (omp_target_alloc, omp_target_free, omp_target_is_present,
2870         omp_target_memcpy_check, omp_target_associate_ptr,
2871         omp_target_disassociate_ptr, omp_get_mapped_ptr,
2872         omp_target_is_accessible): Pass false as remapped argument to
2873         resolve_device.  Treat omp_initial_device the same as
2874         gomp_get_num_devices ().  Don't bypass resolve_device calls if
2875         device_num is negative.
2876         (omp_pause_resource): Treat omp_initial_device the same as
2877         gomp_get_num_devices ().  Call resolve_device.
2878         * icv-device.c (omp_set_default_device): Always set to device_num
2879         even when it is negative.
2880         * libgomp.texi: Document that Conforming device numbers,
2881         omp_initial_device and omp_invalid_device is implemented.
2882         * testsuite/libgomp.c/target-41.c (main): Add test with
2883         omp_initial_device.
2884         * testsuite/libgomp.c/target-45.c: New test.
2885         * testsuite/libgomp.c/target-46.c: New test.
2886         * testsuite/libgomp.c/target-47.c: New test.
2887         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
2888         test with omp_initial_device.  Use -5 instead of -1 for negative value
2889         test.
2890         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
2891         Likewise.  Reorder stop numbers.
2893 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
2895         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
2896         rather than "libmemkind.so".
2898 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2900         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
2901         * plugin/configfrag.ac (--with-cuda-driver)
2902         (--with-cuda-driver-include, --with-cuda-driver-lib)
2903         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
2904         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
2905         Remove.
2906         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
2907         (cuda_driver_lib): Remove.
2908         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
2909         * Makefile.in: Regenerate.
2910         * configure: Likewise.
2911         * testsuite/Makefile.in: Likewise.
2913 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2915         * config/linux/allocator.c: Fix up #include directive.
2917 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
2919         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
2920         (enum gomp_memkind_kind): New type.
2921         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
2922         is defined.
2923         (struct gomp_memkind_data): New type.
2924         (memkind_data, memkind_data_once): New variables.
2925         (gomp_init_memkind, gomp_get_memkind): New functions.
2926         (omp_init_allocator): Initialize data.memkind, don't fail for
2927         omp_high_bw_mem_space if libmemkind supports it.
2928         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
2929         memkind support of LIBGOMP_USE_MEMKIND is defined.
2930         * config/linux/allocator.c: New file.
2932 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
2934         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
2935         * testsuite/libgomp.fortran/scope-2.f90: New test.
2937 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
2939         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
2941 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
2943         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
2944         scope construct with allocate clause.
2945         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
2946         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
2948 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
2950         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
2951         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
2952         explicit 'to' and 'enter' clause.
2953         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
2955 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
2957         PR libgomp/105745
2958         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
2959         defined(HAVE__ALIGNED_MALLOC) case.
2960         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
2961         handling as last option before fallback instead of first.
2962         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
2963         _aligned_free.
2965 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
2967         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
2968         clauses to enter.
2969         * testsuite/libgomp.c/target-41.c: Likewise.
2971 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
2973         * libgomp.texi (Other new OpenMP 5.1 features): Add
2974         'begin declare target'.
2975         (Other new OpenMP 5.2 features): New.
2977 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
2979         * task.c (gomp_task_run_post_handle_dependers): If empty_task
2980         is the last task taskwait depend depends on, wake it up.
2981         Similarly if it is the last child of a taskgroup, use atomic
2982         store instead of decrement and awak taskgroup wait if any.
2983         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
2985 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
2987         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
2988         EF_AMDGPU_MACH_AMDGCN_GFX90a.
2989         (gcn_gfx90a_s): New.
2990         (isa_hsa_name): Support gfx90a.
2991         (isa_code): Likewise.
2993 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
2995         PR c/105378
2996         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
2997         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
2999 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3001         PR c/105378
3002         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3003         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3004         * task.c (empty_task): New function.
3005         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3006         (gomp_task_run_post_handle_depend): Declare.
3007         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3008         for.
3009         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3010         (GOMP_taskwait_depend_nowait): New function.
3011         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3013 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3015         PR fortran/104949
3016         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3017         Support attach for GOMP_MAP_FIRSTPRIVATE.
3018         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3019         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3020         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3022 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3024         * libgomp.map: Added omp_target_memcpy_async and
3025         omp_target_memcpy_rect_async.
3026         * libgomp.texi: Both functions are now supported.
3027         * omp.h.in: Added omp_target_memcpy_async and
3028         omp_target_memcpy_rect_async.
3029         * omp_lib.f90.in: Added interfaces for both new functions.
3030         * omp_lib.h.in: Likewise.
3031         * target.c (ialias_redirect): Added for GOMP_task.
3032         (omp_target_memcpy): Restructured into check and copy part.
3033         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3034         omp_target_memcpy_async that checks requirements.
3035         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3036         omp_target_memcpy_async that performs the memcpy.
3037         (omp_target_memcpy_async_helper): New helper function that is used in
3038         omp_target_memcpy_async for the asynchronous task.
3039         (omp_target_memcpy_async): Added.
3040         (omp_target_memcpy_rect): Restructured into check and copy part.
3041         (omp_target_memcpy_rect_check): New helper function for
3042         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3043         requirements.
3044         (omp_target_memcpy_rect_copy): New helper function for
3045         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3046         the memcpy.
3047         (omp_target_memcpy_rect_async_helper): New helper function that is used
3048         in omp_target_memcpy_rect_async for the asynchronous task.
3049         (omp_target_memcpy_rect_async): Added.
3050         * task.c (ialias): Added for GOMP_task.
3051         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3052         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3053         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3054         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3055         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3056         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3057         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3058         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3060 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3062         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3063         (OpenMP Context Selectors): Add missing comma.
3064         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3065         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3066         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3067         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3069 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3071         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3072         comment for omp_display_env feature.
3074 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3076         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3077         to document OpenMP context selectors.
3079 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3081         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3082         from bool to unsigned char.
3083         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3084         Ignore dependencies where
3085         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3086         rather than just task->depend[i].is_in && ent->is_in.  Remember
3087         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3088         conditional.
3089         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3090         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3091         rather than just elem.is_in && ent->is_in.
3092         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3093         inoutset depend-kind.
3094         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3095         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3096         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3098 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3100         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3102 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3104         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3105         * testsuite/libgomp.fortran/depend-5.f90: New test.
3106         * testsuite/libgomp.fortran/depend-6.f90: New test.
3107         * testsuite/libgomp.fortran/depend-7.f90: New test.
3109 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3111         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3112         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3113         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3115 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3117         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3119 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3121         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3123 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3125         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3126         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3127         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3128         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3129         * Makefile.in: Regenerate.
3131 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3133         * Makefile.am (libgomp_la_LIBADD): Initialize.
3134         * plugin/configfrag.ac (DL_LIBS): New.
3135         (PLUGIN_GCN_LIBS): Remove.
3136         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3137         * plugin/Makefrag.am (libgomp_la_LIBADD)
3138         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3139         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3140         * Makefile.in: Regenerate.
3141         * config.h.in: Likewise.
3142         * configure: Likewise.
3143         * testsuite/Makefile.in: Likewise.
3145 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3147         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3148         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3149         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3150         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3151         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3152         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3153         * Makefile.in: Regenerate.
3154         * config.h.in: Likewise.
3155         * configure: Likewise.
3157 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3159         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3160         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3161         * Makefile.in: Regenerate.
3162         * config.h.in: Likewise.
3163         * configure: Likewise.
3164         * testsuite/Makefile.in: Likewise.
3166 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3168         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3169         * task.c (gomp_init_task): Initialize depend_all_memory.
3170         (gomp_task_handle_depend): Handle omp_all_memory.
3171         (gomp_task_run_post_handle_depend_hash): Clear
3172         parent->depend_all_memory if equal to current task.
3173         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3174         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3175         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3176         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3178 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3180         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3181         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3182         * Makefile.in: Regenerate.
3183         * configure: Likewise.
3184         * testsuite/Makefile.in: Likewise.
3186 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3188         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3189         consider 'PLUGIN_GCN_CPPFLAGS'.
3190         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3191         'PLUGIN_GCN_LDFLAGS'.
3192         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3193         Remove.
3194         * Makefile.in: Regenerate.
3195         * configure: Likewise.
3196         * testsuite/Makefile.in: Likewise.
3198 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3200         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3201         (HSA_RUNTIME_LDFLAGS): Remove.
3202         * configure: Regenerate.
3204 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3206         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3207         'append always_ld_library_path ":$hsa_runtime_lib"'.
3208         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3210 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3212         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3213         multi-device testing.
3215 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3217         * libgomp.map: Added omp_target_is_accessible.
3218         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3219         * omp.h.in: Added omp_target_is_accessible.
3220         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3221         * omp_lib.h.in: Likewise.
3222         * target.c (omp_target_is_accessible): Added implementation of
3223         omp_target_is_accessible.
3224         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3225         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3227 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3229         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3231 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3233         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3235 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3237         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3239 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3241         * libgomp.map: Added omp_get_mapped_ptr.
3242         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3243         * omp.h.in: Added omp_get_mapped_ptr.
3244         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3245         * omp_lib.h.in: Likewise.
3246         * target.c (omp_get_mapped_ptr): Added implementation of
3247         omp_get_mapped_ptr.
3248         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3249         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3250         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3251         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3252         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3253         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3254         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3255         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3257 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3259         PR fortran/104717
3260         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3261         privatization scanning.  For GCN offloading compilation, raise
3262         '-mgang-private-size'.
3264 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3266         PR libgomp/105358
3267         * work.c (gomp_init_work_share): Don't mask of adjustment for
3268         dynamic long long realignment if struct gomp_work_share has smaller
3269         alignof than long long.
3270         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3271         struct gomp_work_share has smaller alignof than long long or if
3272         sizeof (struct gomp_work_share) is smaller than
3273         INLINE_ORDERED_TEAM_IDS_OFF.
3274         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3275         * sections.c (GOMP_sections2_start): Likewise.
3277 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3278             Thomas Schwinge  <thomas@codesourcery.com>
3280         PR fortran/104717
3281         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3283 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3285         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3287 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3289         * plugin/cuda/cuda.h: Remove file.
3290         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3291         "cuda/cuda.h" instead of <cuda.h>.
3292         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3293         'PLUGIN_NVPTX_CPPFLAGS'.
3294         * configure: Regenerate.
3296 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3298         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3300 2022-04-04  Tom de Vries  <tdevries@suse.de>
3302         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3303         on_device_arch_nvptx instead of offload_target_nvptx.
3304         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3306 2022-04-01  Tom de Vries  <tdevries@suse.de>
3308         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3309         and use REC_DEPTH.
3310         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3312 2022-04-01  Tom de Vries  <tdevries@suse.de>
3314         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3315         num_workers check.
3317 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3318             Lulu Cheng  <chenglulu@loongson.cn>
3320         * configure.tgt: Add LoongArch triplet.
3322 2022-03-28  Tom de Vries  <tdevries@suse.de>
3324         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3325         instead of /libexec/.
3326         * configure: Regenerate.
3328 2022-03-25  Tom de Vries  <tdevries@suse.de>
3330         PR libgomp/105042
3331         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3332         execution time.
3333         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3334         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3336 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3338         PR middle-end/104285
3339         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3340         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3341         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3342         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3343         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3344         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3346 2022-03-22  Tom de Vries  <tdevries@suse.de>
3348         PR target/104916
3349         PR target/104783
3350         * testsuite/libgomp.c/pr104783-2.c: New test.
3352 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3354         PR fortran/103039
3355         * testsuite/libgomp.fortran/associate4.f90: New test.
3357 2022-03-18  Tom de Vries  <tdevries@suse.de>
3359         PR target/104952
3360         * testsuite/libgomp.c/pr104952-1.c: New test.
3361         * testsuite/libgomp.c/pr104952-2.c: New test.
3363 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3365         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3366         variable next to pl variable.
3368 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3370         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3371         Enhance.
3372         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3373         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3375 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3377         PR middle-end/90115
3378         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3379         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3381 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3383         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3384         omp_set_max_active_levels.
3385         * testsuite/libgomp.fortran/icv-8.f90: New test.
3387 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3389         PR testsuite/102841
3390         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3392 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3394         * libgomp.texi: Fix typo.
3396 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3398         PR middle-end/100280
3399         PR middle-end/104892
3400         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3401         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3402         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3403         Likewise.
3404         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3405         Likewise.
3406         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3407         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3408         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3409         Likewise.
3411 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3413         PR middle-end/104892
3414         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3415         to PR104892.
3416         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3417         enable '--param=openacc-kernels=decompose' and adjust.
3418         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3419         Likewise.
3420         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3421         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3422         Likewise.
3424 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3426         PR middle-end/90115
3427         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3428         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3429         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3430         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3432 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3434         PR middle-end/100280
3435         PR middle-end/104086
3436         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3437         Merge this...
3438         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3439         ..., and this...
3440         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3441         this, and adjust.
3442         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3443         Extend.
3445 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3447         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3448         trait.  Test last index in w and v array.  Remove redundant
3449         assignment to V(1).  Move alignment checks at the end of
3450         parallel region.
3452 2022-03-10  Tom de Vries  <tdevries@suse.de>
3454         * testsuite/libgomp.c/pr104783.c: New test.
3456 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3458         PR middle-end/90115
3459         PR middle-end/102330
3460         PR middle-end/104774
3461         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3462         Enhance.
3463         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3464         Adjust.
3465         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3466         Likewise.
3467         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3468         Likewise.
3469         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3470         Likewise.
3471         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3472         Likewise.
3473         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3474         Likewise.
3475         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3476         Likewise.
3477         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3478         Likewise.
3479         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3480         Likewise.
3481         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3482         Likewise.
3483         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3484         Likewise.
3485         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3486         Likewise.
3487         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3488         Likewise.
3489         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3490         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3491         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3493 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3495         PR middle-end/90115
3496         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3497         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3498         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3499         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3501 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3503         PR testsuite/104791
3504         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3505         expected diagnostics.
3507 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3509         PR middle-end/104784
3510         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3511         Test with '--param=openacc-kernels=decompose'.
3512         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3513         Likewise.
3514         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3515         Likewise.
3516         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3517         Likewise.
3518         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3519         Likewise.
3520         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3521         Likewise.
3522         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3523         Likewise.
3524         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3525         Likewise.
3526         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3527         Likewise.
3528         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3529         Likewise.
3530         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3531         Likewise.
3532         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3533         Likewise.
3534         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3535         Likewise.
3536         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3537         Likewise.
3538         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3539         Likewise.
3540         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3541         Likewise.
3542         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3543         Likewise.
3544         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3545         Likewise.
3546         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3547         Likewise.
3548         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3549         Likewise.
3550         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3551         Likewise.
3552         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3553         Likewise.
3554         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3555         Likewise.
3556         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3557         Likewise.
3558         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3559         Likewise.
3560         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3561         Likewise.
3562         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3563         Likewise.
3564         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3565         Likewise.
3566         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3567         Likewise.
3568         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3569         Likewise.
3570         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3571         Likewise.
3572         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3573         Likewise.
3574         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3575         Likewise.
3577 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3579         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3580         Test '-fopt-info-omp-all'.
3581         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3582         Likewise.
3583         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3584         Likewise.
3585         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3586         Likewise.
3587         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3588         Likewise.
3589         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3590         Likewise.
3591         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3592         Likewise.
3593         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3594         Likewise.
3595         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3596         Likewise.
3597         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3598         Likewise.
3599         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3600         Likewise.
3601         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3602         Likewise.
3603         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3604         Likewise.
3605         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3606         Likewise.
3607         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3608         Likewise.
3609         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3610         Likewise.
3611         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3612         Likewise.
3613         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3614         Likewise.
3615         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3616         Likewise.
3617         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3618         Likewise.
3619         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3620         Likewise.
3621         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3622         Likewise.
3623         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3624         Likewise.
3625         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3626         Likewise.
3627         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3628         Likewise.
3629         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3630         Likewise.
3631         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3632         Likewise.
3633         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3634         Likewise.
3635         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3636         Likewise.
3637         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3638         Likewise.
3639         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3640         Likewise.
3641         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3642         Likewise.
3643         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3644         Likewise.
3646 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3648         PR middle-end/100280
3649         PR middle-end/104132
3650         PR middle-end/104133
3651         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3652         Extend.
3654 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3656         PR middle-end/100280
3657         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3658         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3659         Likewise.
3661 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3663         PR middle-end/100280
3664         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
3665         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3666         Likewise.
3668 2022-02-28  Tom de Vries  <tdevries@suse.de>
3670         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
3671         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
3672         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
3673         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
3674         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
3675         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
3677 2022-02-24  Tom de Vries  <tdevries@suse.de>
3679         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
3680         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
3681         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
3682         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
3683         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
3684         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
3685         * testsuite/libgomp.c/declare-variant-3.h: New header file.
3687 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3689         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
3690         gang-redundant execution.
3692 2022-02-22  Tom de Vries  <tdevries@suse.de>
3694         PR target/99555
3695         * config/nvptx/bar.c (generation_to_barrier): New function, copied
3696         from config/rtems/bar.c.
3697         (futex_wait, futex_wake): New function.
3698         (do_spin, do_wait): New function, copied from config/linux/wait.h.
3699         (gomp_barrier_wait_end, gomp_barrier_wait_last)
3700         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
3701         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
3702         and replace with include of config/linux/bar.c.
3703         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
3704         (gomp_barrier_init): Init new fields.
3705         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
3706         workarounds.
3707         * testsuite/libgomp.c/pr99555-1.c: Same.
3708         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
3710 2022-02-22  Tom de Vries  <tdevries@suse.de>
3712         PR testsuite/104146
3713         * testsuite/libgomp.c++/pr96390.C: Add additional-option
3714         -foffload=-Wa,--verify for nvptx.
3715         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
3717 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
3719         * testsuite/libgomp.fortran/depend-4.f90: New test.
3721 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
3723         PR c++/102204
3724         * testsuite/libgomp.c++/target-virtual-1.C: New test.
3726 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
3728         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
3729         * target.c (copy_firstprivate_data): Copy only if host address is not
3730         NULL.
3731         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
3732         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
3733         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
3734         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
3735         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
3736         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
3737         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
3738         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
3739         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
3740         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
3742 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
3744         PR libgomp/104385
3745         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
3746         clear task->parent.
3747         * testsuite/libgomp.c/pr104385.c: New test.
3749 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3751         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
3752         STOP of previous commit.
3754 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
3756         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
3757         from is_64bit_aligned_.
3758         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
3759         and use it, more implicit none, remove unused argument.
3761 2022-02-03  David Seifert  <soap@gentoo.org>
3762             Jakub Jelinek  <jakub@redhat.com>
3764         * configure.ac: Support --disable-werror.
3765         * configure: Regenerate.
3767 2022-02-01  Tom de Vries  <tdevries@suse.de>
3769         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
3770         PR83812 workaround.
3771         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
3772         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
3774 2022-02-01  Tom de Vries  <tdevries@suse.de>
3776         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
3777         num_workers for nvidia accelerator to fix libgomp error 'insufficient
3778         resources'.
3779         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3780         Same.
3781         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
3783 2022-02-01  Tom de Vries  <tdevries@suse.de>
3785         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3786         recursion depth.
3787         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3789 2022-01-31  Martin Liska  <mliska@suse.cz>
3791         * acinclude.m4: Detect *_ld_is_mold and use it.
3792         * configure: Regenerate.
3794 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
3796         * libgomp.texi (OpenMP 5.0): Update implementation status.
3798 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
3800         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
3801         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
3802         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3803         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3804         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3805         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3806         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3807         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3808         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3809         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3810         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3811         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3812         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3813         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3814         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3816 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
3818         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
3819         "static") to make the device num available in the offload image.
3821 2022-01-19  Martin Liska  <mliska@suse.cz>
3822             Thomas Schwinge  <thomas@codesourcery.com>
3824         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
3825         patterns.
3826         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3827         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3828         Likewise.
3829         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3830         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3831         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3832         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3833         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
3834         Likewise.
3835         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
3836         Likewise.
3837         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
3838         Likewise.
3839         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
3840         Likewise.
3841         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
3842         Likewise.
3843         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
3844         Likewise.
3845         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3846         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3847         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3849 2022-01-18  Martin Liska  <mliska@suse.cz>
3851         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
3852         in dg-warning.
3853         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3854         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3855         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
3856         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3857         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
3858         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
3859         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
3860         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
3861         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
3862         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
3863         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
3864         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
3865         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3866         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
3867         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3869 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
3871         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
3872         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
3873         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3875 2022-01-17  Julian Brown  <julian@codesourcery.com>
3876             Thomas Schwinge  <thomas@codesourcery.com>
3878         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
3879         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
3880         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
3882 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
3883             Andrew Stubbs   <ams@codesourcery.com>
3885         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
3886         the number of teams and threads if necessary.
3887         (gcn_exec): Automatically set the number of gangs and workers if
3888         necessary.
3890 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3892         * testsuite/libgomp.fortran/allocate-1.c: New test.
3893         * testsuite/libgomp.fortran/allocate-1.f90: New test.
3894         * libgomp.texi: Remove string that says that allocate clause
3895         support is for C/C++ only.
3897 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3899         * testsuite/libgomp.c-c++-common/on_device_arch.h
3900         (any_device_arch, any_device_arch_intel_mic): New.
3901         * testsuite/lib/libgomp.exp
3902         (check_effective_target_offload_device_any_intel_mic): New.
3903         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
3904         * testsuite/libgomp.fortran/target10.f90: Likewise.
3906 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3908         PR tree-optimization/102192
3909         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
3910         '-Wuninitialized' diagnostics.
3912 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3914         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
3915         current '-Wuninitialized' diagnostics.
3916         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
3917         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
3918         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
3919         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
3920         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3921         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3922         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
3923         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3924         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3925         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3926         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
3927         Likewise.
3929 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3931         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
3932         for 'offload_device_intel_mic'.
3934 2022-01-13  Julian Brown  <julian@codesourcery.com>
3935             Thomas Schwinge  <thomas@codesourcery.com>
3937         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
3938         offloading execution XFAIL.
3940 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3942         PR middle-end/100280
3943         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3944         Update.
3945         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3946         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3947         Likewise.
3949 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
3951         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3952         Enhance.
3953         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3954         Likewise.
3955         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
3956         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
3957         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
3958         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
3959         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3960         Likewise.
3961         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3962         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3963         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3964         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
3966 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
3968         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
3969         * testsuite/libgomp.fortran/target10.f90: Likewise.
3971 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
3973         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
3974         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
3975         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3977 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
3979         * libgomp.texi: Bump @copying's copyright year.
3981 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
3983         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
3984         * testsuite/libgomp.fortran/atomic-19.f90: New test.
3986 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
3988         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
3989         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
3990         table, not individual symbols.
3992 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3994         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
3995         "target offload_device_nonshared_as"
3996         * testsuite/libgomp.c++/target-this-3.C: Likewise.
3997         * testsuite/libgomp.c++/target-this-4.C: Likewise.
3999 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4001         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4002         not overwritten during cross-host/device copying.
4003         (gomp_update): Likewise.
4004         (gomp_exit_data): Likewise.
4005         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4006         * testsuite/libgomp.c++/target-12.C: Likewise.
4007         * testsuite/libgomp.c++/target-15.C: Likewise.
4008         * testsuite/libgomp.c++/target-16.C: Likewise.
4009         * testsuite/libgomp.c++/target-17.C: Likewise.
4010         * testsuite/libgomp.c++/target-21.C: Likewise.
4011         * testsuite/libgomp.c++/target-23.C: Likewise.
4012         * testsuite/libgomp.c/target-23.c: Likewise.
4013         * testsuite/libgomp.c/target-29.c: Likewise.
4014         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4016 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4018         PR middle-end/92120
4019         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4020         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4021         (goacc_enter_data_internal): Likewise.
4022         * target.c (gomp_map_vars_existing): Update assert condition to
4023         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4024         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4025         parameter, add support for mapping a pointer with NULL target.
4026         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4027         parameter, add support for attaching a pointer with NULL target.
4028         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4029         gomp_attach_pointer, add handling for
4030         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4031         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4032         * testsuite/libgomp.c++/target-23.C: New testcase.
4033         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4034         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4035         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4036         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4037         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4038         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4039         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4041 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4043         * libgomp.texi (OpenMP 5.1): Update status.
4045 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4047         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4049 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4051         PR fortran/90030
4052         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4053         * testsuite/libgomp.fortran/pr90030.f90: New test.
4055 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4056             Thomas Schwinge  <thomas@codesourcery.com>
4058         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4059         temporary skip.
4061 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4062             Thomas Schwinge  <thomas@codesourcery.com>
4064         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4065         skip.
4067 2021-11-29  Richard Biener  <rguenther@suse.de>
4069         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4070         return.
4072 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4074         PR middle-end/103384
4075         * testsuite/libgomp.c/declare-variant-2.c: New test.
4077 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4079         * alloc.c (gomp_aligned_alloc): Fix typo.
4081 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4083         PR libgomp/102838
4084         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4085         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4086         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4087         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4088         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4089         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4090         gomp_aligned_alloc instead of team_malloc.
4092 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4094         PR libgomp/102838
4095         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4096         memalign over posix_memalign over aligned_alloc over fallback
4097         with malloc instead of aligned_alloc over _aligned_alloc over
4098         posix_memalign over memalign over fallback with malloc.  For
4099         aligned_alloc, round up size up to multiple of al.
4101 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4103         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4104         construct as implemented.
4106 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4108         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4110 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4112         * task.c (gomp_create_target_task): Copy args array as well.
4113         * target.c (gomp_target_fallback): Add args argument.
4114         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4115         (GOMP_target): Adjust gomp_target_fallback caller.
4116         (GOMP_target_ext): Likewise.
4117         (gomp_target_task_fn): Likewise.
4118         * config/nvptx/team.c (gomp_nvptx_main): Set
4119         gomp_global_icv.thread_limit_var.
4120         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4122 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4124         * config/nvptx/team.c (__gomp_team_num): Define as
4125         __attribute__((shared)) var.
4126         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4127         * config/nvptx/target.c (__gomp_team_num): Declare as
4128         extern __attribute__((shared)) var.
4129         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4130         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4131         is bigger than num_blocks, use num_teams_lower teams and arrange for
4132         bumping of __gomp_team_num if !first and returning false once we run
4133         out of teams.
4134         * config/nvptx/teams.c (__gomp_team_num): Declare as
4135         extern __attribute__((shared)) var.
4136         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4138 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4140         * testsuite/libgomp.c/teams-5.c: New test.
4142 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4144         PR target/103201
4145         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4146         to ...
4147         * config/gcn/teams.c: ... here.  New file.
4149 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4151         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4152         implicit map handling to allow a "superset" existing map as valid case.
4153         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4154         (get_implicit): New function to extract implicit status.
4155         (gomp_map_fields_existing): Adjust arguments in calls to
4156         gomp_map_vars_existing, and add uses of get_implicit.
4157         (gomp_map_vars_internal): Likewise.
4158         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4160 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4162         * libgomp_g.h (GOMP_teams4): Declare.
4163         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4164         * target.c (GOMP_teams4): New function.
4165         * config/nvptx/target.c (GOMP_teams): Remove.
4166         (GOMP_teams4): New function.
4167         * config/gcn/target.c (GOMP_teams): Remove.
4168         (GOMP_teams4): New function.
4169         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4170         teams instead of <= 2.
4171         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4173 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4175         * testsuite/libgomp.fortran/teams-1.f90: New test.
4177 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4179         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4180         * team.c (struct gomp_thread_start_data): Likewise.
4181         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4182         (gomp_team_start): Initialize start_data->num_teams and
4183         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4184         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4185         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4186         instead of gomp_num_teams and gomp_team_num.
4187         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4188         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4189         * testsuite/libgomp.c/teams-4.c: New test.
4191 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4193         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4195 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4197         * env.c (parse_gomp_openacc_dim): Restore parsing.
4199 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4201         PR middle-end/102972
4202         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4203         parallel construct.
4204         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4205         * testsuite/libgomp.c/target-3.c: Likewise.
4206         * testsuite/libgomp.c/target-5.c: Likewise.
4207         * testsuite/libgomp.c/target-6.c: Likewise.
4208         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4209         * testsuite/libgomp.c/teams-1.c: Likewise.
4210         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4211         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4212         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4213         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4214         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4215         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4216         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4218 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4220         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4221         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4223 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4225         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4226         aren't implemented for Fortran yet.
4228 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4230         * testsuite/libgomp.c/loop-26.c: New test.
4231         * testsuite/libgomp.c/loop-27.c: New test.
4233 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4235         PR testsuite/102910
4236         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4237         instead of #include <alloca.h> + alloca.
4239 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4241         * libgomp.texi (Support of strictly structured blocks in Fortran):
4242         Adjust to 'Y'.
4243         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4245 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4247         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4248         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4250 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4252         PR libgomp/102838
4253         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4254         (struct gomp_work_share): Only use aligned(64) attribute if
4255         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4256         add padding before lock to ensure lock is at offset 64 bytes
4257         into the structure.
4258         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4259         New poor man's static assertions.
4260         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4261         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4263 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4264             Richard Biener  <rguenther@suse.de>
4266         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4268 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4270         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4271         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4273 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4275         PR fortran/102086
4276         PR fortran/92189
4277         PR fortran/92621
4278         PR fortran/101308
4279         PR fortran/101309
4280         PR fortran/101635
4281         PR fortran/92482
4282         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4284 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4286         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4287         type from char [50] to const char *.
4288         (places_array): Add a testcase for simplified syntax place followed
4289         by length or length and stride.
4291 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4293         * env.c (parse_one_place): Handle non-negative-number the same
4294         as { non-negative-number }.  Reject even !number:1 and
4295         !number:1:stride or !place:1 or !place:1:stride instead of just
4296         length other than 1.
4297         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4298         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4299         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4300         as implemented.
4301         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4302         simplified syntax.
4304 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4306         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4307         clearly reject return value 0 as invalid handle the case where end
4308         pointer is the same as first argument as invalid.
4309         (parse_unsigned_long_1): Likewise.
4310         (parse_one_place): Likewise.
4311         (parse_places_var): Likewise.
4312         (parse_stacksize): Likewise.
4313         (parse_spincount): Likewise.
4314         (parse_affinity): Likewise.
4315         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4316         Make code valid C89.
4317         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4318         For strtoul calls which don't clearly reject return value 0 as
4319         invalid handle the case where end pointer is the same as first
4320         argument as invalid.
4321         (gomp_affinity_init_level_1): Likewise.
4322         (gomp_affinity_init_numa_domains): Likewise.
4323         * config/rtems/proc.c (parse_thread_pools): Likewise.
4325 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4327         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4328         after creating count places clean up and return immediately.
4329         * testsuite/libgomp.c/places-6.c: New test.
4330         * testsuite/libgomp.c/places-7.c: New test.
4331         * testsuite/libgomp.c/places-8.c: New test.
4332         * testsuite/libgomp.c/places-9.c: New test.
4333         * testsuite/libgomp.c/places-10.c: New test.
4335 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4337         * env.c (parse_places_var): Handle numa_domains as level 5.
4338         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4339         function.
4340         (gomp_affinity_init_level): Use it instead of
4341         gomp_affinity_init_level_1 for level == 5.
4342         * testsuite/libgomp.c/places-5.c: New test.
4344 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4346         * env.c (parse_places_var): Handle ll_caches as level 4.
4347         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4348         function.
4349         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4350         last level cache.
4351         (gomp_affinity_init_level): Likewise.
4352         * testsuite/libgomp.c/places-1.c: New test.
4353         * testsuite/libgomp.c/places-2.c: New test.
4354         * testsuite/libgomp.c/places-3.c: New test.
4355         * testsuite/libgomp.c/places-4.c: New test.
4357 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4359         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4360         directive.
4362 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4364         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4366 2021-10-12  Julian Brown  <julian@codesourcery.com>
4368         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4369         error path.
4371 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4373         * testsuite/libgomp.fortran/icv-3.f90: New.
4374         * testsuite/libgomp.fortran/icv-4.f90: New.
4376 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4378         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4379         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4380         OMP_TEAMS_THREAD_LIMIT): Document.
4382 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4384         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4385         to avoid makeinfo warnings.
4387 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4389         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4390         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4392 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4394         PR libgomp/102628
4395         PR libgomp/102668
4396         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4397         allocation sizes from 420 to 320 and from 768 to 568.
4398         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4399         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4400         for cr from 16 to 4.
4402 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4404         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4405         * testsuite/libgomp.c/scan-12.c: Likewise.
4406         * testsuite/libgomp.c/scan-13.c: Likewise.
4407         * testsuite/libgomp.c/scan-14.c: Likewise.
4408         * testsuite/libgomp.c/scan-15.c: Likewise.
4409         * testsuite/libgomp.c/scan-16.c: Likewise.
4410         * testsuite/libgomp.c/scan-17.c: Likewise.
4411         * testsuite/libgomp.c/scan-18.c: Likewise.
4412         * testsuite/libgomp.c/scan-19.c: Likewise.
4413         * testsuite/libgomp.c/scan-20.c: Likewise.
4414         * testsuite/libgomp.c/scan-21.c: Likewise.
4415         * testsuite/libgomp.c/scan-22.c: Likewise.
4416         * testsuite/libgomp.c++/scan-9.C: Likewise.
4417         * testsuite/libgomp.c++/scan-10.C: Likewise.
4418         * testsuite/libgomp.c++/scan-11.C: Likewise.
4419         * testsuite/libgomp.c++/scan-12.C: Likewise.
4420         * testsuite/libgomp.c++/scan-13.C: Likewise.
4421         * testsuite/libgomp.c++/scan-14.C: Likewise.
4422         * testsuite/libgomp.c++/scan-15.C: Likewise.
4423         * testsuite/libgomp.c++/scan-16.C: Likewise.
4425 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4427         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4429 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4431         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4432         omp_atv_serialized.
4433         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4434         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4435         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4436         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4438 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4440         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4441         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4442         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4443         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4444         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4445         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4446         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4447         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4448         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4449         omp_set_teams_thread_limit{,_,_8_}.
4450         * icv.c (omp_set_num_teams, omp_get_max_teams,
4451         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4452         functions.
4453         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4454         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4455         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4456         vars.
4457         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4458         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4459         is not specified, use gomp_nteams_var.
4460         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4461         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4462         ialias_redirect.
4463         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4464         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4465         omp_get_teams_thread_limit_): New functions.
4467 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4469         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4470         * testsuite/libgomp.c++/scan-11.C: Ditto.
4471         * testsuite/libgomp.c++/scan-12.C: Ditto.
4472         * testsuite/libgomp.c++/scan-13.C: Ditto.
4473         * testsuite/libgomp.c++/scan-14.C: Ditto.
4474         * testsuite/libgomp.c++/scan-15.C: Ditto.
4475         * testsuite/libgomp.c++/scan-16.C: Ditto.
4476         * testsuite/libgomp.c++/scan-9.C: Ditto.
4477         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4478         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4479         * testsuite/libgomp.c/scan-11.c: Ditto.
4480         * testsuite/libgomp.c/scan-12.c: Ditto.
4481         * testsuite/libgomp.c/scan-13.c: Ditto.
4482         * testsuite/libgomp.c/scan-14.c: Ditto.
4483         * testsuite/libgomp.c/scan-15.c: Ditto.
4484         * testsuite/libgomp.c/scan-16.c: Ditto.
4485         * testsuite/libgomp.c/scan-17.c: Ditto.
4486         * testsuite/libgomp.c/scan-18.c: Ditto.
4487         * testsuite/libgomp.c/scan-19.c: Ditto.
4488         * testsuite/libgomp.c/scan-20.c: Ditto.
4489         * testsuite/libgomp.c/scan-21.c: Ditto.
4490         * testsuite/libgomp.c/scan-22.c: Ditto.
4492 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4494         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4495         structured block sequences in C/C++.  Mention support for
4496         unconstrained/reproducible modifiers on order clause.
4497         Mention partial (C/C++ only) support of extentensions to atomics
4498         construct.  Mention partial (C/C++ on clause only) support of
4499         align/allocator modifiers on allocate clause.
4501 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4503         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4504         based on libgomp.c-c++-common/order-reproducible-1.c.
4505         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4506         * testsuite/libgomp.fortran/my-usleep.c: New test.
4508 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4510         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4511         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4512         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4513         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4514         based on libgomp.c-c++-common/alloc-9.c.
4516 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4518         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4519         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4521 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4523         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4524         ialias_redirect.
4525         * env.c (handle_omp_display_env): Use ialias_call.
4526         * icv-device.c: Move ialias right below each function.
4527         (omp_get_device_num): Use ialias_call.
4528         * fortran.c (omp_fulfill_event): Add ialias_redirect.
4529         * icv.c (omp_get_active_level): Add ialias_redirect.
4531 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4533         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
4534         __alloc_align__ (1) attribute.
4535         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
4537 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4539         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
4540         for -fintrinsic-modules-path= warning of the C compiler.
4541         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
4542         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
4544 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
4546         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
4547         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
4548         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4549         omp_realloc): Add.
4550         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
4551         omp_realloc): Add.
4552         * testsuite/libgomp.fortran/alloc-10.f90: New test.
4553         * testsuite/libgomp.fortran/alloc-6.f90: New test.
4554         * testsuite/libgomp.fortran/alloc-7.c: New test.
4555         * testsuite/libgomp.fortran/alloc-7.f90: New test.
4556         * testsuite/libgomp.fortran/alloc-8.f90: New test.
4557         * testsuite/libgomp.fortran/alloc-9.f90: New test.
4559 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
4561         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
4562         omp_realloc): New prototypes.
4563         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
4564         attribute.
4565         * allocator.c: Include string.h.
4566         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
4567         variable and use it instead of alignment so that when retrying the old
4568         alignment is used again.  Don't retry if new alignment is the same
4569         as old alignment, unless allocator had pool size.
4570         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
4571         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
4572         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
4573         omp_aligned_calloc and omp_realloc.
4574         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
4575         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
4576         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
4577         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
4578         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
4579         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
4581 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
4583         PR libgomp/96661
4584         * configure.ac: Only check for int-type = 2*size_t support when
4585         building with Fortran support.
4586         * configure: Regenerate.
4588 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
4590         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
4591         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4593 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
4595         * team.c: Initialize start_data.
4596         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
4597         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
4599 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4601         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
4602         dg-message back to dg-note.
4604 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
4606         PR fortran/94070
4607         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
4608         expected dg-note output.
4610 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
4612         PR fortran/55534
4613         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
4614         r12-3722 by removing -Wno-missing-include-dirs.
4615         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4617 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
4619         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
4620         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
4622 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
4624         PR fortran/55534
4625         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
4626         to ALWAYS_CFLAGS.
4627         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4629 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
4631         * testsuite/libgomp.c++/default-1.C: New test.
4632         * testsuite/libgomp.c-c++-common/default-1.c: New test.
4633         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
4634         to default clause in C and C++" as implemented.
4636 2021-09-17  Julian Brown  <julian@codesourcery.com>
4638         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
4640 2021-09-17  Julian Brown  <julian@codesourcery.com>
4642         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
4644 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4646         * libgomp.texi (OpenMP 5.1): Spelling fix,
4647         declare variante -> declare variant.
4649 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
4651         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
4652         Use /* */ comments instead of //.
4653         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
4654         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
4655         * testsuite/libgomp.c++/atomic-16.C: New test.
4656         * testsuite/libgomp.c++/atomic-17.C: New test.
4658 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
4660         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
4661         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
4662         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
4664 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4666         * libgomp.texi (OpenMP Implementation Status): Extend
4667         OpenMP 5.0 section.
4668         (OpenACC Profiling Interface): Fix typo.
4670 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
4672         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
4673         not to 4.5; link to new section.
4674         (OpenMP Implementation Status): New.
4676 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
4678         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
4680 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
4682         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
4683         dg-output.
4684         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4686 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4687             Jakub Jelinek  <jakub@redhat.com>
4689         * testsuite/libgomp.c/address-space-1.c: New file.
4691 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
4693         * testsuite/lib/libgomp.exp
4694         (check_effective_target_offload_target_intelmic): Remove 'proc'.
4695         (check_effective_target_offload_device_intel_mic): New 'proc'.
4696         * testsuite/libgomp.c-c++-common/on_device_arch.h
4697         (device_arch_intel_mic, on_device_arch_intel_mic): New.
4698         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
4699         'dg-xfail-run-if'.
4700         * testsuite/libgomp.fortran/target10.f90: Likewise.
4702 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
4704         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
4705         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
4706         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
4707         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
4709 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
4711         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
4712         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
4713         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
4715 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
4717         * config/nvptx/error.c (fwrite, exit): Override, too.
4718         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
4719         of offloading testing.
4720         * testsuite/libgomp.fortran/error-1.f90: Likewise.
4722 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
4724         * testsuite/libgomp.fortran/error-1.f90: New test.
4726 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
4728         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
4729         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
4730         * error.c (GOMP_warning, GOMP_error): New functions.
4731         * testsuite/libgomp.c-c++-common/error-1.c: New test.
4733 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
4735         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
4736         omp_target_free. omp_target_is_present, omp_target_memcpy,
4737         omp_target_memcpy_rect, omp_target_associate_ptr,
4738         omp_target_disassociate_ptr): Add interface.
4739         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
4740         omp_target_free. omp_target_is_present, omp_target_memcpy,
4741         omp_target_memcpy_rect, omp_target_associate_ptr,
4742         omp_target_disassociate_ptr): Add interface.
4743         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
4744         interface block for omp_alloc + omp_free.
4745         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
4746         * testsuite/libgomp.fortran/refcount-1.f90: New test.
4747         * testsuite/libgomp.fortran/target-12.f90: New test.
4749 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
4751         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
4753 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
4755         * testsuite/libgomp.fortran/scope-1.f90: New test.
4756         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
4758 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
4760         * Makefile.am (libgomp_la_SOURCES): Add scope.c
4761         * Makefile.in: Regenerated.
4762         * libgomp_g.h (GOMP_scope_start): Declare.
4763         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
4764         * scope.c: New file.
4765         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
4766         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
4768 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
4770         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
4771         '?:' issues.
4773 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
4775         * testsuite/libgomp.fortran/masked-1.f90: New test.
4777 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
4779         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
4781 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
4783         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
4785 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
4787         * env.c (parse_bind_var): Accept 'primary' as alias for
4788         'master'.
4789         (omp_display_env): Add TODO comment to
4790         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
4791         * libgomp.texi: Change 'master thread' to 'primary thread'
4792         in line with OpenMP 5.1.
4793         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
4794         omp_proc_bind_master is an alias of it.
4795         (OMP_PROC_BIND): Mention 'PRIMARY'.
4796         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
4797         (omp_proc_bind_primary): Add.
4798         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4799         * omp_lib.f90.in (omp_proc_bind_primary): Add.
4800         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
4801         * omp_lib.h.in (omp_proc_bind_primary): Add.
4802         * testsuite/libgomp.c/affinity-1.c: Check that
4803         'primary' works and is identical to 'master'.
4805 2021-08-09  Julian Brown  <julian@codesourcery.com>
4806             Kwok Cheung Yeung  <kcy@codesourcery.com>
4807             Thomas Schwinge  <thomas@codesourcery.com>
4809         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
4810         16.
4811         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
4812         [acc_device_radeon]: Update.
4813         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
4814         [ACC_DEVICE_TYPE_radeon]: Likewise.
4815         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
4816         [acc_device_radeon]: Likewise.
4817         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
4818         [ACC_DEVICE_TYPE_radeon]: Likewise.
4819         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
4820         'openacc_radeon_accel_selected' and '-O0'.
4821         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4823 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
4825         * icv-device.c (omp_get_device_num): New API function, host side.
4826         * fortran.c (omp_get_device_num_): New interface function.
4827         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
4828         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
4829         omp_get_device_num_.
4830         * libgomp.texi (omp_get_device_num): Add documentation for new API
4831         function.
4832         * omp.h.in (omp_get_device_num): Add declaration.
4833         * omp_lib.f90.in (omp_get_device_num): Likewise.
4834         * omp_lib.h.in (omp_get_device_num): Likewise.
4835         * target.c (gomp_load_image_to_device): If additional entry for device
4836         number exists at end of returned entries from 'load_image_func' hook,
4837         copy the assigned device number over to the device variable.
4838         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4839         (omp_get_device_num): New API function, device side.
4840         * plugin/plugin-gcn.c ("symcat.h"): Add include.
4841         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4842         at end of returned 'target_table' entries.
4843         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
4844         (omp_get_device_num): New API function, device side.
4845         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
4846         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
4847         at end of returned 'target_table' entries.
4848         * testsuite/lib/libgomp.exp
4849         (check_effective_target_offload_target_intelmic): New function for
4850         testing for intelmic offloading.
4851         * testsuite/libgomp.c-c++-common/target-45.c: New test.
4852         * testsuite/libgomp.fortran/target10.f90: New test.
4854 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
4855             Ulrich Drepper  <drepper@redhat.com>
4857         * fortran.c (omp_display_env_, omp_display_env_8_): Only
4858         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
4860 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
4861             Julian Brown  <julian@codesourcery.com>
4862             Kwok Cheung Yeung  <kcy@codesourcery.com>
4864         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
4865         's%oaccdevlow%oaccloops%g'.
4866         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
4867         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4868         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
4869         Likewise.
4870         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
4871         Likewise.
4872         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
4873         Likewise.
4874         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
4875         Likewise.
4876         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
4877         Likewise.
4878         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
4879         Likewise.
4880         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
4881         Likewise.
4882         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
4883         Likewise.
4884         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4886 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
4888         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
4889         threader.
4890         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4892 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
4894         * env.c (wait_policy, stacksize): New static variables,
4895         move out of handle_omp_display_env.
4896         (omp_display_env): New function.  The meat of the old
4897         handle_omp_display_env function.
4898         (handle_omp_display_env): Change to not take parameters
4899         and instead use the global variables.  Only perform
4900         parsing, defer to omp_display_env for the implementation.
4901         (initialize_env): Remove local variables wait_policy and
4902         stacksize.  Don't pass parameters to handle_omp_display_env.
4903         * fortran.c: Add ialias_redirect for omp_display_env.
4904         (omp_display_env_, omp_display_env_8_): New functions.
4905         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
4906         omp_display_env_, and omp_display_env_8_.
4907         * omp.h.in: Declare omp_display_env.
4908         * omp_lib.f90.in: Likewise.
4909         * omp_lib.h.in: Likewise.
4911 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4912             Julian Brown  <julian@codesourcery.com>
4914         * target.c (gomp_coalesce_buf_add): Update comment.
4915         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
4916         'aq && cbuf'.
4917         (gomp_map_vars_internal): Only 'if (!aq)', do
4918         'gomp_coalesce_buf_add'.
4919         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
4920         XFAIL.
4922 2021-07-27  Julian Brown  <julian@codesourcery.com>
4923             Thomas Schwinge  <thomas@codesourcery.com>
4925         * libgomp.h (gomp_copy_host2dev): Update prototype.
4926         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
4927         argument to gomp_copy_host2dev (false).
4928         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
4929         (copy_data): Don't free src.
4930         (queue_push_copy): Remove free_src handling.
4931         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
4932         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
4933         snapshotting.
4934         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
4935         queue_push_copy.
4936         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
4937         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
4938         data when true, and set up deferred freeing of temporary buffer.
4939         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
4940         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
4941         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
4942         calls to gomp_copy_host2dev with appropriate ephemeral argument.
4943         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
4944         XFAIL.
4946 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4947             Tom de Vries  <tom@codesourcery.com>
4949         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
4950         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
4952 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4954         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
4955         sequencing of 'async' data copying vs. profiling events.
4956         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4957         Likewise.
4959 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
4960             Julian Brown  <julian@codesourcery.com>
4962         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
4963         'async'/'wait' issue.
4964         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
4965         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
4966         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
4968 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
4969             Joseph Myers  <joseph@codesourcery.com>
4970             Cesar Philippidis  <cesar@codesourcery.com>
4972         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
4973         file.
4974         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4975         Likewise.
4976         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
4977         Likewise.
4978         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
4980 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
4982         PR target/101484
4983         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
4984         '-Wno-error=array-bounds'.
4985         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
4986         * libgomp.h [__AMDGCN__]: Likewise.
4988 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
4990         PR target/101484
4991         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
4992         * libgomp.h [__AMDGCN__]: Likewise.
4994 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
4995             Florian Weimer  <fweimer@redhat.com>
4997         * config/linux/sem.h: Don't include limits.h.
4998         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
4999         * config/linux/affinity.c: Include limits.h.
5001 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5003         PR middle-end/94366
5004         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5006 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5008         PR other/67300
5009         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5010         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5011         avoid disabling other offload targets.
5012         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5013         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5014         * testsuite/libgomp.c/target-44.c: Likewise.
5016 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5018         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5019         target has shared memory and disable some scalar pointer/allocatable
5020         checks if not as firstprivate does not work.
5022 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5024         PR testsuite/101114
5025         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5026         Add "target offload_device_nonshared_as" condition for enabling test.
5028 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5030         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5031         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5032         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5033         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5035 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5037         PR middle-end/101167
5038         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5040 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5042         * hashtab.h (htab_clear): New function with initialization code
5043         factored out from...
5044         (htab_create): ...here, adjust to use htab_clear function.
5045         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5046         special refcount values, add comments.
5047         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5048         (REFCOUNT_LINK): Likewise.
5049         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5050         element siblings.
5051         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5052         sibling maps.
5053         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5054         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5055         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5056         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5057         (struct splay_tree_key_s): Add structelem_refcount and
5058         structelem_refcount_ptr fields into a union with dynamic_refcount.
5059         Add comments.
5060         (gomp_map_vars): Delete declaration.
5061         (gomp_map_vars_async): Likewise.
5062         (gomp_unmap_vars): Likewise.
5063         (gomp_unmap_vars_async): Likewise.
5064         (goacc_map_vars): New declaration.
5065         (goacc_unmap_vars): Likewise.
5066         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5067         (goacc_enter_datum): Likewise.
5068         (goacc_enter_data_internal): Likewise.
5069         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5070         and goacc_unmap_vars.
5071         (GOACC_data_start): Adjust to use goacc_map_vars.
5072         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5073         * target.c (hash_entry_type): New typedef.
5074         (htab_alloc): New function hook for hashtab.h.
5075         (htab_free): Likewise.
5076         (htab_hash): Likewise.
5077         (htab_eq): Likewise.
5078         (hashtab.h): Add file include.
5079         (gomp_increment_refcount): New function.
5080         (gomp_decrement_refcount): Likewise.
5081         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5082         gomp_increment_refcount.
5083         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5084         to gomp_map_vars_existing.
5085         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5086         variable to guard OpenMP specific paths, adjust calls to
5087         gomp_map_vars_existing, add structure element sibling splay_tree_key
5088         sequence creation code, adjust Fortran map case to avoid increment
5089         under OpenMP.
5090         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5091         local refcount_set if caller passed in NULL, adjust call to
5092         gomp_map_vars_internal.
5093         (gomp_map_vars_async): Adjust and rename into...
5094         (goacc_map_vars): ...this new function, adjust call to
5095         gomp_map_vars_internal.
5096         (gomp_remove_splay_tree_key): New function with code factored out from
5097         gomp_remove_var_internal.
5098         (gomp_remove_var_internal): Add code to handle removing multiple
5099         splay_tree_key sequence for structure elements, adjust code to use
5100         gomp_remove_splay_tree_key for splay-tree key removal.
5101         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5102         gomp_decrement_refcount.
5103         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5104         local refcount_set if caller passed in NULL, adjust call to
5105         gomp_unmap_vars_internal.
5106         (gomp_unmap_vars_async): Adjust and rename into...
5107         (goacc_unmap_vars): ...this new function, adjust call to
5108         gomp_unmap_vars_internal.
5109         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5110         gomp_unmap_vars.
5111         (GOMP_target_ext): Likewise.
5112         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5113         (GOMP_target_data): Likewise.
5114         (GOMP_target_data_ext): Likewise.
5115         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5116         (gomp_exit_data): Add refcount_set parameter, adjust to use
5117         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5118         after main loop.
5119         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5120         gomp_map_vars and gomp_exit_data.
5121         (gomp_target_task_fn): Likewise.
5122         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5123         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5124         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5125         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5126         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5127         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5129 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5131         PR fortran/92568
5132         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5134 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5135             Thomas Schwinge  <thomas@codesourcery.com>
5137         * libgomp.map (GOACC_2.0.2): New symbol version.
5138         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5139         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5141 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5142             Andrew Stubbs  <ams@codesourcery.com>
5144         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5145         extracted from...
5146         (GOACC_enter_exit_data): ... here.
5147         (GOACC_declare): Use it.
5149 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5151         * oacc-parallel.c (GOACC_declare): Move...
5152         * oacc-mem.c: ... here.
5153         * libgomp_g.h: Adjust.
5155 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5156             Thomas Schwinge  <thomas@codesourcery.com>
5158         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5159         handling.
5161 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5163         PR tree-optimization/100981
5164         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5165         dsdotr and dsdoti to 0.
5167 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5169         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5170         if atomic compare-and-swap is supported on 'int'.
5172 2021-06-09  Richard Biener  <rguenther@suse.de>
5174         PR tree-optimization/100981
5175         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5177 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5179         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5180         unconditionally.
5181         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5182         Update.
5183         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5184         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5186 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5188         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5189         '-DACC_MEM_SHARED=0'.
5190         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5191         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5192         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5193         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5194         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5195         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5196         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5197         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5198         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5199         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5200         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5201         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5202         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5203         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5204         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5205         'acc_device_radeon' testing.
5206         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5207         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5208         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5209         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5210         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5211         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5212         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5213         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5214         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5215         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5216         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5217         for non-'openacc_nvidia_accel_selected'.
5218         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5219         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5220         all implement this checking".
5221         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5222         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5223         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5224         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5225         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5227 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5229         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5230         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5232 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5234         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5235         for 'acc_device_radeon'.
5237 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5239         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5240         for non-'acc_device_nvidia'.
5242 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5244         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5245         'acc_device_radeon' testing.
5246         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5247         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5248         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5250 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5252         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5253         require 'openacc_nvidia_accel_selected'.  Fix up for
5254         'ACC_DEVICE_TYPE_radeon'.
5256 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5258         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5259         'openacc_nvidia_accel_selected'.
5260         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5262 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5264         * testsuite/lib/libgomp.exp
5265         (check_effective_target_openacc_radeon_accel_selected):
5266         Streamline.
5268 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5270         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5271         PR80547 workaround.
5273 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5275         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5276         <acc_device_nvidia>: Update comment.
5278 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5280         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5282 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5284         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5285         check_effective_target_openacc_cublas,
5286         check_effective_target_openacc_cudart): New.
5287         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5288         target openacc_cublas.
5289         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5290         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5291         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5292         target openacc_cuda.
5293         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5294         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5295         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5296         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5297         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5298         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5299         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5300         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5301         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5302         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5303         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5304         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5305         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5306         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5307         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5308         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5309         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5310         targets openacc_cublas and openacc_cudart.
5311         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5312         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5313         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5314         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5315         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5316         Require effective target openacc_cudart.
5317         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5318         for effective target openacc_cuda and add && defined USE_CUDA_H to
5319         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5320         effective target.
5322 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5324         PR libgomp/100573
5325         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5326         GOMP_target_end_data, GOMP_target_update_ext,
5327         GOMP_target_enter_exit_data): New dummy entrypoints.
5328         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5329         GOMP_target_end_data, GOMP_target_update_ext,
5330         GOMP_target_enter_exit_data): Likewise.
5331         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5332         OMPFROM, OMPTO): Define.
5333         (main): Remove #pragma omp target teams around all the tests.
5334         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5335         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5337 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5339         PR middle-end/99928
5340         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5342 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5344         PR fortran/86470
5345         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5346         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5347         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5349 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5351         PR testsuite/90115
5352         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5353         uninteresting/varying diagnostics.
5355 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5357         PR middle-end/90115
5358         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5359         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5361 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5363         PR middle-end/90115
5364         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5365         file.
5366         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5367         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5368         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5369         Likewise.
5370         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5371         Likewise.
5372         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5373         Likewise.
5374         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5375         Likewise.
5376         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5377         Likewise.
5378         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5379         Likewise.
5380         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5381         Likewise.
5382         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5383         Likewise.
5384         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5385         Likewise.
5386         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5387         Likewise.
5388         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5389         Likewise.
5390         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5391         Likewise.
5392         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5393         Likewise.
5394         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5395         Likewise.
5396         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5397         Likewise.
5398         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5399         Likewise.
5400         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5401         Likewise.
5402         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5403         Likewise.
5404         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5405         Likewise.
5406         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5407         Likewise.
5408         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5409         Likewise.
5410         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5411         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5412         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5413         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5414         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5415         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5416         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5417         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5418         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5419         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5420         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5421         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5422         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5423         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5424         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5425         Likewise.
5426         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5427         Likewise.
5428         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5429         Likewise.
5430         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5431         Likewise.
5432         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5433         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5434         Likewise.
5435         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5436         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5437         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5438         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5439         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5440         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5441         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5442         Likewise.
5443         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5444         Likewise.
5445         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5446         Likewise.
5447         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5448         Likewise.
5449         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5450         Likewise.
5451         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5452         Likewise.
5453         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5454         Likewise.
5455         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5456         Likewise.
5457         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5458         Likewise.
5459         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5460         Likewise.
5461         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5462         Likewise.
5463         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5464         Likewise.
5465         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5466         Likewise.
5467         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5468         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5469         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5470         Likewise.
5471         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5472         Likewise.
5473         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5474         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5475         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5477 2021-05-21  Julian Brown  <julian@codesourcery.com>
5478             Chung-Lin Tang  <cltang@codesourcery.com>
5479             Thomas Schwinge  <thomas@codesourcery.com>
5481         PR middle-end/90115
5482         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5483         test.
5484         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5485         Likewise.
5486         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5487         Likewise.
5489 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5491         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5492         for nvptx offloading.
5494 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5496         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5498 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5500         PR target/83812
5501         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5503 2021-05-19  Julian Brown  <julian@codesourcery.com>
5505         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5507 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5509         * testsuite/lib/libgomp.exp
5510         (check_effective_target_offload_target_nvptx): Don't shadow global
5511         'offload_targets' variable.
5513 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5515         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5516         '-latomic' to nvptx offloading compilation.
5517         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5519 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5521         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5522         offloading compilation.
5524 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5526         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5527         if new tasks generated.
5528         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
5530 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
5532         * testsuite/libgomp.fortran/parallel-master.f90: New test.
5534 2021-05-13  Martin Liska  <mliska@suse.cz>
5536         PR testsuite/100569
5537         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
5538         * testsuite/libgomp.c/pr46032-2.c: Likewise.
5539         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
5540         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
5542 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
5544         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
5545         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
5547 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
5549         PR middle-end/100471
5550         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
5551         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
5552         reduction pointer.
5553         * testsuite/libgomp.c/task-reduction-4.c: New test.
5555 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
5556             Tom de Vries  <tdevries@suse.de>
5558         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5559         complex/floating-point || + && reduction with 'omp target'.
5560         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5562 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5564         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
5565         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
5566         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
5567         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
5569 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
5571         PR testsuite/100397
5572         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
5573         declaration to scope of non-'depend'-guarded assignment to avoid races.
5575 2021-05-03  Tom de Vries  <tdevries@suse.de>
5577         PR target/100321
5578         * testsuite/libgomp.c/target-44.c: New test.
5580 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
5582         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
5584 2021-04-29  Tom de Vries  <tdevries@suse.de>
5586         * testsuite/libgomp.c/pr81778.c: New test.
5588 2021-04-29  Tom de Vries  <tdevries@suse.de>
5590         PR target/100232
5591         * testsuite/libgomp.c/target-43.c: New file.
5593 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
5594             Tobias Burnus  <tobias@codesourcery.com>
5596         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
5597         * target.c (gomp_load_plugin_for_device): If set and if a plugin
5598         can't be dlopened, silently assume it has no devices.
5599         * Makefile.in: Regenerate.
5600         * config.h.in: Regenerate.
5601         * configure: Regenerate.
5603 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5605         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5606         Use [Ww]arning in dg-bogus as FE diagnostic and default
5607         diagnostic differ and the result depends on ENABLE_OFFLOAD.
5608         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5609         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5610         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5612 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
5614         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
5615         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
5616         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5617         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5618         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5620 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5621             Nathan Sidwell  <nathan@codesourcery.com>
5622             Tom de Vries  <vries@codesourcery.com>
5623             Julian Brown  <julian@codesourcery.com>
5624             Kwok Cheung Yeung  <kcy@codesourcery.com>
5626         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
5627         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
5628         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5629         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5630         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5631         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5632         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
5633         Likewise.
5634         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5635         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5636         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5637         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5638         Likewise.
5639         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
5640         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5641         Likewise.
5642         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5643         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5644         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5645         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5646         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5647         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5648         Likewise.
5649         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5650         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5651         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5652         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5653         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5654         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5655         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5656         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5657         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5658         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5659         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5661 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
5663         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
5664         compile with '-w'.
5665         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5666         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5667         Likewise.
5668         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5669         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
5670         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5671         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5672         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5673         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5674         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5676 2021-04-22  Richard Biener  <rguenther@suse.de>
5678         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
5679         only on nvptx-none.
5681 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5683         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
5684         omp_depend_kind instead of defining it as 16.
5686 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5688         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
5689         New, based on check_effective_target_offload_target_nvptx.
5690         (check_effective_target_offload_target_nvptx): Call it.
5691         (check_effective_target_offload_target_amdgcn): New.
5692         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
5693         Require target offload_target_nvptx || offload_target_amdgcn.
5694         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
5695         * testsuite/libgomp.c/pr86416-1.c: Likewise.
5696         * testsuite/libgomp.c/pr86416-2.c: Likewise.
5698 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
5700         * testsuite/libgomp.fortran/depobj-1.f90: New test.
5702 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5704         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
5705         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
5706         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
5707         Likewise.
5708         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5709         Likewise.
5710         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
5712 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5714         PR target/99555
5715         * testsuite/lib/libgomp.exp
5716         (check_effective_target_offload_device_nvptx): New.
5717         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
5718         resolved, make sure that we exit quickly, with error status,
5719         XFAILed.
5720         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
5721         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5723 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
5725         PR testsuite/100071
5726         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
5727         cp = omp_alloc with cp, p arguments instead of cq, q and call
5728         c_f_pointer after last cq = omp_alloc with cq, q.
5730 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
5732         PR middle-end/98088
5733         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
5734         for loop with GT/GE condition.
5735         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5737 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
5739         PR middle-end/84991
5740         PR middle-end/84992
5741         PR middle-end/90779
5742         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
5744 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
5746         PR libgomp/99984
5747         * team.c (gomp_thread_start): Call pthread_setspecific for
5748         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
5749         has been initialized to avoid false positive warning.
5751 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
5753         PR target/99555
5754         * testsuite/lib/on_device_arch.c: Move to ...
5755         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
5756         * testsuite/libgomp.fortran/on_device_arch.c: New file;
5757         #include on_device_arch.h.
5758         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
5759         on_device_arch.h instead of using dg-additional-source.
5760         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5761         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
5762         on_device_arch.c without relative paths.
5764 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5766         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
5767         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
5768         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
5769         * config.h.in: Regenerate.
5770         * configure: Likewise.
5772 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5774         PR target/99555
5775         * testsuite/lib/on_device_arch.c: New file.
5776         * testsuite/libgomp.c/pr99555-1.c: Likewise.
5777         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
5778         skip for nvptx offloading, with error status.
5779         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
5781 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
5783         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
5784         OpenACC 'serial' construct diagnostic for nvptx offloading.
5786 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
5788         PR c++/99509
5789         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
5791 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
5793         PR fortran/98858
5794         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
5796 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
5798         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
5799         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
5800         checking of -m32 or -mx32 options on the command line.
5801         * config.h.in: Regenerated.
5802         * configure: Regenerated.
5804 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
5806         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
5807         support from the target.
5809 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5810             Jakub Jelinek  <jakub@redhat.com>
5812         PR libgomp/98738
5813         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
5814         (struct gomp_task): Replace detach and completion_sem fields with
5815         union containing completion_sem and detach_team.  Add deferred_p
5816         field.
5817         (struct gomp_team): Remove task_detach_queue.
5818         * task.c: Include assert.h.
5819         (gomp_init_task): Initialize deferred_p and completion_sem fields.
5820         Rearrange initialization order of fields.
5821         (task_fulfilled_p): Delete.
5822         (GOMP_task): Use address of task as the event handle.  Remove
5823         initialization of detach field.  Initialize deferred_p field.
5824         Use automatic local for completion_sem.  Initialize detach_team field
5825         for deferred tasks.
5826         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
5827         Set kind of suspended detach task to GOMP_TASK_DETACHED and
5828         decrement task_running_count.  Move finish_cancelled block out of
5829         else branch.  Relocate call to gomp_team_barrier_done.
5830         (GOMP_taskwait): Handle tasks with completion events that have not
5831         been fulfilled.
5832         (GOMP_taskgroup_end): Likewise.
5833         (omp_fulfill_event): Use address of task as event handle.  Post to
5834         completion_sem for undeferred tasks.  Clear detach_team if task
5835         has not finished.  For finished tasks, handle post-execution tasks,
5836         call gomp_team_barrier_wake if necessary, and free task.
5837         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
5838         (free_team): Remove free of task_detach_queue.
5839         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
5840         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
5841         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
5842         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
5843         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
5844         Change data-sharing of detach events on enclosing parallel to private.
5845         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
5846         taskwait directive.
5847         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
5848         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
5849         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
5850         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
5851         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
5852         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
5853         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
5854         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
5855         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
5856         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
5857         Change data-sharing of detach events on enclosing parallel to private.
5858         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
5859         taskwait directive.
5860         * testsuite/libgomp.fortran/task-detach-7.f90: New.
5861         * testsuite/libgomp.fortran/task-detach-8.f90: New.
5862         * testsuite/libgomp.fortran/task-detach-9.f90: New.
5863         * testsuite/libgomp.fortran/task-detach-10.f90: New.
5864         * testsuite/libgomp.fortran/task-detach-11.f90: New.
5866 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
5868         PR fortran/99171
5869         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
5871 2021-02-17  Julian Brown  <julian@codesourcery.com>
5873         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
5874         expected errors.
5876 2021-02-17  Julian Brown  <julian@codesourcery.com>
5878         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
5879         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
5881 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5883         * config/linux/x86/futex.h (__futex_wait):
5884         Revert output type back to long.
5885         (__futex_wake): Ditto.
5886         (futex_wait): Update for revert.
5887         (futex_wake): Ditto.
5889 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5891         * config/linux/x86/futex.h (__futex_wait): New static inline
5892         wrapper function.  Correct output type to int and
5893         timeout type to void *.
5894         (__futex_wake): New static inline wrapper function.
5895         Correct output type to int.
5896         (futex_wait): Use __futex_wait.
5897         (futex_wake): Use __futex_wake.
5899 2021-02-10  Julian Brown  <julian@codesourcery.com>
5901         PR fortran/98979
5902         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
5903         errors.
5905 2021-02-04  Julian Brown  <julian@codesourcery.com>
5907         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
5909 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
5911         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
5912         EF_AMDGPU_MACH_AMDGCN_GFX908.
5913         (gcn_gfx908_s): New constant string.
5914         (isa_hsa_name): Add gfx908.
5915         (isa_code): Add gfx908.
5917 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
5919         * libgomp.texi (omp_fulfill_event): New entry.
5921 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
5923         * task.c (GOMP_task): Rename priority argument to priority_arg,
5924         add priority automatic variable and modify that variable.  Instead of
5925         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
5926         check flags for that bit.
5928 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
5930         PR fortran/98476
5931         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
5933 2021-01-18  Andreas Schwab  <schwab@suse.de>
5935         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
5937 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5939         * config/rtems/sem.h (gomp_sem_getcount): New function.
5941 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
5943         * config/linux/sem.h (gomp_sem_getcount): New function.
5944         * config/posix/sem.h (gomp_sem_getcount): New function.
5945         * config/posix/sem.c (gomp_sem_getcount): New function.
5946         * config/accel/sem.h (gomp_sem_getcount): New function.
5947         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
5948         (omp_fulfill_event): Likewise.
5950 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
5952         * fortran.c (omp_fulfill_event_): New.
5953         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
5954         (struct gomp_team): Add task_detach_queue and task_detach_count
5955         fields.
5956         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
5957         * libgomp_g.h (GOMP_task): Add extra argument.
5958         * omp.h.in (enum omp_event_handle_t): New.
5959         (omp_fulfill_event): New.
5960         * omp_lib.f90.in (omp_event_handle_kind): New.
5961         (omp_fulfill_event): New.
5962         * omp_lib.h.in (omp_event_handle_kind): New.
5963         (omp_fulfill_event): Declare.
5964         * priority_queue.c (priority_tree_find): New.
5965         (priority_list_find): New.
5966         (priority_queue_find): New.
5967         * priority_queue.h (priority_queue_predicate): New.
5968         (priority_queue_find): New.
5969         * task.c (gomp_init_task): Initialize detach field.
5970         (task_fulfilled_p): New.
5971         (GOMP_task): Add detach argument.  Ignore detach argument if
5972         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
5973         field.  Copy address of completion_sem into detach argument and
5974         into the start of the data record.  Wait for detach event if task
5975         not deferred.
5976         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
5977         Remove completed tasks and requeue dependent tasks.
5978         (omp_fulfill_event): New.
5979         * team.c (gomp_new_team): Initialize task_detach_queue and
5980         task_detach_count fields.
5981         (free_team): Free task_detach_queue field.
5982         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
5983         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
5984         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
5985         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
5986         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
5987         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
5988         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
5989         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
5990         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
5991         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
5992         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
5993         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
5995 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
5997         PR target/70454
5998         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
5999         be added through preprocessor check on
6000         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6002 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6004         PR libgomp/65099
6005         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6006         configurations.
6007         * configure: Regenerate.
6008         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6009         check.
6011 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6013         * configure: Re-generate.
6015 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6017         * configure: Re-generate.
6019 2021-01-05  Julian Brown  <julian@codesourcery.com>
6021         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6022         (struct ptx_device): Add omp_stacks struct.
6023         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6024         (nvptx_close_device): Free cached stacks block and mutex.
6025         (nvptx_stacks_free): New function.
6026         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6027         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6028         (nvptx_stacks_alloc): Rename to...
6029         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6030         size or smaller is required.
6031         (nvptx_stacks_free): Remove.
6032         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6033         during kernel execution.
6035 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6037         * libgomp.texi: Bump @copying's copyright year.
6039 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6041         * libgomp.texi (Top): Avoid bad "up" link.
6043 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6045         * testsuite/libgomp.c/task-6.c: New test.
6047 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6049         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6050         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6052 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6054         * testsuite/libgomp.fortran/scan-1.f90: New test.
6056 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6058         PR target/97865
6059         * configure: Regenerate.
6061 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6063         * configure: Regenerate.
6065 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6067         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6068         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6070 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6072         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6073         expected results.
6075 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6077         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6078         (reserved): Delete unused define.
6080 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6082         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6083         Tcl 8.5-specific behavior.
6084         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6086 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6088         * env.c (gomp_global_icv): Remove nest_var field.  Add
6089         max_active_levels_var field.
6090         (gomp_max_active_levels_var): Remove.
6091         (parse_boolean): Return true on success.
6092         (handle_omp_display_env): Express OMP_NESTED in terms of
6093         max_active_levels_var.  Change format specifier for
6094         max_active_levels_var.
6095         (initialize_env): Set max_active_levels_var from
6096         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6097         OMP_PROC_BIND.
6098         * icv.c (omp_set_nested): Express in terms of
6099         max_active_levels_var.
6100         (omp_get_nested): Likewise.
6101         (omp_set_max_active_levels): Use max_active_levels_var field instead
6102         of gomp_max_active_levels_var.
6103         (omp_get_max_active_levels): Likewise.
6104         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6105         max_active_levels_var field.
6106         (gomp_supported_active_levels): Set to UCHAR_MAX.
6107         (gomp_max_active_levels_var): Delete.
6108         * libgomp.texi (omp_get_nested): Update documentation.
6109         (omp_set_nested): Likewise.
6110         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6111         (OMP_NESTED): Likewise.
6112         (OMP_NUM_THREADS): Likewise.
6113         (OMP_PROC_BIND): Likewise.
6114         * parallel.c (gomp_resolve_num_threads): Replace reference
6115         to nest_var with max_active_levels_var.  Use max_active_levels_var
6116         field instead of gomp_max_active_levels_var.
6118 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6120         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6121         nvptx_usleep; use also for device={arch(gcn)}.
6123 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6125         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6126         (foo): Add tests for non-VLA private and firstprivate clauses on
6127         omp task.
6128         (bar): Likewise.  Remove taking of address from private/firstprivate
6129         variables.
6130         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6131         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6132         and for non-VLA private and firstprivate clauses on omp task.
6133         (bar): Removed.
6134         (main): Adjust foo caller.  Don't call bar.
6136 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6137             Thomas Schwinge  <thomas@codesourcery.com>
6139         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6140         New.
6141         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6142         Likewise.
6143         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6144         Likewise.
6145         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6146         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6148 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6149             Thomas Schwinge  <thomas@codesourcery.com>
6151         PR fortran/94358
6152         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6154 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6156         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6157         for array reductions.
6158         (main): Adjust foo callers.
6160 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6162         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6163         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6164         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6165         * allocator.c (omp_aligned_alloc): New for now static function,
6166         add alignment argument and handle it.
6167         (omp_alloc): Reimplement using omp_aligned_alloc.
6168         (GOMP_alloc, GOMP_free): New functions.
6169         (omp_free): Add ialias.
6170         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6171         * testsuite/libgomp.c++/allocate-1.C: New test.
6173 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6175         PR fortran/97782
6176         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6178 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6180         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6181         usable.
6182         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6183         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6184         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6185         (goacc_enter_data_internal): Likewise.
6186         * target.c (gomp_map_vars_internal):
6187         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6188         of gomp_attach_pointer for OpenMP cases.
6189         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6190         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6191         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6193 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6194             Kwok Cheung Yeung  <kcy@codesourcery.com>
6196         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6197         * Makefile.in: Regenerate.
6198         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6199         pragmas to ignore -Wdeprecated-declarations warnings.
6200         * icv.c: Likewise.
6201         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6202         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6203         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6204         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6205         deprecated.
6206         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6207         to test options.
6208         * testsuite/libgomp.c/affinity-1.c: Likewise.
6209         * testsuite/libgomp.c/affinity-2.c: Likewise.
6210         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6211         * testsuite/libgomp.c/lib-1.c: Likewise.
6212         * testsuite/libgomp.c/nested-1.c: Likewise.
6213         * testsuite/libgomp.c/nested-2.c: Likewise.
6214         * testsuite/libgomp.c/nested-3.c: Likewise.
6215         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6216         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6217         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6218         * testsuite/libgomp.c/pr35549.c: Likewise.
6219         * testsuite/libgomp.c/pr42942.c: Likewise.
6220         * testsuite/libgomp.c/pr61200.c: Likewise.
6221         * testsuite/libgomp.c/sort-1.c: Likewise.
6222         * testsuite/libgomp.c/target-5.c: Likewise.
6223         * testsuite/libgomp.c/target-6.c: Likewise.
6224         * testsuite/libgomp.c/teams-1.c: Likewise.
6225         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6226         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6227         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6228         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6229         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6230         * testsuite/libgomp.fortran/lib2.f: Likewise.
6231         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6232         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6234 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6236         PR target/85486
6237         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6238         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6239         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6241 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6243         PR testsuite/80219
6244         PR testsuite/85303
6245         * testsuite/lib/libgomp.exp (libgomp_init): Set
6246         'gcc_warning_prefix', 'gcc_error_prefix'.
6248 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6250         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6251         even in field_tgt_clear initializer.
6253 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6255         * testsuite/libgomp.c/target-42.c: New test.
6257 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6258             Tom de Vries  <tdevries@suse.de>
6260         PR testsuite/81690
6261         * testsuite/libgomp.c/usleep.h: New file.
6262         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6263         (main): Use tgt_usleep instead of usleep.
6264         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6265         (main): Use tgt_usleep instead of usleep.
6267 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6269         PR lto/96680
6270         * testsuite/libgomp.c/declare-variant-1.c: New test.
6272 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6274         * testsuite/libgomp.c/target-41.c: New test.
6276 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6278         * icv.c (omp_get_initial_device): Remove including corresponding
6279         ialias.
6280         * icv-device.c (omp_get_initial_device): New function.  Return
6281         gomp_get_num_devices ().  Add ialias.
6282         * target.c (resolve_device): Don't fail with
6283         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6284         gomp_get_num_devices ().
6285         (omp_target_alloc, omp_target_free, omp_target_is_present,
6286         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6287         omp_target_disassociate_ptr, omp_pause_resource): Use
6288         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6289         first use in the functions, in uses dominated by the
6290         gomp_get_num_devices call use num_devices_openmp instead.
6291         * libgomp.texi (omp_get_initial_device): Document.
6292         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6293         Add ialias.
6294         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6295         * testsuite/libgomp.c/target-40.c: New test.
6297 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6299         * env.c (parse_target_offload): Change new_offload var type to int,
6300         preinitialize to -1, remove found var and test new_offload != -1
6301         instead of found.
6303 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6305         * target.c (gomp_target_init): Inside of the function, use automatic
6306         variables corresponding to num_devices, num_devices_openmp and devices
6307         global variables and update the globals only at the end of the
6308         function.
6310 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6312         * env.c (gomp_target_offload_var): New.
6313         (parse_target_offload): New.
6314         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6315         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6316         * libgomp.h (gomp_target_offload_t): New.
6317         (gomp_target_offload_var): New.
6318         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6319         * target.c (resolve_device): Generate error if device not found and
6320         offloading is mandatory.
6321         (gomp_target_fallback): Generate error if offloading is mandatory.
6322         (GOMP_target): Add argument in call to gomp_target_fallback.
6323         (GOMP_target_ext): Likewise.
6324         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6325         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6326         (GOMP_target_data_ext): Likewise.
6327         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6328         (gomp_target_init): Return early if offloading is disabled.
6330 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6332         * libgomp.texi (omp_get_max_active_levels): Modify description.
6333         (omp_get_supported_active_levels): Make descriptions consistent.
6335 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6337         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6339 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6341         * env.c (gomp_max_active_levels_var): Initialize to
6342         gomp_supported_active_levels.
6343         (initialize_env): Limit gomp_max_active_levels_var to be at most
6344         equal to gomp_supported_active_levels.
6345         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6346         (omp_get_supported_active_levels_): New.
6347         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6348         to at most equal to gomp_supported_active_levels.
6349         (omp_get_supported_active_levels): New.
6350         * libgomp.h (gomp_supported_active_levels): New.
6351         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6352         omp_get_supported_active_levels_.
6353         * libgomp.texi (omp_get_supported_active_levels): New.
6354         (omp_set_max_active_levels): Update.  Add reference to
6355         omp_get_supported_active_levels.
6356         * omp.h.in (omp_get_supported_active_levels): New.
6357         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6358         * omp_lib.h.in (omp_get_supported_active_levels): New.
6359         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6360         against omp_get_supported_active_levels.
6361         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6363 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6365         * config/t-aix: Delete and recreate libgomp before creating
6366         FAT library.
6368 2020-10-08  Tom de Vries  <tdevries@suse.de>
6370         PR libgomp/81802
6371         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6372         dimensions.
6374 2020-10-06  Tom de Vries  <tdevries@suse.de>
6376         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6378 2020-10-06  Tom de Vries  <tdevries@suse.de>
6380         PR middle-end/90861
6381         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6383 2020-10-05  Tom de Vries  <tdevries@suse.de>
6385         PR fortran/95654
6386         * testsuite/libgomp.fortran/pr95654.f90: New test.
6388 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6390         * Makefile.in: Regenerate with automake 1.15.1.
6391         * aclocal.m4: Likewise.
6392         * configure: Likewise.
6393         * testsuite/Makefile.in: Likewise.
6395 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6397         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6398         and amdgcn targets.
6400 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6402         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6404 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6406         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6407         total number of threads is one.
6408         (gomp_team_barrier_wake): Likewise.
6409         (gomp_team_barrier_wait_end): Likewise.
6410         (gomp_team_barrier_wait_cancel_end): Likewise.
6411         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6412         (gomp_team_barrier_wake): Likewise.
6413         (gomp_team_barrier_wait_end): Likewise.
6414         (gomp_team_barrier_wait_cancel_end): Likewise.
6415         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6417 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6419         PR middle-end/96390
6420         * testsuite/libgomp.c++/pr96390.C: New test.
6421         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6423 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6425         * config/t-aix: Use $(AR) without -X32_64.
6427 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6429         * testsuite/libgomp.c/loop-25.c: New test.
6431 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6433         PR fortran/95654
6434         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6436 2020-09-22  Tom de Vries  <tdevries@suse.de>
6438         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6439         fails.
6441 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6443         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6445 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6447         PR fortran/96668
6448         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6450 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6452         PR fortran/96668
6453         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6454         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6455         (gomp_map_vars_existing): Update call to it.
6456         (gomp_map_fields_existing): Likewise
6457         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6458         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6459         remapped.
6460         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6461         GOMP_MAP_POINTER.
6462         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6463         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6465 2020-09-14  Tom de Vries  <tdevries@suse.de>
6467         * config/nvptx/atomic.c: New file.  Add
6468         __sync_val_compare_and_swap_16.
6469         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6470         target offload_target_nvptx.
6472 2020-09-08  Julian Brown  <julian@codesourcery.com>
6474         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6475         iteration-ordering assumptions.
6477 2020-09-08  Julian Brown  <julian@codesourcery.com>
6479         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6480         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6482 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6484         * plugin/plugin-nvptx.c (nvptx_free):
6485         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6486         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6487         comments.
6489 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6491         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6493 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6495         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6497 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6499         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6500         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6501         * testsuite/libgomp.c/loop-24.c: New test.
6503 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6504             Tobias Burnus  <tobias@codesourcery.com>
6506         PR fortran/93553
6507         * testsuite/libgomp.fortran/pr93553.f90: New test.
6509 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6511         * testsuite/libgomp.c/loop-22.c: New test.
6512         * testsuite/libgomp.c/loop-23.c: New test.
6514 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6516         PR middle-end/96459
6517         * testsuite/libgomp.c/teams-3.c: New test.
6518         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6519         if not defined yet.
6520         (N(test)): Use it before all N(f*) calls.
6521         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6522         (main): Don't call all test_* functions from within
6523         #pragma omp teams reduction(|:err), call them directly.
6525 2020-08-04  Tom de Vries  <tdevries@suse.de>
6527         PR target/96428
6528         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
6529         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
6531 2020-08-03  Julian Brown  <julian@codesourcery.com>
6532             Thomas Schwinge  <thomas@codesourcery.com>
6534         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
6535         shared-memory devices.  Extend with further checking.
6537 2020-08-03  Martin Jambor  <mjambor@suse.cz>
6539         * plugin/Makefrag.am: Remove configuration of HSA plugin.
6540         * aclocal.m4: Regenerated.
6541         * Makefile.in: Regenerated.
6542         * config.h.in: Regenerated.
6543         * configure: Regenerated.
6544         * plugin/configfrag.ac: Likewise.
6545         * plugin/hsa_ext_finalize.h: Removed.
6546         * plugin/plugin-hsa.c: Likewise.
6547         * testsuite/Makefile.in: Regenerated.
6548         * testsuite/lib/libgomp.exp
6549         (offload_target_to_openacc_device_type): Remove hsa case.
6550         (check_effective_target_hsa_offloading_selected_nocache): Removed
6551         (check_effective_target_hsa_offloading_selected): Likewise.
6552         (libgomp_init): Do not add -Wno-hsa to additional_flags.
6553         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
6554         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
6555         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
6556         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
6557         * testsuite/libgomp.hsa.c/c.exp: Likewise.
6558         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
6559         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
6560         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
6561         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
6562         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
6563         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
6564         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
6565         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
6566         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
6567         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
6568         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
6569         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
6570         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
6571         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
6572         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
6573         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
6574         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
6575         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6576         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6578 2020-07-27  Julian Brown  <julian@codesourcery.com>
6579             Thomas Schwinge  <thomas@codesourcery.com>
6581         * libgomp.h (struct target_var_desc): Rename do_detach field to
6582         is_attach.
6583         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
6584         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
6585         (goacc_enter_data_internal): Don't affect reference counts
6586         for attach mappings.
6587         (goacc_exit_data_internal): Don't affect reference counts for detach
6588         mappings.
6589         * target.c (gomp_map_vars_existing): Don't affect reference counts for
6590         attach mappings.
6591         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
6592         mark attach mappings.
6593         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
6594         reference count for attach mappings.
6595         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
6596         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6597         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
6598         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
6599         test as shouldfail.
6600         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
6601         gracefully in no-finalize mode.
6602         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
6604 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
6606         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
6607         use.
6608         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6609         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6611 2020-07-23  Julian Brown  <julian@codesourcery.com>
6612             Thomas Schwinge  <thomas@codesourcery.com>
6614         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
6615         finalization for detach operation.
6616         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
6617         New test.
6619 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
6621         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
6622         * libgomp_f.h.in (omp_check_defines): Check whether
6623         sizeof of determined Fortran kind and C typedef match.
6624         * omp_lib.f90.in: Add omp_depened_kind.
6625         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
6626         * configure: Regenerate.
6627         * Makefile.in: Regenerate.
6628         * testsuite/Makefile.in: Regenerate.
6630 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6632         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
6633         gcc/testsuite/c-c++-common/gomp/.
6634         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
6635         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
6636         from gcc/testsuite/gfortran.dg/gomp/.
6637         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
6639 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
6641         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
6642         * omp_lib.h.in: Likewise.
6644 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
6646         PR target/95620
6647         * testsuite/libgomp.c/pr95620.c: New test.
6649 2020-07-16  Julian Brown  <julian@codesourcery.com>
6650             Thomas Schwinge  <thomas@codesourcery.com>
6652         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
6653         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
6655 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6657         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
6658         avoid conversion on 32bit systems from 32bit to 64bit due
6659         to -fdefault-integer-8.
6661 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6663         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
6664         variables; add character(kind=4) tests; update TODO comment.
6666 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
6668         * allocator.c: Add ialias for omp_init_allocator and
6669         omp_destroy_allocator.
6670         * configure.ac: Set INTPTR_T_KIND.
6671         * configure: Regenerate.
6672         * Makefile.in: Regenerate.
6673         * testsuite/Makefile.in: Regenerate.
6674         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
6675         omp_set_default_allocator_, omp_get_default_allocator_): New
6676         functions and ialias_redirect.
6677         * icv.c: Add ialias for omp_set_default_allocator and
6678         omp_get_default_allocator.
6679         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
6680         omp_destroy_allocator_, omp_set_default_allocator_ and
6681         omp_get_default_allocator_.
6682         * omp_lib.f90.in: Add allocator traits parameters, declare
6683         allocator routines and add related kind parameters.
6684         * omp_lib.h.in: Likewise.
6685         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
6686         * testsuite/libgomp.fortran/alloc-1.F90: New test.
6687         * testsuite/libgomp.fortran/alloc-2.F90: New test.
6688         * testsuite/libgomp.fortran/alloc-3.F: New test.
6689         * testsuite/libgomp.fortran/alloc-4.f90: New test.
6690         * testsuite/libgomp.fortran/alloc-5.f90: New test.
6692 2020-07-14  Tom de Vries  <tom@codesourcery.com>
6693             Cesar Philippidis  <cesar@codesourcery.com>
6694             Thomas Schwinge  <thomas@codesourcery.com>
6695             Kwok Cheung Yeung  <kcy@codesourcery.com>
6697         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
6698         New variable.
6699         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
6700         acc_init_state to initializing at the start, and to initialized at the
6701         end.
6702         (self_initializing_p): New function.
6703         (acc_get_device_type): Return acc_device_none if called by thread that
6704         is currently executing acc_init_1.
6705         * libgomp.texi (acc_get_device_type): Update documentation.
6706         (Implementation Status and Implementation-Defined Behavior): Likewise.
6707         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
6709 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
6711         * config/t-aix: Set BITS from compiler cpp macro.
6713 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6715         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
6717 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
6719         PR fortran/67311
6720         * testsuite/libgomp.fortran/target-map-1.f90: New test.
6722 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
6724         * testsuite/libgomp.c/loop-21.c: New test.
6726 2020-07-13  Julian Brown  <julian@codesourcery.com>
6727             Thomas Schwinge  <thomas@codesourcery.com>
6729         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
6731 2020-07-10  Julian Brown  <julian@codesourcery.com>
6732             Thomas Schwinge  <thomas@codesourcery.com>
6734         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
6735         dynamic_refcount.
6736         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
6737         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
6738         dynamic_refcount.
6739         (acc_unmap_data): Update comment.
6740         (goacc_map_var_existing, goacc_enter_datum): Adjust for
6741         dynamic_refcount semantics.
6742         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
6743         Adjust for dynamic_refcount semantics.
6744         (goacc_enter_data_internal): Implement "present" case of dynamic
6745         memory-map handling here.  Update "non-present" case for
6746         dynamic_refcount semantics.
6747         (goacc_exit_data_internal): Use goacc_exit_datum_1.
6748         * target.c (gomp_map_vars_internal): Remove
6749         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
6750         handling.
6751         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
6752         (gomp_load_image_to_device): Substitute dynamic_refcount for
6753         virtual_refcount.
6754         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
6755         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
6756         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
6757         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
6758         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
6759         trace output.
6760         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
6761         trace output.
6762         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
6763         test.
6764         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
6765         Remove stale comment.
6766         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
6767         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6768         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6769         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6770         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6771         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
6773 2020-07-10  Julian Brown  <julian@codesourcery.com>
6774             Thomas Schwinge  <thomas@codesourcery.com>
6776         * oacc-mem.c (goacc_map_var_existing): New function.
6777         (goacc_enter_datum): Use above function.
6778         (goacc_exit_datum_1): New function.
6779         (goacc_exit_datum): Use above function.
6781 2020-07-09  Julian Brown  <julian@codesourcery.com>
6782             Thomas Schwinge  <thomas@codesourcery.com>
6784         PR middle-end/95270
6785         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
6786         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
6788 2020-07-09  Julian Brown  <julian@codesourcery.com>
6790         * oacc-mem.c (find_group_last): Group data-movement clauses
6791         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
6792         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
6794 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6796         * testsuite/libgomp.c/loop-19.c: New test.
6797         * testsuite/libgomp.c/loop-20.c: New test.
6799 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
6801         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
6802         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
6803         it.  Remove __omp_alloctrait_value_max__.
6804         * allocator.c (omp_init_allocator): Handle omp_atv_default for
6805         omp_atk_alignment and omp_atk_pool_size.
6807 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6809         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
6810         behavior for 'GOMP_MAP_FORCE_FROM'.
6811         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
6813 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6815         * oacc-mem.c (goacc_exit_data_internal): Remove
6816         'GOMP_MAP_ALWAYS_FROM' handling.
6818 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6820         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
6821         'scan-assembler' with 'scan-offload-rtl'.
6822         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6823         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
6824         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
6825         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
6827 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
6829         * target.c (gomp_map_vars_existing): Assert 'kind !=
6830         GOMP_MAP_ATTACH'.
6831         (gomp_map_vars_internal): Clean up.
6833 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
6835         * testsuite/libgomp.c/loop-17.c: New test.
6836         * testsuite/libgomp.c/loop-18.c: New test.
6838 2020-06-26  Marek Polacek  <polacek@redhat.com>
6840         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
6842 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
6844         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
6845         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
6847 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
6849         * Makefile.am: Use -include.
6850         * Makefile.in: Regenerate.
6852 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
6854         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
6855         * Makefile.in: Regenerate
6856         * configure.ac (tmake_file): Substitute.
6857         * configure: Regenerate.
6858         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
6859         * config/t-aix: New file.
6861 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
6863         PR lto/94848
6864         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
6865         'dg-do run'.
6867 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
6869         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
6870         variant for HSA_RUNTIME_LIB name.
6871         (find_executable_symbol_1): Delete.
6872         (find_executable_symbol): Delete.
6873         (init_kernel_properties): Add ".kd" suffix to symbol names.
6874         (find_load_offset): Delete.
6875         (create_and_finalize_hsa_program): Remove relocation handling.
6877 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
6879         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
6881 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
6883         PR lto/94848
6884         PR middle-end/95551
6885         * testsuite/libgomp.fortran/target-var.f90: New test.
6887 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6888             Julian Brown  <julian@codesourcery.com>
6890         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
6891         special handling.
6893 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
6894             Julian Brown  <julian@codesourcery.com>
6896         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6897         Simplify.
6899 2020-06-05  Julian Brown  <julian@codesourcery.com>
6901         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
6902         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
6904 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6906         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6907         Evaluate 'copyfrom' individually for each entry.
6908         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
6910 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6912         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
6913         Evaluate 'finalize' individually for each entry.
6914         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
6915         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
6916         file.
6918 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6920         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
6921         usage.
6922         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
6924 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6925             Julian Brown  <julian@codesourcery.com>
6927         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
6928         checking.
6929         (acc_unmap_data, goacc_exit_data_internal): Restore
6930         'is_tgt_unmapped' checking.
6931         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
6932         file.
6933         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
6934         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6935         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6936         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6937         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6938         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6940 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6941             Julian Brown  <julian@codesourcery.com>
6943         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
6945 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6947         PR libgomp/92854
6948         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
6950 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6952         PR libgomp/92854
6953         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
6954         more.
6956 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6957             Julian Brown  <julian@codesourcery.com>
6959         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
6960         'gomp_map_vars'.
6961         (acc_map_data): Clean up accordingly.
6963 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6965         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
6966         of over-eager 'finalize' clause.
6967         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
6968         file.
6969         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
6970         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
6971         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
6972         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
6973         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
6974         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
6975         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
6976         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
6978 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6980         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
6982 2020-06-04  Julian Brown  <julian@codesourcery.com>
6984         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
6985         error path.
6986         (goacc_detach_internal): Likewise.
6988 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
6990         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
6991         the checkpoint.
6992         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6993         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6994         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6995         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6996         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6998 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7000         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7001         defined.
7003 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7005         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7007 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7009         * allocator.c (omp_alloc): For size == 0, return NULL early.
7011 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7013         PR bootstrap/95413
7014         * configure: Regenerated.
7016 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7018         PR libfortran/95191
7019         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7021 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7023         * omp.h.in (omp_uintptr_t): New typedef.
7024         (__GOMP_UINTPTR_T_ENUM): Define.
7025         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7026         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7027         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7028         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7029         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7030         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7031         (gomp_def_allocator): Declare.
7032         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7033         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7034         omp_alloc and omp_free.
7035         * team.c (gomp_team_start): Copy over ts.def_allocator.
7036         * env.c (gomp_def_allocator): New variable.
7037         (parse_wait_policy): Adjust function comment.
7038         (parse_allocator): New function.
7039         (handle_omp_display_env): Print OMP_ALLOCATOR.
7040         (initialize_env): Call parse_allocator.
7041         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7042         * allocator.c: New file.
7043         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7044         functions.
7045         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7046         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7047         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7048         * Makefile.in: Regenerated.
7050 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7052         PR bootstrap/95147
7053         * configure: Regenerated.
7055 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7057         PR libfortran/95119
7058         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7060 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7062         * configure: Regenerated.
7064 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7066         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7068 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7070         PR fortran/94690
7071         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7072         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7073         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7074         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7075         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7076         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7077         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7079 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7081         * testsuite/libgomp.c/target-39.c: New test.
7083 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7085         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7086         * openacc.f90 (acc_device_current): Likewise.
7087         * openacc.h (acc_device_current): Likewise.
7088         * openacc_lib.h (acc_device_current): Likewise.
7090         PR target/94282
7091         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7092         'dg-allow-blank-lines-in-output'.
7094         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7095         * testsuite/lib/libgomp.exp
7096         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7097         'radeon'.  Adjust all users.
7098         (check_effective_target_openacc_amdgcn_accel_present): Rename
7099         to...
7100         (check_effective_target_openacc_radeon_accel_present): ... this.
7101         Adjust all users.
7102         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7103         (check_effective_target_openacc_radeon_accel_selected): ... this.
7104         Adjust all users.
7106         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7107         'dg-do run'.
7109 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7111         PR other/94629
7113         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7114         hsa_iterate_agents.
7115         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7116         hsa_agent_iterate_regions.
7118 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7120         PR middle-end/94635
7121         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7122         run'.
7124 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7126         PR middle-end/94120
7127         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7128         test case.
7130 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7132         PR middle-end/94635
7133         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7135 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7137         PR libgomp/92843
7138         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7139         Rename to...
7140         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7141         ... this.
7142         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7143         Rename to...
7144         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7145         ... this.
7146         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7147         Rename to...
7148         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7149         ... this.
7150         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7151         Rename to...
7152         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7153         ... this.
7154         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7155         Rename to...
7156         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7157         ... this.
7158         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7159         Rename to...
7160         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7161         ... this.
7162         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7163         Rename to...
7164         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7165         ... this.
7166         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7167         Rename to...
7168         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7169         ... this.
7170         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7171         Rename to...
7172         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7173         ... this.
7174         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7175         Rename to...
7176         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7177         ... this.
7178         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7179         Rename to...
7180         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7181         ... this.
7182         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7183         Rename to...
7184         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7185         ... this.
7186         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7187         Rename to...
7188         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7189         ... this.
7190         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7191         Rename to...
7192         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7193         ... this.
7194         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7195         Rename to...
7196         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7197         ... this.
7198         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7199         Rename to...
7200         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7201         ... this.
7203 2020-04-10  Julian Brown  <julian@codesourcery.com>
7204             Thomas Schwinge  <thomas@codesourcery.com>
7206         PR libgomp/92843
7207         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7208         New file.
7209         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7210         Likewise.
7211         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7212         Likewise.
7213         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7214         Likewise.
7215         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7216         Likewise.
7217         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7218         Likewise.
7219         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7220         Likewise.
7221         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7222         Likewise.
7223         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7224         Likewise.
7225         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7226         Likewise.
7227         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7228         Likewise.
7229         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7230         Likewise.
7231         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7232         Likewise.
7233         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7234         Likewise.
7235         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7236         Likewise.
7237         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7238         Likewise.
7240 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7242         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7243         run'.
7245 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7247         PR middle-end/94120
7248         * libgomp.oacc-c++/declare-pr94120.C: New.
7250 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7252         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7253         files.
7254         * configure: Regenerate.
7255         * testsuite/libgomp-site-extra.exp.in: New file.
7256         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7257         variable.
7258         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7259         variable.
7260         * testsuite/Makefile.in: Regenerate.
7262 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7264         PR tree-optimization/89713
7265         PR c/94392
7266         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7267         'bar.sync'.
7268         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7270 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7272         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7273         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7275 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7277         PR libgomp/81689
7278         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7280 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7282         PR libgomp/94251
7283         * target.c (gomp_load_image_to_device): Fix link
7284         variable handling.
7286 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7288         PR c++/93931
7289         * testsuite/libgomp.c++/pr93931.C: New test.
7291 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7293         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7294         dg-allow-blank-lines-in-output.
7296 2020-03-18  Julian Brown <julian@codesourcery.com>
7297             Tobias Burnus  <tobias@codesourcery.com>
7299         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7300         it work concurrently.
7302 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7304         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7305         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7306         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7308 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7310         PR middle-end/93566
7311         * testsuite/libgomp.c/pr93566.c: New test.
7313 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7315         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7316         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7317         integer(acc_device_property) for the type of the return value of
7318         acc_get_property.
7320 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7322         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7323         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7324         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7325         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7326         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7327         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7328         corrections; add note about the previous interface and named constant.
7329         (OpenACC library and environment variables): Fix two typos.
7330         * openacc.f90: Use for all procedures the argument names from the spec
7331         as for â€¦_h they are user visible.
7332         (openacc_kinds): Rename acc_device_property to
7333         acc_device_property_kinds and change value to int32 ; and update users.
7334         Re-add acc_device_property for for backward compatibility.
7335         (acc_get_property_string_h): Clean up as acc_device_property_kind
7336         changed.
7337         (acc_get_property_h): Likewise and return c_size_t instead of
7338         acc_device_property.
7339         (openacc): Also export acc_device_property_kinds.
7340         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7341         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7342         handling; check against /= 0 instead of == 1 to match C.
7343         * openacc_lib.h: Use for all procedures the argument names from the spec
7344         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7345         be active also for fixed-form souce form.
7346         (acc_device_current, acc_device_property_kind, acc_device_property,
7347         acc_property_memory, acc_property_free_memory, acc_property_name,
7348         acc_property_vendor, acc_property_driver): New named constants.
7349         (acc_get_property, acc_get_property_string): New generic interface.
7351 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7353         PR libgomp/93481
7354         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7355         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7356         optional.
7357         (gomp_target_task_fn): Assert "devicep->async_run_func".
7358         (clear_unsupported_flags): New function to remove unsupported flags
7359         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7360         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7361         * testsuite/libgomp.c/target-33.c:
7362         Remove xfail for offload_target_nvptx.
7363         * testsuite/libgomp.c/target-34.c: Likewise.
7365 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7367         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7368         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7369         * testsuite/libgomp.c/target-34.c: Likewise.
7370         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7371         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7373 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7375         * testsuite/libgomp.c/target-38.c: New test.
7377 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7379         PR libgomp/93515
7380         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7382 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7384         * testsuite/lib/libgomp.exp
7385         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7386         and not as 'source' argument to libgomp_target_compile.
7388 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7390         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7391         (gcn_gfx801_s): Remove.
7392         (isa_hsa_name): Remove gfx801.
7393         (isa_gcc_name): Remove gfx801/carizzo.
7394         (isa_code): Remove gfx801.
7396 2020-02-03  Julian Brown  <julian@codesourcery.com>
7397             Tobias Burnus  <tobias@codesourcery.com>
7399         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7400         and *_finalize variants; document acc_attach and acc_detach; update
7401         references from OpenACC 2.0 to 2.6.
7402         * openacc.f90 (openacc_version): Update to 201711.
7403         * openacc_lib.h (openacc_version): Update to 201711.
7404         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7405         openacc_version to 201711.
7406         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7408 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7410         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7411         and vgpr_count fields.
7412         (struct kernel_info): Add a field for a hsa_kernel_description.
7413         (run_kernel): Reduce the number of threads/workers if the requested
7414         number would require too many VGPRs.
7415         (init_basic_kernel_info): Initialize description field with
7416         the hsa_kernel_description entry for the kernel.
7418 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7420         PR bootstrap/93409
7421         * plugin/configfrag.ac (enable_offload_targets): Skip
7422         HSA and GCN plugin besides -m32 also for -mx32.
7423         * configure: Regenerate.
7425 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7427         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7429 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7431         * plugin-gcn.c (struct agent_info): Add fields "name" and
7432         "vendor_name" ...
7433         (GOMP_OFFLOAD_init_device): ... and init from here.
7434         (struct hsa_context_info): Add field "driver_version_s" ...
7435         (init_hsa_contest): ... and init from here.
7436         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7437         implementation.
7438         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7439         Enable test execution for amdgcn and host offloading targets.
7440         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7441         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7442         (expect_device_properties): Split function into ...
7443         (expect_device_string_properties): ... this new function ...
7444         (expect_device_memory): ... and this new function.
7445         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7446         Add test.
7448 2020-01-28  Julian Brown  <julian@codesourcery.com>
7450         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7451         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7452         component/non-component variable refs in a single directive.
7453         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7455 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7457         * configure.ac: Handle `--with-toolexeclibdir='.
7458         * Makefile.in: Regenerate.
7459         * aclocal.m4: Regenerate.
7460         * configure: Regenerate.
7461         * testsuite/Makefile.in: Regenerate.
7463 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7465         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7466         (expect_device_properties): Remove "expected_free_mem" argument,
7467         change "expected_total_mem" argument type to size_t;
7468         change types of acc_get_property results to size_t,
7469         adapt format strings.
7470         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7471         Use %zu instead of %zd to print size_t values.
7472         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7473         rename to ...
7474         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7475         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7476         rename to ...
7477         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7479 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7481         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7482         the device id.
7484 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7486         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7487         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7488         Adjust test dimensions for amdgcn.
7489         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7490         gang/worker/vector expectations dynamically.
7491         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7492         (main): Likewise.
7493         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7494         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7495         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7496         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7497         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7498         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7499         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7500         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7501         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7502         (acc_gang): Recognise acc_device_radeon.
7503         (acc_worker): Likewise.
7504         (acc_vector): Likewise.
7505         (main): Set expectations for amdgcn.
7506         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7507         (main): Adjust gang/worker/vector expectations dynamically.
7508         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7509         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7510         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7511         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7512         for amdgcn.
7514 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7516         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7517         acc_device_radeon.
7518         (openacc): Likewise.
7519         * openacc.f90 (openacc_kinds): Likewise.
7520         (openacc): Likewise.
7521         * openacc.h (acc_device_t): Likewise.
7522         * openacc_lib.h: Likewise.
7523         * testsuite/lib/libgomp.exp
7524         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7525         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7526         (cb_compute_construct_end): Likewise.
7527         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7528         (cb_enqueue_launch_start): Likewise.
7529         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
7530         (cb_enter_data_end): Likewise.
7531         (cb_exit_data_start): Likewise.
7532         (cb_exit_data_end): Likewise.
7533         (cb_compute_construct_end): Likewise.
7534         (cb_enqueue_launch_start): Likewise.
7535         (cb_enqueue_launch_end): Likewise.
7536         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
7537         (main): Likewise.
7539 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
7541         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
7542         to use this instead of 'enum gomp_device_property'.
7543         (GOMP_OFFLOAD_get_property): Rename to...
7544         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
7545         * libgomp.h (struct gomp_device_descr): Move
7546         'GOMP_OFFLOAD_openacc_get_property'...
7547         (struct acc_dispatch_t): ... here.  Adjust all users.
7548         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
7550         * target.c (gomp_map_vars_internal)
7551         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
7552         paths.
7554 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
7556         PR libgomp/93219
7557         * libgomp.h (gomp_print_string): Change return type from void to int.
7558         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
7559         not all characters have been written.
7561 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
7563         * libgomp.texi: Fix typos, use https.
7565 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
7567         * testsuite/libgomp.fortran/optional-map.f90: Add test for
7568         unallocated/disassociated actual arguments to nonallocatable/nonpointer
7569         dummy arguments; those are/shall be regarded as absent arguments.
7570         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
7571         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
7573 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
7575         Update copyright years.
7577         * libgomp.texi: Bump @copying's copyright year.
7579 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
7581         PR libgomp/93065
7582         * oacc-init.c (goacc_runtime_deinitialize): New function.
7584 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
7586         PR bootstrap/93074
7587         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
7588         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
7590 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
7591             Frederik Harwath  <frederik@codesourcery.com>
7592             Thomas Schwinge  <tschwinge@codesourcery.com>
7594         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
7595         * libgomp-plugin.h (gomp_device_property_value): New union.
7596         (gomp_device_property_value): New prototype.
7597         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
7598         constant.
7599         (acc_device_property_t): New enum.
7600         (acc_get_property, acc_get_property_string): New prototypes.
7601         * oacc-init.c (acc_get_device_type): Also assert that result
7602         is not `acc_device_current'.
7603         (get_property_any, acc_get_property, acc_get_property_string):
7604         New functions.
7605         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
7606         `acc_property_memory', `acc_property_free_memory',
7607         `acc_property_name', `acc_property_vendor' and
7608         `acc_property_driver' constants.  Add `acc_device_property' data
7609         type.
7610         (openacc_internal): Add `acc_get_property' and
7611         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
7612         `acc_get_property_string_h', `acc_get_property_l' and
7613         `acc_get_property_string_l'.
7614         * oacc-host.c (host_get_property): New function.
7615         (host_dispatch): Wire it.
7616         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
7617         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
7618         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
7619         * libgomp.texi (OpenACC Runtime Library Routines): Add
7620         `acc_get_property'.
7621         (acc_get_property): New node.
7622         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
7623         function (stub).
7624         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
7625         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
7626         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
7627         calls.
7628         (GOMP_OFFLOAD_get_property): New function.
7629         (struct ptx_device): Add new field "name".
7630         (cuda_driver_version_s): Add new static variable ...
7631         (nvptx_init): ... and init from here.
7633         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
7634         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
7635         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
7636         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
7637         with test helper functions.
7639         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
7641 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
7643         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
7644         variable.
7646 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
7648         * target.c (gomp_map_vars_internal): Restore 'omp declare target
7649         link' handling.
7651 2019-12-19  Julian Brown  <julian@codesourcery.com>
7653         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
7654         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
7655         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
7657 2019-12-19  Julian Brown  <julian@codesourcery.com>
7658             Cesar Philippidis  <cesar@codesourcery.com>
7660         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
7661         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
7662         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
7663         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
7664         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
7665         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
7666         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
7667         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
7668         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
7669         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
7670         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
7671         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
7672         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
7674 2019-12-19  Julian Brown  <julian@codesourcery.com>
7676         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
7677         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
7678         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
7679         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
7680         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
7681         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
7682         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
7683         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
7684         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
7685         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
7686         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
7687         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
7689 2019-12-19  Julian Brown  <julian@codesourcery.com>
7691         * libgomp.h (struct target_var_desc): Add do_detach flag.
7692         * oacc-init.c (acc_shutdown_1): Free aux block if present.
7693         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
7694         struct components.  Tidy up and add some new checks.
7695         (goacc_enter_data_internal): Update call to find_group_last.
7696         (goacc_exit_data_internal): Support detach operations and
7697         GOMP_MAP_STRUCT.
7698         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
7699         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
7700         attach/detach in enter/exit data detection code.
7701         * target.c (gomp_map_vars_existing): Initialise do_detach field of
7702         tgt_var_desc.
7703         (gomp_map_vars_internal): Support attach.
7704         (gomp_unmap_vars_internal): Support detach.
7706 2019-12-19  Julian Brown  <julian@codesourcery.com>
7707             Thomas Schwinge  <thomas@codesourcery.com>
7709         * libgomp.h (struct splay_tree_aux): Add attach_count field.
7710         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
7711         * libgomp.map (OACC_2.6): New section. Add acc_attach,
7712         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
7713         acc_detach_finalize_async.
7714         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
7715         acc_detach, acc_detach_async, acc_detach_finalize,
7716         acc_detach_finalize_async): New functions.
7717         * openacc.h (acc_attach, acc_attach_async, acc_detach,
7718         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
7719         prototypes.
7720         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
7721         (gomp_remove_var_internal): Free attachment counts if present.
7722         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
7723         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
7725 2019-12-19  Julian Brown  <julian@codesourcery.com>
7726             Cesar Philippidis  <cesar@codesourcery.com>
7728         * libgomp.h (gomp_map_val): Add prototype.
7729         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
7730         open-coding device-address calculation.
7731         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
7732         non-present case.
7734 2019-12-19  Julian Brown  <julian@codesourcery.com>
7736         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
7737         field for virtual_refcount.
7738         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7739         (gomp_free_memmap): Remove prototype.
7740         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
7741         instead of calling gomp_free_memmap.
7742         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
7743         dynamic_refcount.
7744         (acc_unmap_data): Open code instead of forcing target_mem_desc's
7745         to_free field to NULL then calling gomp_unmap_vars.  Handle
7746         REFCOUNT_INFINITY on target blocks.
7747         (goacc_enter_data): Rename to...
7748         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
7749         handling for mapping groups.  Use virtual_refcount instead of
7750         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
7751         map_map_vars_async call.  Re-do lookup for target pointer return value.
7752         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
7753         renamed goacc_enter_datum function.
7754         (goacc_exit_data): Rename to...
7755         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
7756         (acc_delete, acc_delete_async, acc_delete_finalize,
7757         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
7758         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
7759         goacc_exit_datum function.
7760         (gomp_acc_remove_pointer, find_pointer): Remove functions.
7761         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
7762         New functions.
7763         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
7764         goacc_exit_data_internal helper functions.
7765         * target.c (gomp_map_vars_internal): Handle
7766         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
7767         semantics.
7768         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
7769         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
7770         virtual_refcount field instead of dynamic_refcount.
7771         (gomp_free_memmap): Remove function.
7772         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
7773         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
7774         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
7776 2019-12-19  Julian Brown  <julian@codesourcery.com>
7777             Thomas Schwinge  <thomas@codesourcery.com>
7779         * libgomp.h (struct splay_tree_aux): New.
7780         (struct splay_tree_key_s): Replace link_key field with aux pointer.
7781         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
7782         to aux struct.
7783         (gomp_remove_var_internal): Free aux block if present.
7784         (gomp_load_image_to_device): Zero-initialise aux field instead of
7785         link_key field.
7786         (omp_target_associate_pointer): Zero-initialise aux field.
7788 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
7790         PR middle-end/86416
7791         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
7792         q or none.
7793         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
7794         L or none.
7796 2019-12-19  Julian Brown  <julian@codesourcery.com>
7797             Maciej W. Rozycki  <macro@codesourcery.com>
7798             Tobias Burnus  <tobias@codesourcery.com>
7799             Thomas Schwinge  <thomas@codesourcery.com>
7801         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
7802         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
7803         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
7804         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
7805         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
7806         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
7807         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
7808         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
7809         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
7811 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
7813         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7814         called...
7815         (goacc_insert_pointer): ... from here, "present" case.
7816         (goacc_insert_pointer): Inline function into...
7817         (GOACC_enter_exit_data): ... here, and simplify.
7819         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
7820         called...
7821         (goacc_insert_pointer): ... from here, "not present" case.
7823         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
7824         all users.
7826         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7827         'goacc_enter_data', 'goacc_exit_data'.
7829         * oacc-mem.c (delete_copyout): Refactor into...
7830         (goacc_exit_data): ... this.  Adjust all users.
7832         * oacc-mem.c (present_create_copy): Refactor into...
7833         (goacc_enter_data): ... this.  Adjust all users.
7835         * target.c (gomp_unmap_vars_internal): Add a safeguard to
7836         'gomp_remove_var'.
7838         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
7839         like 'GOMP_MAP_FROM'.
7841         PR libgomp/92726
7842         PR libgomp/92970
7843         PR libgomp/92984
7844         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
7845         fails.
7846         (GOACC_enter_exit_data): Simplify accordingly.
7847         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
7848         subsuming...
7849         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
7850         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
7851         file.
7852         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
7853         subsuming...
7854         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
7855         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
7856         file.
7857         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
7858         subsuming...
7859         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
7861         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
7862         'finalize' handling.
7864         PR libgomp/92848
7865         * oacc-mem.c (acc_map_data, present_create_copy)
7866         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
7867         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
7868         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
7869         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
7870         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
7871         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
7872         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
7873         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
7874         Remove "XFAIL"s.
7876         * target.c (gomp_unmap_tgt): Make it 'static'.
7877         * libgomp.h (gomp_unmap_tgt): Remove.
7879 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
7881         PR middle-end/86416
7882         * testsuite/libgomp.c/pr86416-1.c: New.
7883         * testsuite/libgomp.c/pr86416-2.c: New.
7885 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
7887         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
7888         all symbols as public except for the 'use â€¦, only' imported symbol,
7889         which is private.
7890         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7891         all symbols from module openacc_kinds as PUBLIC
7892         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
7893         fix comment typo.
7894         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
7896 2019-12-13  Julian Brown  <julian@codesourcery.com>
7898         PR libgomp/92881
7900         * libgomp.h (gomp_remove_var_async): Add prototype.
7901         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
7902         gomp_remove_var.
7903         * target.c (gomp_unref_tgt): Change return type to bool, indicating
7904         whether target_mem_desc was unmapped.
7905         (gomp_unref_tgt_void): New.
7906         (gomp_remove_var): Reimplement in terms of...
7907         (gomp_remove_var_internal): ...this new helper function.
7908         (gomp_remove_var_async): New, implemented using above helper function.
7909         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
7910         gomp_unref_tgt.
7912 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
7914         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
7915         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
7916         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
7917         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
7918         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
7919         Likewise.
7920         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
7921         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
7923 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
7925         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
7926         as public except for the 'use â€¦, only' imported symbol, which is
7927         private.
7928         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
7929         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
7930         attributes for acc_copyout_finalize and acc_delete_finalize.
7932 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
7934         PR fortran/92899
7935         * testsuite/libgomp.fortran/atomic1.f90: New test.
7937 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7939         PR libgomp/92843
7940         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
7941         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
7942         assertions.
7943         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
7944         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
7945         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
7946         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
7947         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
7949         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
7950         * oacc-mem.c: ... here.
7951         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
7952         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
7953         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7954         Remove.
7955         * libgomp_g.h: Update.
7957         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
7958         * oacc-async.c: ... here.
7959         * oacc-int.h (goacc_wait): Declare.
7960         * libgomp_g.h: Update
7962         PR libgomp/92854
7963         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
7964         New file.
7965         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
7966         Likewise.
7967         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
7968         Likewise.
7969         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
7970         Likewise.
7971         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
7972         Likewise.
7973         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
7974         Likewise.
7976 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
7977             Julian Brown  <julian@codesourcery.com>
7979         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
7980         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
7982 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
7984         * omp_lib.h.in: Fix spelling of function declaration
7985         omp_get_cancell(l)ation.
7986         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
7987         Fix typos.
7988         * env.c: Fix comment typos.
7989         * oacc-host.c: Likewise.
7990         * ordered.c: Likewise.
7991         * task.c: Likewise.
7992         * team.c: Likewise.
7993         * config/gcn/task.c: Likewise.
7994         * config/gcn/team.c: Likewise.
7995         * config/nvptx/task.c: Likewise.
7996         * config/nvptx/team.c: Likewise.
7997         * plugin/plugin-gcn.c: Likewise.
7998         * testsuite/libgomp.fortran/jacobi.f: Likewise.
7999         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8000         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8002 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8004         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8005         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8006         unnecessary 'dg-additional-options "-w"'.
8008 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8009             Julian Brown  <julian@codesourcery.com>
8011         PR libgomp/92116
8012         PR libgomp/92877
8014         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8015         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8016         Adjust all users.
8017         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8018         Remove XFAIL.
8019         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8020         Likewise.
8021         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8023 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8025         PR libgomp/92503
8026         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8027         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8028         file.
8029         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8030         Likewise.
8031         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8032         Likewise.
8033         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8034         Likewise.
8035         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8036         Likewise.
8037         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8038         Likewise.
8039         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8040         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8041         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8042         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8043         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8044         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8045         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8046         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8047         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8048         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8050         PR libgomp/92840
8051         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8052         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8053         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8054         New file.
8055         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8056         Likewise.
8057         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8058         Likewise.
8059         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8060         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8062         PR libgomp/92511
8063         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8064         this file...
8065         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8066         this file...
8067         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8068         file...
8069         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8070         file...
8071         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8072         ... with their content moved into, and extended in this new file.
8073         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8074         New file.
8075         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8076         Likewise.
8077         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8078         Likewise.
8079         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8080         Likewise.
8082         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8084         PR libgomp/92854
8085         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8087         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8089         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8091 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8093         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8094         unique.
8095         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8096         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8097         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8098         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8099         Ditto.
8100         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8101         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8103 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8105         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8107 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8108             Kwok Cheung Yeung <kcy@codesourcery.com>
8110         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8111         if input it a NULL pointer.
8112         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8113         diagnostic of NULL pointer.
8114         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8115         * testsuite/libgomp.fortran/optional-map.f90: New.
8116         * testsuite/libgomp.fortran/use_device_addr-1.f90
8117         (test_dummy_opt_callee_1_absent): New.
8118         (test_dummy_opt_call_1): Call it.
8119         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8120         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8121         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8122         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8123         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8124         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8125         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8126         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8127         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8128         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8129         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8130         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8131         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8132         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8133         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8134         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8136 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8138         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8139         expect dg-output of 'Error termination.' for GCN.
8140         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8141         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8143 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8145         PR fortran/92756
8146         * testsuite/libgomp.fortran/teams1.f90: New test.
8147         * testsuite/libgomp.fortran/teams2.f90: New test.
8149 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8151         * oacc-init.c (acc_known_device_type): Add function.
8152         (unknown_device_type_error): Add function.
8153         (name_of_acc_device_t): Change to call unknown_device_type_error
8154         on unknown type.
8155         (resolve_device): Use acc_known_device_type.
8156         (acc_init): Fail if acc_device_t argument is not valid.
8157         (acc_shutdown): Likewise.
8158         (acc_get_num_devices): Likewise.
8159         (acc_set_device_type): Likewise.
8160         (acc_get_device_num): Likewise.
8161         (acc_set_device_num): Likewise.
8162         (acc_on_device): Add comment that argument validity is not checked.
8164 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8166         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8167         Recognize amdgcn.
8168         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8169         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8170         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8171         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8172         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8174 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8176         PR libgomp/91938
8177         * configure.tgt: Avoid IE tls on *-*-musl*.
8179 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8181         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8182         adding a common-block test case.
8184 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8186         PR c++/60228
8187         * testsuite/libgomp.c++/udr-20.C: New test.
8188         * testsuite/libgomp.c++/udr-21.C: New test.
8190 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8192         * testsuite/lib/libgomp.exp
8193         (check_effective_target_offload_target_nvptx): New proc.
8194         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8195         'dg-skip-if'.
8196         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8197         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8198         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8200 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8202         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8203         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8204         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8205         * testsuite/libgomp.c/private-1.c: Likewise.
8206         * testsuite/libgomp.c/task-1.c: Likewise.
8207         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8209 2019-11-20  Julian Brown  <julian@codesourcery.com>
8211         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8212         aq->mutex here.
8213         (queue_push_launch): Lock aq->mutex before calling
8214         wait_for_queue_nonfull.
8215         (queue_push_callback): Likewise.
8216         (queue_push_asyncwait): Likewise.
8217         (queue_push_placeholder): Likewise.
8219 2019-11-20  Julian Brown  <julian@codesourcery.com>
8221         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8222         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8223         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8224         return code.
8226 2019-11-20  Julian Brown  <julian@codesourcery.com>
8228         PR libgomp/92511
8230         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8231         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8232         in non-present/create case.
8233         (delete_copyout): Change error condition to fail only on copies outside
8234         of mapped block.  Adjust error message accordingly.
8235         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8236         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8237         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8238         message.
8239         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8240         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8241         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8243 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8245         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8246         libatomic in build-tree testing.
8248 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8250         * testsuite/Makefile.in: Regenerate.
8252 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8254         * testsuite/libgomp.c/target-print-1.c: New file.
8255         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8256         * testsuite/libgomp.oacc-c/print-1.c: New file.
8257         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8259 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8260             Kwok Cheung Yeung  <kcy@codesourcery.com>
8261             Julian Brown  <julian@codesourcery.com>
8262             Tom de Vries  <tom@codesourcery.com>
8264         * plugin/Makefrag.am: Add amdgcn plugin support.
8265         * plugin/configfrag.ac: Likewise.
8266         * plugin/plugin-gcn.c: New file.
8267         * configure: Regenerate.
8268         * Makefile.in: Regenerate.
8269         * testsuite/Makefile.in: Regenerate.
8271 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8273         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8274         and use team_malloc variants.
8275         (gomp_gcn_exit_kernel): Use team_free.
8276         * libgomp.h (TEAM_ARENA_SIZE): Define.
8277         (TEAM_ARENA_START): Define.
8278         (TEAM_ARENA_FREE): Define.
8279         (TEAM_ARENA_END): Define.
8280         (team_malloc): New function.
8281         (team_malloc_cleared): New function.
8282         (team_free): New function.
8283         * team.c (gomp_new_team): Initialize and use team_malloc.
8284         (free_team): Use team_free.
8285         (gomp_free_thread): Use team_free.
8286         (gomp_pause_host): Use team_free.
8287         * work.c (gomp_init_work_share): Use team_malloc.
8288         (gomp_fini_work_share): Use team_free.
8290 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8291             Kwok Cheung Yeung  <kcy@codesourcery.com>
8292             Julian Brown  <julian@codesourcery.com>
8293             Tom de Vries  <tom@codesourcery.com>
8295         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8296         * Makefile.in: Regenerate.
8297         * config.h.in (PLUGIN_GCN): Add new undef.
8298         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8299         * config/gcn/affinity-fmt.c: New file.
8300         * config/gcn/bar.c: New file.
8301         * config/gcn/bar.h: New file.
8302         * config/gcn/doacross.h: New file.
8303         * config/gcn/icv-device.c: New file.
8304         * config/gcn/oacc-target.c: New file.
8305         * config/gcn/simple-bar.h: New file.
8306         * config/gcn/target.c: New file.
8307         * config/gcn/task.c: New file.
8308         * config/gcn/team.c: New file.
8309         * config/gcn/time.c: New file.
8310         * configure.ac: Add amdgcn*-*-*.
8311         * configure: Regenerate.
8312         * configure.tgt: Add amdgcn*-*-*.
8313         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8314         * libgomp.h (gcn_thrs): Add amdgcn variant.
8315         (set_gcn_thrs): Likewise.
8316         (gomp_thread): Likewise.
8317         * oacc-int.h (goacc_thread): Likewise.
8318         * oacc-target.c: New file.
8319         * openacc.f90 (acc_device_gcn): New parameter.
8320         * openacc.h (acc_device_t): Add acc_device_gcn.
8321         * team.c (gomp_free_pool_helper): Add amdgcn support.
8323 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8324             Julian Brown  <julian@codesourcery.com>
8326         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8327         parameter.
8328         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8329         queue constructor.
8330         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8331         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8332         device parameter.
8334 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8336         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8337         * config/nvptx/libgomp-plugin.c: Move ...
8338         * config/accel/libgomp-plugin.c: ... to here.
8339         * config/nvptx/lock.c: Move ...
8340         * config/accel/lock.c: ... to here.
8341         * config/nvptx/mutex.c: Move ...
8342         * config/accel/mutex.c: ... to here.
8343         * config/nvptx/mutex.h: Move ...
8344         * config/accel/mutex.h: ... to here.
8345         * config/nvptx/oacc-async.c: Move ...
8346         * config/accel/oacc-async.c: ... to here.
8347         * config/nvptx/oacc-cuda.c: Move ...
8348         * config/accel/oacc-cuda.c: ... to here.
8349         * config/nvptx/oacc-host.c: Move ...
8350         * config/accel/oacc-host.c: ... to here.
8351         * config/nvptx/oacc-init.c: Move ...
8352         * config/accel/oacc-init.c: ... to here.
8353         * config/nvptx/oacc-mem.c: Move ...
8354         * config/accel/oacc-mem.c: ... to here.
8355         * config/nvptx/oacc-plugin.c: Move ...
8356         * config/accel/oacc-plugin.c: ... to here.
8357         * config/nvptx/omp-lock.h: Move ...
8358         * config/accel/omp-lock.h: ... to here.
8359         * config/nvptx/openacc.f90: Move ...
8360         * config/accel/openacc.f90: ... to here.
8361         * config/nvptx/pool.h: Move ...
8362         * config/accel/pool.h: ... to here.
8363         * config/nvptx/proc.c: Move ...
8364         * config/accel/proc.c: ... to here.
8365         * config/nvptx/ptrlock.c: Move ...
8366         * config/accel/ptrlock.c: ... to here.
8367         * config/nvptx/ptrlock.h: Move ...
8368         * config/accel/ptrlock.h: ... to here.
8369         * config/nvptx/sem.c: Move ...
8370         * config/accel/sem.c: ... to here.
8371         * config/nvptx/sem.h: Move ...
8372         * config/accel/sem.h: ... to here.
8373         * config/nvptx/thread-stacksize.h: Move ...
8374         * config/accel/thread-stacksize.h: ... to here.
8376 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8377             Tobias Burnus  <tobias@codesourcery.com>
8378             Frederik Harwath  <frederik@codesourcery.com>
8379             Thomas Schwinge  <thomas@codesourcery.com>
8381         libgomp/
8382         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8383         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8384         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8386 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8387             Kwok Cheung Yeung  <kcy@codesourcery.com>
8389         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8390         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8392 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8394         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8396         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8397         run'.
8398         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8399         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8401 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8403         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8404         Add expected warnings about missing reduction clauses.
8405         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8406         Likewise.
8407         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8408         Likewise.
8409         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8410         Likewise.
8412 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8414         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8415         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8416         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8417         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8418         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8419         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8421 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8423         PR fortran/92305
8424         * testsuite/libgomp.fortran/allocatable2.f90: Use
8425         unique numbers with 'stop'.
8426         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8427         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8428         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8429         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8430         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8432 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8434         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8435         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8436         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8437         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8438         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8439         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8441 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8443         * testsuite/libgomp.fortran/target9.f90: New.
8445 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8447         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8448         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8449         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8450         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8451         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8452         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8453         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8454         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8455         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8456         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8457         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8458         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8459         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8460         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8461         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8462         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8463         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8464         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8465         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8466         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8467         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8468         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8469         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8470         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8471         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8472         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8473         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8474         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8475         * testsuite/libgomp.fortran/character1.f90: Ditto.
8476         * testsuite/libgomp.fortran/character2.f90: Ditto.
8477         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8478         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8479         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8480         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8481         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8482         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8483         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8484         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8485         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8486         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8487         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8488         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8489         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8490         * testsuite/libgomp.fortran/do1.f90: Ditto.
8491         * testsuite/libgomp.fortran/do2.f90: Ditto.
8492         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8493         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8494         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8495         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8496         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8497         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8498         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8499         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8500         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8501         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8502         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8503         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8504         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8505         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8506         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8507         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8508         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8509         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8510         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8511         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8512         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8513         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8514         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8515         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8516         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8517         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8518         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8519         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8520         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8521         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8522         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8523         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8524         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8525         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8526         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8527         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8528         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
8529         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
8530         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
8531         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
8532         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
8533         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
8534         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
8535         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
8536         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
8537         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
8538         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
8539         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
8540         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
8541         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8542         * testsuite/libgomp.fortran/lib1.f90: Ditto.
8543         * testsuite/libgomp.fortran/lib4.f90: Ditto.
8544         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
8545         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
8546         * testsuite/libgomp.fortran/nested1.f90: Ditto.
8547         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
8548         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
8549         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
8550         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8551         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
8552         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
8553         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
8554         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
8555         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
8556         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
8557         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
8558         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
8559         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
8560         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
8561         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
8562         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
8563         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
8564         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
8565         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
8566         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
8567         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
8568         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
8569         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
8570         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
8571         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8572         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
8573         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
8574         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
8575         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
8576         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
8577         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8578         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
8579         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8580         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
8581         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
8582         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8583         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
8584         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
8585         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
8586         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
8587         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
8588         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
8589         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
8590         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
8591         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
8592         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
8593         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
8594         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
8595         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
8596         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
8597         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
8598         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
8599         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
8600         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
8601         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
8602         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
8603         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8604         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
8605         * testsuite/libgomp.fortran/reference1.f90: Ditto.
8606         * testsuite/libgomp.fortran/reference2.f90: Ditto.
8607         * testsuite/libgomp.fortran/retval1.f90: Ditto.
8608         * testsuite/libgomp.fortran/retval2.f90: Ditto.
8609         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
8610         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
8611         * testsuite/libgomp.fortran/simd1.f90: Ditto.
8612         * testsuite/libgomp.fortran/simd2.f90: Ditto.
8613         * testsuite/libgomp.fortran/simd3.f90: Ditto.
8614         * testsuite/libgomp.fortran/simd4.f90: Ditto.
8615         * testsuite/libgomp.fortran/simd5.f90: Ditto.
8616         * testsuite/libgomp.fortran/simd6.f90: Ditto.
8617         * testsuite/libgomp.fortran/simd7.f90: Ditto.
8618         * testsuite/libgomp.fortran/stack.f90: Ditto.
8619         * testsuite/libgomp.fortran/strassen.f90: Ditto.
8620         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
8621         * testsuite/libgomp.fortran/tabs2.f: Ditto.
8622         * testsuite/libgomp.fortran/target1.f90: Ditto.
8623         * testsuite/libgomp.fortran/target2.f90: Ditto.
8624         * testsuite/libgomp.fortran/target3.f90: Ditto.
8625         * testsuite/libgomp.fortran/target4.f90: Ditto.
8626         * testsuite/libgomp.fortran/target5.f90: Ditto.
8627         * testsuite/libgomp.fortran/target6.f90: Ditto.
8628         * testsuite/libgomp.fortran/target7.f90: Ditto.
8629         * testsuite/libgomp.fortran/target8.f90: Ditto.
8630         * testsuite/libgomp.fortran/task1.f90: Ditto.
8631         * testsuite/libgomp.fortran/task2.f90: Ditto.
8632         * testsuite/libgomp.fortran/task3.f90: Ditto.
8633         * testsuite/libgomp.fortran/task4.f90: Ditto.
8634         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8635         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8636         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8637         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8638         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8639         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
8640         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
8641         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
8642         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
8643         * testsuite/libgomp.fortran/udr1.f90: Ditto.
8644         * testsuite/libgomp.fortran/udr10.f90: Ditto.
8645         * testsuite/libgomp.fortran/udr11.f90: Ditto.
8646         * testsuite/libgomp.fortran/udr12.f90: Ditto.
8647         * testsuite/libgomp.fortran/udr13.f90: Ditto.
8648         * testsuite/libgomp.fortran/udr14.f90: Ditto.
8649         * testsuite/libgomp.fortran/udr15.f90: Ditto.
8650         * testsuite/libgomp.fortran/udr2.f90: Ditto.
8651         * testsuite/libgomp.fortran/udr3.f90: Ditto.
8652         * testsuite/libgomp.fortran/udr4.f90: Ditto.
8653         * testsuite/libgomp.fortran/udr5.f90: Ditto.
8654         * testsuite/libgomp.fortran/udr6.f90: Ditto.
8655         * testsuite/libgomp.fortran/udr7.f90: Ditto.
8656         * testsuite/libgomp.fortran/udr8.f90: Ditto.
8657         * testsuite/libgomp.fortran/udr9.f90: Ditto.
8658         * testsuite/libgomp.fortran/vla1.f90: Ditto.
8659         * testsuite/libgomp.fortran/vla2.f90: Ditto.
8660         * testsuite/libgomp.fortran/vla3.f90: Ditto.
8661         * testsuite/libgomp.fortran/vla4.f90: Ditto.
8662         * testsuite/libgomp.fortran/vla5.f90: Ditto.
8663         * testsuite/libgomp.fortran/vla6.f90: Ditto.
8664         * testsuite/libgomp.fortran/vla7.f90: Ditto.
8665         * testsuite/libgomp.fortran/vla8.f90: Ditto.
8666         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8667         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8669 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8671         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
8672         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
8673         Ditto; add 'dg-do run' for torture testing.
8674         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
8675         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
8676         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
8677         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
8678         * testsuite/libgomp.fortran/pr28390.f: Ditto.
8679         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
8680         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
8681         * testsuite/libgomp.fortran/task2.f90: Ditto.
8682         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
8683         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
8684         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8685         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8686         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
8687         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
8689 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
8691         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
8692         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
8693         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
8694         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
8695         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
8696         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
8697         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
8698         Use 'stop' not abort().
8699         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
8700         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
8701         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
8702         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
8703         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
8704         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
8705         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
8706         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
8707         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
8708         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
8709         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
8710         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
8711         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
8712         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
8713         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
8714         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
8715         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
8716         Ditto.
8717         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
8718         Ditto.
8719         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
8720         Ditto.
8721         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
8722         Ditto.
8723         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
8724         Ditto.
8725         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
8726         Ditto.
8727         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
8728         Ditto.
8729         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
8730         Ditto.
8731         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
8732         Ditto.
8733         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
8734         Ditto.
8735         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
8736         Ditto.
8737         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
8738         Ditto.
8739         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
8740         Ditto.
8741         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
8742         Ditto.
8743         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
8744         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
8745         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
8746         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
8747         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
8748         Likewise and also add 'dg-do run'.
8749         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
8750         Ditto.
8752 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
8753             Tobias Burnus  <tobias@codesourcery.com>
8755         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
8756         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
8757         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
8759 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
8761         PR libgomp/92081
8762         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
8763         than 0.
8765 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
8767         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
8768         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
8770 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
8772         PR middle-end/92036
8773         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
8774         file.
8776 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
8778         PR testsuite/91884
8779         * testsuite/libgomp.fortran/fortran.exp: Conditionally
8780         add -lquadmath.
8781         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
8783 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
8785         PR libgomp/92028
8786         * target.c (gomp_map_vars_internal): Readd the previous
8787         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
8788         though do that just in the !not_found_cnt case.
8790 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
8792         * gfortran.dg/gomp/target-simd.f90: New.
8794 2019-10-02  Julian Brown  <julian@codesourcery.com>
8795             Cesar Philippidis  <cesar@codesourcery.com>
8797         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
8798         * target.c (FIELD_TGT_EMPTY): Define.
8799         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
8800         as switch instead of list of ifs.
8801         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
8803 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
8805         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
8806         include. Replace alloca () with __builtin_alloca ().
8807         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
8809 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
8811         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
8812         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
8813         * oacc-parallel.c: Don't include "libgomp_g.h".
8814         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
8815         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
8816         * aclocal.m4: Regenerated.
8817         * config.h.in: Regenerated.
8818         * configure: Regenerated.
8819         * Makefile.in: Regenerated.
8821 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
8823         * libgomp_g.h: Include stdint.h instead of gstdint.h.
8825 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
8827         * configure: Regenerate.
8829 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
8831         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
8832         string is initialized.
8834 2019-09-06  Florian Weimer  <fweimer@redhat.com>
8836         * configure: Regenerate.
8838 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
8840         PR other/79543
8841         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
8842         scanning to conform to the GNU Coding Standards.
8843         * configure: Regenerate.
8845 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
8847         PR libgomp/91530
8848         * testsuite/libgomp.c/scan-21.c: New test.
8849         * testsuite/libgomp.c/scan-22.c: New test.
8851 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
8853         PR libgomp/91530
8854         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
8855         targets.
8856         * testsuite/libgomp.c/scan-12.c: Likewise.
8857         * testsuite/libgomp.c/scan-13.c: Likewise.
8858         * testsuite/libgomp.c/scan-14.c: Likewise.
8859         * testsuite/libgomp.c/scan-15.c: Likewise.
8860         * testsuite/libgomp.c/scan-16.c: Likewise.
8861         * testsuite/libgomp.c/scan-17.c: Likewise.
8862         * testsuite/libgomp.c/scan-18.c: Likewise.
8863         * testsuite/libgomp.c/scan-19.c: Likewise.
8864         * testsuite/libgomp.c/scan-20.c: Likewise.
8865         * testsuite/libgomp.c++/scan-9.C: Likewise.
8866         * testsuite/libgomp.c++/scan-10.C: Likewise.
8867         * testsuite/libgomp.c++/scan-11.C: Likewise.
8868         * testsuite/libgomp.c++/scan-12.C: Likewise.
8869         * testsuite/libgomp.c++/scan-14.C: Likewise.
8870         * testsuite/libgomp.c++/scan-15.C: Likewise.
8871         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
8872         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
8873         * testsuite/libgomp.c++/scan-16.C: Likewise.
8875 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
8877         PR fortran/91473
8878         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
8879         -std=legacy so invalid code in the test case is accepted.
8881 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
8883         PR fortran/91422
8884         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
8885         dimension.
8887 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8889         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
8890         perform the lookup in the first loop only if !not_found_cnt, otherwise
8891         perform lookups for it in the second loop guarded with
8892         if (not_found_cnt || has_firstprivate).
8893         * testsuite/libgomp.c/target-37.c: New test.
8894         * testsuite/libgomp.c++/target-22.C: New test.
8896 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8898         * testsuite/libgomp.c/target-18.c (struct S): New type.
8899         (foo): Use use_device_addr clause instead of use_device_ptr clause
8900         where required by OpenMP 5.0, add further tests for both use_device_ptr
8901         and use_device_addr clauses.
8902         * testsuite/libgomp.c++/target-9.C (struct S): New type.
8903         (foo): Use use_device_addr clause instead of use_device_ptr clause
8904         where required by OpenMP 5.0, add further tests for both use_device_ptr
8905         and use_device_addr clauses.  Add t and u arguments.
8906         (main): Adjust caller.
8908 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8910         * testsuite/libgomp.c++/loop-13.C: New test.
8911         * testsuite/libgomp.c++/loop-14.C: New test.
8912         * testsuite/libgomp.c++/loop-15.C: New test.
8914 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8916         PR middle-end/91301
8917         * testsuite/libgomp.c++/for-27.C: New test.
8919 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
8921         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
8922         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
8924 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8926         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
8928 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
8930         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
8931         * testsuite/libgomp.c++/scan-16.C: Likewise.
8933 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
8935         * testsuite/libgomp.c/scan-19.c: New test.
8936         * testsuite/libgomp.c/scan-20.c: New test.
8938         * testsuite/libgomp.c/scan-11.c: New test.
8939         * testsuite/libgomp.c/scan-12.c: New test.
8940         * testsuite/libgomp.c/scan-13.c: New test.
8941         * testsuite/libgomp.c/scan-14.c: New test.
8942         * testsuite/libgomp.c/scan-15.c: New test.
8943         * testsuite/libgomp.c/scan-16.c: New test.
8944         * testsuite/libgomp.c/scan-17.c: New test.
8945         * testsuite/libgomp.c/scan-18.c: New test.
8946         * testsuite/libgomp.c++/scan-9.C: New test.
8947         * testsuite/libgomp.c++/scan-10.C: New test.
8948         * testsuite/libgomp.c++/scan-11.C: New test.
8949         * testsuite/libgomp.c++/scan-12.C: New test.
8950         * testsuite/libgomp.c++/scan-13.C: New test.
8951         * testsuite/libgomp.c++/scan-14.C: New test.
8952         * testsuite/libgomp.c++/scan-15.C: New test.
8953         * testsuite/libgomp.c++/scan-16.C: New test.
8955 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
8957         * testsuite/libgomp.c/scan-9.c: New test.
8958         * testsuite/libgomp.c/scan-10.c: New test.
8960 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
8962         * testsuite/libgomp.c++/scan-1.C: New test.
8963         * testsuite/libgomp.c++/scan-2.C: New test.
8964         * testsuite/libgomp.c++/scan-3.C: New test.
8965         * testsuite/libgomp.c++/scan-4.C: New test.
8966         * testsuite/libgomp.c++/scan-5.C: New test.
8967         * testsuite/libgomp.c++/scan-6.C: New test.
8968         * testsuite/libgomp.c++/scan-7.C: New test.
8969         * testsuite/libgomp.c++/scan-8.C: New test.
8970         * testsuite/libgomp.c/scan-1.c: New test.
8971         * testsuite/libgomp.c/scan-2.c: New test.
8972         * testsuite/libgomp.c/scan-3.c: New test.
8973         * testsuite/libgomp.c/scan-4.c: New test.
8974         * testsuite/libgomp.c/scan-5.c: New test.
8975         * testsuite/libgomp.c/scan-6.c: New test.
8976         * testsuite/libgomp.c/scan-7.c: New test.
8977         * testsuite/libgomp.c/scan-8.c: New test.
8979 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8981         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
8982         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
8983         Likewise.
8985         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
8986         check.
8988 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
8990         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
8991         file.
8993 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
8995         PR fortran/90743
8996         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
8997         case.
8998         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
8999         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9000         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9001         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9003         PR testsuite/90861
9004         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9006         PR middle-end/90862
9007         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9009 2019-06-16  Tom de Vries  <tdevries@suse.de>
9011         PR tree-optimization/89376
9012         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9014 2019-06-15  Tom de Vries  <tdevries@suse.de>
9016         PR tree-optimization/89713
9017         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9018         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9020 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9022         PR middle-end/90779
9023         * testsuite/libgomp.c/pr90779.c: New test.
9024         * testsuite/libgomp.fortran/pr90779.f90: New test.
9026 2019-06-15  Tom de Vries  <tdevries@suse.de>
9028         PR tree-optimization/90009
9029         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9031 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9033         PR tree-optimization/89713
9034         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9036 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9038         PR target/90811
9039         * testsuite/libgomp.c/pr90811.c: New test.
9041 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9043         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9044         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9046 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9048         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9049         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9050         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9051         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9053 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9055         * configure.ac: Call AX_COUNT_CPUS.
9056         Substitute CPU_COUNT.
9057         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9058         count fallback.
9059         * aclocal.m4: Regenerate.
9060         * configure: Regenerate.
9061         * Makefile.in, testsuite/Makefile.in: Regenerate.
9063 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9065         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9066         to ...
9067         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9068         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9069         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9071 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9073         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9075         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9077         PR libgomp/90641
9078         * work.c (gomp_init_work_share): Instead of aligning final ordered
9079         value to multiples of long long alignment, align to that the
9080         first part (ordered team ids) and if inline_ordered_team_ids
9081         is not on a long long alignment boundary within the structure,
9082         use __alignof__ (long long) - 1 pad size always.
9083         * loop.c (GOMP_loop_start): Fix *mem computation if
9084         inline_ordered_team_ids is not aligned on long long alignment boundary
9085         within the structure.
9086         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9087         * sections.c (GOMP_sections2_start): Likewise.
9089 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9091         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9092         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9094         PR libgomp/90585
9095         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9096         HAVE_INTTYPES_H is defined.
9097         (print_uint64_t): New typedef.
9098         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9099         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9100         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9101         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9102         before casting to void *.
9103         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9104         * oacc-mem.c: Don't include config.h nor stdint.h.
9105         * target.c: Don't include config.h.
9106         * oacc-cuda.c: Likewise.
9107         * oacc-host.c: Don't include stdint.h.
9109 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9111         PR libgomp/90527
9112         * alloc.c (_GNU_SOURCE): Define.
9114 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9116         * acc_prof.h: New file.
9117         * oacc-profiling.c: Likewise.
9118         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9119         Add these, respectively.
9120         * Makefile.in: Regenerate.
9121         * env.c (initialize_env): Call goacc_profiling_initialize.
9122         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9123         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9124         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9125         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9126         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9127         acc_prof_register, acc_prof_unregister, and acc_register_library.
9128         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9129         GOMP_PLUGIN_goacc_thread.
9130         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9131         prof_callbacks_enabled members.
9132         (goacc_prof_enabled, goacc_profiling_initialize)
9133         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9134         (goacc_profiling_dispatch): Declare.
9135         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9136         (GOACC_PROFILING_SETUP_P): Define.
9137         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9138         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9139         OpenACC Profiling Interface.
9140         * oacc-cuda.c (acc_get_current_cuda_device)
9141         (acc_get_current_cuda_context, acc_get_cuda_stream)
9142         (acc_set_cuda_stream): Likewise.
9143         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9144         (acc_init, acc_set_device_type, acc_get_device_type)
9145         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9146         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9147         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9148         (acc_unmap_data, present_create_copy, delete_copyout)
9149         (update_dev_host): Likewise.
9150         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9151         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9152         Likewise.
9153         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9154         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9155         Likewise.
9156         * libgomp.texi: Update.
9157         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9158         file.
9159         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9160         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9161         Likewise.
9162         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9163         Likewise.
9164         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9165         Likewise.
9166         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9167         Likewise.
9169 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9171         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9172         (struct goacc_asyncqueue_list): Likewise.
9173         (goacc_aq): Likewise.
9174         (goacc_aq_list): Likewise.
9175         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9176         (GOMP_OFFLOAD_openacc_async_test): Remove.
9177         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9178         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9179         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9180         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9181         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9182         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9183         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9184         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9185         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9186         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9187         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9188         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9189         (GOMP_OFFLOAD_openacc_async_test): Declare.
9190         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9191         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9192         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9193         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9194         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9196         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9197         (gomp_acc_insert_pointer): Adjust declaration.
9198         (gomp_copy_host2dev): New declaration.
9199         (gomp_copy_dev2host): Likewise.
9200         (gomp_map_vars_async): Likewise.
9201         (gomp_unmap_tgt): Likewise.
9202         (gomp_unmap_vars_async): Likewise.
9203         (gomp_fini_device): Likewise.
9205         * oacc-async.c (get_goacc_thread): New function.
9206         (get_goacc_thread_device): New function.
9207         (lookup_goacc_asyncqueue): New function.
9208         (get_goacc_asyncqueue): New function.
9209         (acc_async_test): Adjust code to use new async design.
9210         (acc_async_test_all): Likewise.
9211         (acc_wait): Likewise.
9212         (acc_wait_async): Likewise.
9213         (acc_wait_all): Likewise.
9214         (acc_wait_all_async): Likewise.
9215         (goacc_async_free): New function.
9216         (goacc_init_asyncqueues): Likewise.
9217         (goacc_fini_asyncqueues): Likewise.
9218         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9219         design.
9220         (acc_set_cuda_stream): Likewise.
9221         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9222         (host_openacc_register_async_cleanup): Remove.
9223         (host_openacc_async_exec): New function.
9224         (host_openacc_async_test): Adjust parameters.
9225         (host_openacc_async_test_all): Remove.
9226         (host_openacc_async_wait): Remove.
9227         (host_openacc_async_wait_async): Remove.
9228         (host_openacc_async_wait_all): Remove.
9229         (host_openacc_async_wait_all_async): Remove.
9230         (host_openacc_async_set_async): Remove.
9231         (host_openacc_async_synchronize): New function.
9232         (host_openacc_async_serialize): New function.
9233         (host_openacc_async_host2dev): New function.
9234         (host_openacc_async_dev2host): New function.
9235         (host_openacc_async_queue_callback): New function.
9236         (host_openacc_async_construct): New function.
9237         (host_openacc_async_destruct): New function.
9238         (struct gomp_device_descr host_dispatch): Remove initialization of old
9239         interface, add initialization of new async sub-struct.
9240         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9241         (goacc_attach_host_thread_to_device): Remove old async code usage.
9242         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9243         (goacc_fini_asyncqueues): Likewise.
9244         (goacc_async_copyout_unmap_vars): Likewise.
9245         (goacc_async_free): Likewise.
9246         (get_goacc_asyncqueue): Likewise.
9247         (lookup_goacc_asyncqueue): Likewise.
9248         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9249         design.
9250         (present_create_copy): Adjust code to use new async design.
9251         (delete_copyout): Likewise.
9252         (update_dev_host): Likewise.
9253         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9254         async design.
9255         (gomp_acc_remove_pointer): Adjust code to use new async design.
9256         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9257         design.
9258         (GOACC_enter_exit_data): Likewise.
9259         (goacc_wait): Likewise.
9260         (GOACC_update): Likewise.
9261         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9262         when called, warn as obsolete in comment.
9263         * target.c (goacc_device_copy_async): New function.
9264         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9265         add goacc_device_copy_async case.
9266         (gomp_copy_dev2host): Likewise.
9267         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9268         (gomp_map_pointer): Likewise.
9269         (gomp_map_fields_existing): Likewise.
9270         (gomp_map_vars_internal): New always_inline function, renamed from
9271         gomp_map_vars.
9272         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9273         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9274         passing goacc_asyncqueue argument.
9275         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9276         (gomp_unref_tgt): New function.
9277         (gomp_unmap_vars_internal): New always_inline function, renamed from
9278         gomp_unmap_vars.
9279         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9280         (gomp_unmap_vars_async): Implement by calling
9281         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9282         (gomp_fini_device): New function.
9283         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9284         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9285         new async interface.
9286         (gomp_target_fini): Adjust code to call gomp_fini_device.
9288         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9289         (struct ptx_stream): Remove.
9290         (struct nvptx_thread): Remove current_stream field.
9291         (cuda_map_create): Remove.
9292         (cuda_map_destroy): Remove.
9293         (map_init): Remove.
9294         (map_fini): Remove.
9295         (map_pop): Remove.
9296         (map_push): Remove.
9297         (struct goacc_asyncqueue): Define.
9298         (struct nvptx_callback): Define.
9299         (struct ptx_free_block): Define.
9300         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9301         stream_lock, and next fields.
9302         (enum ptx_event_type): Remove.
9303         (struct ptx_event): Remove.
9304         (ptx_event_lock): Remove.
9305         (ptx_events): Remove.
9306         (init_streams_for_device): Remove.
9307         (fini_streams_for_device): Remove.
9308         (select_stream_for_async): Remove.
9309         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9310         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9311         case.
9312         (nvptx_open_device): Add free_blocks initialization, remove
9313         init_streams_for_device call.
9314         (nvptx_close_device): Remove fini_streams_for_device call, add
9315         free_blocks destruct code.
9316         (event_gc): Remove.
9317         (event_add): Remove.
9318         (nvptx_exec): Adjust parameters and code.
9319         (nvptx_free): Likewise.
9320         (nvptx_host2dev): Remove.
9321         (nvptx_dev2host): Remove.
9322         (nvptx_set_async): Remove.
9323         (nvptx_async_test): Remove.
9324         (nvptx_async_test_all): Remove.
9325         (nvptx_wait): Remove.
9326         (nvptx_wait_async): Remove.
9327         (nvptx_wait_all): Remove.
9328         (nvptx_wait_all_async): Remove.
9329         (nvptx_get_cuda_stream): Remove.
9330         (nvptx_set_cuda_stream): Remove.
9331         (GOMP_OFFLOAD_alloc): Adjust code.
9332         (GOMP_OFFLOAD_free): Likewise.
9333         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9334         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9335         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9336         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9337         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9338         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9339         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9340         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9341         (cuda_free_argmem): New function.
9342         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9343         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9344         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9345         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9346         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9347         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9348         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9349         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9350         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9351         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9352         (cuda_callback_wrapper): New function.
9353         (cuda_memcpy_sanity_check): New function.
9354         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9355         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9356         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9357         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9359 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9361         PR target/87835
9362         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9364 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9366         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9368 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9370         * team.c (gomp_team_start): Initialize pool->threads[0].
9372 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9374         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9375         "-foffload=$offload_target".
9376         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9377         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9378         * testsuite/lib/libgomp.exp
9379         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9380         as (conceptually) merged into
9381         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9382         users.
9384         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9385         * testsuite/libgomp-test-support.exp.in: Adjust.
9386         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9387         openacc_device_types_s.
9388         (offload_target_to_openacc_device_type): New proc.
9389         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9390         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9391         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9392         * Makefile.in: Regenerate.
9393         * configure: Likewise.
9394         * testsuite/Makefile.in: Likewise.
9396         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9397         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9398         instead of OFFLOAD_TARGETS.
9399         * target.c (gomp_target_init): Adjust.
9400         * testsuite/libgomp-test-support.exp.in: Likewise.
9401         * testsuite/lib/libgomp.exp: Likewise.  Populate
9402         openacc_device_types_s instead of offload_targets_s_openacc.
9403         (check_effective_target_openacc_nvidia_accel_selected)
9404         (check_effective_target_openacc_host_selected): Adjust.
9405         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9406         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9407         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9408         * Makefile.in: Regenerate.
9409         * config.h.in: Likewise.
9410         * configure: Likewise.
9411         * testsuite/Makefile.in: Likewise.
9413         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9414         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9415         "offloading: supported, but hardware not accessible".
9416         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9417         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9419 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9421         PR c/87924
9422         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9423         goacc_wait().
9424         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9425         and related adjustment.
9427 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9429         PR c++/88988
9430         * testsuite/libgomp.c++/pr88988.C: New test.
9432 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9434         PR middle-end/89002
9435         * testsuite/libgomp.c/pr89002.c: New test.
9437 2019-01-28  Richard Biener  <rguenther@suse.de>
9439         PR testsuite/89064
9440         PR tree-optimization/86865
9441         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9443 2019-01-24  Tom de Vries  <tdevries@suse.de>
9445         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9446         once instantiated_devices drops to 0.
9448 2019-01-23  Tom de Vries  <tdevries@suse.de>
9450         PR target/PR88946
9451         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9452         cuMemFree.
9453         (nvptx_exec): Don't call map_push if mapnum == 0.
9454         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9456 2019-01-23  Tom de Vries  <tdevries@suse.de>
9458         PR target/88941
9459         PR target/88939
9460         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9461         (map_fini): Remove "assert (!s->map->active)".
9462         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9464 2019-01-23  Tom de Vries  <tdevries@suse.de>
9466         PR target/87835
9467         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9468         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9470 2019-01-15  Tom de Vries  <tdevries@suse.de>
9472         PR target/80547
9473         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9474         New test.
9476 2019-01-12  Tom de Vries  <tdevries@suse.de>
9478         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9479         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9480         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9481         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9483 2019-01-12  Tom de Vries  <tdevries@suse.de>
9485         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9487 2019-01-12  Tom de Vries  <tdevries@suse.de>
9489         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9490         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9491         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9493 2019-01-12  Tom de Vries  <tdevries@suse.de>
9495         PR target/85486
9496         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9497         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9499 2019-01-12  Tom de Vries  <tdevries@suse.de>
9501         PR target/85381
9502         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9503         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9505 2019-01-12  Tom de Vries  <tdevries@suse.de>
9507         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9508         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9509         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9511 2019-01-12  Tom de Vries  <tdevries@suse.de>
9513         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9514         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9515         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9517 2019-01-12  Tom de Vries  <tdevries@suse.de>
9519         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9520         resources diagnostic.
9522 2019-01-12  Tom de Vries  <tdevries@suse.de>
9524         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9525         vector length to be 128.
9526         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9527         length 2097152 to be reduced to 1024 instead of 32.
9529 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
9530             James Norris  <jnorris@codesourcery.com>
9532         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
9533         Library Routines", and "Environment Variables".
9535 2019-01-11  Tom de Vries  <tdevries@suse.de>
9537         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
9538         num_workers 16.
9540 2019-01-11  Tom de Vries  <tdevries@suse.de>
9542         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
9543         -foffload=-w.
9544         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
9545         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
9546         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
9547         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
9549 2019-01-11  Tom de Vries  <tdevries@suse.de>
9551         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
9552         test.
9554 2019-01-10  Nathan Sidwell  <nathan@acm.org>
9555             Julian Brown  <julian@codesourcery.com>
9557         PR lto/71959
9558         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
9559         * testsuite/libgomp.oacc-c++/pr71959.C: New.
9561 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9563         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
9564         and paste code.
9566 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9568         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
9569         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9570         write.
9572 2019-01-09  Tom de Vries  <tdevries@suse.de>
9574         PR target/88756
9575         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
9576         #define instead of "const int".
9577         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
9578         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
9579         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
9580         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
9582 2019-01-09  Tom de Vries  <tdevries@suse.de>
9584         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
9585         one worker.
9587 2019-01-07  Tom de Vries  <tdevries@suse.de>
9589         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
9590         GOMP_OPENACC_DIM argument.
9592 2019-01-03  Tom de Vries  <tdevries@suse.de>
9594         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
9595         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
9597 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9599         Update copyright years.
9601 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
9603         * libgomp.texi: Bump @copying's copyright year.
9605 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9607         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
9608         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
9609         (GOACC_declare): Redefine the "device" argument to "flags".
9611 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
9612             Cesar Philippidis  <cesar@codesourcery.com>
9614         * target.c (struct gomp_coalesce_chunk): New structure.
9615         (struct gomp_coalesce_buf): Update the chunks member to use that
9616         type.  Adjust all users.
9618 2018-12-19  Tom de Vries  <tdevries@suse.de>
9620         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
9621         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
9622         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
9624 2018-12-19  Tom de Vries  <tdevries@suse.de>
9626         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
9627         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
9628         gcc/testsuite/gcc.dg/goacc.
9629         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
9631 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9632             Chung-Lin Tang  <cltang@codesourcery.com>
9634         * oacc-mem.c (acc_present_or_create): Remove definition and change
9635         to alias of acc_create.
9636         (acc_present_or_copyin): Remove definition and change to alias of
9637         acc_copyin.
9638         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
9639         of acc_present_or_create.
9640         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
9641         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9642         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9643         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9644         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9645         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9646         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9647         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9648         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9649         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9650         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9651         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9652         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9653         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9654         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9655         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9657 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9659         PR libgomp/88495
9660         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
9661         "identical parameters".
9662         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
9663         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
9665         PR libgomp/88484
9666         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
9667         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
9669         PR libgomp/88407
9670         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
9671         (nvptx_wait_async): Unseen async-argument is a no-op.
9672         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
9673         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
9674         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9675         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
9676         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
9677         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
9678         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
9679         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
9680         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
9682         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
9683         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9685 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
9687         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
9688         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
9689         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
9691 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
9693         PR libgomp/88370
9694         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
9695         (acc_set_cuda_stream): Clarify.
9696         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
9697         "async_valid_p".
9698         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
9699         acc_async_sync".
9700         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
9701         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
9702         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
9703         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
9705 2018-12-14  Tom de Vries  <tdevries@suse.de>
9707         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
9708         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
9709         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
9710         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
9711         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
9713 2018-12-13  Tom de Vries  <tdevries@suse.de>
9715         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
9716         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
9717         * fortran.c (omp_display_affinity_): ... here.
9718         * libgomp.h (gomp_print_string): Declare.
9719         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
9720         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
9721         write.
9723 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
9725         PR libgomp/88460
9726         * testsuite/libgomp.c++/for-24.C (results): Include it in
9727         omp declare target region.
9728         (main): Use map (always, tofrom: results) instead of
9729         map (tofrom: results).
9731 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
9733         PR fortran/88463
9734         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
9735         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
9737         * testsuite/libgomp.c-c++-common/for-16.c: New test.
9739 2018-12-12  Andreas Schwab  <schwab@suse.de>
9741         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
9742         clobbered.
9744 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
9746         PR fortran/88411
9747         * testsuite/libgomp.fortran/async_io_8.f90: New test.
9749 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
9750             Jakub Jelinek  <jakub@redhat.com>
9752         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
9753         devicep->host2dev_func.
9755 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
9757         PR libgomp/87995
9758         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
9759         tls_runtime effective target.
9760         (t): New threadprivate variable.
9761         (main): Set t in threads which execute iterations of the worksharing
9762         loop.  Propagate that to the task after the loop and don't abort
9763         if the current taskgroup hasn't been cancelled.
9765 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
9767         * testsuite/libgomp.c/task-reduction-3.c: New test.
9769         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
9771 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
9773         PR libgomp/88288
9774         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
9775         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
9777 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
9779         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
9781 2018-10-19  Richard Biener  <rguenther@suse.de>
9783         PR tree-optimization/88182
9784         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
9786 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
9788         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
9789         (RUNTEST): Don't define.
9790         (RUNTESTDEFAULTFLAGS): Add.
9791         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
9792         (distclean-am): Depend on distclean-DEJAGNU.
9793         (check-am): If -j% option is present in MFLAGS and if
9794         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
9795         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
9796         * testsuite/Makefile.in: Regenerated.
9798 2018-11-26  Richard Biener  <rguenther@suse.de>
9800         PR tree-optimization/88182
9801         * testsuite/libgomp.c++/pr88182.C: New testcase.
9803 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
9805         PR bootstrap/88106
9806         * config/mingw32/affinity-fmt.c: New file.
9808 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
9810         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
9811         (gomp_display_affinity): Use __builtin_choose_expr to handle
9812         properly handle argument having integral, or pointer or some other
9813         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
9814         with uint64_t type instead of %llx and unsigned long long.
9816         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
9817         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
9819 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9821         * affinity.c: Include <string.h>, <stdio.h>.
9822         (gomp_display_affinity_place): Remove cpusetp.
9823         * teams.c: Include <limits.h>.
9825 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
9827         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
9828         in_reduction clause for s[0].
9830         * affinity.c (gomp_display_affinity_place): New function.
9831         * affinity-fmt.c: New file.
9832         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
9833         * config/linux/affinity.c (gomp_display_affinity_place): New function.
9834         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
9835         Move these functions to ...
9836         * config/nvptx/teams.c: ... here.  New file.
9837         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
9838         New functions.
9839         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
9840         functions.
9841         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
9842         and _aligned_malloc.
9843         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
9844         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
9845         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
9846         gomp_affinity_format_len): New variables.
9847         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
9848         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
9849         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
9850         modifiers.  Display (non-default) chunk sizes.  Print
9851         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
9852         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
9853         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
9854         * fortran.c: Include stdio.h and string.h.
9855         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
9856         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
9857         (omp_set_affinity_format_, omp_get_affinity_format_,
9858         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
9859         omp_pause_resource_all_): New functions.
9860         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
9861         switch.
9862         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
9863         functions to ...
9864         * teams.c: ... here.  New file.
9865         * libgomp_g.h: Include gstdint.h.
9866         (GOMP_loop_nonmonotonic_runtime_start,
9867         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
9868         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
9869         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
9870         GOMP_parallel_loop_nonmonotonic_runtime,
9871         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9872         GOMP_loop_ull_nonmonotonic_runtime_start,
9873         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
9874         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
9875         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9876         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
9877         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
9878         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9879         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9880         GOMP_teams_reg): Declare.
9881         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
9882         gomp_aligned_alloc uses fallback implementation.
9883         (gomp_aligned_alloc, gomp_aligned_free): Declare.
9884         (enum gomp_schedule_type): Add GFS_MONOTONIC.
9885         (struct gomp_doacross_work_share): Add extra field.
9886         (struct gomp_work_share): Add task_reductions field.
9887         (struct gomp_taskgroup): Add workshare and reductions fields.
9888         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
9889         (gomp_thread_handle): New typedef.
9890         (gomp_display_affinity_place, gomp_set_affinity_format,
9891         gomp_display_string, gomp_display_affinity,
9892         gomp_display_affinity_thread): Declare.
9893         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
9894         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
9895         gomp_workshare_task_reduction_register): Declare.
9896         (gomp_team_start): Add taskgroup argument.
9897         (gomp_pause_host): Declare.
9898         (gomp_init_work_share, gomp_work_share_start): Change bool argument
9899         to size_t.
9900         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
9901         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
9902         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
9903         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9904         GOMP_loop_ull_doacross_start,
9905         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
9906         GOMP_loop_maybe_nonmonotonic_runtime_next,
9907         GOMP_loop_maybe_nonmonotonic_runtime_start,
9908         GOMP_loop_nonmonotonic_runtime_next,
9909         GOMP_loop_nonmonotonic_runtime_start,
9910         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9911         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9912         GOMP_loop_ull_nonmonotonic_runtime_next,
9913         GOMP_loop_ull_nonmonotonic_runtime_start,
9914         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9915         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
9916         GOMP_taskgroup_reduction_register,
9917         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
9918         GOMP_teams_reg and GOMP_taskwait_depend.
9919         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
9920         omp_{capture,display}_affinity{,_}, and
9921         omp_[gs]et_affinity_format{,_}.
9922         * loop.c: Include string.h.
9923         (GOMP_loop_runtime_next): Add ialias.
9924         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9925         (gomp_loop_static_start, gomp_loop_dynamic_start,
9926         gomp_loop_guided_start, gomp_loop_ordered_static_start,
9927         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
9928         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9929         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
9930         or gomp_doacross_init callers.
9931         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
9932         GOMP_loop_doacross_start): New functions.
9933         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
9934         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
9935         Mask off GFS_MONOTONIC bit.
9936         (GOMP_loop_maybe_nonmonotonic_runtime_next,
9937         GOMP_loop_maybe_nonmonotonic_runtime_start,
9938         GOMP_loop_nonmonotonic_runtime_next,
9939         GOMP_loop_nonmonotonic_runtime_start,
9940         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
9941         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
9942         functions.
9943         (gomp_parallel_loop_start): Pass NULL as taskgroup to
9944         gomp_team_start.
9945         * loop_ull.c: Include string.h.
9946         (GOMP_loop_ull_runtime_next): Add ialias.
9947         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
9948         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
9949         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
9950         gomp_loop_ull_ordered_dynamic_start,
9951         gomp_loop_ull_ordered_guided_start,
9952         gomp_loop_ull_doacross_static_start,
9953         gomp_loop_ull_doacross_dynamic_start,
9954         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
9955         and gomp_doacross_ull_init callers.
9956         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
9957         GOMP_loop_ull_doacross_start): New functions.
9958         (GOMP_loop_ull_runtime_start,
9959         GOMP_loop_ull_ordered_runtime_start,
9960         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
9961         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
9962         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
9963         GOMP_loop_ull_nonmonotonic_runtime_next,
9964         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
9965         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
9966         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
9967         (omp_pause_resource_t, omp_depend_t): New typedefs.
9968         (enum omp_lock_hint_t): Renamed to ...
9969         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
9970         enumerators using numbers and omp_lock_hint_* as their aliases.
9971         (omp_lock_hint_t): New typedef.  Rename to ...
9972         (omp_sync_hint_t): ... this.
9973         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
9974         omp_sync_hint_t instead of omp_lock_hint_t.
9975         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9976         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9977         Declare.
9978         (omp_target_is_present, omp_target_disassociate_ptr):
9979         Change first argument from void * to const void *.
9980         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
9981         from void * to const void *.
9982         (omp_target_associate_ptr): Change first and second arguments from
9983         void * to const void *.
9984         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
9985         omp_pause_hard): New parameters.
9986         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9987         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9988         New interfaces.
9989         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
9990         omp_pause_hard): New parameters.
9991         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
9992         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
9993         New externals.
9994         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
9995         EXTRA argument.  If not needed to prepare array, if extra is 0,
9996         clear ws->doacross, otherwise allocate just doacross structure and
9997         extra payload.  If array is needed, allocate also extra payload.
9998         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
9999         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10000         doacross == NULL.
10001         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10002         gomp_team_start.
10003         (GOMP_parallel): Likewise.  Formatting fix.
10004         (GOMP_parallel_reductions): New function.
10005         (GOMP_cancellation_point): If taskgroup has workshare
10006         flag set, check cancelled of prev taskgroup if any.
10007         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10008         on prev taskgroup if any.
10009         * sections.c: Include string.h.
10010         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10011         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10012         (GOMP_sections2_start): New function.
10013         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10014         Pass NULL as taskgroup to gomp_team_start.
10015         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10016         gomp_work_share_start callers.
10017         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10018         If taskgroup has workshare flag set, check cancelled on prev
10019         taskgroup if any.  Guard all cancellation tests with
10020         gomp_cancel_var test.
10021         (omp_target_is_present, omp_target_disassociate_ptr):
10022         Change ptr argument from void * to const void *.
10023         (omp_target_memcpy): Change src argument from void * to const void *.
10024         (omp_target_memcpy_rect): Likewise.
10025         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10026         instead of char * where needed.
10027         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10028         from void * to const void *.
10029         (omp_pause_resource, omp_pause_resource_all): New functions.
10030         * task.c (gomp_task_handle_depend): Handle new depend array format
10031         in addition to the old.  Handle mutexinoutset kinds the same as
10032         inout for now, handle unspecified kinds.
10033         (gomp_create_target_task): If taskgroup has workshare flag set, check
10034         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10035         gomp_cancel_var test.  Handle new depend array format count in
10036         addition to the old.
10037         (GOMP_task): Likewise.  Adjust function comment.
10038         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10039         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10040         gomp_cancel_var test.
10041         (GOMP_taskwait_depend): New function.
10042         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10043         format in addition to the old.  Handle mutexinoutset kinds the same as
10044         inout for now, handle unspecified kinds.  Fix a function comment typo.
10045         (gomp_taskgroup_init): New function.
10046         (GOMP_taskgroup_start): Use it.
10047         (gomp_reduction_register, gomp_create_artificial_team,
10048         GOMP_taskgroup_reduction_register,
10049         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10050         gomp_parallel_reduction_register,
10051         gomp_workshare_task_reduction_register,
10052         gomp_workshare_taskgroup_start,
10053         GOMP_workshare_task_reduction_unregister): New functions.
10054         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10055         check cancelled on prev taskgroup if any.  Guard all cancellation
10056         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10057         by calling GOMP_taskgroup_reduction_register.
10058         * team.c (gomp_thread_attr): Remove comment.
10059         (struct gomp_thread_start_data): Add handle field.
10060         (gomp_thread_start): Call pthread_detach.
10061         (gomp_new_team): Adjust gomp_init_work_share caller.
10062         (gomp_free_pool_helper): Call pthread_detach.
10063         (gomp_team_start): Add taskgroup argument, initialize implicit
10064         tasks' taskgroup field to that.  Don't call
10065         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10066         (gomp_team_end): Determine nesting by thr->ts.level != 0
10067         rather than thr->ts.team != NULL.
10068         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10069         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10070         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10071         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10072         if more than 1 allocate also extra payload at the end of array.  Never
10073         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10074         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10075         return true instead of ws.
10076         * Makefile.in: Regenerated.
10077         * configure: Regenerated.
10078         * config.h.in: Regenerated.
10079         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10080         in some cases.
10081         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10082         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10083         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10084         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10085         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10086         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10087         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10088         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10089         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10090         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10091         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10092         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10093         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10094         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10095         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10096         define a different N(test), don't define N(f0) to N(f14), but instead
10097         define N(f20) to N(f34) using != comparisons.
10098         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10099         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10100         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10101         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10102         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10103         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10104         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10105         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10106         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10107         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10108         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10109         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10110         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10111         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10112         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10113         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10114         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10115         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10116         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10117         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10118         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10119         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10120         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10121         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10122         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10123         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10124         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10125         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10126         * testsuite/libgomp.c++/depend-1.C: New test.
10127         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10128         * testsuite/libgomp.c++/depobj-1.C: New test.
10129         * testsuite/libgomp.c++/for-16.C: New test.
10130         * testsuite/libgomp.c++/for-21.C: New test.
10131         * testsuite/libgomp.c++/for-22.C: New test.
10132         * testsuite/libgomp.c++/for-23.C: New test.
10133         * testsuite/libgomp.c++/for-24.C: New test.
10134         * testsuite/libgomp.c++/for-25.C: New test.
10135         * testsuite/libgomp.c++/for-26.C: New test.
10136         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10137         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10138         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10139         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10140         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10141         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10142         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10143         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10144         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10145         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10146         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10147         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10148         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10149         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10150         * testsuite/libgomp.c/task-reduction-1.c: New test.
10151         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10152         * testsuite/libgomp.c/task-reduction-2.c: New test.
10153         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10154         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10155         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10156         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10157         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10158         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10159         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10160         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10161         * testsuite/libgomp.c/teams-1.c: New test.
10162         * testsuite/libgomp.c/teams-2.c: New test.
10163         * testsuite/libgomp.c/thread-limit-4.c: New test.
10164         * testsuite/libgomp.c/thread-limit-5.c: New test.
10165         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10167 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10169         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10170         acc_memcpy_to/from_device functions, now with async parameter.
10171         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10172         (acc_memcpy_from_device): Likewise.
10173         (acc_memcpy_to_device_async): New API function.
10174         (acc_memcpy_from_device_async): Likewise.
10175         (present_create_copy): Add async parameter and async setting/unsetting.
10176         (acc_create): Adjust present_create_copy call.
10177         (acc_copyin): Likewise.
10178         (acc_present_or_create): Likewise.
10179         (acc_present_or_copyin): Likewise.
10180         (acc_create_async): New API function.
10181         (acc_copyin_async): New API function.
10182         (delete_copyout): Add async parameter and async setting/unsetting.
10183         (acc_delete): Adjust delete_copyout call.
10184         (acc_copyout): Likewise.
10185         (acc_delete_async): New API function.
10186         (acc_copyout_async): Likewise.
10187         (update_dev_host): Add async parameter and async setting/unsetting.
10188         (acc_update_device): Adjust update_dev_host call.
10189         (acc_update_self): Likewise.
10190         (acc_update_device_async): New API function.
10191         (acc_update_self_async): Likewise.
10192         * openacc.h (acc_copyin_async): Declare new API function.
10193         (acc_create_async): Likewise.
10194         (acc_copyout_async): Likewise.
10195         (acc_delete_async): Likewise.
10196         (acc_update_device_async): Likewise.
10197         (acc_update_self_async): Likewise.
10198         (acc_memcpy_to_device_async): Likewise.
10199         (acc_memcpy_from_device_async): Likewise.
10200         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10201         (acc_copyin_async_64_h): New subroutine.
10202         (acc_copyin_async_array_h): New subroutine.
10203         (acc_create_async_32_h): New subroutine.
10204         (acc_create_async_64_h): New subroutine.
10205         (acc_create_async_array_h): New subroutine.
10206         (acc_copyout_async_32_h): New subroutine.
10207         (acc_copyout_async_64_h): New subroutine.
10208         (acc_copyout_async_array_h): New subroutine.
10209         (acc_delete_async_32_h): New subroutine.
10210         (acc_delete_async_64_h): New subroutine.
10211         (acc_delete_async_array_h): New subroutine.
10212         (acc_update_device_async_32_h): New subroutine.
10213         (acc_update_device_async_64_h): New subroutine.
10214         (acc_update_device_async_array_h): New subroutine.
10215         (acc_update_self_async_32_h): New subroutine.
10216         (acc_update_self_async_64_h): New subroutine.
10217         (acc_update_self_async_array_h): New subroutine.
10218         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10219         (acc_copyin_async_64_h): New subroutine.
10220         (acc_copyin_async_array_h): New subroutine.
10221         (acc_create_async_32_h): New subroutine.
10222         (acc_create_async_64_h): New subroutine.
10223         (acc_create_async_array_h): New subroutine.
10224         (acc_copyout_async_32_h): New subroutine.
10225         (acc_copyout_async_64_h): New subroutine.
10226         (acc_copyout_async_array_h): New subroutine.
10227         (acc_delete_async_32_h): New subroutine.
10228         (acc_delete_async_64_h): New subroutine.
10229         (acc_delete_async_array_h): New subroutine.
10230         (acc_update_device_async_32_h): New subroutine.
10231         (acc_update_device_async_64_h): New subroutine.
10232         (acc_update_device_async_array_h): New subroutine.
10233         (acc_update_self_async_32_h): New subroutine.
10234         (acc_update_self_async_64_h): New subroutine.
10235         (acc_update_self_async_array_h): New subroutine.
10236         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10237         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10238         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10239         acc_memcpy_to_device_async*, acc_update_device_async*, and
10240         acc_update_self_async* entries.
10241         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10242         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10243         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10245 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10247         PR bootstrap/82856
10248         * Makefile.am: Include multilib.am
10249         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10250         (CLEANFILES): Remove libgomp.info.
10251         * configure.ac: Remove AC_PREREQ.
10252         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10253         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10254         Regenerate.
10256 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10257             Julian Brown  <julian@codesourcery.com>
10259         * testsuite/libgomp.oacc-c++/this.C: New.
10261 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10263         * plugin/plugin-nvptx.c (struct cuda_map): New.
10264         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10265         h_tail with (cuda_map *) map.
10266         (cuda_map_create): New function.
10267         (cuda_map_destroy): New function.
10268         (map_init): Update to use a linked list of cuda_map objects.
10269         (map_fini): Likewise.
10270         (map_pop): Likewise.
10271         (map_push): Likewise.  Return CUdeviceptr instead of void.
10272         (init_streams_for_device): Remove stales references to ptx_stream
10273         members.
10274         (select_stream_for_async): Likewise.
10275         (nvptx_exec): Update call to map_init.
10277 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10278             Julian Brown  <julian@codesourcery.com>
10280         PR middle-end/86336
10281         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10283 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10284         Thomas Koenig <tkoenig@gcc.gnu.org>
10286         PR fortran/25829
10287         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10288         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10289         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10290         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10291         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10292         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10293         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10295 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10296             Tom de Vries  <tdevries@suse.de>
10298         PR target/85590
10299         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10300         (cuOccupancyMaxPotentialBlockSize): Declare.
10301         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10302         CUDA_ONE_CALL_MAYBE_NULL.
10303         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10304         CUoccupancyB2DSize and declare
10305         cuOccupancyMaxPotentialBlockSize.
10306         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10307         default num_gangs and num_workers when the driver supports it.
10309 2018-08-08  Tom de Vries  <tdevries@suse.de>
10311         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10312         CUDA_ONE_CALL_MAYBE_NULL.
10313         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10314         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10315         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10316         are not found.
10318 2018-08-08  Tom de Vries  <tdevries@suse.de>
10320         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10321         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10322         present.
10324 2018-08-08  Tom de Vries  <tdevries@suse.de>
10326         * plugin/plugin-nvptx.c
10327         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10328         (nvptx_open_device): Use
10329         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10331 2018-08-08  Tom de Vries  <tdevries@suse.de>
10333         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10334         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10336 2018-08-07  Tom de Vries  <tdevries@suse.de>
10338         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10339         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10340         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10341         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10342         CUDA_ONE_CALL_MAYBE_NULL.
10343         (CUDA_CALL_EXISTS): Define.
10345 2018-08-07  Tom de Vries  <tdevries@suse.de>
10347         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10348         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10349         corresponding undefs right after.
10351 2018-08-04  Tom de Vries  <tdevries@suse.de>
10353         * plugin/configfrag.ac: For --without-cuda-driver, set
10354         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10355         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10356         * configure: Regenerate.
10358 2018-08-02  Tom de Vries  <tdevries@suse.de>
10360         PR target/86660
10361         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10362         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10363         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10364         Same.
10365         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10366         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10367         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10369 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10370             Thomas Schwinge <thomas@codesourcery.com>
10372         * config/nvptx/oacc-parallel.c: Truncate.
10374 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10375             James Norris <jnorris@codesourcery.com>
10377         * plugin/plugin-nvptx.c (struct map): Removed.
10378         (map_init, map_pop): Remove use of struct map.
10379         (map_push): Likewise and change argument list.
10380         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10382 2018-08-01  Tom de Vries  <tdevries@suse.de>
10384         * plugin/cuda-lib.def: New file.  Factor out of ...
10385         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10386         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10387         using CUDA_CALLS.
10389 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10391         Revert 'AsyncI/O patch committed'.
10392         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10393                 Thomas Koenig <tkoenig@gcc.gnu.org>
10395         PR fortran/25829
10396         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10397         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10398         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10399         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10400         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10401         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10402         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10404 2018-07-30  Tom de Vries  <tdevries@suse.de>
10406         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10407         (nvptx_exec): Ensure worker and vector default dims don't exceed
10408         targ_fn->max_threads_per_block.
10410 2018-07-30  Tom de Vries  <tdevries@suse.de>
10412         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10413         (nvptx_open_device): Init default_dims for device.
10414         (nvptx_exec): Use default_dims from device.
10416 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10418         PR testsuite/86660
10419         * testsuite/libgomp.c++/for-15.C (results): Include it in
10420         omp declare target region.
10421         (main): Use map (always, tofrom: results) instead of
10422         map (tofrom: results).
10424         PR middle-end/86660
10425         * testsuite/libgomp.c/pr86660.c: New test.
10427 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10428             Tom de Vries  <tdevries@suse.de>
10430         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10431         sufficient resources to launch a kernel, and give a hint on how to fix
10432         it.
10434 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10435             Tom de Vries  <tdevries@suse.de>
10437         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10438         max_threads_per_block and max_threads_per_multiprocessor fields.
10439         (nvptx_open_device): Initialize new fields.
10440         (nvptx_exec): Use num_sms, and new fields.
10442 2018-07-26  Tom de Vries  <tdevries@suse.de>
10444         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10445         to correct locations.  Remove xfail.
10447 2018-07-26  Tom de Vries  <tdevries@suse.de>
10449         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10450         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10451         xfail.
10453 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10454         Thomas Koenig <tkoenig@gcc.gnu.org>
10456         PR fortran/25829
10457         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10458         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10459         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10460         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10461         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10462         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10463         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10465 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10467         PR middle-end/86542
10468         * testsuite/libgomp.c++/pr86542.C: New test.
10470         PR middle-end/86539
10471         * testsuite/libgomp.c++/pr86539.C: New test.
10473 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10475         PR c++/86443
10476         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10477         (results): Make sure the variable is not inside declare target region.
10478         (qux): Remove unused function.
10480 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10482         PR c++/86443
10483         * testsuite/libgomp.c++/for-15.C: New test.
10485 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10487         PR c++/86291
10488         * testsuite/libgomp.c++/pr86291.C: New test.
10490 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10492         * libgomp.texi (Top): Move www.openmp.org to https.
10493         (Enabling OpenMP): Ditto.
10494         (omp_get_active_level): Ditto.
10495         (omp_get_ancestor_thread_num): Ditto.
10496         (omp_get_cancellation): Ditto.
10497         (omp_get_default_device): Ditto.
10498         (omp_get_dynamic): Ditto.
10499         (omp_get_level): Ditto.
10500         (omp_get_max_active_levels): Ditto.
10501         (omp_get_max_task_priority): Ditto.
10502         (omp_get_max_threads): Ditto.
10503         (omp_get_nested): Ditto.
10504         (omp_get_num_devices): Ditto.
10505         (omp_get_num_procs): Ditto.
10506         (omp_get_num_teams): Ditto.
10507         (omp_get_num_threads): Ditto.
10508         (omp_get_proc_bind): Ditto.
10509         (omp_get_schedule): Ditto.
10510         (omp_get_team_num): Ditto.
10511         (omp_get_team_size): Ditto.
10512         (omp_get_thread_limit): Ditto.
10513         (omp_get_thread_num): Ditto.
10514         (omp_in_parallel): Ditto.
10515         (omp_in_final): Ditto.
10516         (omp_is_initial_device): Ditto.
10517         (omp_set_default_device): Ditto.
10518         (omp_set_dynamic): Ditto.
10519         (omp_set_max_active_levels): Ditto.
10520         (omp_set_nested): Ditto.
10521         (omp_set_num_threads): Ditto.
10522         (omp_set_schedule): Ditto.
10523         (omp_init_lock): Ditto.
10524         (omp_set_lock): Ditto.
10525         (omp_test_lock): Ditto.
10526         (omp_unset_lock): Ditto.
10527         (omp_destroy_lock): Ditto.
10528         (omp_init_nest_lock): Ditto.
10529         (omp_set_nest_lock): Ditto.
10530         (omp_test_nest_lock): Ditto.
10531         (omp_unset_nest_lock): Ditto.
10532         (omp_destroy_nest_lock): Ditto.
10533         (omp_get_wtick): Ditto.
10534         (omp_get_wtime): Ditto.
10535         (OMP_CANCELLATION): Ditto.
10536         (OMP_DISPLAY_ENV): Ditto.
10537         (OMP_DEFAULT_DEVICE): Ditto.
10538         (OMP_DYNAMIC): Ditto.
10539         (OMP_MAX_ACTIVE_LEVELS): Ditto.
10540         (OMP_MAX_TASK_PRIORITY): Ditto.
10541         (OMP_NESTED): Ditto.
10542         (OMP_NUM_THREADS): Ditto.
10543         (OMP_PROC_BIND): Ditto.
10544         (OMP_PLACES): Ditto.
10545         (OMP_STACKSIZE): Ditto.
10546         (OMP_SCHEDULE): Ditto.
10547         (OMP_THREAD_LIMIT): Ditto.
10548         (OMP_WAIT_POLICY): Ditto.
10550 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
10551             James Norris  <jnorris@codesourcery.com>
10552             Julian Brown  <julian@codesourcery.com>
10553             Thomas Schwinge  <thomas@codesourcery.com>
10554             Tom de Vries  <tom@codesourcery.com>
10556         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
10557         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
10558         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
10559         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
10560         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10561         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10562         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
10563         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
10564         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
10565         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
10566         Likewise.
10567         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
10568         Likewise.
10569         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
10570         Likewise.
10571         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
10572         Likewise.
10573         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
10574         Likewise.
10575         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
10576         Likewise.
10577         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
10578         Likewise.
10579         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
10580         Likewise.
10581         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
10582         Likewise.
10583         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
10584         Likewise.
10585         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
10586         Likewise.
10587         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
10588         Likewise.
10589         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
10590         Likewise.
10591         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
10592         Likewise.
10593         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
10594         Likewise.
10595         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
10596         Likewise.
10597         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
10598         Likewise.
10599         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
10600         Likewise.
10601         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
10602         Likewise.
10603         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
10604         Likewise.
10605         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
10606         Likewise.
10607         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
10608         Likewise.
10609         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
10610         Likewise.
10611         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
10612         Likewise.
10613         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
10614         Likewise.
10615         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
10616         Likewise.
10617         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
10618         Likewise.
10619         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
10620         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
10621         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
10622         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
10623         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
10624         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
10625         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
10626         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
10627         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
10628         Likewise.
10629         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
10630         Likewise.
10631         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
10632         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
10633         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
10634         Likewise.
10635         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
10636         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
10637         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
10638         Likewise.
10639         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
10640         Likewise.
10641         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
10642         Likewise.
10643         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
10644         Likewise.
10645         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
10646         Likewise.
10647         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
10648         Likewise.
10649         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
10650         Likewise.
10651         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
10652         Likewise.
10653         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
10654         Likewise.
10655         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
10656         Likewise.
10657         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
10658         Likewise.
10659         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
10660         Likewise.
10661         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
10662         Likewise.
10663         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
10664         Likewise.
10665         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
10666         Likewise.
10667         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10668         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
10669         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
10670         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
10671         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
10672         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
10673         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
10675 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
10676             Thomas Schwinge <thomas@codesourcery.com>
10677             Cesar Philippidis  <cesar@codesourcery.com>
10679         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
10680         (gomp_acc_remove_pointer): Update declaration.
10681         (gomp_acc_declare_allocate): Declare.
10682         (gomp_remove_var): Declare.
10683         * libgomp.map (OACC_2.5): Define.
10684         * oacc-mem.c (acc_map_data): Update refcount.
10685         (acc_unmap_data): Likewise.
10686         (present_create_copy): Likewise.
10687         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
10688         (acc_copyin): Likewise.
10689         (FLAG_FINALIZE): Define.
10690         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
10691         (acc_delete_finalize): New function.
10692         (acc_delete_finalize_async): New function.
10693         (acc_copyout_finalize): New function.
10694         (acc_copyout_finalize_async): New function.
10695         (gomp_acc_insert_pointer): Update refcounts.
10696         (gomp_acc_remove_pointer): Return if data is not present on the
10697         accelerator.
10698         * oacc-parallel.c (find_pset): Rename to find_pointer.
10699         (find_pointer): Add support for GOMP_MAP_POINTER.
10700         (handle_ftn_pointers): New function.
10701         (GOACC_parallel_keyed): Update refcounts of variables.
10702         (GOACC_enter_exit_data): Add support for finalized data mappings.
10703         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
10704         of fortran arrays.
10705         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
10706         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
10707         for GOMP_MAP_FORCE_FROM.
10708         * openacc.f90 (module openacc_internal): Add
10709         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
10710         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
10711         acc_copyout_finalize and acc_delete_finalize.
10712         (acc_copyout_finalize_32_h): New subroutine.
10713         (acc_copyout_finalize_64_h): New subroutine.
10714         (acc_copyout_finalize_array_h): New subroutine.
10715         (acc_delete_finalize_32_h): New subroutine.
10716         (acc_delete_finalize_64_h): New subroutine.
10717         (acc_delete_finalize_array_h): New subroutine.
10718         * openacc.h (acc_copyout_finalize): Declare.
10719         (acc_copyout_finalize_async): Declare.
10720         (acc_delete_finalize): Declare.
10721         (acc_delete_finalize_async): Declare.
10722         * openacc_lib.h (acc_copyout_finalize): New interface.
10723         (acc_delete_finalize): New interface.
10724         * target.c (gomp_map_vars): Update dynamic_refcount.
10725         (gomp_remove_var): New function.
10726         (gomp_unmap_vars): Use it.
10727         (gomp_unload_image_from_device): Likewise.
10728         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
10729         case to utilize OpenACC 2.5 data clause semantics.
10730         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10731         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10732         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10733         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10734         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10735         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10736         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10737         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10738         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10739         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10740         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10741         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
10742         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
10743         utilize OpenACC 2.5 data clause semantics.
10744         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10745         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10746         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10747         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10748         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10749         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10750         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10751         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
10752         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
10754 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
10756         PR fortran/85841
10757         PR testsuite/85865
10758         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
10759         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
10760         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
10761         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
10762         * testsuite/libgomp.fortran/task2.f90: Ditto.
10763         * testsuite/libgomp.fortran/vla1.f90: Ditto.
10764         * testsuite/libgomp.fortran/vla2.f90: Ditto.
10765         * testsuite/libgomp.fortran/vla3.f90: Ditto.
10766         * testsuite/libgomp.fortran/vla4.f90: Ditto.
10767         * testsuite/libgomp.fortran/vla5.f90: Ditto.
10768         * testsuite/libgomp.fortran/vla6.f90: Ditto.
10769         * testsuite/libgomp.fortran/vla8.f90: Ditto.
10770         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
10771         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
10773 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
10775         PR c++/85782
10776         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
10778 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10780         PR libgomp/82901
10781         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
10782         to GOACC_enter_exit_data.
10784 2018-05-09  Tom de Vries  <tom@codesourcery.com>
10786         PR libgomp/83792
10787         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
10788         (async_synchronous_p): New function.
10789         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
10790         async_valid_p.
10791         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10792         async_valid_stream_id_p.
10793         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
10794         * oacc-parallel.c (GOACC_parallel_keyed): Same.
10796 2018-05-07  Tom de Vries  <tom@codesourcery.com>
10798         PR testsuite/85677
10799         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
10800         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
10802 2018-05-03  Tom de Vries  <tom@codesourcery.com>
10804         PR testsuite/85106
10805         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
10806         extra_tool_flags if it contains an -foffload=-fdump-* flag.
10807         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
10808         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
10810 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10812         PR libgomp/85411
10813         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
10814         GOMP_OPENACC_DIM ...
10815         * env.c (parse_gomp_openacc_dim): ... here.  New function.
10816         (initialize_env): Call parse_gomp_openacc_dim.
10817         (goacc_default_dims): Define.
10818         * libgomp.h (goacc_default_dims): Declare.
10819         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
10820         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
10821         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
10822         GOMP_PLUGIN_acc_default_dim.
10823         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
10824         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
10826 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10828         PR testsuite/83791
10829         * testsuite/libgomp.c++/udr-9.C: Update.
10830         * testsuite/libgomp.c++/atomic-16.C: Remove.
10831         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
10832         * testsuite/libgomp.c++/loop-13.C: Remove.
10833         * testsuite/libgomp.c++/loop-14.C: Remove.
10834         * testsuite/libgomp.c++/loop-15.C: Remove.
10835         * testsuite/libgomp.c++/monotonic-1.C: Remove.
10836         * testsuite/libgomp.c++/monotonic-2.C: Remove.
10837         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
10838         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
10839         * testsuite/libgomp.c++/ordered-1.C: Remove.
10840         * testsuite/libgomp.c++/pr45784.C: Remove.
10841         * testsuite/libgomp.c++/pr64824.C: Remove.
10842         * testsuite/libgomp.c++/pr64868.C: Remove.
10843         * testsuite/libgomp.c++/pr66199-1.C: Remove.
10844         * testsuite/libgomp.c++/pr66199-2.C: Remove.
10845         * testsuite/libgomp.c++/pr66199-3.C: Remove.
10846         * testsuite/libgomp.c++/pr66199-4.C: Remove.
10847         * testsuite/libgomp.c++/pr66199-5.C: Remove.
10848         * testsuite/libgomp.c++/pr66199-6.C: Remove.
10849         * testsuite/libgomp.c++/pr66199-7.C: Remove.
10850         * testsuite/libgomp.c++/pr66199-8.C: Remove.
10851         * testsuite/libgomp.c++/pr66199-9.C: Remove.
10852         * testsuite/libgomp.c++/pr69389.C: Remove.
10853         * testsuite/libgomp.c++/simd10.C: Remove.
10854         * testsuite/libgomp.c++/simd11.C: Remove.
10855         * testsuite/libgomp.c++/simd12.C: Remove.
10856         * testsuite/libgomp.c++/simd13.C: Remove.
10857         * testsuite/libgomp.c++/target-1.C: Remove.
10858         * testsuite/libgomp.c++/target-3.C: Remove.
10859         * testsuite/libgomp.c++/target-4.C: Remove.
10860         * testsuite/libgomp.c++/target-5.C: Remove.
10861         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
10862         * testsuite/libgomp.c++/taskloop-1.C: Remove.
10863         * testsuite/libgomp.c++/taskloop-2.C: Remove.
10864         * testsuite/libgomp.c++/taskloop-3.C: Remove.
10865         * testsuite/libgomp.c++/taskloop-4.C: Remove.
10866         * testsuite/libgomp.c++/udr-9.C: Remove.
10867         * testsuite/libgomp.c++/for-10.C: Remove.
10868         * testsuite/libgomp.c++/for-11.C: Remove.
10869         * testsuite/libgomp.c++/for-12.C: Remove.
10870         * testsuite/libgomp.c++/for-13.C: Remove.
10871         * testsuite/libgomp.c++/for-14.C: Remove.
10872         * testsuite/libgomp.c++/for-9.C: Remove.
10873         * testsuite/libgomp.c/atomic-18.c: Move ...
10874         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
10875         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
10876         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
10877         * testsuite/libgomp.c/loop-13.c: Move ...
10878         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
10879         * testsuite/libgomp.c/loop-14.c: Move ...
10880         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
10881         * testsuite/libgomp.c/loop-15.c: Remove.
10882         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
10883         * testsuite/libgomp.c/monotonic-1.c: Move ...
10884         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
10885         * testsuite/libgomp.c/monotonic-2.c: Move ...
10886         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
10887         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
10888         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
10889         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
10890         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
10891         * testsuite/libgomp.c/ordered-4.c: Move ...
10892         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
10893         * testsuite/libgomp.c/pr45784.c: Move ...
10894         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
10895         * testsuite/libgomp.c/pr64824.c: Move ...
10896         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
10897         * testsuite/libgomp.c/pr64868.c: Move ...
10898         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
10899         * testsuite/libgomp.c/pr66199-1.c: Move ...
10900         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
10901         * testsuite/libgomp.c/pr66199-2.c: Move ...
10902         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
10903         * testsuite/libgomp.c/pr66199-3.c: Move ...
10904         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
10905         * testsuite/libgomp.c/pr66199-4.c: Move ...
10906         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
10907         * testsuite/libgomp.c/pr66199-5.c: Move ...
10908         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
10909         * testsuite/libgomp.c/pr66199-6.c: Move ...
10910         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
10911         * testsuite/libgomp.c/pr66199-7.c: Move ...
10912         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
10913         * testsuite/libgomp.c/pr66199-8.c: Move ...
10914         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
10915         * testsuite/libgomp.c/pr66199-9.c: Move ...
10916         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
10917         * testsuite/libgomp.c/pr69389.c: Move ...
10918         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
10919         * testsuite/libgomp.c/simd-14.c: Move ...
10920         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
10921         * testsuite/libgomp.c/simd-15.c: Move ...
10922         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
10923         * testsuite/libgomp.c/simd-16.c: Move ...
10924         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
10925         * testsuite/libgomp.c/simd-17.c: Move ...
10926         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
10927         * testsuite/libgomp.c/target-1.c: Move ...
10928         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
10929         * testsuite/libgomp.c/target-10.c: Move ...
10930         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
10931         * testsuite/libgomp.c/target-13.c: Move ...
10932         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
10933         * testsuite/libgomp.c/target-2.c: Move ...
10934         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
10935         * testsuite/libgomp.c/taskgroup-1.c: Move ...
10936         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
10937         * testsuite/libgomp.c/taskloop-1.c: Move ...
10938         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
10939         * testsuite/libgomp.c/taskloop-2.c: Move ...
10940         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
10941         * testsuite/libgomp.c/taskloop-3.c: Move ...
10942         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
10943         * testsuite/libgomp.c/taskloop-4.c: Move ...
10944         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
10945         * testsuite/libgomp.c/udr-1.c: Move ...
10946         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
10947         * testsuite/libgomp.c/for-1.c: Move ...
10948         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
10949         * testsuite/libgomp.c/for-1.h: Move ...
10950         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
10951         * testsuite/libgomp.c/for-2.c: Move ...
10952         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
10953         * testsuite/libgomp.c/for-2.h: Move ...
10954         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
10955         * testsuite/libgomp.c/for-3.c: Move ...
10956         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
10957         * testsuite/libgomp.c/for-4.c: Move ...
10958         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
10959         * testsuite/libgomp.c/for-5.c: Move ...
10960         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
10961         * testsuite/libgomp.c/for-6.c: Move ...
10962         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
10964 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10966         PR libgomp/82428
10967         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
10968         __builtin_goacc_parlevel_{id,size}.
10969         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
10970         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
10971         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
10972         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
10973         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
10974         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
10975         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
10976         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
10977         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
10978         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
10979         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
10980         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
10981         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
10982         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
10983         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
10984         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
10985         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
10986         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
10987         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
10988         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
10989         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
10990         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
10991         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
10993 2018-05-02  Tom de Vries  <tom@codesourcery.com>
10995         PR testsuite/85106
10996         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
10998 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11000         PR testsuite/85106
11001         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11003 2018-04-29  Julian Brown  <julian@codesourcery.com>
11004             Tom de Vries  <tom@codesourcery.com>
11006         PR testsuite/85527
11007         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11008         arbitrary order for iterations of atomic subtract check.
11010 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11012         PR testsuite/85527
11013         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11014         atomic capture results obtained in parallel loop to an array, instead of
11015         to a scalar.
11017 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11019         PR libgomp/84020
11020         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11021         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11022         (process_GOMP_NVPTX_JIT): New function.
11023         (link_ptx): Use process_GOMP_NVPTX_JIT.
11025 2018-04-26  Richard Biener <rguenther@suse.de>
11026             Tom de Vries  <tom@codesourcery.com>
11028         PR lto/85422
11029         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11031 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11033         PR target/85519
11034         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11035         recursion depth from 25 to 23.
11036         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11038 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11040         * configure: Regenerated.
11042 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11043             Tom de Vries  <tom@codesourcery.com>
11045         PR target/85445
11046         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11048 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11050         PR libgomp/85463
11051         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11052         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11053         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11054         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11055         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11056         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11058         PR libfortran/85166
11059         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11060         abort".
11061         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11063 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11065         * configure: Regenerated.
11067 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11069         PR jit/85384
11070         * configure: Regenerate.
11072 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11073             Tom de Vries  <tom@codesourcery.com>
11075         PR middle-end/84955
11076         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11077         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11079 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11081         PR fortran/83064
11082         PR testsuite/85346
11083         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11084         test from gfortran.dg to here.
11086 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11088         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11089         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11091 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11093         PR middle-end/84955
11094         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11095         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11097 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11099         PR target/85204
11100         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11102 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11104         PR tree-optimization/85063
11105         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11106         * testsuite/libgomp.c/switch-conversion.c: New test.
11107         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11108         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11110 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11112         PR fortran/84381
11113         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11114         call abort by STOP n.
11115         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11116         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11117         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11118         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11119         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11120         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11121         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11122         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11123         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11124         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11125         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11126         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11127         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11128         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11129         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11130         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11131         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11132         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11133         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11134         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11135         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11136         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11137         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11138         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11139         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11140         * testsuite/libgomp.fortran/character1.f90: Likewise.
11141         * testsuite/libgomp.fortran/character2.f90: Likewise.
11142         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11143         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11144         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11145         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11146         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11147         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11148         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11149         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11150         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11151         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11152         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11153         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11154         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11155         * testsuite/libgomp.fortran/do1.f90: Likewise.
11156         * testsuite/libgomp.fortran/do2.f90: Likewise.
11157         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11158         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11159         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11160         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11161         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11162         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11163         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11164         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11165         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11166         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11167         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11168         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11169         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11170         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11171         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11172         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11173         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11174         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11175         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11176         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11177         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11178         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11179         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11180         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11181         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11182         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11183         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11184         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11185         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11186         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11187         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11188         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11189         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11190         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11191         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11192         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11193         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11194         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11195         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11196         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11197         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11198         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11199         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11200         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11201         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11202         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11203         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11204         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11205         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11206         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11207         * testsuite/libgomp.fortran/lib2.f: Likewise.
11208         * testsuite/libgomp.fortran/lib3.f: Likewise.
11209         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11210         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11211         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11212         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11213         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11214         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11215         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11216         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11217         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11218         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11219         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11220         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11221         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11222         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11223         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11224         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11225         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11226         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11227         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11228         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11229         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11230         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11231         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11232         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11233         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11234         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11235         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11236         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11237         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11238         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11239         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11240         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11241         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11242         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11243         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11244         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11245         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11246         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11247         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11248         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11249         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11250         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11251         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11252         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11253         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11254         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11255         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11256         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11257         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11258         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11259         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11260         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11261         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11262         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11263         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11264         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11265         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11266         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11267         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11268         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11269         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11270         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11271         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11272         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11273         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11274         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11275         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11276         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11277         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11278         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11279         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11280         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11281         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11282         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11283         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11284         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11285         * testsuite/libgomp.fortran/stack.f90: Likewise.
11286         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11287         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11288         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11289         * testsuite/libgomp.fortran/target1.f90: Likewise.
11290         * testsuite/libgomp.fortran/target2.f90: Likewise.
11291         * testsuite/libgomp.fortran/target3.f90: Likewise.
11292         * testsuite/libgomp.fortran/target4.f90: Likewise.
11293         * testsuite/libgomp.fortran/target5.f90: Likewise.
11294         * testsuite/libgomp.fortran/target6.f90: Likewise.
11295         * testsuite/libgomp.fortran/target7.f90: Likewise.
11296         * testsuite/libgomp.fortran/target8.f90: Likewise.
11297         * testsuite/libgomp.fortran/task1.f90: Likewise.
11298         * testsuite/libgomp.fortran/task2.f90: Likewise.
11299         * testsuite/libgomp.fortran/task3.f90: Likewise.
11300         * testsuite/libgomp.fortran/task4.f90: Likewise.
11301         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11302         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11303         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11304         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11305         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11306         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11307         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11308         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11309         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11310         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11311         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11312         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11313         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11314         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11315         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11316         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11317         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11318         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11319         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11320         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11321         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11322         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11323         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11324         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11325         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11326         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11327         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11328         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11329         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11330         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11331         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11332         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11333         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11334         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11335         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11336         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11337         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11338         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11339         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11340         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11341         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11342         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11343         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11344         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11345         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11346         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11347         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11348         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11349         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11350         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11351         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11352         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11353         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11354         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11355         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11356         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11357         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11358         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11359         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11360         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11361         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11362         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11363         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11364         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11365         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11366         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11367         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11368         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11369         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11370         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11371         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11372         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11373         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11374         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11375         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11376         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11377         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11378         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11379         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11380         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11381         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11382         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11383         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11384         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11385         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11386         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11387         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11388         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11389         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11390         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11391         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11392         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11393         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11394         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11395         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11396         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11397         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11398         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11399         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11400         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11401         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11402         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11403         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11404         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11405         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11406         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11407         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11408         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11409         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11410         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11411         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11412         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11413         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11414         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11415         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11416         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11417         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11418         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11419         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11420         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11421         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11422         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11423         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11424         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11425         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11426         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11428 2018-03-20  Richard Biener  <rguenther@suse.de>
11430         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11431         parallelizable loop.
11433 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11435         PR target/84148
11436         * configure: Regenerate.
11438 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11440         PR fortran/84418
11441         * libgomp.fortran/pr84418-1.f90: New test.
11442         * libgomp.fortran/pr84418-2.f90: New test.
11444 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11446         PR fortran/84313
11447         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11448         -std=f2003 -fall-intrinsics into dg-additional-options.
11450 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11452         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11453         clonable.
11455 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11457         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11459 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11461         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11462         [__cplusplus]: Declare extern "C".
11464 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11466         PR libgomp/84217
11467         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11469 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11470             Jakub Jelinek  <jakub@redhat.com>
11472         PR libgomp/84096
11473         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11474         instead of omp_lock_t.
11476 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11478         PR target/84028
11479         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11481 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11483         PR target/83589
11484         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11486 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11488         PR target/81352
11489         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11491 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11492             Cesar Philippidis  <cesar@codesourcery.com>
11494         PR target/83920
11495         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11496         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11498 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11500         Update copyright years.
11502         * libgomp.texi: Bump @copying's copyright year.
11504 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11506         PR libgomp/83046
11507         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11508         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11510 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11512         PR c++/83046
11513         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11514         (test_nonstatic): Fix return type to workaround PR83046.
11516 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11518         PR testsuite/83281
11519         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11520         j suffix instead of i.
11521         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11522         Likewise.
11524 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11526         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11527         call to acc_wait (1).
11529 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
11531         PR fortran/81304
11532         * testsuite/libgomp.fortran/pr81304.f90: New test.
11534 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
11536         PR fortran/81841
11537         * libgomp.fortran/pr81841.f90: New test.
11539 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
11541         PR libgomp/83106
11542         * target.c (gomp_target_init): Compute lengths just once and
11543         use them in both malloc size and subsequent copying.
11545 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11547         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
11548         * acinclude.m4: Add cet.m4.
11549         * configure: Regenerate.
11550         * Makefile.in: Likewise.
11551         * testsuite/Makefile.in: Likewise.
11553 2017-11-15  Tom de Vries  <tom@codesourcery.com>
11555         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
11556         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
11557         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
11558         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
11559         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
11560         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
11562 2017-11-14  Tom de Vries  <tom@codesourcery.com>
11564         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
11565         non-nvidia devices.
11567 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
11569         PR c++/82835
11570         * testsuite/libgomp.c++/pr82835.C: New test.
11572 2017-11-06  Martin Liska  <mliska@suse.cz>
11574         * testsuite/libgomp.c++/loop-2.C: Return a value
11575         for functions with non-void return type, or change type to void,
11576         or add -Wno-return-type for test.
11577         * testsuite/libgomp.c++/loop-4.C: Likewise.
11578         * testsuite/libgomp.c++/parallel-1.C: Likewise.
11579         * testsuite/libgomp.c++/shared-1.C: Likewise.
11580         * testsuite/libgomp.c++/single-1.C: Likewise.
11581         * testsuite/libgomp.c++/single-2.C: Likewise.
11583 2017-10-31  Tom de Vries  <tom@codesourcery.com>
11585         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
11586         "do {} while (false)".
11587         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
11588         after HSA_DEBUG call.
11590 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
11592         * target.c (struct gomp_coalesce_buf): New type.
11593         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
11594         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
11595         (gomp_copy_host2dev): Add CBUF argument, if copying into
11596         the cached ranges, memcpy into buffer instead of copying
11597         into device.
11598         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
11599         Add CBUF argument, pass it through to other calls.
11600         (gomp_map_vars): Aggregate copies from host to device if small enough
11601         and with small enough gaps in between into memcpy into a buffer and
11602         fewer host to device copies from the buffer.
11603         (gomp_update): Adjust gomp_copy_host2dev caller.
11605 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
11607         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
11608         run" directive.
11609         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11610         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11611         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11612         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11614 2017-10-16  Tom de Vries  <tom@codesourcery.com>
11616         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
11617         openacc_nvidia_accel_selected.
11618         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
11619         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
11620         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
11621         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
11622         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
11623         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
11624         openacc_nvidia_accel_selected. Skip for shared memory device.
11625         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
11626         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
11628 2017-10-09  Martin Jambor  <mjambor@suse.cz>
11630         PR hsa/82416
11631         * testsuite/libgomp.hsa.c/pr82416.c: New test.
11633 2017-10-07  Tom de Vries  <tom@codesourcery.com>
11635         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
11636         Remove acc_device_nvidia references.
11637         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
11638         Same.
11640 2017-10-05  Tom de Vries  <tom@codesourcery.com>
11642         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
11643         vector_length(32) clause from acc parallel directive.
11644         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
11646 2017-10-04  Tom de Vries  <tom@codesourcery.com>
11648         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
11649         (main): Reduce sum of arr elements.  Assert that hres is exactly
11650         representable in 32-bit floating point.
11651         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
11652         (main): Reduce sum of arr elements.  Assert that hres and hmres are
11653         exactly representable in 32-bit floating point.
11654         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
11656 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11658         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
11659         setting.
11660         * testsuite/libgomp.c++/pr69393.C: Same.
11661         * testsuite/libgomp.c++/taskloop-1.C: Same.
11662         * testsuite/libgomp.c++/taskloop-3.C: Same.
11663         * testsuite/libgomp.c++/taskloop-4.C: Same.
11664         * testsuite/libgomp.c/for-4.c: Same.
11665         * testsuite/libgomp.c/pr66199-3.c: Same.
11666         * testsuite/libgomp.c/pr66199-4.c: Same.
11667         * testsuite/libgomp.c/pr66199-6.c: Same.
11668         * testsuite/libgomp.c/taskloop-1.c: Same.
11669         * testsuite/libgomp.c/taskloop-3.c: Same.
11670         * testsuite/libgomp.c/taskloop-4.c: Same.
11671         * testsuite/libgomp.fortran/aligned1.f03: Same.
11672         * testsuite/libgomp.fortran/condinc1.f: Same.
11673         * testsuite/libgomp.fortran/condinc3.f90: Same.
11674         * testsuite/libgomp.fortran/crayptr1.f90: Same.
11675         * testsuite/libgomp.fortran/crayptr2.f90: Same.
11676         * testsuite/libgomp.fortran/crayptr3.f90: Same.
11677         * testsuite/libgomp.fortran/omp_cond1.f: Same.
11678         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
11679         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
11680         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
11681         * testsuite/libgomp.fortran/recursion1.f90: Same.
11682         * testsuite/libgomp.fortran/target2.f90: Same.
11683         * testsuite/libgomp.fortran/target5.f90: Same.
11684         * testsuite/libgomp.fortran/task3.f90: Same.
11686 2017-09-28  Tom de Vries  <tom@codesourcery.com>
11688         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
11689         vector_length(32) clause from acc parallel directive.
11690         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
11692 2017-09-27  Tom de Vries  <tom@codesourcery.com>
11694         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
11695         Remove acc_device_nvidia references.
11697 2017-09-16  Tom de Vries  <tom@codesourcery.com>
11699         PR c/81875
11700         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
11702 2017-09-14  Tom de Vries  <tom@codesourcery.com>
11704         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
11705         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
11706         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
11707         * testsuite/libgomp.c/c.exp: Include test-cases from
11708         libgomp.c-c++-common.
11709         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
11710         files.
11712 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
11714         PR c++/81314
11715         * testsuite/libgomp.c++/pr81314.C: New test.
11717 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
11719         * libgomp.texi (Top): www.openacc.org now uses https.
11720         (Enabling OpenACC): Ditto.
11721         (acc_get_num_devices): Ditto.
11722         (acc_set_device_type): Ditto.
11723         (acc_get_device_type): Ditto.
11724         (acc_set_device_num): Ditto.
11725         (acc_get_device_num): Ditto.
11726         (acc_async_test): Ditto.
11727         (acc_async_test_all): Ditto.
11728         (acc_wait): Ditto.
11729         (acc_wait_all): Ditto.
11730         (acc_wait_all_async): Ditto.
11731         (acc_wait_async): Ditto.
11732         (acc_init): Ditto.
11733         (acc_shutdown): Ditto.
11734         (acc_on_device): Ditto.
11735         (acc_malloc): Ditto.
11736         (acc_free): Ditto.
11737         (acc_copyin): Ditto.
11738         (acc_present_or_copyin): Ditto.
11739         (acc_create): Ditto.
11740         (acc_present_or_create): Ditto.
11741         (acc_copyout): Ditto.
11742         (acc_delete): Ditto.
11743         (acc_update_device): Ditto.
11744         (acc_update_self): Ditto.
11745         (acc_map_data): Ditto.
11746         (acc_unmap_data): Ditto.
11747         (acc_deviceptr): Ditto.
11748         (acc_hostptr): Ditto.
11749         (acc_is_present): Ditto.
11750         (acc_memcpy_to_device): Ditto.
11751         (acc_memcpy_from_device): Ditto.
11752         (acc_get_current_cuda_device): Ditto.
11753         (acc_get_current_cuda_context): Ditto.
11754         (acc_get_cuda_stream): Ditto.
11755         (acc_set_cuda_stream): Ditto.
11756         (ACC_DEVICE_TYPE): Ditto.
11757         (ACC_DEVICE_NUM): Ditto.
11758         (OpenACC Library Interoperability): Ditto.
11760 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11762         PR c/81687
11763         * testsuite/libgomp.c/pr81687-1.c: New test.
11764         * testsuite/libgomp.c/pr81687-2.c: New test.
11766 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11768         PR c/69389
11769         * testsuite/libgomp.c/pr69389.c: New test.
11770         * testsuite/libgomp.c++/pr69389.C: New test.
11772 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11774         PR middle-end/78266
11775         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
11776         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
11778 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
11780         PR c/45784
11781         * testsuite/libgomp.c/pr45784.c: New test.
11782         * testsuite/libgomp.c++/pr45784.C: New test.
11784 2017-07-19  Tom de Vries  <tom@codesourcery.com>
11786         * testsuite/libgomp.oacc-c/vec.c: New test.
11788 2017-07-03  Tom de Vries  <tom@codesourcery.com>
11790         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
11792 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11794         * plugin/plugin-nvptx.c (notify_var): New function.
11795         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
11797 2017-06-27  Tom de Vries  <tom@codesourcery.com>
11799         * env.c (parse_unsigned_long_1): Factor out of ...
11800         (parse_unsigned_long): ... here.
11801         (parse_int_1): Factor out of ...
11802         (parse_int): ... here.
11803         (parse_int_secure): New function.
11804         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
11805         * secure_getenv.h: Factor out of ...
11806         * plugin/plugin-hsa.c: ... here.
11807         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
11809 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
11811         PR c++/81130
11812         * testsuite/libgomp.c++/pr81130.C: New test.
11814 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11816         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
11817         default args.
11818         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
11819         dg-xfail-run-if default args.
11821 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11823         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
11824         * testsuite/libgomp.c/pr39591-3.c: Likewise.
11826 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
11828         PR libgomp/80822
11829         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
11830         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
11831         sibling lists, depending on level just pick up what CPUs to put
11832         together into a place vs. whether add multiple ordered places.
11834 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
11836         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
11837         * libgomp.map (OACC_2.0.1): Add these.
11838         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
11839         for "acc_wait", and "acc_wait_all", respectively.
11840         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
11841         for "acc_wait", and "acc_wait_all", respectively.
11842         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
11843         * libgomp.texi (acc_wait, acc_wait_all): Update.
11844         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
11845         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
11846         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11848         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
11849         acc_present_or_copyin and acc_present_or_create procedures,
11850         respectively.
11851         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
11852         generally different variants of OpenACC Runtime Library functions.
11853         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11855         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
11856         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11858         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
11859         of preprocessor definitions.
11860         * libgomp.h (strong_alias): Guard by "#ifdef
11861         HAVE_ATTRIBUTE_ALIAS".
11862         * oacc-mem.c: Provide "acc_pcreate" as alias for
11863         "acc_present_or_create", and "acc_pcopyin" as alias for
11864         "acc_present_or_copyin".
11865         * libgomp.map: New version "OACC_2.0.1".
11866         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
11867         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
11868         its content into...
11869         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
11870         Extend testing.
11872         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
11873         when disabling nvptx offloading.
11875 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11877         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
11878         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
11879         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11881         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
11882         * testsuite/lib/libgomp.exp
11883         (check_effective_target_openacc_nvidia_accel_configured): New
11884         proc.
11885         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
11886         (check_effective_target_c++): New procs.
11887         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
11888         (check_effective_target_c++): Likewise.
11890 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
11892         PR middle-end/80809
11893         * testsuite/libgomp.c/pr80809-2.c: New test.
11894         * testsuite/libgomp.c/pr80809-3.c: New test.
11896         PR middle-end/80809
11897         * testsuite/libgomp.c/pr80809-1.c: New test.
11899         PR middle-end/80853
11900         * testsuite/libgomp.c/pr80853.c: New test.
11902 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
11904         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
11905         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
11906         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11907         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11908         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11910         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
11911         Debug output for failure.
11913 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11915         * testsuite/lib/libgomp.exp: Load scanlang.exp.
11917 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
11919         PR bootstrap/80531
11920         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
11921         bootstrap compare failures.
11923 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
11925         * testsuite/libgomp.c/target-36.c: New testcase.
11927 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
11929         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
11930         instead of char.
11932 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
11934         PR libgomp/80394
11935         * testsuite/libgomp.c/pr80394.c: New test.
11937 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
11939         PR libgomp/79876
11940         * config/posix/thread-stacksize.h: New file.
11941         * config/darwin/thread-stacksize.h: New file.
11942         * config/nvptx/thread-stacksize.h: New file.
11943         * env.c: Include thread-stacksize.h.
11944         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
11945         instead of 0.  Call pthread_attr_setstacksize even if
11946         GOMP_DEFAULT_STACKSIZE is non-zero.
11948 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
11950         * env.c (initialize_env): Initialize stacksize to 0.
11952 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
11954         PR c++/80029
11955         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
11957 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
11959         PR c/79940
11960         * testsuite/libgomp.c/pr79940.c: New test.
11962 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11964         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
11965         targets.
11966         Add __float128 options.
11968 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
11970         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
11971         hppa*-*-* dg-skip-if directive.
11973 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
11975         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
11976         dg-skip-if directive into a comment.
11978 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
11979             Chung-Lin Tang  <cltang@codesourcery.com>
11981         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
11982         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
11983         add additional case.
11984         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
11985         "openacc_nvidia_accel_selected".
11986         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
11987         Add num_workers(8) clause.
11989 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
11991         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
11992         hppa*-*-*.
11993         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
11994         include complex.h on hppa*-*-hpux*.
11995         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
11997 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
11999         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12001         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12002         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12003         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12004         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12005         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12006         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12007         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12008         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12009         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12010         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12012 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12014         * libgomp-plugin.h: #include <stdbool.h>.
12015         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12016         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12017         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12018         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12019         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12020         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12021         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12022         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12023         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12024         (GOMP_OFFLOAD_openacc_async_test)
12025         (GOMP_OFFLOAD_openacc_async_test_all)
12026         (GOMP_OFFLOAD_openacc_async_wait)
12027         (GOMP_OFFLOAD_openacc_async_wait_async)
12028         (GOMP_OFFLOAD_openacc_async_wait_all)
12029         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12030         (GOMP_OFFLOAD_openacc_async_set_async)
12031         (GOMP_OFFLOAD_openacc_create_thread_data)
12032         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12033         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12034         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12035         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12036         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12037         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12038         these.
12039         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12040         (GOMP_OFFLOAD_unload_image): Fix argument types.
12042 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12044         * testsuite/lib/libgomp.exp
12045         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12046         check_compile invocation.  Fix up removal of executable.  Drop
12047         bogus "2>&1" argument.
12049         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12050         directive.
12052 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12053             Martin Jambor  <mjambor@suse.cz>
12055         * plugin/hsa.h: Moved to top level include.
12056         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12058 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12060         PR other/79046
12061         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12062         of cat to get version from BASE-VER file.
12063         * testsuite/Makefile.in: Regenerated.
12065 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12067         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12068         for _WIN64.
12070 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12072         * plugin/hsa.h: Add GCC runtime library exception.
12073         * plugin/hsa_ext_finalize.h: Likewise.
12075         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12076         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12077         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12078         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12079         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12080         library to link ptx plugin against.
12081         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12082         (CUDA_CALLS): Define.
12083         (cuda_lib, cuda_lib_inited): New variables.
12084         (init_cuda_lib): New function.
12085         (CUDA_CALL_PREFIX): Define.
12086         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12087         (CUDA_CALL): Use FN instead of (FN).
12088         (CUDA_CALL_NOCHECK): Define.
12089         (cuda_error, fini_streams_for_device, select_stream_for_async,
12090         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12091         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12092         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12093         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12094         CUDA_CALL_NOCHECK.
12095         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12096         CUDA_CALL_NOCHECK.
12097         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12098         Use CUDA_CALL_NOCHECK.
12099         * plugin/cuda/cuda.h: New file.
12100         * config.h.in: Regenerated.
12101         * configure: Regenerated.
12103         PR other/79046
12104         * configure.ac: Add GCC_BASE_VER.
12105         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12106         get version from BASE-VER file.
12107         * testsuite/Makefile.in: Regenerated.
12108         * configure: Regenerated.
12109         * Makefile.in: Regenerated.
12111 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12113         PR libgomp/60670
12114         * Makefile.am: Make fincludedir multilib-aware.
12115         * Makefile.in: Regenerate.
12117 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12119         Update copyright years.
12121         * libgomp.texi: Bump @copying's copyright year.
12123 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12125         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12126         pthread_spinlock_t instead of gomp_mutex_t lock.
12127         (gomp_get_thread_pool): Likewise.
12128         (gomp_release_thread_pool): Likewise.
12129         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12130         Likewise.
12132 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12134         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12135         thread pool in case nthreads == 1.
12137 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12139         * config/nvptx/env.c: Delete.
12140         * icv.c: Move definitions of ICV variables back ...
12141         * env.c: ...here.  Do not compile environment-related functionality if
12142         LIBGOMP_OFFLOADED_ONLY is set.
12144 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12146         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12147         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12148         * configure: Regenerate.
12149         * config.h.in: Likewise.
12151 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12153         * Makefile.in: Regenerate with automake-1.11.6.
12154         * aclocal.m4: Likewise.
12155         * configure: Likewise.
12156         * testsuite/Makefile.in: Likewise.
12158 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12160         * config/nvptx/critical.c: Delete to use generic implementation.
12162 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12164         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12165         ../../affinity.c as fallback.
12166         * config/nvptx/affinity.c: Delete to use fallback implementation.
12168 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12169             Jakub Jelinek  <jakub@redhat.com>
12170             Dmitry Melnik  <dm@ispras.ru>
12172         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12173         * Makefile.in. Regenerate.
12174         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12175         (LIBGOMP_USE_PTHREADS): ...here; new define.
12176         * configure: Regenerate.
12177         * config.h.in: Likewise.
12178         * config/posix/affinity.c: Move to...
12179         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12180         interface by LIBGOMP_USE_PTHREADS. 
12181         * critical.c: Split out GOMP_atomic_{start,end} into...
12182         * atomic.c: ...here (new file).
12183         * env.c: Split out ICV definitions into...
12184         * icv.c: ...here (new file) and...
12185         * icv-device.c: ...here. New file.
12186         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12187         (gomp_destroy_lock_30): Ditto.
12188         (gomp_set_lock_30): Ditto.
12189         (gomp_unset_lock_30): Ditto.
12190         (gomp_test_lock_30): Ditto.
12191         (gomp_init_nest_lock_30): Ditto.
12192         (gomp_destroy_nest_lock_30): Ditto.
12193         (gomp_set_nest_lock_30): Ditto.
12194         (gomp_unset_nest_lock_30): Ditto.
12195         (gomp_test_nest_lock_30): Ditto.
12196         * lock.c: New.
12197         * config/nvptx/lock.c: New.
12198         * config/nvptx/bar.c: New.
12199         * config/nvptx/bar.h: New.
12200         * config/nvptx/doacross.h: New.
12201         * config/nvptx/error.c: New.
12202         * config/nvptx/icv-device.c: New.
12203         * config/nvptx/mutex.h: New.
12204         * config/nvptx/pool.h: New.
12205         * config/nvptx/proc.c: New.
12206         * config/nvptx/ptrlock.h: New.
12207         * config/nvptx/sem.h: New.
12208         * config/nvptx/simple-bar.h: New.
12209         * config/nvptx/target.c: New.
12210         * config/nvptx/task.c: New.
12211         * config/nvptx/team.c: New.
12212         * config/nvptx/time.c: New.
12213         * config/posix/simple-bar.h: New.
12214         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12215         (gomp_num_teams_var): Declare.
12216         (struct gomp_thread_pool): Change threads_dock member to
12217         gomp_simple_barrier_t.
12218         [__nvptx__] (gomp_thread): New implementation.
12219         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12220         (gomp_thread_destructor): Ditto.
12221         (gomp_init_thread_affinity): Ditto.
12222         * team.c: Guard uses of Pthreads-specific interfaces by
12223         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12224         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12225         * config/nvptx/alloc.c: Delete.
12226         * config/nvptx/barrier.c: Ditto.
12227         * config/nvptx/fortran.c: Ditto.
12228         * config/nvptx/iter.c: Ditto.
12229         * config/nvptx/iter_ull.c: Ditto.
12230         * config/nvptx/loop.c: Ditto.
12231         * config/nvptx/loop_ull.c: Ditto.
12232         * config/nvptx/ordered.c: Ditto.
12233         * config/nvptx/parallel.c: Ditto.
12234         * config/nvptx/priority_queue.c: Ditto.
12235         * config/nvptx/sections.c: Ditto.
12236         * config/nvptx/single.c: Ditto.
12237         * config/nvptx/splay-tree.c: Ditto.
12238         * config/nvptx/work.c: Ditto.
12239         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12240         -foffload=-lgfortran in addition to -lgfortran.
12241         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12242         * plugin/plugin-nvptx.c: Include <limits.h>.
12243         (struct targ_fn_descriptor): Add new fields.
12244         (struct ptx_device): Ditto.  Set them...
12245         (nvptx_open_device): ...here.
12246         (nvptx_adjust_launch_bounds): New.
12247         (nvptx_host2dev): Allow NULL 'nvthd'.
12248         (nvptx_dev2host): Ditto.
12249         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12250         (link_ptx): Adjust log sizes.
12251         (nvptx_host2dev): Allow NULL 'nvthd'.
12252         (nvptx_dev2host): Ditto.
12253         (nvptx_set_clocktick): New.  Use it...
12254         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12255         fields.
12256         (GOMP_OFFLOAD_dev2dev): New.
12257         (nvptx_adjust_launch_bounds): New.
12258         (nvptx_stacks_size): New.
12259         (nvptx_stacks_alloc): New.
12260         (nvptx_stacks_free): New.
12261         (GOMP_OFFLOAD_run): New.
12262         (GOMP_OFFLOAD_async_run): New (stub).
12264 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12266         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12267         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12268         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12270 2016-11-23  Martin Liska  <mliska@suse.cz>
12271             Martin Jambor  <mjambor@suse.cz>
12273         * plugin/hsa.h: New file.
12274         * plugin/hsa_ext_finalize.h: New file.
12275         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12276         header file unistd.h, and functions secure_getenv, __secure_getenv,
12277         getuid, geteuid, getgid and getegid.
12278         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12279         -D_GNU_SOURCE.
12280         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12281         Handle various cases of secure_getenv presence, add an implementation
12282         when we can test effective UID and GID.
12283         (struct hsa_runtime_fn_info): New structure.
12284         (hsa_runtime_fn_info hsa_fns): New variable.
12285         (hsa_runtime_lib): Likewise.
12286         (support_cpu_devices): Likewise.
12287         (init_enviroment_variables): Load newly introduced ENV
12288         variables.
12289         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12290         (hsa_fatal): Likewise.
12291         (DLSYM_FN): New macro.
12292         (init_hsa_runtime_functions): New function.
12293         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12294         structure.  Depending on environment, also allow CPU devices.
12295         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12296         (get_kernarg_memory_region): Likewise.
12297         (GOMP_OFFLOAD_init_device): Likewise.
12298         (destroy_hsa_program): Likewise.
12299         (init_basic_kernel_info): New function.
12300         (GOMP_OFFLOAD_load_image): Use it.
12301         (create_and_finalize_hsa_program): Call hsa run-time functions via
12302         hsa_fns structure.
12303         (create_single_kernel_dispatch): Likewise.
12304         (release_kernel_dispatch): Likewise.
12305         (init_single_kernel): Likewise.
12306         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12307         (get_group_size): New function.
12308         (run_kernel): Likewise.
12309         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12310         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12311         structure.
12312         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12313         * testsuite/libgomp-test-support.exp.in: Likewise.
12314         * Makefile.in: Regenerated.
12315         * aclocal.m4: Likewise.
12316         * config.h.in: Likewise.
12317         * configure: Likewise.
12318         * testsuite/Makefile.in: Likewise.
12320 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12321             Alexander Monakov  <amonakov@ispras.ru>
12323         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12324         mapping clauses to target constructs.
12325         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12327 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12329         * configure: Regenerate.
12331 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12333         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12334         * omp_lib.h.in (openmp_version): Likewise.
12335         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12336         of 201307.
12337         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12339         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12340         (fib_wrapper): Add map(from: x) clause.
12341         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12342         (e_53_2): Likewise.
12343         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12344         (accum): Add map(tmp) clause.
12345         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12346         (accum): Add map(tofrom: tmp) clause.
12347         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12348         (gramSchmidt): Likewise.
12349         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12350         map(tofrom: sum) clause.
12351         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12352         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12353         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12354         only allowed on the loop iterator.
12355         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12356         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12357         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12358         * testsuite/libgomp.fortran/doacross1.f90: New test.
12359         * testsuite/libgomp.fortran/doacross3.f90: New test.
12360         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12361         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12362         * testsuite/libgomp.fortran/doacross2.f90: New test.
12363         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12364         #pragma omp atomic read.
12365         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12366         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12368 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12369             Nathan Sidwell  <nathan@acm.org>
12371         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12372         to determine default geometry.
12373         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12374         dimension.
12376 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12378         * hashtab.h: Use standard GPLv3 with runtime exception
12379         boilerplate.
12381 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12383         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12384         size when allocating new thread.
12386 2016-09-14  Marek Polacek  <polacek@redhat.com>
12388         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12390 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12392         PR fortran/71014
12393         * testsuite/libgomp.fortran/pr71014.f90: New test.
12395 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12397         PR middle-end/70895
12398         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12399         firstprivate clauses.
12400         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12401         copy clauses.
12402         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12403         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12404         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12405         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12406         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12407         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12408         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12409         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12410         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12411         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12412         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12413         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12415 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12417         PR fortran/70598
12418         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12420 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12422         PR c++/58706
12423         * testsuite/libgomp.c++/pr58706.C: New test.
12425 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12427         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12428         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12429         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12430         Likewise.
12431         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12432         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12433         Likewise.
12434         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12436         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12437         test, and don't hardcode -O0.
12439 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12441         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12443 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12445         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12446         test.
12448 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12450         PR middle-end/71734
12451         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12452         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12454 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12456         PR fortran/71717
12457         * testsuite/libgomp.fortran/associate3.f90: New test.
12459 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12461         * testsuite/libgomp.c++/target-21.C: New test.
12463 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12465         * testsuite/libgomp.c++/target-20.C: New test.
12467 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12468             Cesar Philippidis  <cesar@codesourcery.com>
12470         PR middle-end/71373
12471         * libgomp.oacc-c/nested-function-1.c: New file.
12472         * libgomp.oacc-c/nested-function-2.c: Likewise.
12473         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12474         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12475         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12477 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12479         PR c/71381
12480         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12481         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12482         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12484 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12486         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12487         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12489 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12491         PR c/70688
12492         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12494 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12496         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12497         instead of invalid schedule(static, 0).
12498         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12500 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12502         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12503         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12504         parameter, use to set async stream around call to gomp_unmap_vars,
12505         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12506         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12507         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12508         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12509         (event_add): Add int parameter, initialize 'val' field when
12510         adding new ptx_event struct.
12511         (nvptx_evec): Adjust event_add() call arguments.
12512         (nvptx_host2dev): Likewise.
12513         (nvptx_dev2host): Likewise.
12514         (nvptx_wait_async): Likewise.
12515         (nvptx_wait_all_async): Likewise.
12516         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12517         pass to event_add() call.
12518         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12519         parameter.
12520         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12521         call openacc.register_async_cleanup_func() hook.
12522         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12523         * target.c (gomp_copy_from_async): Delete function.
12524         (gomp_map_vars): Remove async_refcount.
12525         (gomp_unmap_vars): Likewise.
12526         (gomp_load_image_to_device): Likewise.
12527         (omp_target_associate_ptr): Likewise.
12528         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
12529         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
12530         (gomp_copy_from_async): Remove.
12532 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12534         * target.c (gomp_device_copy): New function.
12535         (gomp_copy_host2dev): Likewise.
12536         (gomp_copy_dev2host): Likewise.
12537         (gomp_free_device_memory): Likewise.
12538         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
12539         (gomp_map_pointer): Likewise.
12540         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
12541         NULL value from alloc_func plugin hook.
12542         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
12543         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
12544         (gomp_unmap_vars): Likewise.
12545         (gomp_update): Adjust to call gomp_copy_dev2host and
12546         gomp_copy_host2dev functions.
12547         (gomp_unload_image_from_device): Handle false value from
12548         unload_image_func plugin hook.
12549         (gomp_init_device): Handle false value from init_device_func
12550         plugin hook.
12551         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
12552         (omp_target_free): Adjust to call gomp_free_device_memory.
12553         (omp_target_memcpy): Handle return values from host2dev_func,
12554         dev2host_func, and dev2dev_func plugin hooks.
12555         (omp_target_memcpy_rect_worker): Likewise.
12556         (gomp_target_fini): Handle false value from fini_device_func
12557         plugin hook.
12558         * libgomp.h (struct gomp_device_descr): Adjust return type of
12559         init_device_func, fini_device_func, unload_image_func, free_func,
12560         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
12561         * oacc-init.c (acc_shutdown_1): Handle false value from
12562         fini_device_func plugin hook.
12563         * oacc-host.c (host_init_device): Change return type to bool.
12564         (host_fini_device): Likewise.
12565         (host_unload_image): Likewise.
12566         (host_free): Likewise.
12567         (host_dev2host): Likewise.
12568         (host_host2dev): Likewise.
12569         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
12570         (acc_memcpy_to_device): Likewise.
12571         (acc_memcpy_from_device): Likewise.
12572         (delete_copyout): Add libfnname parameter, handle free_func
12573         hook fatal error case.
12574         (acc_delete): Adjust delete_copyout call.
12575         (acc_copyout): Likewise.
12576         (update_dev_host): Move gomp_mutex_unlock to after
12577         host2dev/dev2host hook calls.
12579         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
12580         to 'hsa_error_msg', for clarity.
12581         (hsa_fatal): Likewise.
12582         (hsa_error): New function.
12583         (init_hsa_context): Change return type to bool, adjust to return
12584         false on error.
12585         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
12586         return value.
12587         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
12588         return false on error.
12589         (get_agent_info): Adjust to return NULL on error.
12590         (destroy_hsa_program): Change return type to bool, adjust to
12591         return false on error.
12592         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
12593         (destroy_module): Change return type to bool, adjust to
12594         return false on error.
12595         (GOMP_OFFLOAD_unload_image): Likewise.
12596         (GOMP_OFFLOAD_fini_device): Likewise.
12597         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
12598         (GOMP_OFFLOAD_free): Change to return false when called.
12599         (GOMP_OFFLOAD_dev2host): Likewise.
12600         (GOMP_OFFLOAD_host2dev): Likewise.
12601         (GOMP_OFFLOAD_dev2dev): Likewise.
12603         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
12604         (CUDA_CALL): Likewise.
12605         (CUDA_CALL_ASSERT): Likewise.
12606         (map_init): Change return type to bool, use CUDA_CALL* macros.
12607         (map_fini): Likewise.
12608         (init_streams_for_device): Change return type to bool, adjust
12609         call to map_init.
12610         (fini_streams_for_device): Change return type to bool, adjust
12611         call to map_fini.
12612         (select_stream_for_async): Release stream_lock before calls to
12613         GOMP_PLUGIN_fatal, adjust call to map_init.
12614         (nvptx_init): Use CUDA_CALL* macros.
12615         (nvptx_attach_host_thread_to_device): Change return type to bool,
12616         use CUDA_CALL* macros.
12617         (nvptx_open_device): Use CUDA_CALL* macros.
12618         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
12619         macros.
12620         (nvptx_get_num_devices): Use CUDA_CALL* macros.
12621         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
12622         (nvptx_exec): Use CUDA_CALL* macros.
12623         (nvptx_alloc): Use CUDA_CALL* macros.
12624         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
12625         (nvptx_host2dev): Likewise.
12626         (nvptx_dev2host): Likewise.
12627         (nvptx_wait): Use CUDA_CALL* macros.
12628         (nvptx_wait_async): Likewise.
12629         (nvptx_wait_all): Likewise.
12630         (nvptx_wait_all_async): Likewise.
12631         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
12632         use CUDA_CALL* macros, adjust call to map_fini.
12633         (GOMP_OFFLOAD_init_device): Change return type to bool,
12634         adjust code accordingly.
12635         (GOMP_OFFLOAD_fini_device): Likewise.
12636         (GOMP_OFFLOAD_load_image): Adjust calls to
12637         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
12638         use CUDA_CALL* macros.
12639         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
12640         return code.
12641         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
12642         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
12643         handle error return.
12644         (GOMP_OFFLOAD_dev2host): Likewise.
12645         (GOMP_OFFLOAD_host2dev): Likewise.
12646         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
12647         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
12649 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12651         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
12652         (acc_free): Likewise.
12653         (acc_memcpy_to_device): Likewise.
12654         (acc_memcpy_from_device): Likewise.
12655         (acc_deviceptr): Likewise.
12656         (acc_hostptr): Likewise.
12657         (acc_is_present): Likewise.
12658         (acc_map_data): Likewise.
12659         (acc_unmap_data): Likewise.
12660         (present_create_copy): Likewise.
12661         (delete_copyout): Likewise.
12662         (update_dev_host): Likewise.
12663         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
12664         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
12665         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
12666         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
12667         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
12668         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
12669         it only runs on nvptx targets.
12670         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
12671         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
12672         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
12673         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
12674         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
12675         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
12676         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
12677         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
12678         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
12679         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
12680         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
12681         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
12682         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
12683         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
12684         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
12685         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
12686         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
12687         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
12688         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
12689         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
12690         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
12691         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
12692         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
12694 2016-05-23  Martin Jambor  <mjambor@suse.cz>
12696         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
12698 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
12700         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
12701         to gomp_init_targets_once.
12702         (acc_set_device_type): Remove !cached_base_dev condition on call to
12703         gomp_init_targets_once, move call to before acc_device_lock acquire,
12704         to avoid deadlock.
12705         (acc_get_device_num): Remove !cached_base_dev condition on call to
12706         gomp_init_targets_once.
12707         (acc_set_device_num): Likewise.
12709 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12711         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
12713 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
12715         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
12716         expected partitioning.
12718 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
12720         PR middle-end/70626
12721         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
12722         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
12723         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
12725 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
12727         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
12728         non-fatal.
12730 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
12732         PR middle-end/70680
12733         * testsuite/libgomp.c/pr70680-1.c: New test.
12734         * testsuite/libgomp.c/pr70680-2.c: New test.
12736 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12738         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
12739         pass parameter variables to subroutines.
12741 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
12743         PR middle-end/70643
12744         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
12746 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
12748         PR testsuite/68242
12749         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
12750         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12752 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
12754         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
12755         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
12756         GOACC_declare prototype.
12758         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
12759         Merge this file, and...
12760         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
12761         ... this file, and...
12762         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
12763         ... this file, and...
12764         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
12765         ... this file, and...
12766         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
12767         ... this file, and...
12768         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
12769         ... this file, and...
12770         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
12771         ... this file, and...
12772         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
12773         ... this file, and...
12774         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
12775         ... this file, and...
12776         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
12777         ... this file, and...
12778         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
12779         ... this file, and...
12780         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
12781         ... this file, and...
12782         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
12783         ... this file into...
12784         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
12785         file.
12787         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
12788         Make failure observable.
12790 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
12792         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
12793         field.
12794         * target.c (gomp_target_fallback_firstprivate,
12795         gomp_target_unshare_firstprivate): Removed.
12796         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
12797         before waiting for dependencies.
12798         (gomp_target_task_fn): Don't copy firstprivate vars here.
12799         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
12800         firstprivate_copies here.
12801         (gomp_create_target_task): Don't initialize firstprivate_copies field.
12802         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
12803         explicit/implicit firstprivate.
12805 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12807         PR lto/70289
12808         PR ipa/70348
12809         PR tree-optimization/70373
12810         PR middle-end/70533
12811         PR middle-end/70534
12812         PR middle-end/70535
12813         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
12814         test.
12815         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
12816         test.
12817         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
12818         test.
12819         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
12820         test.
12821         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
12822         test.
12823         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
12824         test.
12825         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
12826         test.
12827         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
12828         test.
12829         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
12830         test.
12831         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
12832         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
12833         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
12834         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
12835         test.
12836         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
12837         test.
12838         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
12839         test.
12840         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
12841         test.
12842         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
12843         coverage.
12844         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
12845         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12846         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
12847         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
12848         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
12849         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
12850         coverage.
12851         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
12852         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
12853         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
12854         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
12855         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
12856         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
12857         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
12858         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
12859         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
12860         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12861         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12862         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12863         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12864         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12865         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
12867 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
12868             James Norris  <jnorris@codesourcery.com>
12869             Nathan Sidwell  <nathan@codesourcery.com>
12870             Julian Brown  <julian@codesourcery.com>
12871             Cesar Philippidis  <cesar@codesourcery.com>
12872             Chung-Lin Tang  <cltang@codesourcery.com>
12873             Tom de Vries  <tom@codesourcery.com>
12875         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
12876         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
12877         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
12878         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
12879         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12880         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12881         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12882         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12883         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
12884         XFAIL.
12885         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
12886         Incorporate...
12887         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
12888         file.
12889         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
12890         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
12891         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
12892         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
12893         Likewise.
12894         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
12895         Likewise.
12896         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12897         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
12898         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
12899         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
12900         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12901         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12902         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12903         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12904         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12905         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
12906         Likewise.
12907         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
12908         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12909         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
12910         file...
12911         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
12912         file into...
12913         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
12914         file.  Update.
12915         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
12916         file.
12917         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
12918         Likewise.
12919         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
12920         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
12921         ... this new file.  Update.
12922         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
12923         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
12924         ... this new file.  Update.
12925         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
12926         file.  Incorporate...
12927         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
12928         file, and...
12929         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
12930         file, and...
12931         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
12932         file.
12933         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
12935 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12937         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
12938         set-torture-options.
12940 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
12942         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
12943         gcc-dg-runtest.
12944         * testsuite/libgomp.oacc-c/c.exp: Likewise.
12945         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
12946         -fno-builtin-acc_on_device instead of -O0.
12947         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
12948         -O0.
12949         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
12950         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
12951         Likewise.
12952         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
12953         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
12954         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
12955         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12956         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12957         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12958         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
12959         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12960         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
12961         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
12962         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
12963         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
12964         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
12965         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
12966         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
12967         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
12968         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
12969         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
12970         Don't specify -O2.
12971         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
12972         Likewise.
12973         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
12974         Likewise.
12976 2016-03-24  Martin Liska  <mliska@suse.cz>
12978         * plugin/plugin-hsa.c (packet_store_release): New function
12979         that is taken from the HSA runtime manual.
12980         (GOMP_OFFLOAD_run): Use the function.
12982 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12984         PR c++/70376
12985         * testsuite/libgomp.c++/pr70376.C: New test.
12987 2016-03-23  Tom de Vries  <tom@codesourcery.com>
12989         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
12990         initialization of lresult and lvresult.
12991         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
12993 2016-03-23  James Norris  <jnorris@codesourcery.com>
12994             Daichi Fukuoka <dc-fukuoka@sgi.com>
12996         PR libgomp/69414
12997         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
12998         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
12999         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13000         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13002 2016-03-23  Martin Liska  <mliska@suse.cz>
13004         PR hsa/70337
13005         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13006         argument just in case a dispatched kernel uses that argument.
13008 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13010         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13011         -ftree-parallelize-loops/-fopenacc changes.
13012         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13013         Likewise.
13014         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13015         Likewise.
13016         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13017         Likewise.
13018         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13019         Likewise.
13020         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13021         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13023 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13025         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13026         always_ld_library_path the path to libgcc_s.
13028 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13030         PR testsuite/70009
13031         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13033 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13035         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13036         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13037         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13038         Same.
13039         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13040         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13041         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13042         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13044 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13046         * testsuite/lib/libgomp.exp
13047         (check_effective_target_hsa_offloading_selected_nocache): New.
13048         (check_effective_target_hsa_offloading_selected): Likewise.
13049         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13050         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13051         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13052         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13053         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13054         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13055         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13056         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13057         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13058         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13059         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13060         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13061         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13062         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13063         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13064         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13065         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13067 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13069         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13070         non-shared memory accelerators.
13071         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13072         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13073         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13074         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13075         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13076         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13077         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13078         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13079         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13081 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13083         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13084         ALWAYS_CFLAGS.
13086 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13088         PR libgomp/69555
13089         * testsuite/libgomp.c++/pr69555-1.C: New test.
13090         * testsuite/libgomp.c++/pr69555-2.C: New test.
13092 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13093             Martin Jambor  <mjambor@suse.cz>
13095         * testsuite/lib/libgomp.exp
13096         (check_effective_target_offload_device_shared_as): New proc.
13097         * testsuite/libgomp.c++/declare_target-1.C: New test.
13099 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13101         PR driver/68463
13102         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13104 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13106         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13107         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13108         dims.
13109         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13110         -ftree-parallelize-loops/-fopenacc changes.
13111         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13112         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13113         Likewise.
13114         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13115         Likewise.
13116         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13117         Likewise.
13118         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13119         Likewise.
13120         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13121         Likewise.
13122         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13123         Likewise.
13124         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13125         Likewise.
13126         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13127         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13128         Likewise.
13129         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13130         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13131         Likewise.
13132         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13133         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13134         Likewise.
13136 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13138         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13140 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13142         PR driver/69805
13143         * testsuite/libgomp.c/pr69805.c: New test.
13145 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13147         PR lto/67709
13148         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13150 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13152         PR tree-optimization/69599
13153         * testsuite/libgomp.c/omp-nested-3.c: New test.
13154         * testsuite/libgomp.c/pr46032-2.c: New test.
13155         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13156         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13158 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13160         PR lto/69707
13161         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13163 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13165         * testsuite/libgomp.c/target-31.c: Fix testcase.
13167 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13169         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13170         clause.
13171         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13172         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13173         reduction and map clauses.
13174         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13176 2016-02-02  James Norris  <jnorris@codesourcery.com>
13178         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13180 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13182         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13183         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13185         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13186         cases.
13188         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13189         variables.
13190         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13191         (hsa_kmt_lib): Set variables.
13192         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13193         always_ld_library_path.
13194         * Makefile.in: Regenerate.
13195         * configure: Likewise.
13196         * testsuite/Makefile.in: Likewise.
13198         * plugin/configfrag.ac (offload_additional_options)
13199         (offload_additional_lib_paths): Don't amend for hsa offloading.
13200         * configure: Regenerate.
13202         * plugin/configfrag.ac: Don't configure for offloading target if
13203         we don't build the corresponding plugin.
13204         * configure: Regenerate.
13206 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13208         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13209         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13211 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13213         PR tree-optimization/69110
13214         * testsuite/libgomp.c/pr69110.c: New test.
13216 2016-01-25  Richard Biener  <rguenther@suse.de>
13218         PR lto/69393
13219         * testsuite/libgomp.c++/pr69393.C: New testcase.
13221 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13223         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13224         function wasn't mapped to the device with non-shared memory.
13226 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13228         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13230 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13231             Martin Liska  <mliska@suse.cz>
13233         * plugin/Makefrag.am: Add HSA plugin requirements.
13234         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13235         (HSA_RUNTIME_LIB): Likewise.
13236         (HSA_RUNTIME_CPPFLAGS): Likewise.
13237         (HSA_RUNTIME_INCLUDE): New substitution.
13238         (HSA_RUNTIME_LIB): Likewise.
13239         (HSA_RUNTIME_LDFLAGS): Likewise.
13240         (hsa-runtime): New configure option.
13241         (hsa-runtime-include): Likewise.
13242         (hsa-runtime-lib): Likewise.
13243         (PLUGIN_HSA): New substitution variable.
13244         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13245         configure options.
13246         (PLUGIN_HSA_CPPFLAGS): Likewise.
13247         (PLUGIN_HSA_LDFLAGS): Likewise.
13248         (PLUGIN_HSA_LIBS): Likewise.
13249         Check that we have access to HSA run-time.
13250         * libgomp-plugin.h (offload_target_type): New element
13251         OFFLOAD_TARGET_TYPE_HSA.
13252         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13253         args.
13254         (bool gomp_create_target_task): Updated.
13255         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13256         new field can_run_func.
13257         * libgomp_g.h (GOMP_target_ext): Update prototype.
13258         * oacc-host.c (host_run): Added a new parameter args.
13259         * target.c (calculate_firstprivate_requirements): New function.
13260         (copy_firstprivate_data): Likewise.
13261         (gomp_target_fallback_firstprivate): Use them.
13262         (gomp_target_unshare_firstprivate): New function.
13263         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13264         devices.
13265         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13266         pass any args to plugins.
13267         (GOMP_target_ext): Introduce device-specific argument parameter args.
13268         Allow host fallback if device shares memory.  Do not remap data if
13269         device has shared memory.
13270         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13271         like host fallback for mappings.
13272         (GOMP_target_data): Treat shared memory devices like host fallback.
13273         (GOMP_target_data_ext): Likewise.
13274         (GOMP_target_update): Likewise.
13275         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13276         gomp_create_target_task.
13277         (GOMP_target_enter_exit_data): Likewise.
13278         (omp_target_alloc): Treat shared memory devices like host fallback.
13279         (omp_target_free): Likewise.
13280         (omp_target_is_present): Likewise.
13281         (omp_target_memcpy): Likewise.
13282         (omp_target_memcpy_rect): Likewise.
13283         (omp_target_associate_ptr): Likewise.
13284         (gomp_load_plugin_for_device): Also load can_run.
13285         * task.c (GOMP_PLUGIN_target_task_completion): Free
13286         firstprivate_copies.
13287         (gomp_create_target_task): Accept new argument args and store it to
13288         ttask.
13289         * plugin/plugin-hsa.c: New file.
13291 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13293         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13294         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13295         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13296         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13297         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13298         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13299         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13300         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13301         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13302         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13303         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13304         Same.
13305         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13306         Same.
13307         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13308         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13309         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13310         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13311         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13312         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13313         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13314         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13315         Same.
13316         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13318 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13320         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13322 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13324         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13326 2016-01-12  James Norris  <jnorris@codesourcery.com>
13328         * libgomp.texi: Updates for OpenACC.
13330 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13332         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13334 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13336         PR fortran/66680
13337         * testsuite/libgomp.fortran/pr66680.f90: New test.
13339 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13341         PR middle-end/68960
13342         * testsuite/libgomp.c/pr68960.c: New test.
13344 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13346         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13347         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13349 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13351         Update copyright years.
13353         * libgomp.texi: Bump @copying's copyright year.
13355 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13357         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13358         dg-additional-options syntax.
13359         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13360         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13361         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13362         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13363         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13364         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13365         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13366         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13367         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13368         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13369         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13370         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13371         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13372         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13373         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13374         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13375         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13376         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13378 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13380         * libgomp.h (REFCOUNT_LINK): Define.
13381         (struct splay_tree_key_s): Add link_key.
13382         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13383         Replace target address of the pointer with target address of newly
13384         mapped object in the splay tree.  Set link pointer on target to the
13385         device address of the mapped object.
13386         (gomp_unmap_vars): Restore target address of the pointer in the splay
13387         tree for REFCOUNT_LINK objects after unmapping.
13388         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13389         declare target link" objects.
13390         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13391         "omp declare target link" objects, which were mapped for the image.
13392         (gomp_exit_data): Restore target address of the pointer in the splay
13393         tree for REFCOUNT_LINK objects after unmapping.
13394         * testsuite/libgomp.c/target-link-1.c: New file.
13396 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13398         * libgomp.h (gomp_device_state): New enum.
13399         (struct gomp_device_descr): Replace is_initialized with state.
13400         (gomp_fini_device): Remove declaration.
13401         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13402         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13403         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13404         (acc_set_device_type): Use state instead of is_initialized.
13405         (acc_set_device_num): Likewise.
13406         * target.c (resolve_device): Use state instead of is_initialized.
13407         Do not initialize finalized device.
13408         (gomp_map_vars): Do nothing if device is finalized.
13409         (gomp_unmap_vars): Likewise.
13410         (gomp_update): Likewise.
13411         (GOMP_offload_register_ver): Use state instead of is_initialized.
13412         (GOMP_offload_unregister_ver): Likewise.
13413         (gomp_init_device): Likewise.
13414         (gomp_unload_device): Likewise.
13415         (gomp_fini_device): Remove.
13416         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13417         (GOMP_target): Go to host fallback if device is finalized.
13418         (GOMP_target_ext): Likewise.
13419         (gomp_exit_data): Do nothing if device is finalized.
13420         (gomp_target_task_fn): Go to host fallback if device is finalized.
13421         (gomp_target_fini): New static function.
13422         (gomp_target_init): Use state instead of is_initialized.
13423         Call gomp_target_fini at exit.
13425 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13427         PR tree-optimization/68716
13428         * testsuite/libgomp.c/omp-nested-2.c: New test.
13430 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13432         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13433         target openacc_nvidia_accel_selected.
13434         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13435         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13436         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13437         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13439 2015-12-01  Julian Brown  <julian@codesourcery.com>
13440             James Norris  <James_Norris@mentor.com>
13442         * oacc-parallel.c (GOACC_host_data): New function.
13443         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13444         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13445         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13446         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13447         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13448         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13449         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13451 2015-11-30  James Norris  <jnorris@codesourcery.com>
13452             Cesar Philippidis  <cesar@codesourcery.com>
13454         libgomp/
13455         * libgomp.oacc-fortran/routine-5.f90: New test.
13456         * libgomp.oacc-fortran/routine-7.f90: New test.
13457         * libgomp.oacc-fortran/routine-9.f90: New test.
13459 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13461         PR tree-optimization/46032
13462         * testsuite/libgomp.c/pr46032.c: New test.
13464 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13466         PR libgomp/68579
13467         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13468         (gomp_create_target_task): Call it before freeing
13469         GOMP_TARGET_TASK_DATA tasks.
13471         PR c/63326
13472         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13473         in between case label and OpenMP standalone directives.
13474         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13476 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13478         * configure: Regenerate.
13480 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13482         * testsuite/libgomp.c/target-35.c: New test.
13484 2015-11-22  James Norris  <jnorris@codesourcery.com>
13485             Cesar Philippidis  <cesar@codesourcery.com>
13487         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13488         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13489         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13490         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13491         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13493 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13495         PR middle-end/68221
13496         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13497         * testsuite/libgomp.c/reduction-12.c: Likewise.
13498         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13499         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13501 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13503         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13504         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13505         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13506         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13507         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13508         and fix.
13509         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13510         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13512 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13514         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13515         worker & gang cases.
13516         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13518 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13520         * config/nvptx/priority_queue.c: New file.
13522 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13524         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13525         sections.
13527 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13528             Aldy Hernandez  <aldyh@redhat.com>
13529             Ilya Verbin  <ilya.verbin@intel.com>
13531         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
13532         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
13533         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
13534         iterators or IV by chunk size.
13535         * parallel.c (gomp_resolve_num_threads): Don't assume that
13536         if thr->ts.team is non-NULL, then pool must be non-NULL.
13537         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
13538         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
13539         GOMP_PLUGIN_target_task_completion.
13540         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
13541         * Makefile.in: Regenerate.
13542         * libgomp.h: Shuffle prototypes and forward definitions around so
13543         priority queues can be defined.
13544         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
13545         (enum gomp_target_task_state): New enum.
13546         (struct gomp_target_task): Add state, tgt, task and team fields.
13547         (gomp_create_target_task): Change return type to bool, add
13548         state argument.
13549         (gomp_target_task_fn): Change return type to bool.
13550         (struct gomp_device_descr): Add async_run_func.
13551         (struct gomp_task): Remove children, next_child, prev_child,
13552         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
13553         Add pnode field.
13554         (struct gomp_taskgroup): Remove children.
13555         Add taskgroup_queue.
13556         (struct gomp_team): Change task_queue type to a priority queue.
13557         (splay_compare): Define inline.
13558         (priority_queue_offset): New.
13559         (priority_node_to_task): New.
13560         (task_to_priority_node): New.
13561         * oacc-mem.c: Do not include splay-tree.h.
13562         * priority_queue.c: New file.
13563         * priority_queue.h: New file.
13564         * splay-tree.c: Do not include splay-tree.h.
13565         (splay_tree_foreach_internal): New.
13566         (splay_tree_foreach): New.
13567         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
13568         (splay_tree_callback): Define typedef.
13569         * target.c (splay_compare): Move to libgomp.h.
13570         (GOMP_target): Don't adjust *thr in any way around running offloaded
13571         task.
13572         (GOMP_target_ext): Likewise.  Handle target nowait.
13573         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
13574         return value from gomp_create_target_task, if false, fallthrough
13575         as if no dependencies exist.
13576         (gomp_target_task_fn): Change return type to bool, return true
13577         if the task should have another part scheduled later.  Handle
13578         target nowait.
13579         (gomp_load_plugin_for_device): Initialize async_run.
13580         * task.c (gomp_init_task): Initialize children_queue.
13581         (gomp_clear_parent_in_list): New.
13582         (gomp_clear_parent_in_tree): New.
13583         (gomp_clear_parent): Handle priorities.
13584         (GOMP_task): Likewise.
13585         (priority_queue_move_task_first,
13586         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
13587         New functions.
13588         (gomp_create_target_task): Use priority queues.  Change return type
13589         to bool, add state argument, return false if for async
13590         {{enter,exit} data,update} constructs no dependencies need to be
13591         waited for, handle target nowait.  Set task->fn to NULL instead of
13592         gomp_target_task_fn.
13593         (verify_children_queue): Remove.
13594         (priority_list_upgrade_task): New.
13595         (priority_queue_upgrade_task): New.
13596         (verify_task_queue): Remove.
13597         (priority_list_downgrade_task): New.
13598         (priority_queue_downgrade_task): New.
13599         (gomp_task_run_pre): Use priority queues.
13600         Abstract code out to priority_queue_downgrade_task.
13601         (gomp_task_run_post_handle_dependers): Use priority queues.
13602         (gomp_task_run_post_remove_parent): Likewise.
13603         (gomp_task_run_post_remove_taskgroup): Likewise.
13604         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
13605         tasks specially.
13606         (GOMP_taskwait): Likewise.
13607         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
13608         priority-queue_upgrade_task.
13609         (GOMP_taskgroup_start): Use priority queues.
13610         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
13611         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
13612         barrier.
13613         * taskloop.c (GOMP_taskloop): Handle priorities.
13614         * team.c (gomp_new_team): Call priority_queue_init.
13615         (free_team): Call priority_queue_free.
13616         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
13617         team created for target nowait in implicit parallel region.
13618         (gomp_team_start): For nested check, test thr->ts.level instead of
13619         thr->ts.team != NULL.
13620         * testsuite/libgomp.c/doacross-3.c: New test.
13621         * testsuite/libgomp.c/ordered-5.c: New test.
13622         * testsuite/libgomp.c/priority.c: New test.
13623         * testsuite/libgomp.c/target-31.c: New test.
13624         * testsuite/libgomp.c/target-32.c: New test.
13625         * testsuite/libgomp.c/target-33.c: New test.
13626         * testsuite/libgomp.c/target-34.c: New test.
13628 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13630         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
13632         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
13633         loop is sequential.
13635 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
13637         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
13638         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
13640 2015-11-12  James Norris  <jnorris@codesourcery.com>
13641             Joseph Myers  <joseph@codesourcery.com>
13643         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
13644         * oacc-parallel.c (GOACC_declare): New function.
13645         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
13646         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
13647         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
13648         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
13649         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
13651 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
13653         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
13655 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
13657         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
13658         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
13660 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13662         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
13663         inadvertent commit.
13665 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
13667         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
13668         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
13669         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
13670         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
13671         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
13673 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
13675         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
13676         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13678 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
13679             Ilya Verbin  <ilya.verbin@intel.com>
13681         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
13682         GOMP_loop_nonmonotonic_dynamic_start,
13683         GOMP_loop_nonmonotonic_guided_next,
13684         GOMP_loop_nonmonotonic_guided_start,
13685         GOMP_loop_ull_nonmonotonic_dynamic_next,
13686         GOMP_loop_ull_nonmonotonic_dynamic_start,
13687         GOMP_loop_ull_nonmonotonic_guided_next,
13688         GOMP_loop_ull_nonmonotonic_guided_start,
13689         GOMP_parallel_loop_nonmonotonic_dynamic,
13690         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
13691         (GOMP_target_41): Renamed to ...
13692         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13693         arguments.
13694         (GOMP_target_data_41): Renamed to ...
13695         (GOMP_target_data_ext): ... this.
13696         (GOMP_target_update_41): Renamed to ...
13697         (GOMP_target_update_ext): ... this.
13698         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
13699         GOMP_target_data_ext and GOMP_target_update_ext instead of
13700         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
13701         Export GOMP_loop_nonmonotonic_dynamic_next,
13702         GOMP_loop_nonmonotonic_dynamic_start,
13703         GOMP_loop_nonmonotonic_guided_next,
13704         GOMP_loop_nonmonotonic_guided_start,
13705         GOMP_loop_ull_nonmonotonic_dynamic_next,
13706         GOMP_loop_ull_nonmonotonic_dynamic_start,
13707         GOMP_loop_ull_nonmonotonic_guided_next,
13708         GOMP_loop_ull_nonmonotonic_guided_start,
13709         GOMP_parallel_loop_nonmonotonic_dynamic and
13710         GOMP_parallel_loop_nonmonotonic_guided.
13711         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
13712         GOMP_parallel_loop_nonmonotonic_guided,
13713         GOMP_loop_nonmonotonic_dynamic_start,
13714         GOMP_loop_nonmonotonic_guided_start,
13715         GOMP_loop_nonmonotonic_dynamic_next,
13716         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
13717         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
13718         GOMP_loop_ull_nonmonotonic_guided_start,
13719         GOMP_loop_ull_nonmonotonic_dynamic_next,
13720         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
13721         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
13722         functions.
13723         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
13724         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
13725         Use gomp_map_val function.
13726         (gomp_target_fallback_firstprivate): New static function.
13727         (GOMP_target_41): Renamed to ...
13728         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
13729         arguments.  Move firstprivate fallback handling into a new
13730         function.
13731         (GOMP_target_data_41): Renamed to ...
13732         (GOMP_target_data_ext): ... this.
13733         (GOMP_target_update_41): Renamed to ...
13734         (GOMP_target_update_ext): ... this.
13735         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
13736         gomp_map_0len_lookup instead of gomp_map_lookup.
13737         (omp_target_is_present): Use gomp_map_0len_lookup instead of
13738         gomp_map_lookup.
13739         * testsuite/libgomp.c/target-28.c: Likewise.
13740         * testsuite/libgomp.c/monotonic-1.c: New test.
13741         * testsuite/libgomp.c/monotonic-2.c: New test.
13742         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
13743         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
13744         * testsuite/libgomp.c/pr66199-5.c: New test.
13745         * testsuite/libgomp.c/pr66199-6.c: New test.
13746         * testsuite/libgomp.c/pr66199-7.c: New test.
13747         * testsuite/libgomp.c/pr66199-8.c: New test.
13748         * testsuite/libgomp.c/pr66199-9.c: New test.
13749         * testsuite/libgomp.c/reduction-11.c: New test.
13750         * testsuite/libgomp.c/reduction-12.c: New test.
13751         * testsuite/libgomp.c/reduction-13.c: New test.
13752         * testsuite/libgomp.c/reduction-14.c: New test.
13753         * testsuite/libgomp.c/reduction-15.c: New test.
13754         * testsuite/libgomp.c/target-12.c (main): Adjust for
13755         omp_target_is_present change for one-past-last element.
13756         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
13757         the same var is both mapped and privatized.
13758         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
13759         handling of zero-length array sections.
13760         * testsuite/libgomp.c/target-28.c: New test.
13761         * testsuite/libgomp.c/target-29.c: New test.
13762         * testsuite/libgomp.c/target-30.c: New test.
13763         * testsuite/libgomp.c/target-teams-1.c: New test.
13764         * testsuite/libgomp.c++/member-6.C: New test.
13765         * testsuite/libgomp.c++/member-7.C: New test.
13766         * testsuite/libgomp.c++/monotonic-1.C: New test.
13767         * testsuite/libgomp.c++/monotonic-2.C: New test.
13768         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
13769         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
13770         * testsuite/libgomp.c++/pr66199-3.C: New test.
13771         * testsuite/libgomp.c++/pr66199-4.C: New test.
13772         * testsuite/libgomp.c++/pr66199-5.C: New test.
13773         * testsuite/libgomp.c++/pr66199-6.C: New test.
13774         * testsuite/libgomp.c++/pr66199-7.C: New test.
13775         * testsuite/libgomp.c++/pr66199-8.C: New test.
13776         * testsuite/libgomp.c++/pr66199-9.C: New test.
13777         * testsuite/libgomp.c++/reduction-11.C: New test.
13778         * testsuite/libgomp.c++/reduction-12.C: New test.
13779         * testsuite/libgomp.c++/target-13.C: New test.
13780         * testsuite/libgomp.c++/target-14.C: New test.
13781         * testsuite/libgomp.c++/target-15.C: New test.
13782         * testsuite/libgomp.c++/target-16.C: New test.
13783         * testsuite/libgomp.c++/target-17.C: New test.
13784         * testsuite/libgomp.c++/target-18.C: New test.
13785         * testsuite/libgomp.c++/target-19.C: New test.
13787 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13789         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
13790         and reduction copy.
13791         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13792         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13793         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13794         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13795         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
13796         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13797         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13798         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13799         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13800         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
13801         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
13802         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13803         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13804         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
13806 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
13808         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
13809         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
13810         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
13811         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
13812         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
13813         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
13814         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
13815         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
13817 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
13819         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
13820         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
13821         (GOMP_OFFLOAD_openacc_parallel): Likewise.
13822         * oacc-host.c (host_openacc_exec): Likewise.
13823         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
13825 2015-11-03  Julian Brown  <julian@codesourcery.com>
13826             Thomas Schwinge  <thomas@codesourcery.com>
13828         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
13829         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13830         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
13831         Likewise.
13832         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
13833         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
13835 2015-11-03  James Norris  <jnorris@codesourcery.com>
13837         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
13838         file.
13839         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
13840         Likewise.
13841         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
13842         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
13843         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
13844         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
13845         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
13847 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
13849         * openacc.h (enum acc_device_t): Reformat. Ensure layout
13850         compatibility.
13851         (enum acc_async_t): Reformat.
13852         (acc_on_device): Declare compatible with builtin and provide C++
13853         wrapper.
13854         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
13856 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
13857             Cesar Philippidis  <cesar@codesourcery.com>
13859         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
13860         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
13861         ... this.  Add a description of the test at the top of the file.
13862         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
13863         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
13864         ... this.  Add a description of the test at the top of the file.
13866 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
13868         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
13869         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
13870         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
13871         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
13872         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
13873         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
13875 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
13877         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
13878         dimensions.
13880 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
13882         PR testsuite/68063
13883         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
13885 2015-10-27  James Norris  <jnorris@codesourcery.com>
13887         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
13888         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
13890 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
13892         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
13893         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
13895         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
13896         acc_device_nvidia usage.
13897         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
13898         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
13899         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
13901         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
13902         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
13904         PR libgomp/66518
13905         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
13907         PR libgomp/65437
13908         PR libgomp/66518
13909         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
13910         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
13912 2015-10-23  Tom de Vries  <tom@codesourcery.com>
13914         PR testsuite/68063
13915         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
13917 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
13919         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
13920         vector_length.
13921         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13923 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
13924             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
13926         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
13927         to 0 when mapnum is 0.
13929 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13931         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
13932         Cast to int from int32_t.
13934 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
13935             Aldy Hernandez  <aldyh@redhat.com>
13936             Ilya Verbin  <ilya.verbin@intel.com>
13938         * config/linux/affinity.c (omp_get_place_num_procs,
13939         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13940         * config/linux/doacross.h: New file.
13941         * config/posix/affinity.c (omp_get_place_num_procs,
13942         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
13943         * config/posix/doacross.h: New file.
13944         * env.c: Include gomp-constants.h.
13945         (struct gomp_task_icv): Rename run_sched_modifier to
13946         run_sched_chunk_size.
13947         (gomp_max_task_priority_var): New variable.
13948         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
13949         (handle_omp_display_env): Change _OPENMP value from 201307 to
13950         201511.  Print OMP_MAX_TASK_PRIORITY.
13951         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
13952         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
13953         chunk_size and run_sched_modifier to run_sched_chunk_size.
13954         (omp_get_max_task_priority, omp_get_initial_device,
13955         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
13956         omp_get_partition_place_nums): New functions.
13957         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
13958         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
13959         to chunk_size.
13960         (omp_get_num_places_, omp_get_place_num_procs_,
13961         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
13962         omp_get_place_proc_ids_8_, omp_get_place_num_,
13963         omp_get_partition_num_places_, omp_get_partition_place_nums_,
13964         omp_get_partition_place_nums_8_, omp_get_initial_device_,
13965         omp_get_max_task_priority_): New functions.
13966         * libgomp_g.h (GOMP_loop_doacross_static_start,
13967         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
13968         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
13969         GOMP_loop_ull_doacross_dynamic_start,
13970         GOMP_loop_ull_doacross_guided_start,
13971         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
13972         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
13973         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
13974         GOMP_target_data_41, GOMP_target_update_41,
13975         GOMP_target_enter_exit_data): New prototypes.
13976         (GOMP_task): Add prototype argument.
13977         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
13978         (struct gomp_doacross_work_share): New type.
13979         (struct gomp_work_share): Add doacross field.
13980         (struct gomp_task_icv): Rename run_sched_modifier to
13981         run_sched_chunk_size.
13982         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
13983         GOMP_TASK_UNDEFERRED.  Add comments.
13984         (struct gomp_task_depend_entry): Add comments.
13985         (struct gomp_task): Likewise.
13986         (struct gomp_taskgroup): Likewise.
13987         (struct gomp_target_task): New type.
13988         (struct gomp_team): Add comment.
13989         (gomp_get_place_proc_ids_8, gomp_doacross_init,
13990         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
13991         gomp_create_target_task, gomp_target_task_fn): New prototypes.
13992         (struct target_var_desc): New type.
13993         (struct target_mem_desc): Adjust comment.  Use struct
13994         target_var_desc instead of splay_tree_key for list.
13995         (REFCOUNT_INFINITY): Define.
13996         (struct splay_tree_key_s): Remove copy_from field.
13997         (struct gomp_device_descr): Add dev2dev_func field.
13998         (enum gomp_map_vars_kind): New enum.
13999         (gomp_map_vars): Add one argument.
14000         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14001         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14002         omp_get_place_num_procs, omp_get_place_num_procs_,
14003         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14004         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14005         omp_get_place_num_, omp_get_partition_num_places,
14006         omp_get_partition_num_places_, omp_get_partition_place_nums,
14007         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14008         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14009         omp_target_free, omp_target_is_present, omp_target_memcpy,
14010         omp_target_memcpy_rect, omp_target_associate_ptr and
14011         omp_target_disassociate_ptr.
14012         (GOMP_4.0.2): Renamed to ...
14013         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14014         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14015         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14016         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14017         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14018         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14019         GOMP_loop_ull_doacross_guided_start,
14020         GOMP_loop_ull_doacross_runtime_start,
14021         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14022         GOMP_doacross_ull_wait.
14023         * libgomp.texi: Document omp_get_max_task_priority.
14024         Rename modifier argument to chunk_size for omp_set_schedule and
14025         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14026         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14027         to run_sched_chunk_size renaming.
14028         (GOMP_loop_ordered_runtime_start): Likewise.
14029         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14030         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14031         GOMP_parallel_loop_runtime_start): New functions.
14032         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14033         to run_sched_chunk_size renaming.
14034         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14035         GOMP_loop_doacross_guided_start): New functions or aliases.
14036         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14037         run_sched_modifier to run_sched_chunk_size renaming.
14038         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14039         (gomp_loop_ull_doacross_static_start,
14040         gomp_loop_ull_doacross_dynamic_start,
14041         gomp_loop_ull_doacross_guided_start,
14042         GOMP_loop_ull_doacross_runtime_start): New functions.
14043         (GOMP_loop_ull_doacross_static_start,
14044         GOMP_loop_ull_doacross_dynamic_start,
14045         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14046         * oacc-mem.c (acc_map_data, present_create_copy,
14047         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14048         to gomp_map_vars.
14049         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14050         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14051         instead of false to gomp_map_vars.
14052         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14053         * omp.h.in (omp_lock_hint_t): New type.
14054         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14055         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14056         omp_get_place_num, omp_get_partition_num_places,
14057         omp_get_partition_place_nums, omp_get_initial_device,
14058         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14059         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14060         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14061         prototypes.
14062         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14063         (omp_lock_hint_none, omp_lock_hint_uncontended,
14064         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14065         omp_lock_hint_speculative): New parameters.
14066         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14067         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14068         omp_get_place_num, omp_get_partition_num_places,
14069         omp_get_partition_place_nums, omp_get_initial_device,
14070         omp_get_max_task_priority): New interfaces.
14071         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14072         to chunk_size.
14073         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14074         (omp_lock_hint_none, omp_lock_hint_uncontended,
14075         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14076         omp_lock_hint_speculative): New parameters.
14077         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14078         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14079         omp_get_place_num, omp_get_partition_num_places,
14080         omp_get_partition_place_nums, omp_get_initial_device,
14081         omp_get_max_task_priority): New functions and subroutines.
14082         * ordered.c: Include stdarg.h and string.h.
14083         (MAX_COLLAPSED_BITS): Define.
14084         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14085         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14086         GOMP_doacross_ull_wait): New functions.
14087         * target.c: Include errno.h.
14088         (resolve_device): If device is not initialized, call
14089         gomp_init_device on it.
14090         (gomp_map_lookup): New function.
14091         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14092         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14093         GOMP_MAP_ALWAYS_TO_P.
14094         (get_kind): Rename is_openacc argument to short_mapkind.
14095         (gomp_map_pointer): Use gomp_map_lookup.
14096         (gomp_map_fields_existing): New function.
14097         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14098         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14099         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14100         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14101         Adjust for tgt->list changed type and copy_from living in there.
14102         (gomp_copy_from_async): Adjust for tgt->list changed type and
14103         copy_from living in there.
14104         (gomp_unmap_vars): Likewise.
14105         (gomp_update): Likewise.  Rename is_openacc argument to
14106         short_mapkind.  Don't fail if object is not mapped.
14107         (gomp_load_image_to_device): Initialize refcount to
14108         REFCOUNT_INFINITY.
14109         (gomp_target_fallback): New function.
14110         (gomp_get_target_fn_addr): Likewise.
14111         (GOMP_target): Adjust gomp_map_vars caller, use
14112         gomp_get_target_fn_addr and gomp_target_fallback.
14113         (GOMP_target_41): New function.
14114         (gomp_target_data_fallback): New function.
14115         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14116         (GOMP_target_data_41): New function.
14117         (GOMP_target_update): Adjust gomp_update caller.
14118         (GOMP_target_update_41): New function.
14119         (gomp_exit_data, GOMP_target_enter_exit_data,
14120         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14121         omp_target_is_present, omp_target_memcpy,
14122         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14123         omp_target_associate_ptr, omp_target_disassociate_ptr,
14124         gomp_load_plugin_for_device): New functions.
14125         * task.c: Include gomp-constants.h.  Include taskloop.c
14126         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14127         (gomp_task_handle_depend): New function.
14128         (GOMP_task): Use it.  Add priority argument.  Use
14129         gomp-constant.h constants instead of hardcoded numbers.
14130         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14131         (gomp_create_target_task): New function.
14132         (verify_children_queue, verify_taskgroup_queue,
14133         verify_task_queue): New functions.
14134         (gomp_task_run_pre): Call verify_*_queue functions.
14135         If an upcoming tied task is about to leave the sibling or
14136         taskgroup queues in an invalid state, adjust appropriately.
14137         Remove taskgroup argument.  Add comments.
14138         (gomp_task_run_post_handle_dependers): Add comments.
14139         (gomp_task_run_post_remove_parent): Likewise.
14140         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14141         (GOMP_taskwait): Likewise.  Add comments.
14142         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14143         problem such that the first non parent_depends_on task does not
14144         end up at the end of the children queue.
14145         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14146         GOMP_TASK_UNDEFERRED.
14147         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14148         * taskloop.c: New file.
14149         * testsuite/lib/libgomp.exp
14150         (check_effective_target_offload_device_nonshared_as): New proc.
14151         * testsuite/libgomp.c/affinity-2.c: New test.
14152         * testsuite/libgomp.c/doacross-1.c: New test.
14153         * testsuite/libgomp.c/doacross-2.c: New test.
14154         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14155         Add map clause to target.
14156         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14157         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14158         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14159         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14160         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14161         Likewise.
14162         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14163         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14164         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14165         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14166         not defined.  Use those where needed.
14167         * testsuite/libgomp.c/for-4.c: New test.
14168         * testsuite/libgomp.c/for-5.c: New test.
14169         * testsuite/libgomp.c/for-6.c: New test.
14170         * testsuite/libgomp.c/linear-1.c: New test.
14171         * testsuite/libgomp.c/ordered-4.c: New test.
14172         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14173         only allowed on the loop iterator.
14174         * testsuite/libgomp.c/pr66199-3.c: New test.
14175         * testsuite/libgomp.c/pr66199-4.c: New test.
14176         * testsuite/libgomp.c/reduction-7.c: New test.
14177         * testsuite/libgomp.c/reduction-8.c: New test.
14178         * testsuite/libgomp.c/reduction-9.c: New test.
14179         * testsuite/libgomp.c/reduction-10.c: New test.
14180         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14181         map(tofrom:s).
14182         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14183         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14184         * testsuite/libgomp.c/target-11.c: New test.
14185         * testsuite/libgomp.c/target-12.c: New test.
14186         * testsuite/libgomp.c/target-13.c: New test.
14187         * testsuite/libgomp.c/target-14.c: New test.
14188         * testsuite/libgomp.c/target-15.c: New test.
14189         * testsuite/libgomp.c/target-16.c: New test.
14190         * testsuite/libgomp.c/target-17.c: New test.
14191         * testsuite/libgomp.c/target-18.c: New test.
14192         * testsuite/libgomp.c/target-19.c: New test.
14193         * testsuite/libgomp.c/target-20.c: New test.
14194         * testsuite/libgomp.c/target-21.c: New test.
14195         * testsuite/libgomp.c/target-22.c: New test.
14196         * testsuite/libgomp.c/target-23.c: New test.
14197         * testsuite/libgomp.c/target-24.c: New test.
14198         * testsuite/libgomp.c/target-25.c: New test.
14199         * testsuite/libgomp.c/target-26.c: New test.
14200         * testsuite/libgomp.c/target-27.c: New test.
14201         * testsuite/libgomp.c/taskloop-1.c: New test.
14202         * testsuite/libgomp.c/taskloop-2.c: New test.
14203         * testsuite/libgomp.c/taskloop-3.c: New test.
14204         * testsuite/libgomp.c/taskloop-4.c: New test.
14205         * testsuite/libgomp.c++/ctor-13.C: New test.
14206         * testsuite/libgomp.c++/doacross-1.C: New test.
14207         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14208         Replace offload_device with offload_device_nonshared_as.
14209         * testsuite/libgomp.c++/for-12.C: New test.
14210         * testsuite/libgomp.c++/for-13.C: New test.
14211         * testsuite/libgomp.c++/for-14.C: New test.
14212         * testsuite/libgomp.c++/linear-1.C: New test.
14213         * testsuite/libgomp.c++/member-1.C: New test.
14214         * testsuite/libgomp.c++/member-2.C: New test.
14215         * testsuite/libgomp.c++/member-3.C: New test.
14216         * testsuite/libgomp.c++/member-4.C: New test.
14217         * testsuite/libgomp.c++/member-5.C: New test.
14218         * testsuite/libgomp.c++/ordered-1.C: New test.
14219         * testsuite/libgomp.c++/reduction-5.C: New test.
14220         * testsuite/libgomp.c++/reduction-6.C: New test.
14221         * testsuite/libgomp.c++/reduction-7.C: New test.
14222         * testsuite/libgomp.c++/reduction-8.C: New test.
14223         * testsuite/libgomp.c++/reduction-9.C: New test.
14224         * testsuite/libgomp.c++/reduction-10.C: New test.
14225         * testsuite/libgomp.c++/reference-1.C: New test.
14226         * testsuite/libgomp.c++/simd14.C: New test.
14227         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14228         * testsuite/libgomp.c++/target-5.C: New test.
14229         * testsuite/libgomp.c++/target-6.C: New test.
14230         * testsuite/libgomp.c++/target-7.C: New test.
14231         * testsuite/libgomp.c++/target-8.C: New test.
14232         * testsuite/libgomp.c++/target-9.C: New test.
14233         * testsuite/libgomp.c++/target-10.C: New test.
14234         * testsuite/libgomp.c++/target-11.C: New test.
14235         * testsuite/libgomp.c++/target-12.C: New test.
14236         * testsuite/libgomp.c++/taskloop-1.C: New test.
14237         * testsuite/libgomp.c++/taskloop-2.C: New test.
14238         * testsuite/libgomp.c++/taskloop-3.C: New test.
14239         * testsuite/libgomp.c++/taskloop-4.C: New test.
14240         * testsuite/libgomp.c++/taskloop-5.C: New test.
14241         * testsuite/libgomp.c++/taskloop-6.C: New test.
14242         * testsuite/libgomp.c++/taskloop-7.C: New test.
14243         * testsuite/libgomp.c++/taskloop-8.C: New test.
14244         * testsuite/libgomp.c++/taskloop-9.C: New test.
14245         * testsuite/libgomp.fortran/affinity1.f90: New test.
14246         * testsuite/libgomp.fortran/affinity2.f90: New test.
14248 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14250         PR tree-optimization/67476
14251         * testsuite/libgomp.c/autopar-3.c: New test.
14252         * testsuite/libgomp.c/autopar-4.c: New test.
14253         * testsuite/libgomp.c/autopar-5.c: New test.
14254         * testsuite/libgomp.c/autopar-6.c: New test.
14255         * testsuite/libgomp.c/autopar-7.c: New test.
14256         * testsuite/libgomp.c/autopar-8.c: New test.
14258 2015-10-12  James Norris  <jnorris@codesourcery.com>
14260         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14261         initializer.
14263 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14265         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14266         using load_gcc_lib.
14268 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14270         * oacc-ptx.h: Remove file, moving its content into...
14271         * config/nvptx/fortran.c: ... here...
14272         * config/nvptx/oacc-init.c: ..., here...
14273         * config/nvptx/oacc-parallel.c: ..., and here.
14274         * config/nvptx/openacc.f90: New file.
14275         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14276         (link_ptx): Don't link in predefined bits of PTX code.
14278 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14279             Bernd Schmidt <bernds@codesourcery.com>
14281         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14282         (struct targ_ptx_obj): New.
14283         (nvptx_tdata): Move earlier, change data format.
14284         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14285         objects.
14286         (GOMP_OFFLOAD_load_image): Adjust.
14288 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14290         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14291         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14292         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14293         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14294         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14295         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14296         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14297         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14298         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14299         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14300         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14301         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14302         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14303         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14304         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14305         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14306         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14307         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14308         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14309         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14310         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14311         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14312         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14313         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14314         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14315         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14316         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14317         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14318         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14319         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14320         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14321         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14322         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14323         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14324         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14325         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14326         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14327         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14328         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14329         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14330         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14331         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14332         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14333         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14334         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14335         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14336         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14337         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14338         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14339         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14340         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14341         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14342         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14343         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14344         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14345         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14346         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14347         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14348         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14349         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14350         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14351         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14352         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14354 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14356         * oacc-init.c (acc_on_device): Force optimization level.
14358 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14360         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14361         (cuda_errlist): Delete.
14362         (cuda_error): Reimplement.
14364 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14366         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14367         array.
14368         * libgomp.map (GOACC_parallel_keyed): New.
14369         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14370         all callers.
14371         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14372         and take keyed varargs list.  Adjust call to exec_func.
14373         (GOACC_parallel): Force host fallback.
14374         * libgomp_g.h (GOACC_parallel): Remove.
14375         (GOACC_parallel_keyed): Declare.
14376         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14377         (struct targ_gn_descriptor): Replace name field with launch field.
14378         (nvptx_exec): Lose separate geometry args, take array.  Process
14379         dynamic dimensions and adjust.
14380         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14381         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14382         data.
14383         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14384         passing.
14385         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14386         passing.
14388 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14390         PR libgomp/67141
14391         * oacc-int.h (goacc_host_init): Add declaration.
14392         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14393         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14395 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14396             Sebastian Pop  <s.pop@samsung.com>
14398         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14399         match o/p.
14400         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14401         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14402         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14403         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14404         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14406 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14408         * configure.tgt: Add missing ;; in between nvptx and rtems
14409         snippets.
14411 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14413         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14414         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14415         (gomp_thread_pool_reservoir): Add priority member.
14416         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14417         priority.
14418         (parse_thread_pools): Likewise.
14419         * team.c (gomp_team_start): Call configuration provided
14420         gomp_adjust_thread_attr(). Destroy thread attributes if
14421         necessary.
14422         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14424 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14426         * config/posix/pool.h: New.
14427         * config/rtems/pool.h: Likewise.
14428         * config/rtems/proc.c: Likewise.
14429         * libgomp.h (gomp_thread_destructor): Declare.
14430         * team.c: Include configuration provided "pool.h".
14431         (gomp_get_thread_pool): Define in configuration.
14432         (gomp_team_end): Call configuration defined
14433         gomp_release_thread_pool().
14435 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14437         * config/rtems/bar.c: New.
14438         * config/rtems/bar.h: Likewise.
14439         * config/rtems/mutex.c: Likewise.
14440         * config/rtems/mutex.h: Likewise.
14441         * config/rtems/sem.c: Likewise.
14442         * config/rtems/sem.h: Likewise.
14443         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14444         <sys/lock.h> header file.
14445         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14446         supported by Newlib.
14447         * configure: Regenerate.
14449 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14451         * team.c (gomp_new_thread_pool): Delete and move content to ...
14452         (gomp_get_thread_pool): ... new function.  Allocate and
14453         initialize thread pool on demand.
14454         (get_last_team): Use gomp_get_thread_pool().
14455         (gomp_team_start): Delete thread pool initialization.
14457 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14459         PR tree-optimization/65637
14460         * testsuite/libgomp.c/autopar-2.c: New test.
14462 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14464         PR tree-optimization/46193
14465         * testsuite/libgomp.c/pr46193.c: New test.
14467 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14469         libgomp/
14470         * libgomp.map: Add 4.0.2 version.
14471         * target.c (offload_image_descr): Add version field.
14472         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14473         call.  Improve load mismatch diagnostic.
14474         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14475         call.
14476         (GOMP_offload_regster): Make stub function, move bulk to ...
14477         (GOMP_offload_register_ver): ... here.  Process version argument.
14478         (GOMP_offload_unregister): Make stub function, move bulk to ...
14479         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14480         (gomp_init_device): Process version field.
14481         (gomp_unload_device): Process version field.
14482         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14483         macros.  Check plugin version.
14484         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14485         loader and unloader types.
14486         * oacc-host.c: Include gomp-constants.h.
14487         (host_version): New.
14488         (host_load_image, host_unload_image): Adjust.
14489         (host_dispatch): Add host_version.
14490         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14491         (GOMP_OFFLOAD_version): New.
14492         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14493         (GOMP_OFFLOAD_unload_image): Likewise.
14494         * plugin/plugin-host.c: Include gomp-constants.h.
14495         (GOMP_OFFLOAD_version): New.
14496         (GOMP_OFFLOAD_load_image): Add version arg.
14497         (GOMP_OFFLOAD_unload_image): Likewise.
14499 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14501         PR tree-optimization/65468
14502         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14504 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14506         PR tree-optimization/65468
14507         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14509 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14511         PR libgomp/66761
14512         PR libgomp/67303
14513         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14514         (gomp_iter_guided_next): Idem.
14515         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14516         (gomp_iter_ull_guided_next): Idem.
14517         * config/linux/wait.h (do_spin): Idem.
14519 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14521         * libgomp-plugin.h (enum offload_target_type): Remove
14522         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14523         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14524         * openacc.h (enum acc_device_t): Likewise.
14525         * openacc_lib.h: Likewise.
14526         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14527         (acc_on_device): Just use __builtin_acc_on_device.
14528         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
14529         of acc_on_device builtin.
14530         * plugin/plugin-host.h: Remove file.
14531         * plugin/plugin-host.c: Likewise, but salvage some content into...
14532         * oacc-host.c: ... this file.
14533         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
14534         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
14535         * Makefile.in: Regenerate.
14536         * configure: Likewise.
14537         * testsuite/lib/libgomp.exp
14538         (check_effective_target_openacc_host_nonshm_selected): Remove.
14539         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
14540         ACC_DEVICE_TYPE=host_nonshm.
14541         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14542         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14543         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
14544         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
14545         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
14546         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
14548 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14549             Jakub Jelinek  <jakub@redhat.com>
14551         * config/nvptx/affinity.c: New file.
14552         * config/nvptx/alloc.c: Likewise.
14553         * config/nvptx/bar.c: Likewise.
14554         * config/nvptx/barrier.c: Likewise.
14555         * config/nvptx/critical.c: Likewise.
14556         * config/nvptx/env.c: Likewise.
14557         * config/nvptx/error.c: Likewise.
14558         * config/nvptx/fortran.c: Likewise.
14559         * config/nvptx/iter.c: Likewise.
14560         * config/nvptx/iter_ull.c: Likewise.
14561         * config/nvptx/libgomp-plugin.c: Likewise.
14562         * config/nvptx/lock.c: Likewise.
14563         * config/nvptx/loop.c: Likewise.
14564         * config/nvptx/loop_ull.c: Likewise.
14565         * config/nvptx/mutex.c: Likewise.
14566         * config/nvptx/oacc-async.c: Likewise.
14567         * config/nvptx/oacc-cuda.c: Likewise.
14568         * config/nvptx/oacc-host.c: Likewise.
14569         * config/nvptx/oacc-init.c: Likewise.
14570         * config/nvptx/oacc-mem.c: Likewise.
14571         * config/nvptx/oacc-parallel.c: Likewise.
14572         * config/nvptx/oacc-plugin.c: Likewise.
14573         * config/nvptx/omp-lock.h: Likewise.
14574         * config/nvptx/ordered.c: Likewise.
14575         * config/nvptx/parallel.c: Likewise.
14576         * config/nvptx/proc.c: Likewise.
14577         * config/nvptx/ptrlock.c: Likewise.
14578         * config/nvptx/sections.c: Likewise.
14579         * config/nvptx/sem.c: Likewise.
14580         * config/nvptx/single.c: Likewise.
14581         * config/nvptx/splay-tree.c: Likewise.
14582         * config/nvptx/target.c: Likewise.
14583         * config/nvptx/task.c: Likewise.
14584         * config/nvptx/team.c: Likewise.
14585         * config/nvptx/time.c: Likewise.
14586         * config/nvptx/work.c: Likewise.
14587         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
14588         * configure: Regenerate.
14589         * configure.tgt (config_path): Set to "nvptx" for target
14590         nvptx*-*-*.
14592 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14594         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
14596 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14598         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
14599         (cuda_errlist): Constify.
14600         (errmsg):  Move into ...
14601         (cuda_error): ... here.  Make smaller.
14602         (_XSTR, _STR): Delete.
14603         (cuda_synames): Delete.
14604         (verify_device_library): Delete.
14605         (nvptx_init): Don't call it.
14607 2015-07-28  Tom de Vries  <tom@codesourcery.com>
14609         * testsuite/libgomp.c/uns-outer-4.c: New test.
14611 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
14613         * testsuite/libgomp.c/pr66714.c: New test.
14615 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14617         PR libgomp/66950
14618         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
14619         (fib_ref): New function.
14620         (fib): Correct corner cases in the recursion.
14621         (main): Replace the non-simd loop with fib_ref call.
14622         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
14623         subroutine.
14624         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
14625         for the last array element value.  Replace the non-simd loop with
14626         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
14627         of the last array element with according Fibonacci sequence element.
14628         (fib): Correct corner cases in the recursion.
14630 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14632         * target.c (gomp_offload_image_to_device): Rename to ...
14633         (gomp_load_image_to_device): ... here.
14634         (GOMP_offload_register): Adjust call.
14635         (gomp_init_device): Likewise.
14636         (gomp_unload_image_from_device): New.  Broken out of ...
14637         (GOMP_offload_unregister): ... here.  Call it.
14638         (gomp_unload_device): New.
14639         * libgomp.h (gomp_unload_device): Declare.
14640         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
14641         mem maps.
14643 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14645         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
14646         wait=-specific if.
14647         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
14648         !=0 condition.
14649         (goacc_waits): Move !num_waits handling to ...
14650         (GOACC_wait): ... here, the only caller that might have zero waits.
14652         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
14653         (struct ptx_image_data): Move earlier, add fns field.
14654         (struct ptx_device): Add images and image_lock fields.
14655         (ptx_images, ptx_image_lock): Delete.
14656         (nvptx_open_device): Initialize images and image_lock fields.
14657         (nvptx_close_device): Destroy image_lock.
14658         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
14659         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
14660         fields.
14662 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
14664         * target.c (GOMP_offload_register): Use int for device type arg.
14665         (GOMP_offload_unregister): Likewise.
14667         * target.c (struct_offload_image_descr): Constify host_table.
14668         (gomp_offload_image_to_device): Likewise.
14669         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
14671         * libgomp.h (gomp_device_descr): Constify target data arguments.
14672         * target.c (struct offload_image_descr): Constify target_data.
14673         (gomp_offload_image_to_device): Likewise.
14674         (GOMP_offload_register): Likewise.
14675         (GOMP_offload_unregister): Likewise.
14676         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
14677         GOMP_OFFLOAD_unload_image): Constify target data.
14678         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
14679         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
14681 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
14683         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
14684         Workaround driver library const error.
14685         (struct nvptx_tdata, nvptx_tdata_t): New.
14686         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
14687         type.
14689 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14691         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
14692         of EPS parameter from integer to real.
14693         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
14694         type of EPS parameter from integer to real.
14696 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14698         * team.c (get_last_team): New.
14699         (gomp_new_team): Recycle last non-nested team if possible.
14700         (gomp_team_end): Move team work share list free lock destruction
14701         to ...
14702         (free_team): ... here.
14704 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14706         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
14707         and ref from int to double.  Replaced their comparison with
14708         an inequality of their difference and EPS.
14709         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
14710         comparison of pri and a reference number with an inequality of their
14711         difference and EPS.
14712         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
14713         the comparison of sum and sum_ref with an inequality of their
14714         difference and EPS.
14715         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
14716         the comparison of pri and a reference number with an inequality of
14717         their difference and EPS.
14719 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
14721         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
14722         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
14723         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
14724         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
14725         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
14726         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
14727         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
14728         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
14729         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
14730         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
14731         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
14732         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
14733         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
14734         variables.
14735         (vec_mult): Likewise.  Add #pragma omp taskwait.
14736         (main): Adjust caller.
14737         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
14738         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
14739         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
14740         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
14741         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
14742         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
14743         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
14744         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
14745         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
14746         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
14747         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
14748         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
14749         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
14750         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
14751         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
14752         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
14753         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
14754         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
14755         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
14756         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
14757         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
14758         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
14759         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
14760         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
14761         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
14762         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
14763         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
14764         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
14765         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
14766         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
14767         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
14768         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
14769         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
14770         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
14771         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
14772         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
14773         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
14774         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
14775         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
14776         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
14777         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
14778         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
14779         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
14780         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
14781         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
14782         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
14783         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
14784         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
14785         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
14786         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
14787         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
14788         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
14789         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
14790         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
14791         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
14792         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
14793         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
14794         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
14795         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
14796         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
14797         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
14798         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
14799         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
14800         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
14801         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
14802         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
14803         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
14804         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
14805         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
14806         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
14807         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
14808         (vec_mult): Add !$omp taskwait.
14809         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
14810         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
14811         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
14812         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
14813         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
14814         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
14815         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
14816         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
14817         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
14818         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
14819         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
14820         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
14821         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
14822         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
14823         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
14824         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
14825         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
14826         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
14827         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
14828         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
14829         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
14830         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
14831         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
14832         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
14833         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
14834         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
14835         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
14836         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
14837         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
14838         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
14839         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
14840         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
14841         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
14842         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
14843         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
14844         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
14845         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
14846         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
14847         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
14848         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
14849         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
14850         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
14851         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
14852         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
14853         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
14854         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
14855         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
14856         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
14857         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
14858         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
14859         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
14860         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
14861         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
14862         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
14863         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
14864         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
14865         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
14866         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
14867         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
14868         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
14869         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
14870         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
14871         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
14872         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
14873         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
14874         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
14875         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
14877 2015-07-10  Tom de Vries  <tom@codesourcery.com>
14879         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
14880         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
14882 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
14884         PR libgomp/65099
14885         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
14886         in a 64-bit configuration.
14887         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
14888         offloading testing if no such device is available.
14889         * testsuite/libgomp.oacc-c/c.exp: Likewise.
14890         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
14892 2015-07-08  Tom de Vries  <tom@codesourcery.com>
14894         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
14895         second call to f.
14896         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14898 2015-07-07  Tom de Vries  <tom@codesourcery.com>
14900         PR tree-optimization/66642
14901         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
14902         iteration count case.
14903         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
14904         function, factor out of ...
14905         (main): ... here.  Test low iteration count case.
14907 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14909         * libgomp.h (gomp_thread_pool): Comment last_team field.
14911 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
14913         * testsuite/libgomp.c++/pr66702-1.C: Require
14914         vect_simd_clones effective target.
14915         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
14917 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14919         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14920         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14921         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14922         "-O2".
14924 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14926         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
14927         already set.  Use DEFAULT_CFLAGS in dg-runtest.
14928         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
14929         * testsuite/libgomp.c++/pr64824.C: Same.
14930         * testsuite/libgomp.c++/pr64868.C: Same.
14931         * testsuite/libgomp.c++/pr66199-1.C: Same.
14932         * testsuite/libgomp.c++/pr66199-2.C: Same.
14933         * testsuite/libgomp.c++/target-2.C: Same.
14934         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
14935         -std=<standard> option.
14936         * testsuite/libgomp.c++/udr-11.C: Same.
14937         * testsuite/libgomp.c++/udr-12.C: Same.
14938         * testsuite/libgomp.c++/udr-13.C: Same.
14939         * testsuite/libgomp.c++/udr-14.C: Same.
14940         * testsuite/libgomp.c++/udr-15.C: Same.
14941         * testsuite/libgomp.c++/udr-16.C: Same.
14942         * testsuite/libgomp.c++/udr-17.C: Same.
14943         * testsuite/libgomp.c++/udr-18.C: Same.
14944         * testsuite/libgomp.c++/udr-19.C: Same.
14945         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
14946         * testsuite/libgomp.c++/simd-1.C: Same.
14947         * testsuite/libgomp.c++/simd-2.C: Same.
14948         * testsuite/libgomp.c++/simd-3.C: Same.
14949         * testsuite/libgomp.c++/simd-4.C: Same.
14950         * testsuite/libgomp.c++/simd-5.C: Same.
14951         * testsuite/libgomp.c++/simd-6.C: Same.
14952         * testsuite/libgomp.c++/simd-7.C: Same.
14953         * testsuite/libgomp.c++/simd-8.C: Same.
14954         * testsuite/libgomp.c++/simd-9.C: Same.
14955         * testsuite/libgomp.c++/simd10.C: Same.
14956         * testsuite/libgomp.c++/simd11.C: Same.
14957         * testsuite/libgomp.c++/simd12.C: Same.
14958         * testsuite/libgomp.c++/simd13.C: Same.
14960 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
14962         PR middle-end/66702
14963         * testsuite/libgomp.c++/pr66702-1.C: New test.
14964         * testsuite/libgomp.c++/pr66702-2.C: New test.
14966 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14968         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
14969         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
14970         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
14971         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
14973 2015-06-30  Tom de Vries  <tom@codesourcery.com>
14975         PR tree-optimization/66652
14976         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
14977         using restrict pointers.
14978         (main): Add arguments to calls to f.
14979         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
14981 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
14983         * configure.ac: Fix check for header <sys/sysctl.h>.
14984         * configure: Regenerate.
14985         * config.h.in: Likewise.
14987 2015-06-23  Tom de Vries  <tom@codesourcery.com>
14989         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
14990         abort.
14991         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
14993 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
14995         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
14996         acc_device_nvidia.
14998         PR libgomp/66518
14999         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15000         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15002 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15004         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15005         dg-additional-options for any remaining options.
15006         * testsuite/libgomp.c/atomic-2.c: Same.
15007         * testsuite/libgomp.c/atomic-4.c: Same.
15008         * testsuite/libgomp.c/atomic-5.c: Same.
15009         * testsuite/libgomp.c/atomic-6.c: Same.
15010         * testsuite/libgomp.c/autopar-1.c: Same.
15011         * testsuite/libgomp.c/copyin-1.c: Same.
15012         * testsuite/libgomp.c/copyin-2.c: Same.
15013         * testsuite/libgomp.c/copyin-3.c: Same.
15014         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15015         * testsuite/libgomp.c/nestedfn-5.c: Same.
15016         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15017         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15018         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15019         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15020         * testsuite/libgomp.c/pr32362-1.c: Same.
15021         * testsuite/libgomp.c/pr32362-2.c: Same.
15022         * testsuite/libgomp.c/pr32362-3.c: Same.
15023         * testsuite/libgomp.c/pr39591-1.c: Same.
15024         * testsuite/libgomp.c/pr39591-2.c: Same.
15025         * testsuite/libgomp.c/pr39591-3.c: Same.
15026         * testsuite/libgomp.c/pr58392.c: Same.
15027         * testsuite/libgomp.c/pr58756.c: Same.
15028         * testsuite/libgomp.c/simd-1.c: Same.
15029         * testsuite/libgomp.c/simd-10.c: Same.
15030         * testsuite/libgomp.c/simd-11.c: Same.
15031         * testsuite/libgomp.c/simd-12.c: Same.
15032         * testsuite/libgomp.c/simd-13.c: Same.
15033         * testsuite/libgomp.c/simd-14.c: Same.
15034         * testsuite/libgomp.c/simd-15.c: Same.
15035         * testsuite/libgomp.c/simd-2.c: Same.
15036         * testsuite/libgomp.c/simd-3.c: Same.
15037         * testsuite/libgomp.c/simd-4.c: Same.
15038         * testsuite/libgomp.c/simd-5.c: Same.
15039         * testsuite/libgomp.c/simd-6.c: Same.
15040         * testsuite/libgomp.c/simd-7.c: Same.
15041         * testsuite/libgomp.c/simd-8.c: Same.
15042         * testsuite/libgomp.c/simd-9.c: Same.
15044 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15046         * testsuite/libgomp.c/pr35625.c: Fix typo.
15048 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15050         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15051         in dg-options.
15052         * testsuite/libgomp.c/atomic-3.c: Same.
15053         * testsuite/libgomp.c/debug-1.c: Same.
15054         * testsuite/libgomp.c/nqueens-1.c: Same.
15055         * testsuite/libgomp.c/pr26171.c: Same.
15056         * testsuite/libgomp.c/pr48591.c: Same.
15057         * testsuite/libgomp.c/pr64824.c: Same.
15058         * testsuite/libgomp.c/pr64868.c: Same.
15059         * testsuite/libgomp.c/pr66133.c: Same.
15060         * testsuite/libgomp.c/pr66199-1.c: Same.
15061         * testsuite/libgomp.c/pr66199-2.c: Same.
15062         * testsuite/libgomp.c/target-8.c: Same.
15064 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15066         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15067         -std={gnu99,c99}.
15068         * testsuite/libgomp.c/for-1.c: Same.
15069         * testsuite/libgomp.c/for-2.c: Same.
15070         * testsuite/libgomp.c/for-3.c: Same.
15071         * testsuite/libgomp.c/pr35625.c: Same.
15072         * testsuite/libgomp.c/pr39154.c: Same.
15073         * testsuite/libgomp.c/simd-16.c: Same.
15074         * testsuite/libgomp.c/simd-17.c: Same.
15076 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15078         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15080 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15082         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15083         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15084         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15085         (N): Define.
15086         (main): Use N instead of hardcoded constants.
15088 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15090         merge from gomp4 branch:
15091         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15093         PR tree-optimization/65443
15094         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15095         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15096         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15098 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15100         * testsuite/libgomp.graphite/bounds.c: Adjust for
15101         cleanup-tree-dump removal.
15102         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15103         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15104         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15105         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15106         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15107         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15108         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15109         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15110         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15111         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15113 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15115         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15116         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15117         (futex_wake) [!__x86_64__]: Ditto.
15119 2015-05-28  Julian Brown  <julian@codesourcery.com>
15121         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15122         function comment. Only call gomp_fatal if new argument is true.
15123         (acc_dev_num_out_of_range): New function.
15124         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15125         acc_dev_num_out_of_range as appropriate.
15126         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15127         (acc_get_device_num, acc_set_device_num): Update calls to
15128         resolve_device.
15129         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15130         output.
15132 2015-05-28  Julian Brown  <julian@codesourcery.com>
15134         PR libgomp/65742
15135         * oacc-init.c (plugin/plugin-host.h): Include.
15136         (acc_on_device): Check whether we're in an offloaded region for
15137         host_nonshm
15138         plugin. Don't use __builtin_acc_on_device.
15139         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15140         nonshm_exec flag in thread-local data.
15141         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15142         data for host_nonshm plugin.
15143         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15144         for host_nonshm plugin.
15145         * plugin/plugin-host.h: New.
15147 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15149         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15151 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15153         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15154         Declare as int.
15155         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15156         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15157         Declare as int.
15159 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15161         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15163 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15165         * target.c (gomp_map_pointer): New function abstracting out
15166         GOMP_MAP_POINTER handling.
15167         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15168         gomp_map_pointer().
15170 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15172         PR middle-end/66199
15173         * testsuite/libgomp.c/pr66199-1.c: New test.
15174         * testsuite/libgomp.c/pr66199-2.c: New test.
15175         * testsuite/libgomp.c++/pr66199-1.C: New test.
15176         * testsuite/libgomp.c++/pr66199-2.C: New test.
15177         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15178         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15180 2015-05-19  Julian Brown  <julian@codesourcery.com>
15182         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15183         on cuInit failure.
15185 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15187         PR middle-end/66133
15188         * testsuite/libgomp.c/pr66133.c: New test.
15190 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15192         * Makefile.in: Regenerated with automake-1.11.6.
15193         * aclocal.m4: Likewise.
15194         * config.h.in: Likewise.
15195         * configure: Likewise.
15196         * testsuite/Makefile.in: Likewise.
15198 2015-05-08  Jason Merrill  <jason@redhat.com>
15200         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15201         _Complex.
15203         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15205 2015-05-06  Julian Brown  <julian@codesourcery.com>
15207         * oacc-init.c (acc_device_lock): Add explanatory comment.
15208         (resolve_device): Add comment about locking requirement.
15209         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15210         gomp_init_device and gomp_fini_device calls.
15211         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15212         (acc_get_device_num, acc_set_device_num): Add locking around
15213         resolve_device and gomp_init_device calls.
15215 2015-05-06  Julian Brown  <julian@codesourcery.com>
15217         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15218         goacc_thread_lock on error paths.
15219         * oacc-mem.c (lookup_host): Remove locking from function. Note
15220         locking requirement for caller in function comment.
15221         (lookup_dev): Likewise.
15222         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15223         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15224         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15225         Add locking.
15227 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15229         PR testsuite/65205
15230         PR libgomp/65993
15231         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15232         don't expect "0x" prefix for "%p" format specifier, don't expect
15233         "(nil)" for NULL pointer.
15234         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15235         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15236         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15237         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15238         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15239         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15240         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15241         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15242         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15243         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15244         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15245         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15246         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15247         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15248         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15249         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15250         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15251         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15252         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15253         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15254         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15255         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15256         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15257         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15258         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15259         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15260         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15261         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15262         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15263         accurately specify what we're looking for.
15264         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15265         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15266         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15267         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15268         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15270 2015-04-30  James Norris  <jnorris@codesourcery.com>
15272         PR testsuite/65205
15273         * testsuite/lib/libgomp.exp
15274         (check_effective_target_openacc_host_selected)
15275         (check_effective_target_openacc_host_nonshm_selected): New
15276         procedures.
15277         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15278         dg-shouldfail.
15279         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15280         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15281         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15282         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15283         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15284         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15285         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15286         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15287         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15288         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15289         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15290         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15291         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15292         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15293         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15294         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15295         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15296         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15297         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15298         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15299         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15300         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15301         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15302         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15303         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15304         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15305         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15306         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15307         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15308         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15309         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15310         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15311         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15312         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15313         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15314         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15315         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15316         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15317         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15318         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15319         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15320         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15321         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15323 2015-04-08  Julian Brown  <julian@codesourcery.com>
15325         * libgomp.h (target_mem_desc: Remove mem_map field.
15326         (acc_dispatch_t): Remove open_device_func, close_device_func,
15327         get_device_num_func, set_device_num_func, target_data members.
15328         Change create_thread_data_func argument to device number instead of
15329         generic pointer.
15330         * oacc-async.c (assert.h): Include.
15331         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15332         (acc_wait_all, acc_wait_all_async): Use current host thread's
15333         active device, not base_dev.
15334         * oacc-cuda.c (acc_get_current_cuda_device)
15335         (acc_get_current_cuda_context, acc_get_cuda_stream)
15336         (acc_set_cuda_stream): Likewise.
15337         * oacc-host.c (host_dispatch): Don't set open_device_func,
15338         close_device_func, get_device_num_func or set_device_num_func.
15339         * oacc-init.c (base_dev, init_key): Remove.
15340         (cached_base_dev): New.
15341         (name_of_acc_device_t): New.
15342         (acc_init_1): Initialise default-numbered device, not zeroth.
15343         (acc_shutdown_1): Close all devices of a given type.
15344         (goacc_destroy_thread): Don't use base_dev.
15345         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15346         (goacc_attach_host_thread_to_device): New.
15347         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15348         (acc_get_num_devices): Don't use base_dev.
15349         (acc_set_device_type): Reimplement.
15350         (acc_get_device_type): Don't use base_dev.
15351         (acc_get_device_num): Tweak logic.
15352         (acc_set_device_num): Likewise.
15353         (acc_on_device): Use acc_get_device_type.
15354         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15355         (goacc_lazy_initialize): Reimplement with acc_init and
15356         goacc_attach_host_thread_to_device.
15357         * oacc-int.h (goacc_thread): Add base_dev field.
15358         (base_dev): Remove extern declaration.
15359         (goacc_attach_host_thread_to_device): Add prototype.
15360         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15361         base_dev.
15362         (acc_free): Likewise.
15363         (acc_memcpy_to_device): Likewise.
15364         (acc_memcpy_from_device): Likewise.
15365         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15366         goacc_lazy_initialize (throughout).
15367         (GOACC_parallel): Use tgt_offset to locate target functions.
15368         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15369         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15370         (gomp_load_plugin_for_device): Remove open_device, close_device,
15371         get_device_num, set_device_num openacc hook initialisation. Don't set
15372         openacc.target_data.
15373         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15374         (GOMP_OFFLOAD_openacc_close_device)
15375         (GOMP_OFFLOAD_openacc_get_device_num)
15376         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15377         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15378         to int.
15379         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15380         (instantiated_devices, ptx_dev_lock): New.
15381         (struct ptx_image_data): New.
15382         (ptx_devices, ptx_images, ptx_image_lock): New.
15383         (fini_streams_for_device): Reorder cuStreamDestroy call.
15384         (nvptx_get_num_devices): Remove forward declaration.
15385         (nvptx_init): Change return type to bool.
15386         (nvptx_fini): Remove.
15387         (nvptx_attach_host_thread_to_device): New.
15388         (nvptx_open_device): Return struct ptx_device* instead of void*.
15389         (nvptx_close_device): Change argument type to struct ptx_device*,
15390         return type to void.
15391         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15392         (kernel_target_data, kernel_host_table): Remove static globals.
15393         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15394         (GOMP_OFFLOAD_init_device): Reimplement.
15395         (GOMP_OFFLOAD_fini_device): Likewise.
15396         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15397         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15398         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15399         (GOMP_OFFLOAD_openacc_open_device)
15400         (GOMP_OFFLOAD_openacc_close_device)
15401         (GOMP_OFFLOAD_openacc_set_device_num)
15402         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15403         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15404         (device number).
15406         testsuite/
15407         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15409 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15411         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15412         * libgomp.h (struct gomp_memory_mapping): Remove.
15413         (struct target_mem_desc): Change type of mem_map from
15414         gomp_memory_mapping * to splay_tree_s *.
15415         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15416         Add load_image_func, unload_image_func.
15417         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15418         Remove offload_regions_registered.
15419         (gomp_init_tables): Remove.
15420         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15421         to splay_tree_s *.
15422         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15423         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15424         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15425         offload_regions_registered.
15426         Initialize load_image_func, unload_image_func, mem_map.root.
15427         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15428         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15429         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15430         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15431         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15432         (lookup_dev): Use dev's lock.
15433         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15434         (acc_is_present): Likewise.
15435         (acc_map_data): Likewise.
15436         (acc_unmap_data): Likewise.  Use dev's lock.
15437         (present_create_copy): Likewise.
15438         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15439         (update_dev_host): Likewise.
15440         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15441         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15442         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15443         (GOMP_OFFLOAD_get_table): Remove
15444         (GOMP_OFFLOAD_load_image): New function.
15445         (GOMP_OFFLOAD_unload_image): New function.
15446         * target.c (register_lock): New mutex for offload image registration.
15447         (num_devices): Do not guard with PLUGIN_SUPPORT.
15448         (gomp_realloc_unlock): New static function.
15449         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15450         before gomp_fatal.
15451         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15452         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15453         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15454         mem_map's.
15455         (gomp_unmap_vars): Likewise.
15456         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15457         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15458         (gomp_offload_image_to_device): New static function.
15459         (GOMP_offload_register): Add mutex lock.
15460         Call gomp_offload_image_to_device for all initialized devices.
15461         Replace gomp_realloc with gomp_realloc_unlock.
15462         (GOMP_offload_unregister): New function.
15463         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15464         get_table_func from the plugin with calls to init_device_func and
15465         gomp_offload_image_to_device.
15466         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15467         to splay_tree_s *.
15468         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15469         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15470         (GOMP_target_data): Do not call gomp_init_tables.
15471         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15472         (gomp_load_plugin_for_device): Replace register_image and get_table
15473         with load_image and unload_image in DLSYM ().
15474         (gomp_register_images_for_device): Remove function.
15475         (gomp_target_init): Do not initialize current_device.mem_map.*,
15476         current_device.offload_regions_registered.
15477         Remove call to gomp_register_images_for_device.
15478         Do not free offload_images and num_offload_images.
15480 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15482         PR fortran/65597
15483         * testsuite/libgomp.fortran/pr65597.f90: New test.
15485 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15487         PR testsuite/65594
15488         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15489         (init, check): New function.
15490         (foo): Change return type to void.
15491         (main): Call init and check.
15493 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15495         PR testsuite/65594
15496         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15497         (foo): Use M for non-inner loops to scale down test-case.
15499 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15501         PR libgomp/64972
15502         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15503         (GOACC_data_start): Likewise.
15504         * target.c (gomp_map_vars): Likewise.
15506 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15508         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15509         hppa*-*-hpux*.
15511 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15513         * testsuite/libgomp.c/target-10.c: New test.
15514         * testsuite/libgomp.c++/target-4.C: New test.
15516 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15518         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15519         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15521 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15523         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15524         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15525         (pthread.h): Check for this header file.
15526         * configure: Regenerate.
15528 2015-02-25  Tom de Vries  <tom@codesourcery.com>
15530         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
15531         (check_reduction_op, check_reduction_macro, max, min):
15532         Declare.
15533         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
15534         function.
15535         (main): Use new functions.
15537 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
15539         * target.c (gomp_load_plugin_for_device): Use const char * instead of
15540         char * for variables holding dlerror return values.
15541         (DLSYM_OPT): Ditto.
15543 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15545         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
15547 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
15548             Cesar Philippidis  <cesar@codesourcery.com>
15550         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
15551         GOACC_ctaid, and GOACC_nctaid routines.
15553 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
15555         PR c/64824
15556         * testsuite/libgomp.c/atomic-18.c: New test.
15557         * testsuite/libgomp.c++/atomic-16.C: New test.
15559 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15561         PR c/64824
15562         PR c/64868
15563         * testsuite/libgomp.c/pr64824.c: New test.
15564         * testsuite/libgomp.c/pr64868.c: New test.
15565         * testsuite/libgomp.c++/pr64824.C: New test.
15566         * testsuite/libgomp.c++/pr64868.C: New test.
15568 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15570         PR libgomp/64635
15571         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
15572         Link with -lpthread.
15573         * config/aix/plugin-suffix.h: Delete.
15575 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
15577         PR libgomp/64635
15578         * configure.tgt (*-*-aix*): Use config_path "aix posix".
15579         (*-*-darwin*): Use config_path "bsd darwin posix".
15580         (*-*-hpux*): Use config_path "hpux posix".
15581         * target.c: Add include of plugin-suffix.h and use
15582         SONAME_SUFFIX macro.
15583         * config/aix/plugin-suffix.h: New file.
15584         * config/darwin/plugin-suffix.h: New file.
15585         * config/hpux/plugin-suffix.h: New file.
15586         * config/posix/plugin-suffix.h: New file.
15588 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
15590         PR middle-end/64734
15591         * libgomp.c/pr64734.c: New test.
15593 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15595         PR libgomp/64672
15596         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
15598 2015-01-23  Tom de Vries  <tom@codesourcery.com>
15600         PR libgomp/64707
15601         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
15602         dg-options.
15604 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15606         PR libgomp/64625
15607         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
15608         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
15609         formal parameter.  Update all users.
15610         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
15611         Document unused formal parameter.
15613 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
15615         * oacc-parallel.c: Don't include <alloca.h>.
15616         (GOACC_parallel): Use gomp_alloca instead of alloca.
15618 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
15620         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
15622 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15623             James Norris  <jnorris@codesourcery.com>
15624             Tom de Vries  <tom@codesourcery.com>
15625             Julian Brown  <julian@codesourcery.com>
15626             Cesar Philippidis  <cesar@codesourcery.com>
15627             Nathan Sidwell  <nathan@codesourcery.com>
15628             Tobias Burnus  <burnus@net-b.de>
15630         * Makefile.am (search_path): Add $(top_srcdir)/../include.
15631         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
15632         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
15633         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
15634         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
15635         Include $(top_srcdir)/plugin/Makefrag.am.
15636         (nodist_libsubinclude_HEADERS): Add openacc.h.
15637         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
15638         openacc.f90, openacc.mod, openacc_kinds.mod.
15639         (omp_lib.mod): Generalize into...
15640         (%.mod): ... this new rule.
15641         (openacc_kinds.mod, openacc.mod): New rules.
15642         * plugin/configfrag.ac: New file.
15643         * configure.ac: Move plugin/offloading support into it.  Include
15644         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
15645         * plugin/Makefrag.am: New file.
15646         * testsuite/Makefile.am (OFFLOAD_TARGETS)
15647         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
15648         export.
15649         (libgomp-test-support.exp): New rule.
15650         (all-local): Depend on it.
15651         * Makefile.in: Regenerate.
15652         * testsuite/Makefile.in: Regenerate.
15653         * config.h.in: Likewise.
15654         * configure: Likewise.
15655         * configure.tgt: Harden shell syntax.
15656         * env.c: Include "oacc-int.h".
15657         (parse_acc_device_type): New function.
15658         (gomp_debug_var, goacc_device_type, goacc_device_num): New
15659         variables.
15660         (initialize_env): Initialize those.  Call
15661         goacc_runtime_initialize.
15662         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
15663         (gomp_fatal): Call gomp_vfatal.
15664         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
15665         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
15666         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
15667         (splay_tree_node, splay_tree, splay_tree_key)
15668         (struct target_mem_desc, struct splay_tree_key_s)
15669         (struct gomp_memory_mapping, struct acc_dispatch_t)
15670         (struct gomp_device_descr, gomp_acc_insert_pointer)
15671         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
15672         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
15673         (gomp_free_memmap, gomp_fini_device): New declarations.
15674         (gomp_vdebug, gomp_debug): New macros.
15675         Include "splay-tree.h".
15676         * libgomp.map (OACC_2.0): New symbol version.  Use for
15677         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
15678         acc_set_device_type_h_, acc_get_device_type,
15679         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
15680         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
15681         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
15682         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
15683         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
15684         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
15685         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
15686         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
15687         acc_copyin_array_h_, acc_present_or_copyin,
15688         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
15689         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
15690         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
15691         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
15692         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
15693         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
15694         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
15695         acc_update_device, acc_update_device_32_h_,
15696         acc_update_device_64_h_, acc_update_device_array_h_,
15697         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
15698         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
15699         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
15700         acc_is_present_64_h_, acc_is_present_array_h_,
15701         acc_memcpy_to_device, acc_memcpy_from_device,
15702         acc_get_current_cuda_device, acc_get_current_cuda_context,
15703         acc_get_cuda_stream, acc_set_cuda_stream.
15704         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
15705         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
15706         GOACC_update, GOACC_wait, GOACC_get_thread_num,
15707         GOACC_get_num_threads.
15708         (GOMP_PLUGIN_1.0): New symbol version.  Use for
15709         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
15710         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
15711         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
15712         GOMP_PLUGIN_acc_thread.
15713         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
15714         environment variable.
15715         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
15716         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
15717         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
15718         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
15719         (splay_tree_remove): New declarations.
15720         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
15721         (splay_tree_remove, splay_tree_lookup): Move into...
15722         * splay-tree.c: ... this new file.
15723         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
15724         (splay_tree_node, splay_tree, splay_tree_key)
15725         (struct target_mem_desc, struct splay_tree_key_s)
15726         (struct gomp_device_descr): Don't declare.
15727         (num_devices_openmp): New variable.
15728         (gomp_get_num_devices ): Use it.
15729         (gomp_init_targets_once): New function.
15730         (gomp_get_num_devices ): Use it.
15731         (get_kind, gomp_copy_from_async, gomp_free_memmap)
15732         (gomp_fini_device, gomp_register_image_for_device): New functions.
15733         (gomp_map_vars): Add devaddrs parameter.
15734         (gomp_update): Add mm parameter.
15735         (gomp_init_device): Move most of it into...
15736         (gomp_init_tables): ... this new function.
15737         (gomp_register_images_for_device): Remove function.
15738         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
15739         Make them hidden instead of static.
15740         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
15741         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
15742         (GOMP_target_end_data, GOMP_target_update)
15743         (gomp_load_plugin_for_device, gomp_target_init): Update for
15744         OpenACC changes.
15745         * oacc-async.c: New file.
15746         * oacc-cuda.c: Likewise.
15747         * oacc-host.c: Likewise.
15748         * oacc-init.c: Likewise.
15749         * oacc-int.h: Likewise.
15750         * oacc-mem.c: Likewise.
15751         * oacc-parallel.c: Likewise.
15752         * oacc-plugin.c: Likewise.
15753         * oacc-plugin.h: Likewise.
15754         * oacc-ptx.h: Likewise.
15755         * openacc.f90: Likewise.
15756         * openacc.h: Likewise.
15757         * openacc_lib.h: Likewise.
15758         * plugin/plugin-host.c: Likewise.
15759         * plugin/plugin-nvptx.c: Likewise.
15760         * libgomp-plugin.c: Likewise.
15761         * libgomp-plugin.h: Likewise.
15762         * libgomp_target.h: Remove file after merging content into the
15763         former file.  Update all users.
15764         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
15765         (offload_targets_s, offload_targets_s_openacc): New variables.
15766         (check_effective_target_openacc_nvidia_accel_present)
15767         (check_effective_target_openacc_nvidia_accel_selected): New
15768         procedures.
15769         (libgomp_init): Update for OpenACC changes.
15770         * testsuite/libgomp-test-support.exp.in: New file.
15771         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
15772         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15773         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15774         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
15775         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
15776         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15777         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
15778         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15779         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
15780         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
15781         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
15782         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15783         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
15784         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
15785         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
15786         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
15787         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
15788         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
15789         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
15790         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
15791         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
15792         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
15793         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
15794         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15795         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15796         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15797         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15798         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15799         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15800         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15801         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15802         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
15803         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
15804         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
15805         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
15806         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15807         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
15808         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15809         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
15810         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
15811         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
15812         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
15813         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15814         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15815         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15816         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
15817         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15818         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15819         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15820         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15821         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15822         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
15823         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15824         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15825         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15826         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15827         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15828         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15829         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15830         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
15831         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
15832         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
15833         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15834         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15835         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15836         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
15837         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
15838         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15839         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15840         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15841         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
15842         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15843         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15844         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15845         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
15846         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
15847         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15848         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15849         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
15850         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
15851         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
15852         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
15853         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15854         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15855         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15856         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
15857         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
15858         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15859         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15860         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
15861         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
15862         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
15863         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
15864         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15865         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15866         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15867         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15868         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
15869         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15870         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15871         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
15872         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
15873         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
15874         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15875         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
15876         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
15877         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
15878         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
15879         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
15880         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15881         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
15882         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
15883         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15884         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
15885         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
15886         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
15887         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
15888         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
15889         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
15890         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
15891         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
15892         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
15893         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
15894         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
15895         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
15896         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
15897         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
15898         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
15899         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
15900         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
15901         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
15902         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
15903         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15904         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
15905         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
15906         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
15907         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
15908         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
15909         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
15910         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
15911         Likewise.
15912         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
15913         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
15914         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
15915         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
15916         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
15917         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15918         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
15919         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15920         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15921         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15922         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
15923         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
15924         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
15925         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
15926         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
15927         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
15928         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
15929         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
15930         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
15931         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
15932         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
15933         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
15934         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
15935         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
15936         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
15937         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
15938         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15939         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15940         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15941         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15942         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15943         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15944         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15945         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15946         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
15947         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
15948         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
15949         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
15950         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
15951         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
15952         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
15953         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
15954         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
15955         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
15956         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
15957         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
15958         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
15959         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
15960         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
15961         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
15962         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
15963         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
15964         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
15965         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
15966         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
15967         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
15968         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
15969         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
15970         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
15971         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
15973 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
15974             Julian Brown  <julian@codesourcery.com>
15975             David Malcolm  <dmalcolm@redhat.com>
15977         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
15978         to "GNU Offloading and Multi Processing Runtime Library".  Change
15979         all users.
15980         * configure: Regenerate.
15981         * libgomp.texi: Update.
15983 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
15985         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
15986         "$tgt_dir/lib32".
15987         * configure: Regenerate.
15989         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
15990         "intelmic" in $offload_targets.
15992 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
15994         Update copyright years.
15996         * libgomp.texi: Bump @copying's copyright year.
15998 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16000         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16001         Move load of target-supports.exp earlier.
16003 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16005         * testsuite/libgomp.c/target-9.c: New test.
16007 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16009         * config.h.in: Regenerate.
16010         * configure: Regenerate.
16011         * configure.ac: Add GCC_CHECK_EMUTLS.
16012         * libgomp.h: Add check for USE_EMUTLS: this case
16013         is equal to HAVE_TLS.
16014         * team.c: Likewise.
16016 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16018         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16020 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16021             Ilya Verbin  <ilya.verbin@intel.com>
16023         * testsuite/libgomp.c/target-critical-1.c: New test.
16025 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16027         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16028         to dg-options unless expensive testing is on.
16029         (TESTITERS): Define to N if not defined.
16030         (main): Use TESTITERS instead of N.
16031         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16032         dg-additional-options depending on whether expensive testing is on.
16033         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16034         Decrease N to 100000 and CHUNKSZ to 10000.
16036 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16038         PR fortran/63938
16039         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16040         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16042 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16044         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16046 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16048         PR bootstrap/63784
16049         * configure: Regenerated.
16051 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16053         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16054         vect_simd_clones effective target.
16055         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16057 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16059         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16060         of 32 as block_size.
16061         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16062         instead of 32 as block_size.
16064 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16065             Ilya Verbin  <ilya.verbin@intel.com>
16067         * Makefile.in: Regenerate.
16068         * configure: Regenerate.
16069         * configure.ac: Set up offload_additional_options,
16070         offload_additional_lib_paths and offload_targets.
16071         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16072         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16073         * testsuite/Makefile.in: Regenerate.
16074         * testsuite/lib/libgomp.exp (libgomp_init): Append
16075         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16076         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16077         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16079 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16080             Ilya Verbin  <ilya.verbin@intel.com>
16081             Kirill Yukhin  <kirill.yukhin@intel.com>
16082             Ilya Tocar  <ilya.tocar@intel.com>
16084         * testsuite/lib/libgomp.exp
16085         (check_effective_target_offload_device): New.
16086         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16087         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16088         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16089         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16090         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16091         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16092         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16093         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16094         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16095         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16096         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16097         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16098         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16099         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16100         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16101         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16102         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16103         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16104         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16105         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16106         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16107         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16108         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16109         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16110         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16111         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16112         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16113         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16114         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16115         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16116         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16117         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16118         * testsuite/libgomp.c/target-7.c: Fix test.
16119         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16120         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16121         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16122         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16123         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16124         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16125         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16126         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16127         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16128         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16129         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16130         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16131         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16132         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16133         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16134         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16135         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16136         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16137         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16138         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16139         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16140         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16141         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16142         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16143         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16144         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16145         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16146         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16147         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16148         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16149         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16151 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16152             Ilya Verbin  <ilya.verbin@intel.com>
16153             Thomas Schwinge  <thomas@codesourcery.com>
16154             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16156         * libgomp.map (GOMP_4.0.1): New symbol version.
16157         Add GOMP_offload_register.
16158         * libgomp_target.h: New file.
16159         * splay-tree.h: New file.
16160         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16161         (gomp_target_init): New forward declaration.
16162         (gomp_is_initialized): New static variable.
16163         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16164         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16165         New structures.
16166         (offload_images, num_offload_images, devices, num_devices): New static
16167         variables.
16168         (splay_compare): New static function.
16169         (struct gomp_device_descr): New structure.
16170         (gomp_get_num_devices): Call gomp_target_init.
16171         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16172         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16173         (GOMP_offload_register): New function.
16174         (GOMP_target): Arrange for host callback to be performed in a separate
16175         initial thread and contention group, inheriting ICVs from
16176         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16177         Add device initialization and lookup for target function in splay tree.
16178         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16179         (GOMP_target_end_data): Call gomp_unmap_vars.
16180         (GOMP_target_update): Add device initialization and call gomp_update.
16181         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16182         (gomp_target_init): New static functions.
16184 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16185             Thomas Schwinge  <thomas@codesourcery.com>
16186             Ilya Verbin  <ilya.verbin@intel.com>
16187             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16189         * config.h.in: Regenerate.
16190         * configure: Regenerate.
16191         * configure.ac: Check for libdl, required for plugin support.
16192         (PLUGIN_SUPPORT): Define if plugins are supported.
16193         (enable_offload_targets): Support Intel MIC targets.
16194         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16196 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16198         PR target/63610
16199         * configure: Regenerate.
16201 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16203         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16205 2014-10-06  Marek Polacek  <polacek@redhat.com>
16207         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16208         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16209         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16210         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16212 2014-10-06  Marek Polacek  <polacek@redhat.com>
16214         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16215         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16216         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16217         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16218         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16219         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16220         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16221         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16222         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16223         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16224         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16225         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16226         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16227         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16228         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16229         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16230         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16231         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16232         declarations.
16234 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16236         PR libgomp/61200
16237         * testsuite/libgomp.c/pr61200.c: New test.
16239 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16241         PR c++/63248
16242         * testsuite/libgomp.c++/pr63248.C: New test.
16244 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16246         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16247         is not zero, but taskgroup->children is NULL and there are
16248         any task->children, schedule those instead of waiting.
16249         * testsuite/libgomp.c/depend-6.c: New test.
16250         * testsuite/libgomp.c/depend-7.c: New test.
16251         * testsuite/libgomp.c/depend-8.c: New test.
16252         * testsuite/libgomp.c/depend-9.c: New test.
16253         * testsuite/libgomp.c/depend-10.c: New test.
16255 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16257         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16258         (struct gomp_taskwait): New type.
16259         (struct gomp_task): Add taskwait and parent_depends_on, remove
16260         in_taskwait and taskwait_sem fields.
16261         (gomp_finish_task): Don't destroy taskwait_sem.
16262         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16263         taskwait and parent_depends_on.
16264         (GOMP_task): For if (0) tasks with depend clause that depend on
16265         earlier tasks don't defer them, instead call
16266         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16267         Initialize redundant_out field, for redundant out entries just
16268         move them at the end of linked list instead of removing them
16269         completely, and set redundant_out flag instead of redundant.
16270         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16271         that task.
16272         (gomp_task_run_post_handle_dependers): If parent is in
16273         gomp_task_maybe_wait_for_dependencies and newly runnable task
16274         is not parent_depends_on, queue it in parent->children linked
16275         list after all runnable tasks with parent_depends_on set.
16276         Adjust for addition of taskwait indirection.
16277         (gomp_task_run_post_remove_parent): If parent is in
16278         gomp_task_maybe_wait_for_dependencies and task to be removed
16279         is parent_depends_on, decrement n_depend and if needed awake
16280         parent.  Adjust for addition of taskwait indirection.
16281         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16282         (gomp_task_maybe_wait_for_dependencies): New function.
16283         * testsuite/libgomp.c/depend-5.c: New test.
16285 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16287         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16288         with TS 18508/Fortran 2015.
16290 2014-07-06  Marek Polacek  <polacek@redhat.com>
16292         PR c/6940
16293         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16295 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16297         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16298         matches regex $lang_source_re, add $lang_include_flags to options.
16299         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16300         * testsuite/libgomp.c++/c++.exp: Likewise.
16301         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16302         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16303         ALWAYS_CFLAGS.
16304         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16306 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16308         * testsuite/libgomp.fortran/fortran.exp: Explain
16309         gfortran-dg-runtest usage.
16311 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16313         * testsuite/libgomp.fortran/simd5.f90: New test.
16314         * testsuite/libgomp.fortran/simd6.f90: New test.
16315         * testsuite/libgomp.fortran/simd7.f90: New test.
16317 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16319         * testsuite/libgomp.c/for-2.c: Define SC to static for
16320         #pragma omp for simd testing.
16321         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16322         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16323         SC macro.
16324         * testsuite/libgomp.c/simd-14.c: New test.
16325         * testsuite/libgomp.c/simd-15.c: New test.
16326         * testsuite/libgomp.c/simd-16.c: New test.
16327         * testsuite/libgomp.c/simd-17.c: New test.
16328         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16329         #pragma omp for simd testing.
16330         * testsuite/libgomp.c++/simd10.C: New test.
16331         * testsuite/libgomp.c++/simd11.C: New test.
16332         * testsuite/libgomp.c++/simd12.C: New test.
16333         * testsuite/libgomp.c++/simd13.C: New test.
16335         * testsuite/libgomp.fortran/aligned1.f03: New test.
16336         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16337         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16338         tasks with !$omp parallel !$omp single.
16339         * testsuite/libgomp.fortran/target8.f90: New test.
16340         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16341         not to use trim in the combiner, instead call elemental function.
16342         (fn): New elemental function.
16343         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16344         Make elemental.
16345         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16346         omp_in): Likewise.
16347         * testsuite/libgomp.fortran/udr12.f90: New test.
16348         * testsuite/libgomp.fortran/udr13.f90: New test.
16349         * testsuite/libgomp.fortran/udr14.f90: New test.
16350         * testsuite/libgomp.fortran/udr15.f90: New test.
16352 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16354         * omp_lib.f90.in (openmp_version): Set to 201307.
16355         * omp_lib.h.in (openmp_version): Likewise.
16356         * testsuite/libgomp.c/target-8.c: New test.
16357         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16358         and inbranch clauses.
16359         * testsuite/libgomp.fortran/depend-3.f90: New test.
16360         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16361         openmp_version.
16362         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16363         * testsuite/libgomp.fortran/target1.f90: New test.
16364         * testsuite/libgomp.fortran/target2.f90: New test.
16365         * testsuite/libgomp.fortran/target3.f90: New test.
16366         * testsuite/libgomp.fortran/target4.f90: New test.
16367         * testsuite/libgomp.fortran/target5.f90: New test.
16368         * testsuite/libgomp.fortran/target6.f90: New test.
16369         * testsuite/libgomp.fortran/target7.f90: New test.
16371 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16373         PR fortran/60928
16374         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16375         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16376         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16377         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16378         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16379         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16380         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16381         * testsuite/libgomp.fortran/associate1.f90: New test.
16382         * testsuite/libgomp.fortran/associate2.f90: New test.
16383         * testsuite/libgomp.fortran/procptr1.f90: New test.
16385 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16387         * testsuite/libgomp.fortran/simd1.f90: New test.
16388         * testsuite/libgomp.fortran/udr1.f90: New test.
16389         * testsuite/libgomp.fortran/udr2.f90: New test.
16390         * testsuite/libgomp.fortran/udr3.f90: New test.
16391         * testsuite/libgomp.fortran/udr4.f90: New test.
16392         * testsuite/libgomp.fortran/udr5.f90: New test.
16393         * testsuite/libgomp.fortran/udr6.f90: New test.
16394         * testsuite/libgomp.fortran/udr7.f90: New test.
16395         * testsuite/libgomp.fortran/udr8.f90: New test.
16396         * testsuite/libgomp.fortran/udr9.f90: New test.
16397         * testsuite/libgomp.fortran/udr10.f90: New test.
16398         * testsuite/libgomp.fortran/udr11.f90: New test.
16400 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16402         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16403         vect_simd_clones effective target.
16404         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16406 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16408         PR middle-end/61252
16409         * testsuite/libgomp.c++/simd-9.C: New test.
16411 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16413         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16414         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16415         texts according to their @menu entry positions.
16417 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16419         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16420         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16421         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16422         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16423         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16424         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16425         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16426         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16427         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16428         * testsuite/libgomp.fortran/depend-1.f90: New test.
16429         * testsuite/libgomp.fortran/depend-2.f90: New test.
16430         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16431         * testsuite/libgomp.fortran/simd1.f90: New test.
16432         * testsuite/libgomp.fortran/simd2.f90: New test.
16433         * testsuite/libgomp.fortran/simd3.f90: New test.
16434         * testsuite/libgomp.fortran/simd4.f90: New test.
16435         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16437 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16439         * testsuite/libgomp.c/simd-10.c: New test.
16440         * testsuite/libgomp.c/simd-11.c: New test.
16441         * testsuite/libgomp.c/simd-12.c: New test.
16442         * testsuite/libgomp.c/simd-13.c: New test.
16444 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16446         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16447         atomic type clauses in any order and optional comma in between.
16448         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16449         * testsuite/libgomp.c/atomic-17.c: Likewise.
16451         * testsuite/libgomp.c/simd-7.c: New test.
16452         * testsuite/libgomp.c/simd-8.c: New test.
16453         * testsuite/libgomp.c/simd-9.c: New test.
16454         * testsuite/libgomp.c/loop-16.c: New test.
16456 2014-04-02  Richard Henderson  <rth@redhat.com>
16458         * config/linux/futex.h (futex_wait): Get error value from errno.
16459         (futex_wake): Likewise.
16461 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16463         PR c++/60331
16464         * testsuite/libgomp.c++/udr-11.C: New test.
16465         * testsuite/libgomp.c++/udr-12.C: New test.
16466         * testsuite/libgomp.c++/udr-13.C: New test.
16467         * testsuite/libgomp.c++/udr-14.C: New test.
16468         * testsuite/libgomp.c++/udr-15.C: New test.
16469         * testsuite/libgomp.c++/udr-16.C: New test.
16470         * testsuite/libgomp.c++/udr-17.C: New test.
16471         * testsuite/libgomp.c++/udr-18.C: New test.
16472         * testsuite/libgomp.c++/udr-19.C: New test.
16474 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16476         Update copyright years
16478 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16480         * hashtab.h: Use the standard form for the copyright notice.
16482 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16484         * libgomp.texi: Bump @copying's copyright year.
16486 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16488         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16489         alloca () with __builtin_alloca ().
16490         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16491         * testsuite/libgomp.c/lock-3.c: Likewise.
16492         * testsuite/libgomp.c/pr48591.c: Likewise.
16494 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16496         PR testsuite/59534
16497         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16498         comparisons.
16500 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16502         PR libgomp/58756
16503         * testsuite/libgomp.c/pr58756.c: New test.
16505 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16507         PR libgomp/59467
16508         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16509         !$omp parallel.
16511 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16513         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16514         ALWAYS_CFLAGS.
16515         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16516         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16517         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16518         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16519         Likewise.
16521         * libgomp_g.h: Include <stddef.h> for size_t.
16523         * libgomp.spec.in: Update comment about libgomp's dependencies.
16524         * configure.ac: Likewise.
16525         * configure: Regenerate.
16527 2013-10-16  Tobias Burnus  <burnus@net-b.de>
16529         * libgomp.texi: (Runtime Library Routines): Update references for
16530         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
16531         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
16532         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
16533         (Environment Variables): Update references for OpenMP 4.0. Add
16534         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
16535         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
16536         order.
16538 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
16540         * env.c (parse_bind_var): Initialize value to avoid
16541         (false positive) warning.
16543 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
16545         PR libgomp/58691
16546         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
16547         to check variable.
16548         (gomp_init_num_threads): Move i variable declaration into
16549         #ifdef CPU_ALLOC_SIZE block.
16550         * config/linux/affinity.c (gomp_affinity_init_level): Test
16551         gomp_places_list_len == 0 rather than gomp_places_list == 0
16552         when checking for topology reading error.
16553         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
16554         * env.c (parse_affinity): Add ignore argument, if true, don't populate
16555         gomp_places_list, only parse env var and always return false.
16556         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
16557         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
16558         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
16559         and either of these variables were parsed correctly into a places
16560         list.
16562 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16563             Jakub Jelinek  <jakub@redhat.com>
16565         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
16566         of 5 loopfn matches.
16567         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
16568         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
16569         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
16570         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
16571         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
16572         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
16573         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
16574         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
16576 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
16578         * Makefile.am (omp_lib.mod): Streamline rule.
16579         * Makefile.in: Regenerate.
16581         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
16582         exceptions.
16584         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
16585         * testsuite/libgomp.fortran/lib1.f90: Likewise.
16586         * testsuite/libgomp.fortran/lib2.f: Likewise.
16587         * testsuite/libgomp.fortran/lib3.f: Likewise.
16589         * configure.ac: Typo fix.
16590         * configure: Regenerate.
16592         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
16593         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16595         * omp.h.in: Don't touch the user's namespace.
16597 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
16598             Tobias Burnus  <burnus@net-b.de>
16599             Richard Henderson  <rth@redhat.com>
16601         * target.c: New file.
16602         * Makefile.am (libgomp_la_SOURCES): Add target.c.
16603         * Makefile.in: Regenerated.
16604         * libgomp_g.h (GOMP_task): Add depend argument.
16605         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16606         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16607         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
16608         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16609         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16610         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
16611         GOMP_taskgroup_start, GOMP_taskgroup_end,
16612         GOMP_parallel_sections): New prototypes.
16613         * fortran.c (omp_is_initial_device): Add ialias_redirect.
16614         (omp_is_initial_device_): New function.
16615         (ULP, STR1, STR2, ialias_redirect): Removed.
16616         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
16617         omp_set_default_device_8_, omp_get_default_device_,
16618         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
16619         functions.
16620         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
16621         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
16622         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
16623         @@GOMP_4.0.
16624         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
16625         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
16626         omp_set_default_device, omp_set_default_device_,
16627         omp_set_default_device_8_, omp_get_default_device,
16628         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
16629         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
16630         omp_get_team_num_): Export @@OMP_4.0.
16631         * team.c (struct gomp_thread_start_data): Add place field.
16632         (gomp_thread_start): Clear thr->thread_pool and
16633         thr->task before returning.  Use gomp_team_barrier_wait_final
16634         instead of gomp_team_barrier_wait.  Initialize thr->place.
16635         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
16636         team_cancelled and task_queued_count fields.
16637         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
16638         before calling pthread_exit.
16639         (gomp_free_thread): No longer static.  Use
16640         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
16641         (gomp_team_start): Add flags argument.  Set
16642         thr->thread_pool->threads_busy to nthreads immediately after creating
16643         new pool.  Use gomp_managed_threads_lock instead of
16644         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
16645         (gomp_team_end): Use gomp_managed_threads_lock instead of
16646         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
16647         of gomp_team_barrier_wait.  If team->team_cancelled, call
16648         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
16649         rather than thr->ts.work_share.
16650         (initialize_team): Don't call gomp_sem_init here.
16651         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
16652         caller.
16653         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
16654         * env.c (gomp_global_icv): Add default_device_var, target_data and
16655         bind_var initializers.
16656         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16657         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16658         gomp_places_list_len): New variables.
16659         (parse_bind_var, parse_one_place, parse_places_var): New functions.
16660         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
16661         sized places.
16662         (gomp_cancel_var): New global variable.
16663         (parse_int): New function.
16664         (handle_omp_display_env): New function.
16665         (initialize_env): Use it.  Initialize default_device_var.
16666         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
16667         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
16668         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
16669         been successfully parsed (and call gomp_init_affinity in that case).
16670         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16671         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16672         omp_get_team_num, omp_is_initial_device): New functions.
16673         * libgomp.h: Include stdlib.h.
16674         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
16675         Define.
16676         (struct target_mem_desc): Forward declare.
16677         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
16678         and thread_limit_var fields.
16679         (gomp_get_num_devices): New prototype.
16680         (gomp_cancel_var): New extern decl.
16681         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
16682         team_cancelled and task_queued_count fields.  Add comments about
16683         task_{,queued_,running_}count.
16684         (gomp_cancel_kind): New enum.
16685         (gomp_work_share_end_cancel): New prototype.
16686         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
16687         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
16688         and depend fields.
16689         (struct gomp_taskgroup): New type.
16690         (struct gomp_task_depend_entry,
16691         struct gomp_dependers_vec): New types.
16692         (gomp_finish_task): Free depend_hash if non-NULL.
16693         (struct gomp_team_state): Add place_partition_off
16694         and place_partition_len fields.
16695         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
16696         gomp_places_list_len): New extern decls.
16697         (struct gomp_thread): Add place field.
16698         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
16699         (gomp_init_thread_affinity): Add place argument.
16700         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16701         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16702         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16703         gomp_affinity_init_level, gomp_affinity_print_place): New
16704         prototypes.
16705         (gomp_team_start): Add flags argument.
16706         (gomp_thread_limit_var, gomp_remaining_threads_count,
16707         gomp_remaining_threads_lock): Remove.
16708         (gomp_managed_threads_lock): New variable.
16709         (struct gomp_thread_pool): Add threads_busy field.
16710         (gomp_free_thread): New prototype.
16711         * task.c: Include hashtab.h.
16712         (hash_entry_type): New typedef.
16713         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
16714         (gomp_init_task): Clear dependers, depend_hash, depend_count,
16715         copy_ctors_done and taskgroup fields.
16716         (GOMP_task): Add depend argument, handle depend clauses.  If
16717         gomp_team_barrier_cancelled or if it's taskgroup has been
16718         cancelled, don't queue or start new tasks.  Set copy_ctors_done
16719         field if needed.  Initialize taskgroup field.  If copy_ctors_done
16720         and already cancelled, don't discard the task.  If taskgroup is
16721         non-NULL, enqueue the task into taskgroup queue.  Increment
16722         num_children field in taskgroup.  Increment task_queued_count.
16723         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
16724         gomp_task_run_post_remove_taskgroup): New inline functions.
16725         (gomp_task_run_post_handle_depend_hash,
16726         gomp_task_run_post_handle_dependers,
16727         gomp_task_run_post_handle_depend): New functions.
16728         (GOMP_taskwait): Use them.  If more than one new tasks
16729         have been queued, wake other threads if needed.
16730         (gomp_barrier_handle_tasks): Likewise.  If
16731         gomp_team_barrier_cancelled, don't start any new tasks, just free
16732         all tasks.
16733         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
16734         * omp_lib.f90.in
16735         (omp_proc_bind_kind, omp_proc_bind_false,
16736         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16737         omp_proc_bind_spread): New params.
16738         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16739         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16740         omp_get_team_num, omp_is_initial_device): New interfaces.
16741         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
16742         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
16743         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
16744         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
16745         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
16746         useless use omp_lib_kinds.
16747         * omp.h.in (omp_proc_bind_t): New typedef.
16748         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16749         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16750         omp_get_team_num, omp_is_initial_device): New prototypes.
16751         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
16752         through to gomp_team_start.
16753         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
16754         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
16755         Adjust gomp_parallel_loop_start callers.
16756         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
16757         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
16758         GOMP_loop_end_cancel): New functions.
16759         (GOMP_parallel_end): Add ialias_redirect.
16760         * hashtab.h: New file.
16761         * libgomp.texi (Environment Variables): Minor cleanup,
16762         update section refs to OpenMP 4.0rc2.
16763         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
16764         environment variables.
16765         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
16766         team->work_shares_to_free to thr->ts.work_share before calling
16767         free_work_share.
16768         (gomp_work_share_end_cancel): New function.
16769         * config/linux/proc.c: Include errno.h.
16770         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
16771         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
16772         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
16773         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
16774         gomp_cpuset_size is sizeof (cpu_set_t).
16775         (gomp_init_num_threads): Initialize gomp_cpuset_size,
16776         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
16777         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
16778         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
16779         contain any logical CPUs.
16780         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
16781         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
16782         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
16783         pthread_getaffinity_np.  Check gomp_places_list instead of
16784         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
16785         * config/linux/bar.c (gomp_barrier_wait_end,
16786         gomp_barrier_wait_last): Use BAR_* defines.
16787         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
16788         from state where needed.  Set work_share_cancelled to 0 on last
16789         thread.
16790         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
16791         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
16792         functions.
16793         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
16794         Add cpusetsize argument.
16795         (gomp_cpuset_size, gomp_cpusetp): Declare.
16796         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
16797         (affinity_counter): Remove.
16798         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
16799         if CPU_ALLOC_SIZE isn't defined.
16800         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
16801         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
16802         bind current thread to the first place.
16803         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
16804         pthread_setaffinity_np to gomp_places_list[place].
16805         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16806         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16807         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16808         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
16809         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16810         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16811         (gomp_barrier_t): Add awaited_final field.
16812         (gomp_barrier_init): Initialize awaited_final field.
16813         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
16814         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
16815         prototypes.
16816         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
16817         defines.
16818         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
16819         gomp_team_barrier_cancelled): New inline functions.
16820         (gomp_barrier_last_thread,
16821         gomp_team_barrier_set_task_pending,
16822         gomp_team_barrier_clear_task_pending,
16823         gomp_team_barrier_set_waiting_for_tasks,
16824         gomp_team_barrier_waiting_for_tasks,
16825         gomp_team_barrier_done): Use BAR_* defines.
16826         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
16827         (gomp_barrier_wait_end): Use BAR_* defines.
16828         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
16829         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
16830         Use BAR_* defines.
16831         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
16832         gomp_team_barrier_cancel): New functions.
16833         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
16834         argument.
16835         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
16836         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
16837         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
16838         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
16839         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
16840         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
16841         (gomp_barrier_t): Add cancellable field.
16842         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
16843         gomp_team_barrier_cancel): New prototypes.
16844         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
16845         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
16846         gomp_team_barrier_cancelled): New inline functions.
16847         (gomp_barrier_wait_start, gomp_barrier_last_thread,
16848         gomp_team_barrier_set_task_pending,
16849         gomp_team_barrier_clear_task_pending,
16850         gomp_team_barrier_set_waiting_for_tasks,
16851         gomp_team_barrier_waiting_for_tasks,
16852         gomp_team_barrier_done): Use BAR_* defines.
16853         * barrier.c (GOMP_barrier_cancel): New function.
16854         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
16855         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
16856         omp_proc_bind_spread): New params.
16857         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
16858         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
16859         omp_get_team_num, omp_is_initial_device): New externals.
16860         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
16861         New functions.
16862         (gomp_resolve_num_threads): Adjust for thread_limit now being in
16863         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16864         infinity.  If not nested, just return minimum of max_num_threads
16865         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
16866         to the returned value.  Otherwise, don't update atomically
16867         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
16868         (GOMP_parallel_end): Adjust for thread_limit now being in
16869         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
16870         infinity.  Adjust threads_busy in the pool rather than
16871         gomp_remaining_threads_count.  Remember team->nthreads and call
16872         gomp_team_end before adjusting threads_busy, if not nested
16873         afterwards, just set it to 1 non-atomically.  Add ialias.
16874         (GOMP_parallel_start): Adjust gomp_team_start caller.
16875         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
16876         * testsuite/libgomp.c/affinity-1.c: New test.
16877         * testsuite/libgomp.c/atomic-15.c: New test.
16878         * testsuite/libgomp.c/atomic-16.c: New test.
16879         * testsuite/libgomp.c/atomic-17.c: New test.
16880         * testsuite/libgomp.c/cancel-for-1.c: New test.
16881         * testsuite/libgomp.c/cancel-for-2.c: New test.
16882         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
16883         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
16884         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
16885         * testsuite/libgomp.c/cancel-sections-1.c: New test.
16886         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
16887         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
16888         * testsuite/libgomp.c/depend-1.c: New test.
16889         * testsuite/libgomp.c/depend-2.c: New test.
16890         * testsuite/libgomp.c/depend-3.c: New test.
16891         * testsuite/libgomp.c/depend-4.c: New test.
16892         * testsuite/libgomp.c/for-1.c: New test.
16893         * testsuite/libgomp.c/for-1.h: New file.
16894         * testsuite/libgomp.c/for-2.c: New test.
16895         * testsuite/libgomp.c/for-2.h: New file.
16896         * testsuite/libgomp.c/for-3.c: New test.
16897         * testsuite/libgomp.c/pr58392.c: New test.
16898         * testsuite/libgomp.c/simd-1.c: New test.
16899         * testsuite/libgomp.c/simd-2.c: New test.
16900         * testsuite/libgomp.c/simd-3.c: New test.
16901         * testsuite/libgomp.c/simd-4.c: New test.
16902         * testsuite/libgomp.c/simd-5.c: New test.
16903         * testsuite/libgomp.c/simd-6.c: New test.
16904         * testsuite/libgomp.c/target-1.c: New test.
16905         * testsuite/libgomp.c/target-2.c: New test.
16906         * testsuite/libgomp.c/target-3.c: New test.
16907         * testsuite/libgomp.c/target-4.c: New test.
16908         * testsuite/libgomp.c/target-5.c: New test.
16909         * testsuite/libgomp.c/target-6.c: New test.
16910         * testsuite/libgomp.c/target-7.c: New test.
16911         * testsuite/libgomp.c/taskgroup-1.c: New test.
16912         * testsuite/libgomp.c/thread-limit-1.c: New test.
16913         * testsuite/libgomp.c/thread-limit-2.c: New test.
16914         * testsuite/libgomp.c/thread-limit-3.c: New test.
16915         * testsuite/libgomp.c/udr-1.c: New test.
16916         * testsuite/libgomp.c/udr-2.c: New test.
16917         * testsuite/libgomp.c/udr-3.c: New test.
16918         * testsuite/libgomp.c++/affinity-1.C: New test.
16919         * testsuite/libgomp.c++/atomic-10.C: New test.
16920         * testsuite/libgomp.c++/atomic-11.C: New test.
16921         * testsuite/libgomp.c++/atomic-12.C: New test.
16922         * testsuite/libgomp.c++/atomic-13.C: New test.
16923         * testsuite/libgomp.c++/atomic-14.C: New test.
16924         * testsuite/libgomp.c++/atomic-15.C: New test.
16925         * testsuite/libgomp.c++/cancel-for-1.C: New test.
16926         * testsuite/libgomp.c++/cancel-for-2.C: New test.
16927         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
16928         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
16929         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
16930         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
16931         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
16932         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
16933         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
16934         * testsuite/libgomp.c++/cancel-test.h: New file.
16935         * testsuite/libgomp.c++/for-9.C: New test.
16936         * testsuite/libgomp.c++/for-10.C: New test.
16937         * testsuite/libgomp.c++/for-11.C: New test.
16938         * testsuite/libgomp.c++/simd-1.C: New test.
16939         * testsuite/libgomp.c++/simd-2.C: New test.
16940         * testsuite/libgomp.c++/simd-3.C: New test.
16941         * testsuite/libgomp.c++/simd-4.C: New test.
16942         * testsuite/libgomp.c++/simd-5.C: New test.
16943         * testsuite/libgomp.c++/simd-6.C: New test.
16944         * testsuite/libgomp.c++/simd-7.C: New test.
16945         * testsuite/libgomp.c++/simd-8.C: New test.
16946         * testsuite/libgomp.c++/target-1.C: New test.
16947         * testsuite/libgomp.c++/target-2.C: New test.
16948         * testsuite/libgomp.c++/target-2-aux.cc: New file.
16949         * testsuite/libgomp.c++/target-3.C: New test.
16950         * testsuite/libgomp.c++/taskgroup-1.C: New test.
16951         * testsuite/libgomp.c++/udr-1.C: New test.
16952         * testsuite/libgomp.c++/udr-2.C: New test.
16953         * testsuite/libgomp.c++/udr-3.C: New test.
16954         * testsuite/libgomp.c++/udr-4.C: New test.
16955         * testsuite/libgomp.c++/udr-5.C: New test.
16956         * testsuite/libgomp.c++/udr-6.C: New test.
16957         * testsuite/libgomp.c++/udr-7.C: New test.
16958         * testsuite/libgomp.c++/udr-8.C: New test.
16959         * testsuite/libgomp.c++/udr-9.C: New test.
16961 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
16963         PR testsuite/57605
16964         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
16965         ALWAYS_CFLAGS.
16967 2013-09-20  Alan Modra  <amodra@gmail.com>
16969         * configure: Regenerate.
16971 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
16973         * testsuite/libgomp.c/sections-2.c: New test.
16975 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16977         * testsuite/libgomp.fortran/strassen.f90:
16978         Add dg-skip-if aarch64_tiny.
16980 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
16981             Cesar Philippidis  <cesar@codesourcery.com>
16983         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
16984         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
16985         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
16986         * testsuite/libgomp.fortran/fortran.exp: Likewise.
16987         * testsuite/libgomp.graphite/graphite.exp: Likewise.
16988         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
16989         Use dg-runtest rather than gfortran-dg-runtest.
16991 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
16993         * testsuite/libgomp.c/icv-2.c: Extend current handling of
16994         Linux-based x86 systems to cover all GNU systems.
16995         * testsuite/libgomp.c/lock-3.c: Likewise.
16996         * testsuite/libgomp.c/pr48591.c: Likewise.
16998 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17000         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17001         GNU/Hurd, as done for Linux-based systems.
17003         * config/posix/ptrlock.h: Fix comment.
17005 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17007         PR fortran/57423
17008         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17009         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17010         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17011         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17012         omp_destroy_nest_lock): Correct arguments to match the one in
17013         the OpenMP spec.
17014         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17015         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17016         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17017         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17019 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17021         * testsuite/libgomp.c/loop-13.c: New test.
17022         * testsuite/libgomp.c/loop-14.c: New test.
17023         * testsuite/libgomp.c/loop-15.c: New test.
17024         * testsuite/libgomp.c++/loop-13.C: New test.
17025         * testsuite/libgomp.c++/loop-14.C: New test.
17026         * testsuite/libgomp.c++/loop-15.C: New test.
17028 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17030         PR middle-end/56217
17031         * testsuite/libgomp.c++/pr56217.C: New test.
17033 2013-02-01  Alan Modra  <amodra@gmail.com>
17035         * task.c (GOMP_task, GOMP_taskwait): Comment.
17037 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17038             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17040         PR libgomp/55561
17041         * config/linux/wait.h (do_spin): Use atomic load for addr.
17042         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17043         for intptr and ptrlock.
17044         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17045         for ptrlock.
17047 2013-01-22  Alan Modra  <amodra@gmail.com>
17049         PR libgomp/51376
17050         PR libgomp/56073
17051         * task.c (GOMP_task): Revert 2011-12-09 change.
17052         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17053         barrier to read task->children..
17054         (gomp_barrier_handle_tasks): ..and matching atomic store with
17055         release barrier here when setting parent->children to NULL.
17057 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17058             Tobias Burnus  <burnus@net-b.de>
17060         PR driver/55884
17061         * testsuite/libgomp.fortran/fortran.exp: Use
17062         -fintrinsic-modules-path= instead of
17063         -fintrinsic-modules-path.
17065 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17067         Update copyright years.
17069 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17071         * testsuite/libgomp.fortran/fortran.exp: Set
17072         -fintrinsic-modules-path.
17074 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17076         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17077         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17079 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17081         PR libgomp/55411
17082         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17083         if pool had any threads_used.
17085 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17087         * testsuite/libgomp.c++/pr24455.C: Use
17088         -Wl,-undefined,dynamic_lookup on darwin.
17090 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17092         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17094 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17096         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17098 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17099             Jim MacArthur  <jim.macarthur@arm.com>
17100             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17101             Nigel Stephens  <nigel.stephens@arm.com>
17102             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17103             Richard Earnshaw  <rearnsha@arm.com>
17104             Sofiane Naci  <sofiane.naci@arm.com>
17105             Stephen Thomas  <stephen.thomas@arm.com>
17106             Tejas Belagod  <tejas.belagod@arm.com>
17107             Yufeng Zhang  <yufeng.zhang@arm.com>
17109         * configure.tgt: Add AArch64.
17111 2012-10-04  Jason Merrill  <jason@redhat.com>
17113         * testsuite/libgomp.c++/tls-init1.C: New.
17115 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17117         * configure: Regenerated.
17119 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17121         * config/linux/mips/futex.h (sys_futex0): Change to static
17122         function with noinline, nomips16 attributes under MIPS16. Adjust
17123         asm statement to place 'li v0,SYS_futex' immediately before
17124         syscall insn.
17126 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17128         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17129         conflict with index.html on case-insensitive file systems.
17131 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17133         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17134         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17136 2012-07-02  Richard Guenther  <rguenther@suse.de>
17137             Michael Matz  <matz@suse.de>
17138             Tobias Grosser <tobias@grosser.es>
17139             Sebastian Pop <sebpop@gmail.com>
17141         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17142         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17143         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17144         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17146 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17148         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17150 2012-06-22  Richard Guenther  <rguenther@suse.de>
17152         Merge from graphite branch
17153         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17155         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17156         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17158 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17160         PR middle-end/53580
17161         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17162         use GOMP_barrier () call instead.
17163         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17164         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17165         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17166         call GOMP_barrier instead.
17167         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17169 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17171         PR libgomp/52993
17172         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17173         argument to memset call.
17175 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17177         * configure: Regenerated.
17179 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17181         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17183 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17185         PR bootstrap/52812
17186         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17188 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17190         PR middle-end/52547
17191         * testsuite/libgomp.c/pr52547.c: New test.
17193 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17195         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17197 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17199         * configure.tgt (mips-sgi-irix6*): Remove.
17201 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17203         * configure.tgt (alpha*-dec-osf*): Remove.
17205         * config/osf/sem.h: Remove.
17206         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17208 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17210         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17212 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17214         PR libstdc++/52188
17215         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17216         Remove ENABLE_SYMVERS_SOL2.
17217         * configure: Regenerate.
17218         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17219         (PREPROCESS): New variable.
17220         (libgomp.ver): New target.
17221         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17222         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17223         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17224         Use libgomp.ver.
17225         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17226         * Makefile.in: Regenerate.
17228 2012-02-14  Walter Lee  <walt@tilera.com>
17230         * configure.tgt: Handle tilegx and tilepro.
17231         * config/linux/tile/futex.h: New file.
17233 2012-02-08  Richard Guenther  <rguenther@suse.de>
17235         PR tree-optimization/46886
17236         * testsuite/libgomp.c/pr46886.c: New testcase.
17238 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17240         * config/linux/arm: Remove empty directory.
17241         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17243 2011-12-09  Alan Modra  <amodra@gmail.com>
17245         PR libgomp/51376
17246         * task.c (GOMP_taskwait): Don't access task->children outside of
17247         task_lock mutex region.
17248         (GOMP_task): Likewise.
17250 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17252         PR libgomp/51132
17253         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17254         to file scope.
17255         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17256         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17257         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17258         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17259         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17261 2011-12-02  Alan Modra  <amodra@gmail.com>
17263         * config/linux/affinity.c: Use atomic rather than sync builtin.
17264         * config/linux/lock.c: Likewise.
17265         * config/linux/ptrlock.h: Likewise.
17266         * config/linux/ptrlock.c: Likewise.
17267         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17268         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17269         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17270         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17271         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17272         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17273         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17274         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17275         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17276         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17278 2011-11-30  Alan Modra  <amodra@gmail.com>
17280         PR libgomp/51298
17281         * config/linux/bar.h: Use atomic rather than sync builtins.
17282         * config/linux/bar.c: Likewise.  Add missing acquire
17283         synchronisation on generation field.
17284         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17285         double unlock.
17287 2011-11-30  Alan Modra  <amodra@gmail.com>
17289         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17290         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17291         * config/linux/mutex.h: Use atomic rather than sync builtins.
17292         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17293         * config/linux/omp-lock.h: Comment fix.
17294         * config/linux/arm/mutex.h: Delete.
17295         * config/linux/powerpc/mutex.h: Delete.
17296         * config/linux/ia64/mutex.h: Delete.
17297         * config/linux/mips/mutex.h: Delete.
17299 2011-11-30  Alan Modra  <amodra@gmail.com>
17301         PR libgomp/51249
17302         * config/linux/sem.h: Rewrite.
17303         * config/linux/sem.c: Rewrite.
17305 2011-11-28  Richard Henderson  <rth@redhat.com>
17307         * libgomp.h (enum memmodel): New.
17309 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17311         * configure: Regenerate.
17313 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17315         * config/posix95: Remove empty directory.
17317 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17319         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17321 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17323         PR fortran/49792
17324         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17325         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17327 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17329         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17331 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17333         PR libgomp/49965
17334         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17336 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17338         * config/linux/proc.h: New.
17339         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17340         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17341         (gomp_init_num_threads): Update call to cpuset_popcount.
17342         (get_num_procs): Ditto.
17343         * config/linux/affinity.c (gomp_init_affinity): Call
17344         gomp_cpuset_popcount.
17346 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17348         PR fortran/42041
17349         PR fortran/46752
17350         * omp.h.in (omp_in_final): New prototype.
17351         * omp_lib.f90.in (omp_in_final): New interface.
17352         (omp_integer_kind, omp_logical_kind): Remove
17353         and replace all its uses in the module with 4.
17354         (openmp_version): Change to 201107.
17355         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17356         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17357         kind for the parameters.
17358         (omp_in_final): New external.
17359         (openmp_version): Change to 201107.
17360         * task.c (omp_in_final): New function.
17361         (gomp_init_task): Initialize final_task.
17362         (GOMP_task): Remove unused attribute from flags.  Handle final
17363         tasks.
17364         (GOMP_taskyield): New function.
17365         (omp_in_final): Return true if if (false) or final (true) task
17366         or descendant of final (true).
17367         * fortran.c (omp_in_final_): New function.
17368         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17369         (GOMP_3.0): Export GOMP_taskyield.
17370         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17371         variables.
17372         (parse_unsigned_long_list): New function.
17373         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17374         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17375         even if parse_affinity returned false.
17376         * config/linux/affinity.c (gomp_init_affinity): Handle
17377         gomp_cpu_affinity_len == 0.
17378         * libgomp_g.h (GOMP_taskyield): New prototype.
17379         * libgomp.h (struct gomp_task): Add final_task field.
17380         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17381         * team.c (gomp_team_start): Override new task's nthreads_var icv
17382         if list form OMP_NUM_THREADS has been used and it has value for
17383         the new nesting level.
17385         * testsuite/libgomp.c/atomic-11.c: New test.
17386         * testsuite/libgomp.c/atomic-12.c: New test.
17387         * testsuite/libgomp.c/atomic-13.c: New test.
17388         * testsuite/libgomp.c/atomic-14.c: New test.
17389         * testsuite/libgomp.c/reduction-6.c: New test.
17390         * testsuite/libgomp.c/task-5.c: New test.
17391         * testsuite/libgomp.c++/atomic-2.C: New test.
17392         * testsuite/libgomp.c++/atomic-3.C: New test.
17393         * testsuite/libgomp.c++/atomic-4.C: New test.
17394         * testsuite/libgomp.c++/atomic-5.C: New test.
17395         * testsuite/libgomp.c++/atomic-6.C: New test.
17396         * testsuite/libgomp.c++/atomic-7.C: New test.
17397         * testsuite/libgomp.c++/atomic-8.C: New test.
17398         * testsuite/libgomp.c++/atomic-9.C: New test.
17399         * testsuite/libgomp.c++/task-8.C: New test.
17400         * testsuite/libgomp.c++/reduction-4.C: New test.
17401         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17402         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17403         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17404         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17405         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17406         * testsuite/libgomp.fortran/pointer1.f90: New test.
17407         * testsuite/libgomp.fortran/pointer2.f90: New test.
17408         * testsuite/libgomp.fortran/task4.f90: New test.
17410 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17412         * libgomp.texi: Update OpenMP spec references to 3.1.
17413         (omp_in_final,OMP_PROC_BIND): New sections.
17414         (OMP_NUM_THREADS): Document that the value can be now a list.
17415         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17417 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17419         * config/linux/x86/futex.h: Check __x86_64__ instead of
17420         __LP64__.
17422 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17424         PR middle-end/49897
17425         PR middle-end/49898
17426         * testsuite/libgomp.c/pr49897-1.c: New test.
17427         * testsuite/libgomp.c/pr49897-2.c: New test.
17428         * testsuite/libgomp.c/pr49898-1.c: New test.
17429         * testsuite/libgomp.c/pr49898-2.c: New test.
17431 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17433         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17434         for ia32 instead of ilp32.
17436         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17437         * testsuite/libgomp.c/atomic-6.c: Likewise.
17439 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17441         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17442         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17444 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17446         PR libgomp/45351
17447         * config/osf/sem.h: New file.
17448         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17450 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17452         PR target/49541
17453         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17454         ldflags.
17456 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17458         * config/linux/wait.h (do_spin): New inline, largely copied
17459         from do_wait, just don't do futex_wait here, instead return true if
17460         it should be done.
17461         (do_wait): Implement using do_spin.
17462         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17463         to prototype.
17464         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17465         __sync_bool_compare_and_swap, pass the oldval to
17466         gomp_mutex_lock_slow.
17467         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17468         If all mutex contenders are just spinning and not sleeping, don't
17469         change state to 2 unnecessarily.  Optimize the loop when state has
17470         already become 2 to use just one atomic operation per loop instead
17471         of two.
17472         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17473         to prototype.
17474         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17475         __sync_bool_compare_and_swap, pass the oldval to
17476         gomp_mutex_lock_slow.
17478 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17480         PR libgomp/49490
17481         * iter.c (gomp_iter_static_next): For chunk size 0
17482         only use n ceil/ nthreads size for the first
17483         n % nthreads threads in the team instead of
17484         all threads except for the last few ones which
17485         get less work or none at all.
17486         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17487         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17488         chunk argument, set run_sched_modifier to 0 for static
17489         resp. 1 for other kinds.  If chunk argument is 0
17490         and not static, set value to 1.
17492 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17494         PR c++/49043
17495         * testsuite/libgomp.c++/pr49043.C: New test.
17497         PR c++/48869
17498         * testsuite/libgomp.c++/pr48869.C: New test.
17500 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17502         PR fortran/48894
17503         * fortran.c: Include limits.h.
17504         (TO_INT): Define.
17505         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17506         *set.
17507         (omp_set_num_threads_8_, omp_set_schedule_8_,
17508         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17509         omp_get_team_size_8_): Use TO_INT macro.
17510         * testsuite/libgomp.fortran/pr48894.f90: New test.
17512 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17514         PR middle-end/48591
17515         * testsuite/libgomp.c/pr48591.c: New test.
17517 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17519         PR bootstrap/48135
17520         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17521         * configure: Regenerate.
17523 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17525         PR fortran/47886
17526         * testsuite/libgomp.fortran/task3.f90: New test.
17528 2011-02-24  Tobias Burnus  <burnus@net-b.de>
17530         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
17532 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
17534         PR libgomp/47854
17535         * libgomp.texi (omp_get_wtime): Don't say time in the past
17536         must be Unix Epoch.
17538 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
17540         PR libgomp/47804
17541         * testsuite/libgomp.fortran/fortran.exp: Check for both
17542         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
17543         but $blddir != "", still append ${blddir}/${lang_library_path}
17544         to ld_library_path.
17546 2011-02-16  Tobias Burnus  <burnus@net-b.de>
17548         PR libgomp/47758
17549         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
17550         of libquadmath.a before adding its libpath to ldflags.
17552 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
17554         PR libgomp/47731
17555         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
17556         to FUTEX_WAIT futex syscall.
17557         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
17559 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17561         * configure: Regenerate.
17563 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
17565         PR libstdc++/36104
17566         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
17568 2011-01-16  Gerald Pfeifer
17570         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
17572 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
17574         PR fortran/46874
17575         * libgomp.fortran/allocatable6.f90: New test.
17577 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17579         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
17580         * configure: Regenerate.
17582 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17584         PR target/40125
17585         PR lto/46695
17586         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
17587         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
17588         * aclocal.m4: Regenerate.
17589         * configure: Regenerate.
17590         * Makefile.in: Regenerate.
17591         * testsuite/Makefile.in: Regenerate.
17593 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
17595         PR fortran/46753
17596         * libgomp.fortran/pr46753.f90: New test.
17598         PR libgomp/43706
17599         * env.c (initialize_env): Default to spin count 300000
17600         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
17601         is specified.
17603         PR libgomp/45240
17604         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
17605         at the end if sync builtins aren't supported.
17607 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17609         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
17611 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17613         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
17615 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
17617         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
17619 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17620             Tobias Burnus  <burnus@net-b.de>
17622         PR fortran/32049
17623         * configure.ac:
17624         * configure: Regenerate.
17626 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17628         * config/linux/futex.h: New.
17629         * config/linux/arm/mutex.h: New.
17630         * configure.tgt (arm*-*-linux*): Add config path.
17632 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
17634         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17636 2010-09-23  Tobias Burnus  <burnus@net-b.de>
17638         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
17639         Change Fortran datatype to LOGICAL.
17640         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
17641         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
17643 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17645         * configure: Regenerate.
17647 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
17649         * libgomp.texi: Add function keyword to a couple of Fortran
17650         interfaces, use integer instead of int for Fortran.
17652 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
17654         * libgomp.texi: Fix spelling and pasto problems throughout.
17655         Adjust prototypes to match code.
17657 2010-07-24  Tobias Burnus  <burnus@net-b.de>
17659         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
17660         silence -fwhole-file warning.
17662 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17664         * configure.tgt (*-*-solaris2.[56]*): Removed.
17666 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17668         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
17669         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
17670         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
17671         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
17672         targetting solaris2*.
17673         * configure: Regenerate.
17674         * config.h.in: Regenerate.
17676         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
17677         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
17678         Add libgomp_version_dep.
17679         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
17680         versioning.
17681         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
17682         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
17683         * Makefile.in: Regenerate.
17685         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
17686         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17687         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
17688         to common block, protected by
17689         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
17691 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
17693         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
17695 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
17697         PR bootstrap/43170
17698         * configure: Regenerate.
17700 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17702         PR other/43620
17703         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
17704         * configure: Regenerate.
17705         * Makefile.in: Regenerate.
17706         * testsuite/Makefile.in: Regenerate.
17708 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17710         PR c/43893
17711         * testsuite/libgomp.c/pr43893.c: New test.
17712         * testsuite/libgomp.c++/pr43893.C: New test.
17714 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17716         PR middle-end/43570
17717         * testsuite/libgomp.fortran/vla8.f90: New test.
17719 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17721         PR libgomp/43706
17722         * config/linux/affinity.c (gomp_init_affinity): Decrease
17723         gomp_available_cpus if affinity mask confines the process to fewer
17724         CPUs.
17725         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
17726         non-NULL, just return gomp_available_cpus.
17728         PR libgomp/43569
17729         * sections.c (gomp_sections_init): Initialize ws->mode.
17731 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
17733         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
17734         not unused bar variable.
17735         * configure: Regenerate.
17737 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17739         * Makefile.in: Regenerate.
17740         * aclocal.m4: Regenerate.
17741         * testsuite/Makefile.in: Regenerate.
17743 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
17745         PR libgomp/42942
17746         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
17747         (initialize_env): Adjust callers.
17748         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
17749         when the argument is 0.
17751         * testsuite/libgomp.c/pr42942.c: New test.
17753 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
17755         PR middle-end/42644
17756         PR middle-end/42130
17757         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17758         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
17760 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17762         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
17763         * testsuite/libgomp.c++/task-6.C: Likewise.
17765 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
17767         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
17769 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
17771         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
17772         * configure: Regenerate.
17774 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17776         PR fortran/42866
17777         * testsuite/libgomp.fortran/allocatable5.f90: New test.
17779 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
17781         * configure.ac: Test for executability of GFORTRAN.
17782         * configure: Regenerate.
17784 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17786         * configure: Regenerate.
17788 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17790         PR libgomp/42602
17791         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
17793 2010-01-03  Richard Guenther  <rguenther@suse.de>
17795         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
17797 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
17799         * testsuite/libgomp.graphite/pr4118.c: New.
17801 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17803         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
17804         for darwin, protect the test with require-effective-target tls_runtime.
17805         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
17807 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17809         PR target/41605
17810         * testsuite/lib/libgomp.exp: Provide -B options to allow for
17811         link spec %s substitutions for static libraries.
17813 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
17815         PR testsuite/42135
17816         * libgomp.graphite/force-parallel-2.c: Reduce array size.
17818 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17820         * Makefile.in: Regenerate.
17821         * configure: Regenerate.
17822         * testsuite/Makefile.in: Regenerate.
17824 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
17826         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
17827         settings for LC_ALL and LANG.
17829 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
17831         PR fortran/42162
17832         * testsuite/libgomp.fortran/pr42162.f90: New test.
17834 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
17836         PR middle-end/42029
17837         * testsuite/libgomp.c/pr42029.c: New test.
17839 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
17841         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
17842         *s.  Accept ld version without text in ()s.
17843         * configure: Regenerated.
17845 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
17847         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
17849 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17851         PR libgomp/41418
17852         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
17853         or a hyphen (happens with fortran language disabled).
17854         * configure: Regenerate.
17856 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17858         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
17859         use sed script portable to Solaris /bin/sed for extracting ld
17860         version.
17861         * configure: Regenerate.
17863 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
17865         * testsuite/libgomp.graphite/bounds.c: New test.
17867 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17869         * Makefile.am (libgomp_la_LINK): New.
17870         * Makefile.in: Regenerate.
17872 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17874         * configure.ac (AC_PREREQ): Bump to 2.64.
17876 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17878         * Makefile.am (install-html, install-pdf): Remove.
17879         * Makefile.in: Regenerate.
17881         * Makefile.in: Regenerate.
17882         * aclocal.m4: Regenerate.
17883         * config.h.in: Regenerate.
17884         * configure: Regenerate.
17885         * testsuite/Makefile.in: Regenerate.
17887 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17889         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
17890         * Makefile.in: Regenerate.
17892 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
17894         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
17895         * Makefile.in: Regenerate.
17897 2009-08-19  Tobias Burnus  <burnus@net-b.de>
17899         PR fortran/41102
17900         omp_lib.h.in: Fix -std=f95 errors.
17902 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
17904         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
17905         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
17906         * testsuite/libgomp.graphite/graphite.exp: New.
17908 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
17910         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
17911         only build.
17913 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
17915         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
17916         needed memory barrier semantics.
17917         * config/linux/mips/mutex.h: New file.
17919 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17921         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
17923 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
17925         * configure: Regenerate.
17927 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
17929         PR testsuite/40699
17930         PR testsuite/40707
17931         PR testsuite/40709
17932         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
17933         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
17934         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
17936 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
17938         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
17939         options when choosing a multilib.
17941 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
17943         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
17944         ld_library_path.  Use add_path.  Add just find_libgcc_s to
17945         ld_library_path, not every libgcc multilib directory.
17946         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
17947         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
17948         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
17949         Use add_path.
17950         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
17952 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
17954         * Makefile.am (LTLDFLAGS): Define.
17955         (LINK): Define.
17956         * Makefile.in: Regenerate.
17958 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
17960         PR fortran/39718
17961         * testsuite/libgomp.fortran/fortran.exp: Don't link with
17962         libgfortranbegin, check existence of libgfortran.a instead of
17963         libgfortranbegin.a.
17965 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17967         PR libgomp/40174
17968         * team.c (gomp_thread_start): Destroy thr->release semaphore.
17969         (gomp_free_pool_helper): Likewise.
17971 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
17972             Jakub Jelinek  <jakub@redhat.com>
17974         PR fortran/35423
17975         * testsuite/libgomp.fortran/workshare2.f90: New test.
17977 2009-04-09  Nick Clifton  <nickc@redhat.com>
17979         * iter.c: Change copyright header to refer to version 3 of the
17980         GNU General Public License with version 3.1 of the GCC Runtime
17981         Library Exception and to point readers at the COPYING3 and
17982         COPYING3.RUNTIME files and the FSF's license web page.
17983         * alloc.c: Likewise.
17984         * barrier.c: Likewise.
17985         * config/bsd/proc.c: Likewise.
17986         * config/linux/affinity.c: Likewise.
17987         * config/linux/alpha/futex.h: Likewise.
17988         * config/linux/bar.c: Likewise.
17989         * config/linux/bar.h: Likewise.
17990         * config/linux/ia64/futex.h: Likewise.
17991         * config/linux/ia64/mutex.h: Likewise.
17992         * config/linux/lock.c: Likewise.
17993         * config/linux/mips/futex.h: Likewise.
17994         * config/linux/mutex.c: Likewise.
17995         * config/linux/mutex.h: Likewise.
17996         * config/linux/powerpc/futex.h: Likewise.
17997         * config/linux/proc.c: Likewise.
17998         * config/linux/ptrlock.c: Likewise.
17999         * config/linux/ptrlock.h: Likewise.
18000         * config/linux/s390/futex.h: Likewise.
18001         * config/linux/sem.c: Likewise.
18002         * config/linux/sem.h: Likewise.
18003         * config/linux/sparc/futex.h: Likewise.
18004         * config/linux/wait.h: Likewise.
18005         * config/linux/x86/futex.h: Likewise.
18006         * config/mingw32/proc.c: Likewise.
18007         * config/mingw32/time.c: Likewise.
18008         * config/posix/affinity.c: Likewise.
18009         * config/posix/bar.c: Likewise.
18010         * config/posix/bar.h: Likewise.
18011         * config/posix/lock.c: Likewise.
18012         * config/posix/mutex.h: Likewise.
18013         * config/posix/proc.c: Likewise.
18014         * config/posix/ptrlock.h: Likewise.
18015         * config/posix/sem.c: Likewise.
18016         * config/posix/sem.h: Likewise.
18017         * config/posix/time.c: Likewise.
18018         * config/posix95/lock.c: Likewise.
18019         * critical.c: Likewise.
18020         * env.c: Likewise.
18021         * error.c: Likewise.
18022         * fortran.c: Likewise.
18023         * iter_ull.c: Likewise.
18024         * libgomp.h: Likewise.
18025         * libgomp_f.h.in: Likewise.
18026         * libgomp_g.h: Likewise.
18027         * loop.c: Likewise.
18028         * loop_ull.c: Likewise.
18029         * omp.h.in: Likewise.
18030         * omp_lib.f90.in: Likewise.
18031         * omp_lib.h.in: Likewise.
18032         * ordered.c: Likewise.
18033         * parallel.c: Likewise.
18034         * sections.c: Likewise.
18035         * single.c: Likewise.
18036         * task.c: Likewise.
18037         * team.c: Likewise.
18038         * work.c: Likewise.
18040 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18042         * testsuite/config/default.exp: Change copyright header to refer to
18043         version 3 of the GNU General Public License and to point readers
18044         at the COPYING3 file and the FSF's license web page.
18046 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18048         PR middle-end/39573
18049         * libgomp.c++/pr39573.C: New test.
18051 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18053         PR other/39591
18054         * testsuite/libgomp.c/pr39591-1.c: New test.
18055         * testsuite/libgomp.c/pr39591-2.c: New test.
18056         * testsuite/libgomp.c/pr39591-3.c: New test.
18058 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18060         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18061         * testsuite/libgomp.c/atomic-6.c: Ditto.
18063 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18065         PR c/39495
18066         * testsuite/libgomp.c/loop-12.c: New test.
18067         * testsuite/libgomp.c/loop-11.c: New test.
18068         * testsuite/libgomp.c++/loop-11.C: New test.
18069         * testsuite/libgomp.c++/loop-12.C: New test.
18070         * testsuite/libgomp.c++/for-8.C: New test.
18072 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18074         * configure: Regenerate.
18076 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18078         PR middle-end/39154
18079         * testsuite/libgomp.c/pr39154.c: New test.
18081 2009-01-30  Ian Lance Taylor  <iant@google.com>
18083         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18084         libgomp_ld_is_gold.  Get gold version number.
18085         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18086         * configure: Rebuild.
18088 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18090         * testsuite/lib/libgomp.exp: Add -B option for targets that
18091         use libgfortran.a%s in their specs.
18093 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18095         PR libgomp/38086
18096         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18097         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18098         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18099         * configure: Regenerated.
18100         * config.h.in: Likewise.
18102 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18104         PR c++/38650
18105         * testsuite/libgomp.c/pr38650.c: New test.
18106         * testsuite/libgomp.c++/pr38650.C: New test.
18108 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18110         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18112 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18114         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18116 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18118         * configure: Regenerate.
18120 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18122         PR middle-end/36802
18123         * testsuite/libgomp.c/pr36802-1.c: New test.
18124         * testsuite/libgomp.c/pr36802-2.c: New test.
18125         * testsuite/libgomp.c/pr36802-3.c: New test.
18127 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18129         PR libgomp/38270
18130         * config/linux/powerpc/mutex.h: New.
18132 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18134         PR c++/38257
18135         * testsuite/libgomp.c++/for-7.C: New test.
18137         PR c++/38348
18138         * testsuite/libgomp.c++/for-6.C: New test.
18140 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18142         PR testsuite/28870
18143         * testsuite/lib/libgomp.exp: Include new timeout library files.
18144         (libgomp_target_compile): Set timeout value from new proc.
18146 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18148         PR libgomp/37938
18149         * config/linux/ia64/mutex.h: New.
18151 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18153         PR libgomp/37935
18154         * libgomp.texi (Runtime library routines, environment variables):
18155         Update for OpenMP version 3.0.
18157 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18158             Steve Ellcey  <sje@cup.hp.com>
18160         * configure: Regenerate for new libtool.
18161         * Makefile.in: Ditto.
18162         * testsuite/Makefile.in: Ditto.
18164 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18165             Andreas Tobler  <a.tobler@schweiz.org>
18167         * config/bsd/proc.c: New file.
18168         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18169         * configure.ac: Check for header <sys/sysctl.h>
18170         * configure: Regenerate.
18171         * config.h.in: Likewise.
18173 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18175         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18177 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18179         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18180         * Makefile.in: Regenerated.
18181         * testsuite/Makefile.in: Regenerated.
18183 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18185         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18186         depend on blddir if blddir exists.
18187         (libgomp_target_compile): Likewise.
18188         * testsuite/libgomp.c++/c++.exp: Likewise.
18189         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18191 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18193         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18194         Do not list GPL as Invariant Section.
18196 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18197             Chao-ying Fu  <fu@mips.com>
18199         * configure.tgt: Enable futex for MIPS.
18200         * config/linux/mips/futex.h: New file.
18202 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18204         * team.c (gomp_team_end): Free team immediately if it has
18205         just one thread.
18207 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18209         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18210         * testsuite/libgomp.fortran/fortran.exp: Same.
18211         * testsuite/libgomp.c/c.exp: Same.
18212         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18213         directory to library path first.
18215 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18217         * env.c (parse_stacksize): Add cast to avoid warning.
18218         (parse_spincount): Likewise.
18220 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18222         * testsuite/libgomp.c/loop-10.c: New test.
18223         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18224         * libgomp.c++/loop-6.C (main): Likewise.
18226         PR debug/36617
18227         * testsuite/libgomp.c/debug-1.c: New test.
18229 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18231         * testsuite/libgomp.c/nqueens-1.c: New test.
18233         PR c++/36523
18234         * testsuite/libgomp.c++/task-7.C: New function.
18236 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18238         * configure: Regenerate.
18240 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18242         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18243         mutex when HAVE_SYNC_BUILTINS isn't defined.
18245 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18247         * libgomp.texi (omp_test_lock): Fix typo.
18249 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18251         * omp_lib.f90.in: Add "implicit none".
18253 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18255         PR middle-end/36506
18256         * testsuite/libgomp.c/reduction-5.c: New test.
18258 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18260         * libgomp.h (struct gomp_task): Add in_tied_task field.
18261         * task.c (gomp_init_task): Initialize it.
18262         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18263         unconditionally.  Don't call gomp_team_barrier_wake if
18264         current task is implicit or if(0) from implicit and number of
18265         running tasks is equal to nthreads - 1.
18267         PR libgomp/36471
18268         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18269         omp_get_team_size_8): Fix pastos.
18271         PR libgomp/36469
18272         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18273         * configure: Regenerated.
18274         * config.h.in: Regenerated.
18275         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18276         defined.
18278 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18280         PR bootstrap/36452
18281         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18282         (GOMP_loop_ull_dynamic_start): Likewise.
18283         (GOMP_loop_ull_guided_start): Likewise.
18284         (GOMP_loop_ull_ordered_static_start): Likewise.
18285         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18286         (GOMP_loop_ull_ordered_guided_start): Likewise.
18288 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18289             Richard Henderson  <rth@redhat.com>
18290             Ulrich Drepper  <drepper@redhat.com>
18291             Jakob Blomer  <jakob.blomer@ira.uka.de>
18293         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18294         Substitute also OMP_*LOCK_25*.
18295         * configure: Regenerated.
18296         * config.h.in: Regenerated.
18297         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18298         ptrlock.c and task.c.
18299         * Makefile.in: Regenerated.
18300         * testsuite/Makefile.in: Regenerated.
18301         * task.c: New file.
18302         * loop_ull.c: New file.
18303         * iter_ull.c: New file.
18304         * libgomp.h: Include ptrlock.h.
18305         (enum gomp_task_kind): New type.
18306         (struct gomp_team): Add task_lock, task_queue, task_count,
18307         task_running_count, single_count fields.  Add
18308         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18309         Remove work_share_lock, generation_mask,
18310         oldest_live_gen, num_live_gen and init_work_shares fields, add
18311         work work_share_list_alloc, work_share_list_free and work_share_chunk
18312         fields.  Change work_shares from pointer to pointers into an array.
18313         Change ordered_release field into gomp_sem_t ** from flexible array
18314         member.  Add implicit_task and initial_work_shares fields.
18315         Move close to the end of the struct.
18316         (struct gomp_team_state): Add single_count, last_work_share,
18317         active_level and level fields, remove work_share_generation.
18318         (gomp_barrier_handle_tasks): New prototype.
18319         (gomp_finish_task): New inline function.
18320         (struct gomp_work_share): Move chunk_size, end, incr into
18321         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18322         next_ll fields.  Reshuffle fields.  Add next_alloc,
18323         next_ws, next_free and inline_ordered_team_ids fields, change
18324         ordered_team_ids into pointer from flexible array member.
18325         Add mode field.  Put lock and next into a different cache line
18326         from most of the write-once fields.
18327         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18328         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18329         gomp_iter_ull_guided_next): New prototypes.
18330         (gomp_new_icv): New prototype.
18331         (struct gomp_thread): Add thread_pool and task fields.
18332         (struct gomp_thread_pool): New type.
18333         (gomp_new_team): New prototype.
18334         (gomp_team_start): Change type of last argument.
18335         (gomp_new_work_share): Removed.
18336         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18337         (gomp_work_share_init_done): New static inline.
18338         (gomp_throttled_spin_count_var, gomp_available_cpus,
18339         gomp_managed_threads): New extern decls.
18340         (gomp_init_task): New prototype.
18341         (gomp_spin_count_var): New extern var decl.
18342         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18343         or no alias support, or if not PIC.
18344         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18345         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18346         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18347         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18348         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18349         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18350         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18351         gomp_test_nest_lock_25): New prototypes.
18352         (omp_lock_symver, strong_alias): Define.
18353         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18354         decls.
18355         (gomp_end_task): New.
18356         (struct gomp_task_icv, gomp_global_icv): New.
18357         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18358         (struct gomp_task): New.
18359         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18360         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18361         (gomp_icv): New.
18362         (gomp_schedule_type): Reorder enum to match
18363         omp_sched_t.
18364         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18365         fields.
18366         (gomp_thread_start): Add gomp_team_barrier_wait call.
18367         For non-nested case remove clearing of docked thread thr fields.
18368         Use pool fields instead of global gomp_* variables.  Use
18369         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18370         Create tasks for each member thread.
18371         (free_team): Only destroy team barrier, task_lock here and free it.
18372         (gomp_free_thread): Free last_team if non-NULL.
18373         (gomp_team_end): Call gomp_team_barrier_wait instead of
18374         gomp_barrier_wait.  For nested case call one extra
18375         gomp_barrier_wait.  Move here some destruction from free_team.
18376         Call free_team on pool->last_team if any, rather than freeing
18377         current team.  Destroy work_share_list_free_lock ifndef
18378         HAVE_SYNC_BUILTINS.
18379         (gomp_new_icv): New function.
18380         (gomp_threads, gomp_threads_size, gomp_threads_used,
18381         gomp_threads_dock): Removed.
18382         (gomp_thread_destructor): New variable.
18383         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18384         functions.
18385         (gomp_team_start): Create new pool if current thread doesn't have
18386         one.  Use pool fields instead of global gomp_* variables.
18387         Initialize thread_pool field for new threads.  Clear single_count.
18388         Change last argument from ws to team, don't create
18389         new team, set ts.work_share to &team->work_shares[0] and clear
18390         ts.last_work_share.  Don't clear ts.work_share_generation.
18391         If number of threads changed, adjust atomically gomp_managed_threads.
18392         Use gomp_init_task instead of gomp_new_task,
18393         set thr->task to the corresponding implicit_task array entry.
18394         Create tasks for each member thread.  Initialize ts.level.
18395         (initialize_team): Call pthread_key_create on
18396         gomp_thread_destructor.
18397         (team_destructor): New function.
18398         (new_team): Removed.
18399         (gomp_new_team): New function.
18400         (free_team): Free gomp_work_share blocks chained through next_alloc,
18401         instead of freeing work_shares and destroying work_share_lock.
18402         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18403         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18404         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18405         of gomp_barrier_wait.
18406         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18407         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18408         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18409         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18410         of gomp_barrier_wait.
18411         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18412         gomp_work_share_init_done if gomp_work_share_start returned true.
18413         Don't unlock ws->lock.
18414         * work.c: Include stddef.h.
18415         (free_work_share): Use work_share_list_free_lock instead
18416         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18417         Call gomp_fini_work_share and then either free ws if orphaned, or
18418         put it into work_share_list_free list of the current team.
18419         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18420         functions.
18421         (gomp_work_share_start, gomp_work_share_end,
18422         gomp_work_share_end_nowait): Rewritten.
18423         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18424         (openmp_version): Set to 200805.
18425         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18426         omp_sched_guided, omp_sched_auto): New parameters.
18427         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18428         omp_set_max_active_levels, omp_get_max_active_levels,
18429         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18430         omp_get_active_level): New interfaces.
18431         * omp_lib.h.in (openmp_version): Set to 200805.
18432         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18433         omp_sched_guided, omp_sched_auto): New parameters.
18434         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18435         omp_set_max_active_levels, omp_get_max_active_levels,
18436         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18437         omp_get_active_level): New externals.
18438         * loop.c: Include limits.h.
18439         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18440         GFS_AUTO.
18441         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18442         Likewise.  Use gomp_icv.
18443         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18444         ts.static_trip here.
18445         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18446         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18447         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18448         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18449         don't unlock ws->lock, otherwise lock it.
18450         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18451         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18452         (gomp_parallel_loop_start): Call gomp_new_team instead of
18453         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18454         Adjust gomp_team_start caller.  Pass 0 as second argument to
18455         gomp_resolve_num_threads.
18456         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18457         If adding ws->chunk_size nthreads + 1 times after end won't
18458         overflow, set ws->mode to 1.
18459         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18460         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18461         GOMP_loop_ull_ordered_static_start,
18462         GOMP_loop_ull_ordered_dynamic_start,
18463         GOMP_loop_ull_ordered_guided_start,
18464         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18465         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18466         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18467         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18468         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18469         prototypes.
18470         * libgomp.map: Export lock routines also @@OMP_2.0.
18471         (GOMP_loop_ordered_dynamic_first,
18472         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18473         GOMP_loop_ordered_static_first): Remove.
18474         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18475         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18476         GOMP_loop_ull_ordered_dynamic_next,
18477         GOMP_loop_ull_ordered_dynamic_start,
18478         GOMP_loop_ull_ordered_guided_next,
18479         GOMP_loop_ull_ordered_guided_start,
18480         GOMP_loop_ull_ordered_runtime_next,
18481         GOMP_loop_ull_ordered_runtime_start,
18482         GOMP_loop_ull_ordered_static_next,
18483         GOMP_loop_ull_ordered_static_start,
18484         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18485         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18486         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18487         (omp_set_schedule, omp_get_schedule,
18488         omp_get_thread_limit, omp_set_max_active_levels,
18489         omp_get_max_active_levels, omp_get_level,
18490         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18491         omp_set_schedule_, omp_set_schedule_8_,
18492         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18493         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18494         omp_get_max_active_levels_, omp_get_level_,
18495         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18496         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18497         New exports @@OMP_3.0.
18498         * omp.h.in (omp_sched_t): New type.
18499         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18500         omp_set_max_active_levels, omp_get_max_active_levels,
18501         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18502         omp_get_active_level): New prototypes.
18503         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18504         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18505         gomp_thread_limit_var, gomp_remaining_threads_count,
18506         gomp_remaining_threads_lock): New variables.
18507         (parse_spincount): New function.
18508         (initialize_env): Call gomp_init_num_threads unconditionally.
18509         Initialize gomp_available_cpus.  Call parse_spincount,
18510         initialize gomp_{,throttled_}spin_count_var
18511         depending on presence and value of OMP_WAIT_POLICY and
18512         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18513         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18514         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18515         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18516         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18517         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18518         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18519         (gomp_global_icv): New.
18520         (parse_schedule): Use it.  Parse "auto".
18521         (omp_set_num_threads): Use gomp_icv.
18522         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18523         Likewise.
18524         (omp_get_max_threads): Move from parallel.c.
18525         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18526         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18527         add ialias.
18528         (parse_stacksize, parse_wait_policy): New functions.
18529         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
18530         both wrappers for compatibility and new locks.
18531         (omp_set_schedule, omp_get_schedule,
18532         omp_get_thread_limit, omp_set_max_active_levels,
18533         omp_get_max_active_levels, omp_get_level,
18534         omp_get_ancestor_thread_num, omp_get_team_size,
18535         omp_get_active_level): New ialias_redirect.
18536         (omp_set_schedule_, omp_set_schedule_8_,
18537         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18538         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18539         omp_get_max_active_levels_, omp_get_level_,
18540         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18541         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18542         New functions.
18543         * parallel.c: Include limits.h.
18544         (gomp_resolve_num_threads): Add count argument.  Rewritten.
18545         (GOMP_parallel_start): Call gomp_new_team and pass that as last
18546         argument to gomp_team_start.  Pass 0 as second argument to
18547         gomp_resolve_num_threads.
18548         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
18549         if gomp_thread_limit_var != ULONG_MAX.
18550         (omp_in_parallel): Implement using ts.active_level.
18551         (omp_get_max_threads): Move to env.c.
18552         (omp_get_level, omp_get_ancestor_thread_num,
18553         omp_get_team_size, omp_get_active_level): New functions,
18554         add ialias.
18555         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
18556         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
18557         gomp_iter_dynamic_next instead of the _locked variant and don't take
18558         lock around it, otherwise acquire it before calling
18559         gomp_iter_dynamic_next_locked.
18560         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
18561         gomp_iter_dynamic_next instead of the _locked variant and don't take
18562         lock around it.
18563         (GOMP_parallel_sections_start): Call gomp_new_team instead of
18564         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
18565         Adjust gomp_team_start caller.  Pass count as second argument to
18566         gomp_resolve_num_threads, don't adjust num_threads after the call.
18567         Use gomp_icv.
18568         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
18569         ws->chunk_size by incr.
18570         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
18571         code.
18572         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
18573         types.
18574         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
18575         (omp_check_defines): Check even the compat defines.
18576         * config/linux/ptrlock.c: New file.
18577         * config/linux/ptrlock.h: New file.
18578         * config/linux/wait.h: New file.
18579         * config/posix/ptrlock.c: New file.
18580         * config/posix/ptrlock.h: New file.
18581         * config/linux/bar.h (gomp_team_barrier_wait,
18582         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18583         (gomp_team_barrier_set_task_pending,
18584         gomp_team_barrier_clear_task_pending,
18585         gomp_team_barrier_set_waiting_for_tasks,
18586         gomp_team_barrier_waiting_for_tasks,
18587         gomp_team_barrier_done): New inlines.
18588         (gomp_barrier_t): Rewritten.
18589         (gomp_barrier_state_t): New typedef.
18590         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
18591         gomp_barrier_wait_start): Rewritten.
18592         (gomp_barrier_wait_end): Change second argument to
18593         gomp_barrier_state_t.
18594         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18595         inlines.
18596         * config/linux/bar.c: Include wait.h instead of libgomp.h and
18597         futex.h.
18598         (gomp_barrier_wait_end): Rewritten.
18599         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18600         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
18601         * config/posix/bar.h (gomp_barrier_t): Add generation field.
18602         (gomp_barrier_state_t): New typedef.
18603         (gomp_team_barrier_wait,
18604         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
18605         (gomp_barrier_wait_start): Or all but low 2 bits from generation
18606         into the return value.  Return gomp_barrier_state_t.
18607         (gomp_team_barrier_set_task_pending,
18608         gomp_team_barrier_clear_task_pending,
18609         gomp_team_barrier_set_waiting_for_tasks,
18610         gomp_team_barrier_waiting_for_tasks,
18611         gomp_team_barrier_done): New inlines.
18612         (gomp_barrier_wait_end): Change second argument to
18613         gomp_barrier_state_t.
18614         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
18615         inlines.
18616         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
18617         (gomp_barrier_wait_end): Change second argument to
18618         gomp_barrier_state_t.
18619         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
18620         gomp_team_barrier_wake): New functions.
18621         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
18622         futex.h.
18623         (gomp_futex_wake, gomp_futex_wait): New variables.
18624         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
18625         * config/linux/lock.c: Rewrite to make locks task owned,
18626         for backwards compatibility provide the old entrypoints
18627         if symbol versioning.  Include wait.h instead of libgomp.h and
18628         futex.h.
18629         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
18630         * config/posix95/lock.c: Rewrite to make locks task owned,
18631         for backwards compatibility provide the old entrypoints
18632         if symbol versioning.
18633         * config/posix/lock.c: Rewrite to make locks task owned,
18634         for backwards compatibility provide the old entrypoints
18635         if symbol versioning.
18636         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
18637         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
18638         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
18639         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18640         (sys_futex0): Return error code.
18641         (futex_wake, futex_wait): If ENOSYS was returned, clear
18642         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18643         (cpu_relax, atomic_write_barrier): New static inlines.
18644         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18645         (futex_wake, futex_wait): If ENOSYS was returned, clear
18646         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18647         (cpu_relax, atomic_write_barrier): New static inlines.
18648         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18649         (sys_futex0): Return error code.
18650         (futex_wake, futex_wait): If ENOSYS was returned, clear
18651         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18652         (cpu_relax, atomic_write_barrier): New static inlines.
18653         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18654         (sys_futex0): Return error code.
18655         (futex_wake, futex_wait): If ENOSYS was returned, clear
18656         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18657         (cpu_relax, atomic_write_barrier): New static inlines.
18658         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18659         (sys_futex0): Return error code.
18660         (futex_wake, futex_wait): If ENOSYS was returned, clear
18661         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18662         (cpu_relax, atomic_write_barrier): New static inlines.
18663         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
18664         (sys_futex0): Return error code.
18665         (futex_wake, futex_wait): If ENOSYS was returned, clear
18666         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
18667         (cpu_relax, atomic_write_barrier): New static inlines.
18668         * config/linux/sem.c: Include wait.h instead of libgomp.h and
18669         futex.h.
18670         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
18671         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
18672         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
18673         types.
18674         (omp_nest_lock_t): Change owner into void *, add lock field.
18675         * config/posix95/omp-lock.h: Include semaphore.h.
18676         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18677         (omp_lock_t): Use sem_t instead of mutex if semaphores
18678         aren't broken.
18679         (omp_nest_lock_t): Likewise.  Change owner to void *.
18680         * config/posix/omp-lock.h: Include semaphore.h.
18681         (omp_lock_25_t, omp_nest_lock_25_t): New types.
18682         (omp_lock_t): Use sem_t instead of mutex if semaphores
18683         aren't broken.
18684         (omp_nest_lock_t): Likewise.  Add owner field.
18686 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18688         * testsuite/libgomp.c/collapse-1.c: New test.
18689         * testsuite/libgomp.c/collapse-2.c: New test.
18690         * testsuite/libgomp.c/collapse-3.c: New test.
18691         * testsuite/libgomp.c/icv-1.c: New test.
18692         * testsuite/libgomp.c/icv-2.c: New test.
18693         * testsuite/libgomp.c/lib-2.c: New test.
18694         * testsuite/libgomp.c/lock-1.c: New test.
18695         * testsuite/libgomp.c/lock-2.c: New test.
18696         * testsuite/libgomp.c/lock-3.c: New test.
18697         * testsuite/libgomp.c/loop-4.c: New test.
18698         * testsuite/libgomp.c/loop-5.c: New test.
18699         * testsuite/libgomp.c/loop-6.c: New test.
18700         * testsuite/libgomp.c/loop-7.c: New test.
18701         * testsuite/libgomp.c/loop-8.c: New test.
18702         * testsuite/libgomp.c/loop-9.c: New test.
18703         * testsuite/libgomp.c/nested-3.c: New test.
18704         * testsuite/libgomp.c/nestedfn-6.c: New test.
18705         * testsuite/libgomp.c/sort-1.c: New test.
18706         * testsuite/libgomp.c/task-1.c: New test.
18707         * testsuite/libgomp.c/task-2.c: New test.
18708         * testsuite/libgomp.c/task-3.c: New test.
18709         * testsuite/libgomp.c/task-4.c: New test.
18710         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
18711         to C++ testsuite default compiler options.
18712         * testsuite/libgomp.c++/collapse-1.C: New test.
18713         * testsuite/libgomp.c++/collapse-2.C: New test.
18714         * testsuite/libgomp.c++/ctor-10.C: New test.
18715         * testsuite/libgomp.c++/for-1.C: New test.
18716         * testsuite/libgomp.c++/for-2.C: New test.
18717         * testsuite/libgomp.c++/for-3.C: New test.
18718         * testsuite/libgomp.c++/for-4.C: New test.
18719         * testsuite/libgomp.c++/for-5.C: New test.
18720         * testsuite/libgomp.c++/loop-8.C: New test.
18721         * testsuite/libgomp.c++/loop-9.C: New test.
18722         * testsuite/libgomp.c++/loop-10.C: New test.
18723         * testsuite/libgomp.c++/task-1.C: New test.
18724         * testsuite/libgomp.c++/task-2.C: New test.
18725         * testsuite/libgomp.c++/task-3.C: New test.
18726         * testsuite/libgomp.c++/task-4.C: New test.
18727         * testsuite/libgomp.c++/task-5.C: New test.
18728         * testsuite/libgomp.c++/task-6.C: New test.
18729         * testsuite/libgomp.fortran/allocatable1.f90: New test.
18730         * testsuite/libgomp.fortran/allocatable2.f90: New test.
18731         * testsuite/libgomp.fortran/allocatable3.f90: New test.
18732         * testsuite/libgomp.fortran/allocatable4.f90: New test.
18733         * testsuite/libgomp.fortran/collapse1.f90: New test.
18734         * testsuite/libgomp.fortran/collapse2.f90: New test.
18735         * testsuite/libgomp.fortran/collapse3.f90: New test.
18736         * testsuite/libgomp.fortran/collapse4.f90: New test.
18737         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
18738         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
18739         * testsuite/libgomp.fortran/lib4.f90: New test.
18740         * testsuite/libgomp.fortran/lock-1.f90: New test.
18741         * testsuite/libgomp.fortran/lock-2.f90: New test.
18742         * testsuite/libgomp.fortran/nested1.f90: New test.
18743         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
18744         * testsuite/libgomp.fortran/strassen.f90: New test.
18745         * testsuite/libgomp.fortran/tabs1.f90: New test.
18746         * testsuite/libgomp.fortran/tabs2.f: New test.
18747         * testsuite/libgomp.fortran/task1.f90: New test.
18748         * testsuite/libgomp.fortran/task2.f90: New test.
18749         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
18750         * testsuite/libgomp.fortran/vla5.f90: Likewise.
18751         * testsuite/libgomp.c/pr26943-2.c: Likewise.
18752         * testsuite/libgomp.c/pr26943-3.c: Likewise.
18753         * testsuite/libgomp.c/pr26943-4.c: Likewise.
18755 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
18757         PR c++/36308
18758         * testsuite/libgomp.c++/ctor-11.C: New test.
18759         * testsuite/libgomp.c++/ctor-12.C: New test.
18761 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
18763         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
18765 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
18767         PR middle-end/36106
18768         * testsuite/libgomp.c/atomic-5.c: New test.
18769         * testsuite/libgomp.c/atomic-6.c: New test.
18770         * testsuite/libgomp.c/autopar-1.c: New test.
18772 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18774         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
18775         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
18776         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
18777         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
18778         * configure: Regenerate.
18779         * Makefile.in, testsuite/Makefile.in: Likewise.
18781 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18783         PR bootstrap/35457
18784         * aclocal.m4: Regenerate.
18785         * configure: Regenerate.
18787 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18789         PR middle-end/35611
18790         * testsuite/libgomp.c/atomic-4.c: New test.
18792         PR libgomp/35625
18793         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
18794         (gomp_iter_guided_next): Likewise.
18795         * testsuite/libgomp.c/pr35625.c: New test.
18797 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18799         * aclocal.m4: Regenerate.
18800         * configure: Likewise.
18801         * Makefile.in: Likewise.
18802         * testsuite/Makefile.in: Likewise.
18804 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18806         PR middle-end/35185
18807         * testsuite/libgomp.c++/pr35185.C: New test.
18809 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18811         PR middle-end/35549
18812         * testsuite/libgomp.c/pr35549.c: New test.
18814 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
18816         * testsuite/libgomp.c/atomic-3.c: New test.
18818 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18820         PR fortran/33197
18821         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
18822         .F08 file suffixes.
18824 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
18826         PR libgomp/33131
18827         * configure.ac: Add ACX_HEADER_STRING.
18828         * env.c: Include strings.h.
18829         * aclocal.m4: Regenerate.
18830         * config.h.in: Regenerate.
18831         * configure: Regenerate.
18832         * Makefile.in: Regenerate.
18833         * testsuite/Makefile.in: Regenerate.
18835 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
18837         PR middle-end/35196
18838         * testsuite/libgomp.c/pr35196.c: New test.
18840         PR middle-end/35130
18841         * testsuite/libgomp.fortran/pr35130.f90: New test.
18842         * testsuite/libgomp.c/pr35130.c: New test.
18844 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18846         PR middle-end/33880
18847         * testsuite/libgomp.c/pr33880.c: New test.
18848         * testsuite/libgomp.fortran/pr33880.f90: New test.
18850 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
18852         * configure: Regenerate.
18854 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18856         * configure.ac: Move futex checking into ../config/futex.m4.
18857         * configure: Rebuilt.
18858         * aclocal.m4: Rebuilt.
18859         * Makefile.in: Rebuilt.
18861         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
18862         2007-10-15 ../config/tls.m4 change.
18864 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
18866         PR c++/34513
18867         * testsuite/libgomp.c/pr34513.c: New test.
18868         * testsuite/libgomp.c++/pr34513.C: New test.
18870 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
18872         PR target/32765
18873         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
18875 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
18877         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
18879 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
18881         * testsuite/libgomp.c/private-1.c: New test.
18883 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
18884             Paolo Bonzini  <bonzini@gnu.org>
18886         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
18887         instead of 'VPATH ='.
18888         * Makefile.in: Regenerate.
18890 2007-11-23  Matthias Klose  <doko@ubuntu.com>
18892         * configure.ac: Adjust makeinfo version check.
18893         * configure: Regenerate.
18895 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
18897         PR fortran/34020
18898         * testsuite/libgomp.fortran/pr34020.f90: New test.
18900 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
18902         PR c++/33894
18903         * testsuite/libgomp.c++/atomic-1.C: New test.
18905 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
18907         PR libgomp/33275
18908         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
18909         Make x and y integers rather than (implicit) reals.  Add private (j)
18910         clause to the last omp parallel.
18912 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
18914         * configure: Regenerate following changes to ../config/tls.m4.
18916 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
18918         * testsuite/libgomp.fortran/stack.f90: New test.
18920 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
18922         * config/mingw32/proc.c: New file.
18924 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
18926         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
18927         (main): Use __get_cpuid to get i386 target fetaures.
18928         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
18929         (main): Use __get_cpuid to get x86_64 target fetaures.
18931 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
18933         PR target/32765
18934         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
18935         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
18937 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
18939         PR fortran/32550
18940         * testsuite/libgomp.fortran/pr32550.f90: New test.
18941         * testsuite/libgomp.fortran/crayptr2.f90: New test.
18943 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
18945         * aclocal.m4: Regenerated.
18947 2007-07-05  Tobias Burnus  <burnus@net-b.de>
18949         PR fortran/32359
18950         * testsuite/libgomp.fortran/pr32359.f90: New.
18952 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
18954         PR libgomp/32468
18955         * sections.c (GOMP_parallel_sections_start): Only decrease
18956         number of threads to COUNT if dyn_var is true.
18957         * testsuite/libgomp.c/pr32468.c: New test.
18959 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18961         PR libgomp/26308
18962         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
18964 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
18966         PR middle-end/32362
18967         * testsuite/libgomp.c/pr32362-1.c: New test.
18968         * testsuite/libgomp.c/pr32362-2.c: New test.
18969         * testsuite/libgomp.c/pr32362-3.c: New test.
18971 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
18973         * team.c (gomp_team_start): Fix setting up thread_attr
18974         stack size.
18976 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
18978         * configure: Regenerate.
18980 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
18982         * Makefile.in: Regenerate.
18983         * configure: Regenerate.
18984         * aclocal.m4: Regenerate.
18985         * testsuite/Makefile.in: Regenerate.
18987 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
18989         * config/linux/proc.c: New file.
18991         PR libgomp/28482
18992         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
18994 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
18996         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
18998 2007-04-16  Matthias Klose  <doko@debian.org>
19000         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19001         flags if not building with -m64.
19002         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19003         flag for i?86-*-* targets, if current target matches -m64.
19005 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19007         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19008         * Makefile.in: Regenerate.
19010 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19012         PR testsuite/31369
19013         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19014         ld_library_path.
19015         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19017 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19019         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19020         decls.
19021         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19022         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19023         (parse_affinity): New function.
19024         (initialize_env): Call it and gomp_init_affinity.
19025         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19026         create new pthread_attr_t and call gomp_init_thread_affinity
19027         on it for each thread before passing the attribute to pthread_create.
19028         * config/linux/affinity.c: New file.
19029         * config/posix/affinity.c: New file.
19030         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19031         * configure: Rebuilt.
19032         * config.h.in: Rebuilt.
19033         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19034         * Makefile.in: Rebuilt.
19036 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19038         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19039         *-*-darwin*.
19040         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19041         and use it if found.
19043 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19045         * testsuite/config/default.exp: New file.
19046         * testsuite/lib/libgomp.exp: New file.
19047         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19048         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19049         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19050         (libgomp_load): Remove.
19051         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19052         always_ld_library_path, not ld_library_path.  Set additional_flags
19053         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19054         (target_compile): Do not call libgomp_init.  Append lang_library_path
19055         and lang_link_flags to options.
19056         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19057         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19058         here.
19059         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19060         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19061         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19062         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19063         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19064         CX8 flag.
19065         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19066         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19067         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19068         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19069         * testsuite/libgomp.c/atomic-10.c: Ditto.
19071 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19073         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19074         dg-final cleanup-modules line.
19075         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19076         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19077         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19078         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19079         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19080         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19081         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19083 2007-03-18  Andreas Schwab  <schwab@suse.de>
19085         * acinclude.m4: Adjust regular expression for ld version
19086         extraction.
19087         * configure: Regenerate.
19089 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19091         * Makefile.am: Add install-pdf target as copied from
19092         automake v1.10 rules.
19093         * Makefile.in: Regenerate
19095 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19097         PR libgomp/28486
19098         * configure: Regenerate.
19100         PR c++/30703
19101         * testsuite/libgomp.c++/pr30703.C: New test.
19103 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19105         Revert:
19106         2006-07-05  Eric Christopher  <echristo@apple.com>
19107         * configure.ac: Depend addition of -pthread on host OS.
19108         * configure: Regenerate.
19110 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19112         * libgomp.texi: Fix spacing after abbreviations.
19114 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19116         PR libgomp/30546
19117         * configure.ac: Add check for makeinfo
19118         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19119         if an appropriate version of makeinfo is found.
19120         * aclocal.m4: Regenerated.
19121         * configure: Regenerated.
19122         * Makefile.in: Regenerated.
19123         * testsuite/Makefile.in: Regenerated.
19125 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19127         PR libgomp/30540
19128         * libgomp.texi: More about implementation-dependent settings.
19130 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19132         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19134 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19136         PR middle-end/30494
19137         * testsuite/libgomp.c/pr30494.c: New test.
19139 2007-01-15  Tom Tromey  <tromey@redhat.com>
19141         * configure: Rebuilt.
19142         * configure.ac: Fixed comment.
19144 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19146         * libgomp.texi: Document implementation specific default values of
19147         environment variables.
19149 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19151         PR libgomp/28209
19152         * libgomp.texi: New file.
19153         * configure.ac: Add --enable-generated-files-in-srcdir option.
19154         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19155         files to srcdir.
19156         * Makefile.in: Regenerated.
19157         * config.h.in: Regenerated.
19158         * testsuite/Makefile.in: Regenerated.
19159         * NOTES: Removed.
19161 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19163         PR libgomp/29949
19164         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19166 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19168         * configure: Regenerate.
19170 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19172         PR libgomp/29947
19173         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19174         start if there shouldn't be any loop iterations.
19175         (gomp_loop_ordered_static_start): Remove start == end test.
19176         * testsuite/libgomp.c/pr29947-1.c: New test.
19177         * testsuite/libgomp.c/pr29947-2.c: New test.
19179 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19181         * configure.tgt: Force initial-exec TLS model on Linux only.
19183 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19185         * configure: Regenerated.
19187 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19189         * env.c (parse_schedule): Reject out of range values.
19190         (parse_unsigned_long): Reject out of range, negative or zero values.
19192 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19194         PR fortran/29629
19195         * testsuite/libgomp.fortran/pr29629.f90: New test.
19197 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19199         PR libgomp/29494
19200         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19201         * config/posix95: New directory.
19202         * config/posix95/omp-lock.h: New file.
19203         * config/posix95/lock.c: Likewise.
19205 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19207         * aclocal.m4: Regenerate.
19208         * configure: Regenerate.
19210 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19212         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19213         '<' to '<='.
19215 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19217         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19218         test.
19219         * configure: Regenerate.
19220         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19222 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19224         PR middle-end/25261
19225         PR middle-end/28790
19226         * testsuite/libgomp.c/nestedfn-4.c: New test.
19227         * testsuite/libgomp.c/nestedfn-5.c: New test.
19228         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19230         PR fortran/29097
19231         * testsuite/libgomp.fortran/condinc1.f: New test.
19232         * testsuite/libgomp.fortran/condinc2.f: New test.
19233         * testsuite/libgomp.fortran/condinc3.f90: New test.
19234         * testsuite/libgomp.fortran/condinc4.f90: New test.
19235         * testsuite/libgomp.fortran/condinc1.inc: New file.
19237 2006-09-18  Tom Tromey  <tromey@redhat.com>
19239         * configure: Rebuilt.
19241 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19243         PR c/28768
19244         PR preprocessor/14634
19245         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19246         to AC_DEFINE.
19247         * configure: Regenerate.
19249 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19251         * testsuite/libgomp.fortran/reduction3.f90: Change
19252         -2147483648 to -huge(i)-1 to avoid overflow.
19253         * testsuite/libgomp.fortran/reduction4.f90: Change
19254         Z'ffffffff' to not(0) to avoid overflow.
19256 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19258         PR libgomp/25938
19259         * Makefile.am (libsubincludedir): New.
19260         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19261         * Makefile.in: Regenerate.
19263 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19265         PR libgomp/28725
19266         * env.c: Include ctype.h.
19267         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19268         leading and/or trailing whitespace and compare strings case
19269         insensitively.
19271 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19273         PR fortran/28390
19274         * testsuite/libgomp.fortran/pr28390.f: New test.
19276 2006-07-05  Eric Christopher  <echristo@apple.com>
19278         * configure.ac: Depend addition of -pthread on host OS.
19279         * configure: Regenerate.
19281 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19283         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19284         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19285         defined.
19287 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19289         PR libgomp/26175
19290         PR libgomp/26477
19291         * configure.ac: If neither --enable-linux-futex nor
19292         --disable-linux-futex is passed, determine the default by checking
19293         for compiling and/or running against NPTL.  With --enable-linux-futex,
19294         check if SYS_gettid and SYS_futex are defined.
19295         * configure: Rebuilt.
19297 2006-06-14  Richard Henderson  <rth@redhat.com>
19299         PR libgomp/28008
19300         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19301         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19303 2006-06-09  Richard Henderson  <rth@redhat.com>
19305         * env.c (gomp_nthreads_var): Change to unsigned long.
19306         (gomp_run_sched_chunk): Likewise.
19307         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19308         (initialize_env): Initialize gomp_thread_attr.
19309         * libgomp.h (gomp_nthreads_var): Update decl.
19310         (gomp_run_sched_chunk): Likewise.
19311         (gomp_thread_attr): Declare.
19312         * team.c (gomp_thread_attr): Export.
19313         (initialize_team): Don't initialize it.
19315 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19317         PR fortran/27916
19318         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19319         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19321 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19323         * config/mingw32/time.c: New file.
19324         * configure.tgt: Use it.
19326 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19328         * Makefile.am: Add install-html target. Add install-html to .PHONY
19329         * Makefile.in: Regenerate.
19331 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19333         PR libgomp/27612
19334         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19335         * testsuite/libgomp.c/critical-1.c: Likewise.
19336         * testsuite/libgomp.c/loop-1.c: Likewise.
19337         * testsuite/libgomp.c/loop-2.c: Likewise.
19338         * testsuite/libgomp.c/single-1.c: Likewise.
19339         * testsuite/libgomp.c/ordered-1.c: Likewise.
19340         * testsuite/libgomp.c/ordered-2.c: Likewise.
19342 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19344         PR middle-end/27416
19345         * libgomp.fortran/pr27416-1.f90: New test.
19347 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19349         PR fortran/27395
19350         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19351         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19353 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19355         PR c++/26943
19356         * testsuite/libgomp.c/pr26943-1.c: New test.
19357         * testsuite/libgomp.c/pr26943-2.c: New test.
19358         * testsuite/libgomp.c/pr26943-3.c: New test.
19359         * testsuite/libgomp.c/pr26943-4.c: New test.
19360         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19361         * testsuite/libgomp.c++/pr26943.C: New test.
19363 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19365         PR middle-end/27337
19366         * testsuite/libgomp.c++/pr27337.C: New test.
19368 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19370         PR c/26171
19371         * testsuite/libgomp.c/pr26171.c: New test.
19373 2006-04-25  Richard Henderson  <rth@redhat.com>
19375         PR libgomp/25865
19376         * configure.ac: Use GCC_CHECK_TLS.
19377         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19378         * Makefile.in, aclocal.m4, configure: Regenerate.
19380 2006-04-10  Matthias Klose  <doko@debian.org>
19382         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19383         directory names containing underscores.
19385 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19387         PR c++/26691
19388         * testsuite/libgomp.c++/pr26691.C: New test.
19390 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19392         * testsuite/libgomp.fortran/retval2.f90: New test.
19394 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19396         * testsuite/libgomp.c++: New directory.
19398 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19400         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19401         * config/posix/sem.c: Implement the above.
19403 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19405         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19406         define HAVE_BROKEN_POSIX_SEMAPHORES.
19407         * configure: Rebuilt.
19408         * config.h.in: Rebuilt.
19410 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19412         PR bootstrap/26161
19413         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19414         for the other pthread check.
19415         * configure: Regenerate.
19416         * config.h.in: Regenerate.
19418 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19420         PR libgomp/25938
19421         PR libgomp/25984
19422         * Makefile.am (fincludedir): New variable.
19423         (nodist_include_HEADERS): Remove Fortran files.
19424         (nodist_finclude_HEADERS): New variable.
19425         * Makefile.in: Regenerated.
19427 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19429         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19430         Remove tests for returning assumed character length arrays.
19432 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19433             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19435         PR libgomp/25936
19436         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19438 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19440         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19442 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19444         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19445         part of LD_LIBRARY_PATH manually.
19447 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19449         PR libgomp/25852
19450         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19451         libgomp_init.
19453 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19455         PR libgomp/25884
19456         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19457         * configure.ac (PERL): Don't set.
19458         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19459         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19460         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19461         * omp.h.in: Wrap the new configure substitutions with @ characters.
19462         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19463         * aclocal.m4, configure, Makefile.in: Regenerate.
19464         * mkomp_h.pl: Delete.
19466 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19468         PR libgomp/25259
19469         * configure.ac: Use GCC_HEADER_STDINT.
19470         * libgomp.h: Include gstdint.h.
19471         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19472         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19474 2006-01-24  Richard Henderson  <rth@redhat.com>
19476         PR libgomp/25942
19477         * configure.ac: Add AM_MAINTAINER_MODE.
19478         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19480 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19482         * Makefile.in: Regenerate.
19483         * testsuite/Makefile.in: Regenerate.
19484         * aclocal.m4: Regenerate.
19486 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19488         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19489         Solaris.
19490         * configure.ac: Add check for loadavg.h.
19491         (link_gomp): Adjust comment.
19492         * configure: Regenerate.
19493         * config.h.in: Regenerate.
19495 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19497         PR libgomp/25877
19498         * configure.ac: Remove check for alloca.h.
19499         * configure: Regenerate.
19500         * config.h.in: Regenerate.
19501         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19502         * team.c: Remove use of alloca.h.
19503         Call gomp_alloca instead of alloca.
19505 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19507         PR libgomp/25877
19508         * team.c: Add include of alloca.h.
19509         * configure.ac: Add check for alloca.h.
19510         * configure: Regenerate.
19511         * config.h.in: Regenerate.
19513 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19515         PR fortran/25219
19516         * testsuite/libgomp.fortran/pr25219.f90: New test.
19518 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19520         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19521         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19522         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19523         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19524         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19525         testsuite/libgomp.fortran/threadprivate1.f90,
19526         testsuite/libgomp.fortran/threadprivate2.f90,
19527         testsuite/libgomp.fortran/threadprivate3.f90,
19528         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19529         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19530         testsuite/libgomp.fortran/omp_parse3.f90: Change required
19531         effective-target to TLS runtime.
19533         * testsuite/libgomp.fortran/pr25162.f: Require
19534         effective-target TLS runtime.
19536 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
19538         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
19539         * testsuite/libgomp.c/nestedfn-3.c: New test.
19541 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
19543         PR fortran/25162
19544         * testsuite/libgomp.fortran/pr25162.f: New test.
19546 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
19548         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
19549         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
19551 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
19553         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
19554         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
19555         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
19556         single.c, team.c, work.c, config/linux/alpha/futex.h,
19557         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
19558         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
19559         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
19560         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
19561         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
19562         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
19563         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
19564         FSF address.
19566 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19568         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
19569         to nodist_noinst_HEADERS.
19570         * Makefile.in: Rebuilt.
19572         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
19573         add integer count field.
19574         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
19575         omp_nest_lock_t type change.
19576         (omp_init_nest_lock): Likewise.  Initialize count to 0.
19577         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
19578         Increment count.
19579         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
19580         Decrement count.
19581         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
19582         Increment count if successful and return the new nesting level.
19583         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
19584         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
19585         * testsuite/libgomp.c/lib-1.c: New test.
19586         * testsuite/libgomp.fortran/lib1.f90: New test.
19587         * testsuite/libgomp.fortran/lib2.f: New test.
19588         * testsuite/libgomp.fortran/lib3.f: New test.
19590 2005-11-17  Richard Henderson  <rth@redhat.com>
19592         PR 24845
19593         * Makefile.am (nodist_toolexeclib_HEADERS): New.
19594         * configure.ac (link_gomp): New.  Substitute it.
19595         (AC_CONFIG_FILES): Add libgomp.spec.
19596         * libgomp.spec.in: New file.
19597         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
19598         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
19600 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
19602         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
19603         reduction(-:var) behaving the same as reduction(+:var).
19604         * testsuite/libgomp.c/reduction-4.c: New test.
19606 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
19608         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
19609         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
19610         testsuite/libgomp.c/copyin-3.c,
19611         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19612         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19613         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
19614         testsuite/libgomp.c++/pr24455.C,
19615         testsuite/libgomp.fortran/threadprivate1.f90,
19616         testsuite/libgomp.fortran/threadprivate2.f90,
19617         testsuite/libgomp.fortran/threadprivate3.f90,
19618         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
19619         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
19620         testsuite/libgomp.fortran/omp_parse3.f90: Require
19621         effective-target TLS.
19623 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
19625         * HEADER: Remove.
19627 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
19629         PR libgomp/24797
19630         * team.c (initialize_team): Pass NULL rather than free as
19631         pthread_key_create destructor.  Initialize thread specific data
19632         pointer in initial thread to a static local variable rather than
19633         malloced memory.
19635 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
19637         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
19638         its location to ld_library_path.
19640 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19642         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
19644 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
19646         * testsuite/libgomp.c: Rename from libgomp.dg.
19648 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
19650         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
19651         threadprivate variable 'i'.
19653 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
19655         * config/linux/s390/futex.h: New file.
19656         * configure.tgt: Use it.
19658         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
19659         before the parallel.
19661 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
19663         PR c++/24734
19664         * testsuite/libgomp.c++/master-1.C: New test.
19666 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19668         * testsuite/libgomp.dg/copyin-3.c: New test.
19670 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
19672         * testsuite/libgomp.fortran/retval1.f90: New test.
19673         * testsuite/libgomp.fortran/vla7.f90: New test.
19675 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
19677         * testsuite/libgomp.fortran/vla2.f90: New test.
19678         * testsuite/libgomp.fortran/vla3.f90: New test.
19679         * testsuite/libgomp.fortran/vla4.f90: New test.
19680         * testsuite/libgomp.fortran/vla5.f90: New test.
19681         * testsuite/libgomp.fortran/vla6.f90: New test.
19683 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
19685         * config/linux/sparc/futex.h: New file.
19686         * configure.tgt: Use it.
19687         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
19689         * critical.c: Include stdlib.h.
19690         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
19691         ignoring return value.
19692         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
19693         LIBGOMP_CHECK_SYNC_BUILTINS check.
19694         * configure: Rebuilt.
19696 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19698         * testsuite/libgomp.fortran/vla1.f90: New test.
19700 2005-10-31  Richard Henderson  <rth@redhat.com>
19702         * testsuite/libgomp.fortran/character2.f90: Fix race condition
19703         setting 's' in different threads.
19705 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
19707         * libgomp.h (attribute_hidden, ialias): Define.
19708         * config/posix/proc.c (omp_get_num_procs): Add ialias.
19709         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
19710         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
19711         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19712         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19713         omp_test_lock, omp_test_nest_lock): Likewise.
19714         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
19715         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
19716         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
19717         omp_test_lock, omp_test_nest_lock): Likewise.
19718         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
19719         omp_get_dynamic, omp_get_nested): Likewise.
19720         * parallel.c (omp_get_num_threads, omp_get_max_threads,
19721         omp_get_thread_num, omp_in_parallel): Likewise.
19722         * fortran.c (ialias_redirect): Define.
19723         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
19724         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
19725         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
19726         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
19727         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
19728         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
19729         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
19730         omp_get_wtime): Add ialias_redirect.
19732 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
19734         * fortran.c: Include stdlib.h.
19736 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
19738         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
19739         * Makefile.in: Regenerated.
19741 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
19743         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
19744         * libgomp_f.h.in (omp_check_defines): New function.
19745         * env.c: Include libgomp_f.h.
19746         (initialize_env): Call omp_check_defines.
19748         * testsuite/libgomp.dg/copyin-2.c: New test.
19749         * testsuite/libgomp.c++/copyin-2.C: New test.
19750         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
19752         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
19753         * testsuite/libgomp.fortran/sharing2.f90: New test.
19755         * testsuite/libgomp.dg/copyin-1.c: New test.
19756         * testsuite/libgomp.c++/copyin-1.C: New test.
19758 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
19760         * testsuite/libgomp.fortran/crayptr1.f90: New test.
19762         * testsuite/libgomp.fortran/workshare1.f90: New test.
19764         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
19765         only test.
19766         * libgomp.fortran/sharing1.f90: New test.
19768 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
19770         PR c++/24502
19771         * testsuite/libgomp.c++/loop-7.C: New test.
19773         * testsuite/libgomp.dg/nestedfn-2.c: New test.
19775         * testsuite/libgomp.dg/nestedfn-1.c: New test.
19776         * testsuite/libgomp.fortran/reduction6.f90: New test.
19777         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
19779 2005-10-23  Richard Henderson  <rth@redhat.com>
19781         * testsuite/libgomp.c++/ctor-1.C: New.
19782         * testsuite/libgomp.c++/ctor-2.C: New.
19783         * testsuite/libgomp.c++/ctor-3.C: New.
19784         * testsuite/libgomp.c++/ctor-4.C: New.
19785         * testsuite/libgomp.c++/ctor-5.C: New.
19786         * testsuite/libgomp.c++/ctor-6.C: New.
19787         * testsuite/libgomp.c++/ctor-7.C: New.
19788         * testsuite/libgomp.c++/ctor-8.C: New.
19789         * testsuite/libgomp.c++/ctor-9.C: New.
19791 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
19793         PR 24455
19794         * testsuite/libgomp.c++/pr24455-1.C: New test.
19795         * testsuite/libgomp.c++/pr24455.C: New test.
19796         * testsuite/libgomp.dg/pr24455-1.c: New test.
19797         * testsuite/libgomp.dg/pr24455.c: New test.
19799 2005-10-20  Richard Henderson  <rth@redhat.com>
19801         * testsuite/libgomp.c++/loop-6.C: New.
19802         * testsuite/libgomp.dg/loop-3.c: New.
19804 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
19806         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
19807         explicitly private.
19808         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
19809         explicitly shared.
19811 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
19813         * testsuite/libgomp.fortran/jacobi.f: New test.
19815 2005-10-19  Richard Henderson  <rth@redhat.com>
19817         * configure.tgt (i?86-linux): Default to with_arch instead of
19818         CFLAGS.  Add -mtune to match target_cpu.
19819         (x86_64-linux): Tune to i686.
19821         * fortran.c (omp_test_nest_lock_): Fix typo.
19823 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
19825         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
19826         gomp_ordered_sync): Do nothing if team->nthreads == 1.
19827         * testsuite/libgomp.dg/ordered-3.c: New test.
19829         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
19830         Remove volatile keyword.
19832         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
19833         in COMMON block to avoid warnings on 64-bit targets.
19835 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
19837         * testsuite/libgomp.dg/shared-3.c: New test.
19839 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19841         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
19842         * testsuite/libgomp.fortran/reduction5.f90: New test.
19844 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
19846         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
19847         dg-options.
19848         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
19849         flush loop now that __sync_synchronize has proper memory barrier.
19850         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
19851         Add -ffixed-form to dg-options.
19853 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19855         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
19856         from subdirectories.
19857         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
19858         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
19859         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
19860         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
19861         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
19862         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
19863         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
19864         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
19865         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
19866         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
19867         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
19868         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
19869         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
19870         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
19871         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
19872         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
19873         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
19874         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
19875         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
19876         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
19877         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
19878         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
19879         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
19880         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
19881         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
19883 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
19885         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
19886         lang_library_path exists.  Use find instead of glob to gather tests.
19887         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
19889 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
19891         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
19892         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
19893         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
19894         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
19895         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
19896         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
19897         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
19898         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
19899         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
19900         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
19901         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
19902         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
19903         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
19905 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
19907         * testsuite/libgomp.dg/vla-1.c: New test.
19909         * testsuite/libgomp.fortran/reference2.f90: New test.
19911         * testsuite/libgomp.fortran/character2.f90: Remove explicit
19912         declaration of omp_get_thread_num.
19913         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
19914         use omp_lib.
19916         * testsuite/libgomp.fortran/reduction1.f90: New test.
19917         * testsuite/libgomp.fortran/reduction2.f90: New test.
19918         * testsuite/libgomp.fortran/reduction3.f90: New test.
19919         * testsuite/libgomp.fortran/reduction4.f90: New test.
19921 2005-10-13  Richard Henderson  <rth@redhat.com>
19923         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
19924         * Makefile.in: Regenerate.
19925         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
19926         * libgomp.h: Include bar.h.
19927         (struct gomp_barrier): Remove.
19928         (struct gomp_team): Add barrier.  Replace master_barrier with
19929         master_release.  Replace threads with ordered_release.
19930         (struct gomp_thread): Replace barrier with release.
19931         * ordered.c (gomp_ordered_first): Update for ordered_release change.
19932         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
19933         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
19934         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
19935         (GOMP_single_copy_end): Likewise.
19936         * team.c (gomp_threads_dock): New.
19937         (gomp_barrier_init, gomp_barrier_destroy): Remove.
19938         (gomp_thread_start): Use gomp_barrier_wait.
19939         (new_team, free_team): Update for gomp_team changes.
19940         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
19941         (gomp_team_end): Use gomp_barrier_wait.
19942         (initialize_team): Update for gomp_thread changes.
19943         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
19944         (gomp_work_share_end_nowait): Use atomic ops when available.
19945         * config/linux/bar.c, config/linux/bar.h: New files.
19946         * config/posix/bar.c, config/posix/bar.h: New files.
19948 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
19950         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
19951         * testsuite/libgomp.dg/single-2.c: New test.
19953         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
19954         lang_link_flags): Unset, so that they aren't inherited from previously
19955         sourced *.exp.
19957         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
19959 2005-10-12  Richard Henderson  <rth@redhat.com>
19961         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
19962         (libgomp_init): Use lang_test_file, lang_library_path, and
19963         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
19965         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
19966         (lang_test_file, lang_link_flags): New.
19967         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
19969         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
19970         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
19971         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
19972         testsuite/libgomp.c++/parallel-1.C,
19973         testsuite/libgomp.c++/reduction-1.C,
19974         testsuite/libgomp.c++/reduction-2.C,
19975         testsuite/libgomp.c++/reduction-3.C,
19976         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
19977         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
19978         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
19979         New files, largely cribbed from the C testsuite.
19981 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
19983         * testsuite/libgomp.fortran/character1.f90: New test.
19984         * testsuite/libgomp.fortran/character2.f90: New test.
19986         * testsuite/libgomp.dg/nested-1.c: New test.
19987         * testsuite/libgomp.dg/nested-2.c: New test.
19988         * testsuite/libgomp.fortran/do1.f90: New test.
19989         * testsuite/libgomp.fortran/do2.f90: New test.
19991         * testsuite/libgomp.fortran/reference1.f90: New test.
19993 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
19995         * testsuite/libgomp.dg/reduction-1.c: New test.
19996         * testsuite/libgomp.dg/reduction-2.c: New test.
19997         * testsuite/libgomp.dg/reduction-3.c: New test.
19999 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20001         * testsuite/libgomp.dg/atomic-1.c: New test.
20002         * testsuite/libgomp.dg/atomic-2.c: New test.
20004 2005-10-09  Richard Henderson  <rth@redhat.com>
20006         * critical.c (atomic_lock): New.
20007         (initialize_critical): Initialize it.
20008         (GOMP_atomic_start, GOMP_atomic_end): New.
20009         * libgomp.map: Export them.
20010         * libgomp_g.h: Declare them.
20012         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20014 2005-10-02  Richard Henderson  <rth@redhat.com>
20016         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20017         to XCFLAGS instead of CFLAGS.
20019 2005-09-30  Richard Henderson  <rth@redhat.com>
20021         * configure.ac: Determine whether -pthread or -lpthread is needed.
20022         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20023         * Makefile.in, configure: Rebuild.
20025 2005-09-28  Richard Henderson  <rth@redhat.com>
20027         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20028         * testsuite/libgomp.dg/omp-single-3.c: New test.
20030 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20032         * testsuite/libgomp.dg/omp-single-2.c: New test.
20033         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20035 2005-09-27  Richard Henderson  <rth@redhat.com>
20037         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20038         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20040 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20042         * testsuite/libgomp.dg/omp-loop03.c: New test.
20044 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20046         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20048 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20050         * testsuite/libgomp.dg/omp-single-1.c: New test.
20051         * testsuite/libgomp.dg/shared-1.c: Return 0.
20052         Add prototype for abort.
20053         * testsuite/libgomp.dg/shared-2.c: Likewise.
20055 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20057         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20058         constructs.
20060 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20062         * testsuite/libgomp.dg/shared-1.c: New test.
20063         * testsuite/libgomp.dg/shared-2.c: New test.
20065 2005-09-24  Richard Henderson  <rth@redhat.com>
20067         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20069 2005-09-24  Richard Henderson  <rth@redhat.com>
20071         * iter.c (gomp_iter_static_next): Round up when computing number
20072         of iterations.  Don't bother distributing a remainder equally.
20074         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20075         Don't call srand.  Zero b before testing.
20076         (main): New.
20078 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20080         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20081         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20083 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20085         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20086         without !$omp end do, followed immediately by subroutine end.
20088 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20090         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20092 2005-09-22  Richard Henderson  <rth@redhat.com>
20094         * critical.c (GOMP_critical_name_start): Change argument to void**.
20095         Reuse the pointer space if the mutex fits.
20096         (GOMP_critical_name_end): Likewise.
20097         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20098         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20099         (GOMP_critical_name_end): Likewise.
20100         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20101         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20103 2005-09-20  Richard Henderson  <rth@redhat.com>
20105         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20106         (create_lock_lock): New.
20107         (initialize_critical): Initialize it.
20108         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20109         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20111 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20113         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20115 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20117         * testsuite/libgomp.dg/omp-loop01.c: New test.
20118         * testsuite/libgomp.dg/omp-loop02.c: New test.
20120 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20122         * configure.ac (AC_PROG_FC): Add.
20123         (USE_FORTRAN): New automake conditional.
20124         * configure: Rebuilt.
20125         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20126         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20127         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20128         Add rules to build them.
20129         * Makefile.in: Rebuilt.
20130         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20131         OMP_NEST_LOCK_KIND.
20132         * libgomp.map: Add Fortran wrappers.
20133         * libgomp_f.h.in: New file.
20134         * omp_lib.h.in: New file.
20135         * omp_lib.f90.in: New file.
20136         * fortran.c: New file.
20137         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20138         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20139         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20140         libgfortran has been built.
20141         * testsuite/libgomp.fortran/fortran.exp: New file.
20142         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20143         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20144         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20145         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20146         * testsuite/libgomp.fortran/omp_hello.f: New test.
20147         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20148         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20149         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20150         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20151         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20152         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20153         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20154         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20156 2005-08-30  Richard Henderson  <rth@redhat.com>
20158         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20159         function for when aliases are not usable.
20160         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20161         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20162         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20163         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20164         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20165         GOMP_loop_ordered_guided_next): Likewise.
20166         * ordered.c (GOMP_ordered_start): Likewise.
20168 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20170         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20171         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20172         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20173         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20174         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20175         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20176         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20177         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20178         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20180 2005-07-07  Eric Christopher  <echristo@redhat.com>
20181             Diego Novillo  <dnovillo@redhat.com>
20183         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20184         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20185         up code.
20186         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20187         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20188         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20189         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20190         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20191         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20192         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20194 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20196         * TOPLEVEL.patch: Remove.
20198 2005-05-16  Richard Henderson  <rth@redhat.com>
20200         * configure.ac: Test for clock_gettime.
20201         * config.h.in, configure: Rebuild.
20202         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20203         (omp_get_wtime): Use clock_gettime if available.
20204         (omp_get_wtick): Use clock_getres if available.
20206 2005-05-11  Richard Henderson  <rth@redhat.com>
20208         * config/linux/ia64/futex.h: New file.
20209         * configure.tgt: Use it.
20211         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20213 2005-05-07  Richard Henderson  <rth@redhat.com>
20215         * config/linux/powerpc/futex.h: New file.
20216         * configure.tgt: Use it.
20218         * config/linux/i486/futex.h: Merge ...
20219         * config/linux/x86_64/futex.h: ... into ...
20220         * config/linux/x86/futex.h: ... here.
20221         * configure.tgt: Update to match.
20223 2005-05-06  Richard Henderson  <rth@redhat.com>
20225         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20226         * config/linux/i486/futex.h: Likewise.
20227         * config/linux/x86_64/futex.h: Likewise.
20229         * config/linux/lock.c: New file.
20230         * config/linux/omp-lock.h: New file.
20232         * critical.c, env.h: Don't include omp.h
20233         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20234         * config/posix/time.c: Likewise.
20235         * config/posix/omp-lock.h: New file.
20236         * libgomp.h: Include omp-lock.h and omp.h.
20237         * Makefile.am (nodist_include_HEADERS): New.
20238         (omp.h): New rule.
20239         * configure.ac (PERL): New.
20240         * mkomp_h.pl: New file.
20241         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20242         with templates.
20243         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20245         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20246         build directory.  Re-add -march=i486 hack.
20248         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20249         (libgomp_link_flags): Remove.
20250         (libgomp_initialized): Remove.
20251         (libgomp_init): Don't protect from reinitialization.  Copy code
20252         from libstdc++ for getting the multilib set correctly.
20254 2005-05-05  Richard Henderson  <rth@redhat.com>
20256         * config/linux/alpha/futex.h: New file.
20257         * configure.tgt (alpha*-*-linux*): Use it.
20259         * config/posix/mutex.c: New file.
20260         * config/posix/sem.c: Use libgomp.h.
20262         * configure.tgt (x86_64-linux): Also test CC for -m32.
20263         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20265         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20266         after $gccpath.
20268         * Makefile.am (SUBDIRS): New.
20269         (libgomp_la_LDFLAGS): Add -lpthread.
20270         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20271         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20273         * libgomp_g.h: New file.
20274         * libgomp.h: Split out all public declarations to libgomp_g.h.
20275         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20276         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20277         * config/linux/sem.h: Likewise.
20278         * config/posix/sem.h: Likewise.
20280         * Makefile.am (AM_LDFLAGS): New.
20281         (libgomp_version_script): Split out from ...
20282         (libgomp_la_LDFLAGS): ... here.
20283         (libgomp_version_info): New.
20284         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20285         (LIBGOMP_ENABLE): New.
20286         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20287         (LIBGOMP_ENABLE_SYMVERS): New.
20288         * configure.ac (AC_INIT): Version 1.0.
20289         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20290         (enable-linux-futex): Likewise.  Rename from enable-futex.
20291         (libtool_VERSION): New.
20292         (LIBGOMP_ENABLE_SYMVERS): Use it.
20293         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20294         * Makefile.in, aclocal.m4, configure: Rebuild.
20296         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20297         (gomp_mutex_unlock_slow): Fix typo.
20298         * config/linux/sem.c: Similarly.
20299         (gomp_sem_post_slow): Fix typo.
20300         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20301         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20302         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20304         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20305         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20306         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20307         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20308         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20309         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20310         LDFLAGS.  Pull enable_futex check to top-level.
20311         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20312         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20314         First attempt at real configury.
20315         * Makefile, config.h: Remove file.
20316         * Makefile.am, Makefile.in: New file.
20317         * acinclude.m4 aclocal.m4: New file.
20318         * configure.ac, configure.tgt, configure: New file.
20320         * config/posix/lock.c: Rename from sys-lock.c.
20321         * config/posix/mutex.h: Rename from sys-mutex.h.
20322         * config/posix/sem.c: Rename from sys-sem.c.
20323         * config/posix/sem.h: Rename from sys-sem.h.
20324         * config/posix/proc.c: Rename from sys-proc.c.
20325         * config/posix/time.c: Rename from sys-proc.c.
20327         * config/linux/mutex.c: New file.
20328         * config/linux/mutex.h: New file.
20329         * config/linux/sem.c: New file.
20330         * config/linux/sem.h: New file.
20331         * config/linux/i486/futex.h: New file.
20332         * config/linux/x86_64/futex.h: New file.
20334 2005-05-04  Richard Henderson  <rth@redhat.com>
20336         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20337         * libgomp.h: Declare them.
20338         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20339         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20341 2005-05-04  Richard Henderson  <rth@redhat.com>
20343         * libgomp-1 code drop
20345 2005-05-04  Richard Henderson  <rth@redhat.com>
20347         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20348         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20349         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20350         (gomp_iter_static_next): Update.
20351         (gomp_ordered_static_next): Update.
20352         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20353         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20354         totally empty range.
20355         (gomp_loop_ordered_static_next): Refine test for calling
20356         gomp_ordered_static_next.
20357         * testsuite/ordered-1.c: Add case for more threads than iterations.
20359         * iter.c (gomp_iter_runtime_next_locked): Remove.
20360         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20361         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20362         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20363         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20364         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20365         gomp_loop_ordered_guided_next): Downcase name, make static, add
20366         an external alias with the old name.
20367         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20368         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20369         switch and call one of the above static functions.
20370         * libgomp.h: Update.
20372         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20373         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20374         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20375         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20376         GOMP_loop_ordered_guided_start): Update to match.
20377         * sections.c (GOMP_sections_start): Likewise.
20378         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20380         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20381         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20382         Use bounds check instead of modulus.
20383         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20384         (gomp_ordered_last): Don't sync with ordered_owner here.
20385         (gomp_ordered_next): Likewise.
20386         (gomp_ordered_static_loop_next): Likewise.
20387         * loop.c, libgomp.h: Update to match.
20389         * libgomp.h (GOMP_barrier): Declare.
20391         * testsuite/barrier-1.c: New file.
20392         * testsuite/critical-1.c: New file.
20393         * testsuite/ordered-2.c: New file.
20394         * testsuite/ordered-1.c: New file.
20395         * testsuite/sections-1.c: New file.
20396         * testsuite/single-1.c: New file.
20397         * testsuite/Makefile (TESTS): Add them.
20399 2005-05-04  Richard Henderson  <rth@redhat.com>
20401         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20402         * loop.c (GOMP_loop_static_start): If not the startup thread,
20403         acquire the mutex to wait for initialization complete.
20404         (GOMP_loop_ordered_static_start): Likewise.
20405         (GOMP_loop_ordered_runtime_start): Likewise.
20406         (GOMP_loop_ordered_static_first): Remove.
20407         (GOMP_loop_ordered_dynamic_first): Remove.
20408         (GOMP_loop_ordered_guided_first): Remove.
20409         (GOMP_loop_ordered_runtime_first): Remove.
20410         * ordered.c (gomp_ordered_loop_first): Post to own release when
20411         we're the first thread.
20412         (gomp_ordered_loop_last): Wait on release if not owner.
20413         (gomp_ordered_loop_next): Likewise.
20414         (gomp_ordered_static_loop_init): New.
20415         (gomp_ordered_static_loop_next): Use ordered_owner.
20416         (GOMP_ordered_start): Likewise.
20417         * work.c (gomp_new_work_share): Initialize ordered_owner.
20419 2005-05-03  Richard Henderson  <rth@redhat.com>
20421         * Makefile (OPT): New.
20422         (CFLAGS): Use it.
20424         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20425         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20426         * libgomp.h, libgomp.map, NOTES: Update to match.
20428         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20429         Add initialized and thr members.
20430         (gomp_thread_start): Pause when initially spawned to wait for
20431         the whole team to be created.
20432         (gomp_team_start): Release team members at the end.
20434         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20435         (f_foo_1): Use GOMP_loop_end.
20436         (f_foo_2): Use GOMP_loop_end_nowait.
20438         * testsuite/loop-2.c: New file.
20439         * testsuite/Makefile (TESTS): Add it.
20441 2005-05-03  Richard Henderson  <rth@redhat.com>
20443         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20444         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20445         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20446         initial work_share.
20448         * testsuite/Makefile: New file.
20449         * testsuite/loop-1.c: New file.
20451 2005-05-03  Richard Henderson  <rth@redhat.com>
20453         Initial implementation and checkin.
20455 Copyright (C) 2005-2023 Free Software Foundation, Inc.
20457 Copying and distribution of this file, with or without modification,
20458 are permitted in any medium without royalty provided the copyright
20459 notice and this notice are preserved.