Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blob337a16bf098615c15e982c1ef6b8b62efb428b98
1 2024-04-16  Chung-Lin Tang  <cltang@baylibre.com>
3         * libgomp.h (REFCOUNT_ACC_MAP_DATA): Define as (REFCOUNT_SPECIAL | 2).
4         * oacc-mem.c (acc_map_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
5         initialize dynamic_refcount as 1.
6         (acc_unmap_data): Adjust to use REFCOUNT_ACC_MAP_DATA,
7         (goacc_map_var_existing): Add REFCOUNT_ACC_MAP_DATA case.
8         (goacc_exit_datum_1): Add REFCOUNT_ACC_MAP_DATA case, respect
9         REFCOUNT_ACC_MAP_DATA when decrementing/finalizing. Force lowest
10         dynamic_refcount to be 1 for REFCOUNT_ACC_MAP_DATA.
11         (goacc_enter_data_internal): Add REFCOUNT_ACC_MAP_DATA case.
12         * target.c (gomp_increment_refcount): Return early for
13         REFCOUNT_ACC_MAP_DATA case.
14         (gomp_decrement_refcount): Likewise.
15         * testsuite/libgomp.oacc-c-c++-common/lib-96.c: New testcase.
16         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: Adjust
17         testcase error output scan test.
19 2024-04-08  Thomas Schwinge  <tschwinge@baylibre.com>
21         * plugin/plugin-gcn.c (init_hsa_context): Add and handle
22         'bool probe' parameter.  Adjust all users; errors during device
23         probing are fatal.
24         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Aside from
25         'CUDA_ERROR_NO_DEVICE', errors during device probing are fatal.
27 2024-04-05  Thomas Schwinge  <tschwinge@baylibre.com>
29         * testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.
31 2024-04-05  Jakub Jelinek  <jakub@redhat.com>
33         PR c++/114572
34         * testsuite/libgomp.c++/pr114572.C: New test.
36 2024-04-04  Tobias Burnus  <tburnus@baylibre.com>
38         * libgomp.texi (TR12): Honor post-TR12 directive name change; add
39         item about curly braces/BLOCK permitted in canonical loop nests.
41 2024-04-02  Jakub Jelinek  <jakub@redhat.com>
43         * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
44         with.
45         (omp_target_associate_ptr): Fix duplicated words; either either ->
46         either.
47         (omp_init_allocator): Fix duplicated words; be be -> be.
48         (omp_realloc): Fix duplicated words; is is -> is.
49         (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
50         * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
51         to to -> to.
53 2024-03-25  Richard Biener  <rguenther@suse.de>
55         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
56         (gcn_gfx1103_s): New.
57         (isa_hsa_name): Handle gfx1036.
58         (isa_code): Likewise.
59         (max_isa_vgprs): Likewise.
61 2024-03-22  Kwok Cheung Yeung  <kcyeung@baylibre.com>
63         * config/accel/target-indirect.c: Include string.h and hashtab.h.
64         Remove include of splay-tree.h.  Update comments.
65         (splay_tree_prefix, splay_tree_c): Delete.
66         (struct indirect_map_t): New.
67         (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
68         (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
69         (USE_SPLAY_TREE_LOOKUP): Rename to...
70         (USE_HASHTAB_LOOKUP): ..this.
71         (indirect_map, indirect_array): Delete.
72         (indirect_htab): New.
73         (build_indirect_map): Remove locking.  Build indirect map using
74         hashtab.
75         (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
76         address.
77         (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
78         * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
79         from first thread of first team only.
80         * config/nvptx/team.c (gomp_nvptx_main): Likewise.
81         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
82         Add missing break statements.
83         * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
84         xfail.
86 2024-03-22  Andrew Stubbs  <ams@baylibre.com>
88         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
89         (gcn_gfx1103_s): New.
90         (isa_hsa_name): Handle gfx1103.
91         (isa_code): Likewise.
92         (max_isa_vgprs): Likewise.
94 2024-03-14  Thomas Schwinge  <tschwinge@baylibre.com>
96         * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
97         initialization, copy, check.
99 2024-03-13  Tobias Burnus  <tburnus@baylibre.com>
101         PR fortran/114283
102         * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
104 2024-03-12  Tobias Burnus  <tburnus@baylibre.com>
106         * libgomp.texi (Device Memory Routines): Swap item order to match
107         the order of the '@node's of the '@subsection's.
109 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
111         * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
112         'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
113         (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
114         message.
116 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
118         * plugin/plugin-nvptx.c (nvptx_get_num_devices):
119         'cuDeviceGetCount' failure is fatal.
121 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
123         * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
124         for missing symbols.
125         * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
127 2024-03-06  John David Anglin  <danglin@gcc.gnu.org>
129         Revert:
130         2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
132         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
133         on 32-bit hppa.
134         * testsuite/libgomp.c/omp-loop03.c: Likewise.
136 2024-03-04  Jakub Jelinek  <jakub@redhat.com>
138         PR libgomp/114216
139         * target.c (gomp_target_rev): Change host_fn type and corresponding
140         cast from void (*)() to void (*) (void *).
142 2024-03-01  Jakub Jelinek  <jakub@redhat.com>
143             Tobias Burnus  <tburnus@baylibre.com>
145         PR c++/110347
146         * testsuite/libgomp.c++/target-lambda-3.C: Moved from
147         gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
148         * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
149         also work without offloading.
150         * testsuite/libgomp.c++/firstprivate-1.C: New test.
151         * testsuite/libgomp.c++/firstprivate-2.C: New test.
152         * testsuite/libgomp.c++/private-1.C: New test.
153         * testsuite/libgomp.c++/private-2.C: New test.
154         * testsuite/libgomp.c++/target-lambda-4.C: New test.
155         * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
157 2024-02-27  Tobias Burnus  <tburnus@baylibre.com>
159         * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
160         routines that simply map to their C counterpart.
161         * openacc.f90 (openacc): Add them.
162         * openacc_lib.h: Likewise.
163         * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
164         * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
165         * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
166         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
167         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
168         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
170 2024-02-21  Tobias Burnus  <tburnus@baylibre.com>
172         * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
173         'arch' value for nvptx.
175 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
177         * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
178         implemented.
180 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
182         * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
183         * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
184         * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
186 2024-02-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
188         PR testsuite/113448
189         * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
190         Call abort.
191         * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
192         Likewise.
194 2024-02-11  John David Anglin  <danglin@gcc.gnu.org>
196         PR libgomp/113843
197         * configure.tgt (hppa*-*-linux*): Define config_path.
199 2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
201         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
202         on 32-bit hppa.
203         * testsuite/libgomp.c/omp-loop03.c: Likewise.
205 2024-01-29  Tobias Burnus  <tburnus@baylibre.com>
207         * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
208         function not gfx90a for gfx1100/gfx1030 context selector.
210 2024-01-26  Richard Biener  <rguenther@suse.de>
212         * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
213         agents with unsupported ISA.
215 2024-01-26  Richard Biener  <rguenther@suse.de>
217         * plugin/plugin-gcn.c
218         (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
219         (isa_code): Return that instead of -1.
220         (GOMP_OFFLOAD_init_device): Adjust.
222 2024-01-26  Tobias Burnus  <tburnus@baylibre.com>
224         * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
225         for gfx1030 and gfx1100.
226         * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
227         * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
229 2024-01-26  Andrew Stubbs  <ams@baylibre.com>
231         * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
232         (omp_get_wtime): Add RDNA3-compatible variant.
233         * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
235 2024-01-24  Tobias Burnus  <tburnus@baylibre.com>
236             Sandra Loosemore  <sandra@codesourcery.com>
238         * libgomp.texi (Runtime Library Routines): Document
239         omp_pause_resource, omp_pause_resource_all and
240         omp_target_memcpy{,_rect}{,_async}.
242 2024-01-22  Tobias Burnus  <tburnus@baylibre.com>
244         * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
245         support is no longer enabled by default.
246         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
248 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
250         * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
251         timeout by 2 on hppa*-*-*.
253 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
255         * testsuite/libgomp.c/simd-math-1.c: Don't run on
256         hppa*-*-hpux*.
258 2024-01-17  Jakub Jelinek  <jakub@redhat.com>
260         PR middle-end/113409
261         * testsuite/libgomp.c/bitint-1.c: New test.
263 2024-01-11  Julian Brown  <julian@codesourcery.com>
265         * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
266         * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
267         * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
269 2024-01-10  Jakub Jelinek  <jakub@redhat.com>
271         PR libgomp/113192
272         * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
273         instead of \$(abs_top_srcdir)/testsuite/flock.
274         * configure: Regenerated.
276 2024-01-09  Julian Brown  <julian@codesourcery.com>
278         * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
279         now work.
280         * testsuite/libgomp.c++/baseptrs-6.C: New test.
281         * testsuite/libgomp.c++/ind-base-1.C: New test.
282         * testsuite/libgomp.c++/ind-base-2.C: New test.
283         * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
284         * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
285         * testsuite/libgomp.c++/map-comma-1.C: New test.
286         * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
287         * testsuite/libgomp.c++/struct-ref-1.C: New test.
288         * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
289         * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
290         * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
292 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
294         PR libgomp/113192
295         * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
296         rather than $srcdir/testsuite/flock.
297         * configure: Regenerated.
299 2024-01-08  Thomas Schwinge  <thomas@codesourcery.com>
301         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
302         'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
304 2024-01-08  Julian Brown  <julian@codesourcery.com>
306         * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
307         hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
308         hsa_amd_memory_async_copy_rect_fn function pointers.
309         (init_hsa_runtime_functions): Add above functions, with
310         DLSYM_OPT_FN.
311         (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
313 2024-01-08  Tobias Burnus  <tobias@codesourcery.com>
315         * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
316         (gcn_isa_name_len): Fix length.
317         (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
319 2024-01-06  Tobias Burnus  <tobias@codesourcery.com>
321         * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
322         (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
323         omp_target_is_accessible.
324         (Environment Display Routine): Uncomment and add
325         omp_display_env description.
326         (OMP_DISPLAY_ENV): Update wording, add 'see also'.
328 2024-01-06  Mark Wielaard  <mark@klomp.org>
330         * configure: Regenerate.
332 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
334         * libgomp.texi: Bump @copying's copyright year.
336 2023-12-21  Julian Brown  <julian@codesourcery.com>
338         * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
340 2023-12-20  Julian Brown  <julian@codesourcery.com>
342         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
343         avoid out-of-bounds array checks in CUDA runtime.
344         (GOMP_OFFLOAD_memcpy3d): Likewise.
345         * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
347 2023-12-18  Jakub Jelinek  <jakub@redhat.com>
349         * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
350         drop because of that unneeded target selector from other directives
351         and remove the aarch64 specific ones.
353 2023-12-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
355         * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
356         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
358 2023-12-15  Thomas Schwinge  <thomas@codesourcery.com>
360         * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
361         'dg-output's to 'target offload_device_nonshared_as'.
363 2023-12-15  Julian Brown  <julian@codesourcery.com>
365         * oacc-mem.c (find_group_last, goacc_enter_data_internal,
366         goacc_exit_data_internal, GOACC_enter_exit_data): Add
367         GOMP_MAP_STRUCT_UNORD support.
368         * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
369         Detect incorrect use of variable indexing of arrays of structs.
370         (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
371         GOMP_MAP_STRUCT_UNORD support.
372         * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
373         * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
374         * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
375         * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
377 2023-12-13  Julian Brown  <julian@codesourcery.com>
379         * testsuite/libgomp.fortran/map-subarray.f90: New test.
380         * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
381         * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
382         * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
383         * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
384         * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
385         * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
386         * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
387         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
388         descriptor-mapping changes.  Remove XFAIL.
390 2023-12-13  Julian Brown  <julian@codesourcery.com>
392         * target.c (gomp_map_pointer): Modify zero-length array section
393         pointer handling.
394         (gomp_attach_pointer): Likewise.
395         (gomp_map_fields_existing): Use gomp_map_0len_lookup.
396         (gomp_attach_pointer): Allow attaching null pointers (or Fortran
397         "unassociated" pointers).
398         (gomp_map_vars_internal): Handle zero-sized struct members.  Add
399         diagnostic for unmapped struct pointer members.
400         * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
401         * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
402         * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
403         * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
404         * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
405         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
406         "free".
407         * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
408         * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
409         * testsuite/libgomp.c++/class-array-1.C: New test.
410         * testsuite/libgomp.c++/baseptrs-3.C: New test.
411         * testsuite/libgomp.c++/baseptrs-4.C: New test.
412         * testsuite/libgomp.c++/baseptrs-5.C: New test.
413         * testsuite/libgomp.c++/baseptrs-8.C: New test.
414         * testsuite/libgomp.c++/baseptrs-9.C: New test.
415         * testsuite/libgomp.c++/ref-mapping-1.C: New test.
416         * testsuite/libgomp.c++/target-48.C: New test.
417         * testsuite/libgomp.c++/target-49.C: New test.
418         * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
419         * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
420         semantics.
421         * testsuite/libgomp.c++/target-this-3.C: Likewise.
422         * testsuite/libgomp.c++/target-this-4.C: Likewise.
423         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
424         * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
426 2023-12-13  Thomas Schwinge  <thomas@codesourcery.com>
428         * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
429         vs. '%ld' format string mismatch.
431 2023-12-13  Andrew Stubbs  <ams@codesourcery.com>
432             Thomas Schwinge  <thomas@codesourcery.com>
434         * allocator.c (MEMSPACE_ALLOC): Add PIN.
435         (MEMSPACE_CALLOC): Add PIN.
436         (MEMSPACE_REALLOC): Add PIN.
437         (MEMSPACE_FREE): Add PIN.
438         (MEMSPACE_VALIDATE): Add PIN.
439         (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
440         (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
441         (omp_aligned_calloc): Likewise.
442         (omp_realloc): Likewise.
443         (omp_free): Likewise.
444         * config/linux/allocator.c: New file.
445         * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
446         (MEMSPACE_CALLOC): Add PIN.
447         (MEMSPACE_REALLOC): Add PIN.
448         (MEMSPACE_FREE): Add PIN.
449         (MEMSPACE_VALIDATE): Add PIN.
450         * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
451         (MEMSPACE_CALLOC): Add PIN.
452         (MEMSPACE_REALLOC): Add PIN.
453         (MEMSPACE_FREE): Add PIN.
454         * libgomp.texi: Switch pinned trait to supported.
455         (MEMSPACE_VALIDATE): Add PIN.
456         * testsuite/libgomp.c/alloc-pinned-1.c: New test.
457         * testsuite/libgomp.c/alloc-pinned-2.c: New test.
458         * testsuite/libgomp.c/alloc-pinned-3.c: New test.
459         * testsuite/libgomp.c/alloc-pinned-4.c: New test.
461 2023-12-11  Lipeng Zhu  <lipeng.zhu@intel.com>
463         * testsuite/libgomp.fortran/rwlock_1.f90: New file.
464         * testsuite/libgomp.fortran/rwlock_2.f90: New file.
465         * testsuite/libgomp.fortran/rwlock_3.f90: New file.
467 2023-12-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
469         * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
470         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
472 2023-12-11  Tobias Burnus  <tobias@codesourcery.com>
474         * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
476 2023-12-08  Tobias Burnus  <tobias@codesourcery.com>
478         * allocator.c (struct fort_alloc_splay_tree_key_s,
479         fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
480         * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
481         * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
482         GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
483         (GOMP_5.1.1): ... here.
484         * libgomp.texi (Impl. Status, Memory management): Update for
485         allocators/allocate directives.
486         * splay-tree.c: Handle splay_tree_static define to declare all
487         functions as static.
488         (splay_tree_lookup_node): New.
489         * splay-tree.h: Handle splay_tree_decl_only define.
490         (splay_tree_lookup_node): New prototype.
491         * target.c: Define splay_tree_static for 'reverse'.
492         * testsuite/libgomp.fortran/allocators-1.f90: New test.
493         * testsuite/libgomp.fortran/allocators-2.f90: New test.
494         * testsuite/libgomp.fortran/allocators-3.f90: New test.
495         * testsuite/libgomp.fortran/allocators-4.f90: New test.
496         * testsuite/libgomp.fortran/allocators-5.f90: New test.
498 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
500         * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
501         (TEAM_ARENA_FREE): Likewise.
502         (TEAM_ARENA_END): Likewise.
503         (GCN_LOWLAT_HEAP): New.
504         * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
505         (__gcn_lowlat_init): New prototype.
506         (gomp_gcn_enter_kernel): Initialize the low-latency heap.
507         * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
508         (TEAM_ARENA_FREE): Likewise.
509         (TEAM_ARENA_END): Likewise.
510         * plugin/plugin-gcn.c (lowlat_size): New variable.
511         (print_kernel_dispatch): Label the group_segment_size purpose.
512         (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
513         (create_kernel_dispatch): Pass low-latency head allocation to kernel.
514         (run_kernel): Use shadow; don't assume values.
515         * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
516         * config/gcn/allocator.c: New file.
517         * libgomp.texi: Document low-latency implementation details.
519 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
521         * allocator.c (MEMSPACE_VALIDATE): New macro.
522         (omp_init_allocator): Use MEMSPACE_VALIDATE.
523         (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
524         (omp_aligned_calloc): Likewise.
525         (omp_realloc): Likewise.
526         * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
527         (MEMSPACE_VALIDATE): New macro.
528         (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
529         * libgomp.texi: Document low-latency implementation details.
530         * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
531         * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
532         * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
533         * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
534         * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
535         * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
536         * testsuite/libgomp.c/omp_alloc-traits.c: New test.
538 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
539             Kwok Cheung Yeung   <kcy@codesourcery.com>
540             Thomas Schwinge  <thomas@codesourcery.com>
542         * allocator.c (MEMSPACE_ALLOC): New macro.
543         (MEMSPACE_CALLOC): New macro.
544         (MEMSPACE_REALLOC): New macro.
545         (MEMSPACE_FREE): New macro.
546         (predefined_alloc_mapping): New array.  Add _Static_assert to match.
547         (ARRAY_SIZE): New macro.
548         (omp_aligned_alloc): Use MEMSPACE_ALLOC.
549         Implement fall-backs for predefined allocators.  Simplify existing
550         fall-backs.
551         (omp_free): Use MEMSPACE_FREE.
552         (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
553         predefined allocators.  Simplify existing fall-backs.
554         (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
555         Implement fall-backs for predefined allocators.  Simplify existing
556         fall-backs.
557         * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
558         (__nvptx_lowlat_init): New prototype.
559         (gomp_nvptx_main): Call __nvptx_lowlat_init.
560         * libgomp.texi: Update memory space table.
561         * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
562         (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
563         (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
564         * basic-allocator.c: New file.
565         * config/nvptx/allocator.c: New file.
566         * testsuite/libgomp.c/omp_alloc-1.c: New test.
567         * testsuite/libgomp.c/omp_alloc-2.c: New test.
568         * testsuite/libgomp.c/omp_alloc-3.c: New test.
569         * testsuite/libgomp.c/omp_alloc-4.c: New test.
570         * testsuite/libgomp.c/omp_alloc-5.c: New test.
571         * testsuite/libgomp.c/omp_alloc-6.c: New test.
573 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
575         * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
576         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
577         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
578         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
579         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
580         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
581         * testsuite/libgomp.c/declare-variant-4.h: Likewise.
582         * testsuite/libgomp.c/declare-variant-4.c: New.
584 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
586         * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
587         into 'dg-do link'.
588         * testsuite/libgomp.c/declare-variant-3.c: New.
589         * testsuite/libgomp.c/declare-variant-3.h: Extend.
591 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
593         * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
594         'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
595         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
596         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
597         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
598         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
599         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
600         * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
601         'scan-offload-tree-dump' to
602         'only_for_offload_target amdgcn-amdhsa'.
603         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
604         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
605         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
606         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
607         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
609 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
611         * testsuite/libgomp.c/declare-variant-3-sm30.c:
612         'dg-additional-options -foffload=nvptx-none'.
613         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
614         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
615         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
616         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
617         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
619 2023-11-29  Thomas Schwinge  <thomas@codesourcery.com>
621         * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
622         'scan-offload-ipa-dump's to
623         'only_for_offload_target amdgcn-amdhsa'.
624         * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
625         * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
627 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
629         * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
630         is now supported.
632 2023-11-22  Thomas Schwinge  <thomas@codesourcery.com>
634         * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
635         (f75, f80, f): Add '__attribute__ ((noipa))'.
636         * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
637         (gfx908, gfx90a, f): Likewise.
639 2023-11-15  Andrew Stubbs  <ams@codesourcery.com>
640             Andrew Jenner   <andrew@codesourcery.com>
642         * plugin/plugin-gcn.c (max_isa_vgprs): New.
643         (run_kernel): CDNA2 devices have more VGPRs.
645 2023-11-10  Tobias Burnus  <tobias@codesourcery.com>
647         * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
648         renamed section from TR11.
650 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
652         * config/linux/target-indirect.c: Move to...
653         * target-indirect.c: ...here.
655 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
657         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
658         * Makefile.in: Regenerate.
659         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
660         (GOMP_OFFLOAD_load_image): Add extra argument.
661         * libgomp.h (struct indirect_splay_tree_key_s): New.
662         (indirect_splay_tree_node, indirect_splay_tree,
663         indirect_splay_tree_key): New.
664         (indirect_splay_compare): New.
665         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
666         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
667         calls in target region and on indirect clause.
668         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
669         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
670         * oacc-host.c (host_load_image): Add extra argument.
671         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
672         enough, read host indirect functions table and pass to
673         load_image_func.
674         * config/accel/target-indirect.c: New.
675         * config/linux/target-indirect.c: New.
676         * config/gcn/team.c (build_indirect_map): Add prototype.
677         (gomp_gcn_enter_kernel): Initialize support for indirect
678         function calls on GCN target.
679         * config/nvptx/team.c (build_indirect_map): Add prototype.
680         (gomp_nvptx_main): Initialize support for indirect function
681         calls on NVPTX target.
682         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
683         indirect functions count.
684         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
685         is high enough, build address translation table and copy it to target
686         memory.
687         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
688         functions count.
689         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
690         is high enough, Build address translation table and copy it to target
691         memory.
692         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
693         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
694         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
696 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
698         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
699         supported also in C.
701 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
703         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
704         'acc_map_data' variant.
706 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
708         * oacc-parallel.c (GOACC_data_start): Handle
709         'GOACC_FLAG_LOCAL_DEVICE'.
710         (GOACC_parallel_keyed): Simplify accordingly.
711         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
713 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
715         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
716         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
717         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
718         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
719         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
721 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
723         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
724         GOACC_FLAG_LOCAL_DEVICE case.
725         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
727 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
729         * Makefile.am: Handle Darwin rpaths.
730         * Makefile.in: Regenerate.
731         * configure: Regenerate.
732         * configure.ac: Handle Darwin rpaths
734 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
736         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
737         (isa_hsa_name): Recognise gfx1030.
738         (isa_code): Likewise.
739         * team.c (defined): Remove s_endpgm.
741 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
743         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
744         _OPENMP >= 201811.
746 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
748         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
749         improve wording especially for Fortran; mention -fopenmp-simd.
750         (Enabling OpenACC): Minor cleanup; remove conditional compilation
751         sentinel.
753 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
755         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
756         Actually document what the function does.
757         (GCC_ACC_NOTIFY): Remove unused env var.
759 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
761         * libgomp.texi: Replace most future tense by present tense.
763 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
765         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
766         dg-additional-options "-fdump-tree-gimple"; fix scan.
768 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
770         * libgomp.texi: Fix some typos.
771         (Memory Management Routines): Document remaining 5.x routines.
772         (Memory allocation): Make clear when the section applies.
774 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
776         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
777         supports the allocate directive for stack variables.
778         * testsuite/libgomp.fortran/allocate-5.f90: New test.
779         * testsuite/libgomp.fortran/allocate-6.f90: New test.
780         * testsuite/libgomp.fortran/allocate-7.f90: New test.
781         * testsuite/libgomp.fortran/allocate-8.f90: New test.
783 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
785         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
786         OMP_TARGET_OFFLOAD.
787         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
788         clarify MANDATORY behavior.
790 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
792         * env.c (initialize_env): Use do_adjust_default_spincount.
793         * config/linux/x86/spincount.h: New file.
795 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
797         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
799 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
801         * libgomp.texi (Device Memory Routines): New.
803 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
805         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
806         and that other target archs have no 'arch'/'isa' traits implemented.
808 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
810         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
811         implemented for C only.
812         * testsuite/libgomp.c/allocate-4.c: New test.
813         * testsuite/libgomp.c/allocate-5.c: New test.
814         * testsuite/libgomp.c/allocate-6.c: New test.
816 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
818         PR c++/111392
819         * libgomp.texi: Mark decl attribute was added to the C++ attribute
820         syntax as implemented.
822 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
824         PR libgomp/111413
825         * env.c (initialize_env): Don't dereference environ if it is NULL.
826         Reindent.
828 2023-09-18  Richard Biener  <rguenther@suse.de>
830         PR tree-optimization/111294
831         * team.c (gomp_team_start): Assert alloca size to avoid false
832         positive alloc-size diagnostic.
834 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
835             Chung-Lin Tang  <cltang@codesourcery.com>
837         PR testsuite/91884
838         PR testsuite/109951
839         * configure.ac: Revert earlier changes, instead
840         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
841         * Makefile.in: Regenerate.
842         * configure: Likewise.
843         * testsuite/Makefile.in: Likewise.
844         * testsuite/lib/libgomp.exp (libgomp_init): Remove
845         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
846         If '--with-build-sysroot=[...]' was specified, use it for
847         build-tree testing.
848         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
849         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
850         (SYSROOT_CFLAGS_FOR_TARGET): Set.
851         * testsuite/libgomp.c++/c++.exp (lang_source_re)
852         (lang_include_flags): Set for build-tree testing.
853         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
854         (lang_include_flags): Likewise.
856 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
858         * libgomp.texi (Memory Management Routines): New; add documentation for
859         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
860         omp_get_default_allocator.
861         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
863 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
865         * target.c (gomp_unload_device): Remove tailing whitespace.
867 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
868             Thomas Schwinge  <thomas@codesourcery.com>
870         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
872 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
874         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
876 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
878         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
879         * testsuite/libgomp.fortran/imperfect1.f90: New.
880         * testsuite/libgomp.fortran/imperfect2.f90: New.
881         * testsuite/libgomp.fortran/imperfect3.f90: New.
882         * testsuite/libgomp.fortran/imperfect4.f90: New.
883         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
884         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
885         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
886         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
888 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
890         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
891         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
892         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
893         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
894         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
895         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
896         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
897         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
898         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
899         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
901 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
903         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
904         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
905         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
906         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
907         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
908         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
909         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
910         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
911         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
912         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
913         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
914         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
915         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
917 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
919         * testsuite/lib/libgomp.exp: Add effective target.
920         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
921         functions.
923 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
925         * libgomp.texi (OpenMP 5.2 status): Add depobj with
926         destroy-var argument as 'N'. Mark defaultmap with
927         'all' category as 'Y'.
929 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
931         PR middle-end/111017
932         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
934 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
936         PR libgomp/111024
937         * allocator.c (gomp_init_libnuma): Call numa_available; if
938         not available or not returning 0, disable libnuma usage.
940 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
942         * configure: Regenerate.
944 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
946         * configure: Regenerate.
948 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
950         * configure: Regenerate.
952 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
954         * configure: Regenerate.
956 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
958         * configure: Regenerate.
960 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
962         * configure: Regenerate.
964 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
966         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
967         GOMP_OFFLOAD_CAP_SHARED_MEM.
968         (omp_target_memcpy_rect_copy): Likewise for lock condition.
969         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
970         memcpy3d/memcpy2d.
971         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
972         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
973         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
975 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
977         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
978         GOMP_OFFLOAD_memcpy3d): New prototypes.
979         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
980         and memcpy3d_func.
981         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
982         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
983         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
984         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
985         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
986         GOMP_OFFLOAD_memcpy3d): New.
987         * target.c (omp_target_memcpy_rect_worker):
988         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
989         Permit all device-to-device copyies; invoke new plugins for
990         2D and 3D copying when available.
991         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
992         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
993         * testsuite/libgomp.fortran/target-12.f90: Likewise.
994         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
996 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
998         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
999         (Tasking Routines): Document omp_in_explicit_task.
1000         (Implementation-defined ICV Initialization): Use @ref not @code.
1002 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
1004         * libgomp.texi (OpenMP Runtime Library Routines):
1005         Split long list by adding sections and moving routines there.
1006         (OMP_ALLOCATORS): Fix typo.
1008 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
1010         PR fortran/107424
1011         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
1012         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
1013         commented tests.
1014         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
1015         test file; tests are in non-rectangular-loop-1.f90.
1016         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
1017         testcase to use a non-constant step to retain the 'sorry' test.
1018         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
1020 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
1021             Chung-Lin Tang  <cltang@codesourcery.com>
1023         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
1024         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
1026 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
1028         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
1029         the traits. Add crossref to 'Memory allocation'.
1030         (Memory allocation): Refer to OMP_ALLOCATOR for the available
1031         traits and allocators/mem spaces; document the default value
1032         for the pool_size trait.
1034 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
1036         * allocator.c (omp_init_allocator): Check whether symbol from
1037         dlopened libnuma is available before using libnuma for
1038         allocations.
1040 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
1042         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
1043         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
1044         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
1046 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
1048         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
1049         'Memory allocation' section which contains the full status.
1050         (TR11): Remove differently worded duplicated entry.
1052 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
1054         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
1055         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
1056         add GOMP_MEMKIND_LIBNUMA.
1057         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
1058         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
1059         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1060         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
1061         needed.
1062         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
1063         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
1064         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
1065         updated for libnuma usage.
1066         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
1067         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
1069 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
1071         * allocator.c (omp_init_allocator): Use malloc for
1072         omp_high_bw_mem_space when the memkind lib is unavailable
1073         instead of returning omp_null_allocator.
1074         * libgomp.texi (OpenMP 5.0): Fix typo.
1075         (Memory allocation with libmemkind): Document implementation
1076         in more detail.
1078 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
1080         * libgomp.texi: Use @var for ICV vars.
1081         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
1082         document which ICV is set and which scope the ICV has; extend/cleanup
1083         some @ref.
1084         (Implementation-defined ICV Initialization): New.
1085         (nvptx): Document the implementation-defined used per-warp stack size.
1087 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
1089         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
1090         error.
1092 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
1094         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
1095         as expected dg-output.
1097 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
1099         PR middle-end/110270
1100         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
1101         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
1102         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
1103         * testsuite/libgomp.c/target-19.c: Update expected value.
1104         * testsuite/libgomp.c++/target-18.C: Likewise.
1105         * testsuite/libgomp.c++/target-19.C: Likewise.
1106         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
1107         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
1108         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
1110 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
1112         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
1113         gomp_init_targets_once was called before using default-device-var.
1114         * testsuite/libgomp.c/target-55.c: New test.
1115         * testsuite/libgomp.c/target-55a.c: New test.
1117 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
1119         * env.c (gomp_def_allocator_envvar): New var.
1120         (parse_allocator): Handle OpenMP 5.1 syntax.
1121         (cleanup_env): New.
1122         (omp_display_env): Output gomp_def_allocator_envvar
1123         for an allocator with traits.
1124         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
1125         OMP_DISPLAY_AFFINITY): New.
1126         * testsuite/libgomp.c/allocator-1.c: New test.
1127         * testsuite/libgomp.c/allocator-2.c: New test.
1128         * testsuite/libgomp.c/allocator-3.c: New test.
1129         * testsuite/libgomp.c/allocator-4.c: New test.
1130         * testsuite/libgomp.c/allocator-5.c: New test.
1131         * testsuite/libgomp.c/allocator-6.c: New test.
1133 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1135         * target.c (resolve_device): Align a
1136         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1137         * testsuite/libgomp.c/target-51.c: Adjust.
1139 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1141         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1142         set.
1143         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1144         Likewise.
1145         * testsuite/libgomp.c/simd-math-1.c: Remove
1146         '-foffload-options=-lm'.
1147         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1148         Likewise.
1149         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1150         Likewise.
1152 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1154         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1155         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1156         Likewise.
1158 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1160         * testsuite/libgomp.c/target-51.c: Fix typo.
1162 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
1164         * env.c (gomp_default_icv_values): Init default_device_var to
1165         an nonconforming value - INT_MIN.
1166         (initialize_env): After env-var parsing, set default_device_var to
1167         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1168         (omp_display_env): If default_device_var is INT_MIN, call
1169         gomp_init_targets_once.
1170         * icv-device.c (omp_get_default_device): Likewise.
1171         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1172         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1173         * target.c (resolve_device): Improve error message device-num < 0
1174         with 'mandatory' and no no-host devices available.
1175         (gomp_target_init): Set default-device-var if INT_MIN.
1176         * testsuite/libgomp.c/target-48.c: New test.
1177         * testsuite/libgomp.c/target-49.c: New test.
1178         * testsuite/libgomp.c/target-50.c: New test.
1179         * testsuite/libgomp.c/target-50a.c: New test.
1180         * testsuite/libgomp.c/target-51.c: New test.
1181         * testsuite/libgomp.c/target-52.c: New test.
1182         * testsuite/libgomp.c/target-53.c: New test.
1183         * testsuite/libgomp.c/target-54.c: New test.
1185 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
1187         PR libgomp/109837
1188         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1189         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1191 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
1193         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1194         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1195         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1196         error message.
1197         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1198         changed error message.
1199         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1200         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1201         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1202         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1203         extend testcase to check that data is copied when needed.
1204         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1205         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1207 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
1208             Tobias Burnus  <tobias@codesourcery.com>
1210         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1211         also for non-offload_device targets; check that it runs
1212         successfully for those and for all until a checkpoint for all
1213         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1214         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1215         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1216         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1217         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1218         add missing vars to map clause.
1220 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
1222         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1223         unified_address requirement as supported.
1224         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1225         'unified_address' from the not-supported requirements.
1227 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
1228             Tobias Burnus  <tobias@codesourcery.com>
1230         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1231         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1232         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1233         modifier.
1234         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1235         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1236         Emit runtime error if memory region not present.
1237         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1238         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1239         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1240         * testsuite/libgomp.fortran/target-present-1.f90: New test.
1241         * testsuite/libgomp.fortran/target-present-2.f90: New test.
1242         * testsuite/libgomp.fortran/target-present-3.f90: New test.
1244 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1246         PR testsuite/66005
1247         * testsuite/lib/libgomp.exp: 'flock' through stdout.
1248         * testsuite/flock: New.
1249         * configure.ac (FLOCK): Point to that if no 'flock' available, but
1250         'perl' is.
1251         * configure: Regenerate.
1253 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1255         * configure.ac (PERL): Remove.
1256         * configure: Regenerate.
1257         * Makefile.in: Likewise.
1258         * testsuite/Makefile.in: Likewise.
1260 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
1262         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1264 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
1266         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1268 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
1270         PR libgomp/109875
1271         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1272         * config/nvptx/target.c (GOMP_teams4): Likewise.
1273         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1274         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1275         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1276         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1278 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
1280         PR libgomp/109904
1281         * configure.ac (link_gomp): Include also $DL_LIBS.
1282         * configure: Regenerated.
1284 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
1286         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1287         'target exit data'.
1288         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1289         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1290         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1291         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1293 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1295         PR testsuite/66005
1296         * configure.ac: Look for 'flock'.
1297         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1298         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1299         * testsuite/lib/libgomp.exp: ... but here, instead.
1300         (libgomp_load): Override for parallel testing.
1301         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1302         * configure: Regenerate.
1303         * Makefile.in: Regenerate.
1304         * testsuite/Makefile.in: Regenerate.
1306 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1307             Thomas Schwinge  <thomas@codesourcery.com>
1309         PR testsuite/66005
1310         * testsuite/Makefile.am (PWD_COMMAND): New variable.
1311         (%/site.exp): New target.
1312         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1313         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1314         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1315         (check_p_subdirs)
1316         (check_DEJAGNU_libgomp_targets): New variables.
1317         ($(check_DEJAGNU_libgomp_targets)): New target.
1318         ($(check_DEJAGNU_libgomp_targets)): New dependency.
1319         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1320         * testsuite/Makefile.in: Regenerate.
1321         * testsuite/lib/libgomp.exp: For parallel testing,
1322         'load_file ../libgomp-test-support.exp'.
1324 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1326         PR testsuite/91884
1327         * configure.ac: 'AC_SUBST(CXX)'.
1328         * configure: Regenerate.
1329         * Makefile.in: Likewise.
1330         * testsuite/Makefile.in: Likewise.
1331         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1332         (GFORTRAN_UNDER_TEST): Set.
1333         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1334         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1335         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1336         * testsuite/libgomp.fortran/fortran.exp: Use
1337         'GFORTRAN_UNDER_TEST'.
1338         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1340 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1342         PR testsuite/91884
1343         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1344         specify compiler.
1345         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1346         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1347         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1348         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1349         Likewise.
1350         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1351         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1352         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1353         Likewise.
1355 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
1357         PR libstdc++/109816
1358         * testsuite/libgomp.c++/target-map-class-1.C: New test.
1359         * testsuite/libgomp.c++/target-map-class-2.C: New test.
1361 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1363         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1364         'lang_library_path' into a list of 'lang_library_paths'.
1365         * testsuite/libgomp.c++/c++.exp: Adjust.
1366         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1367         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
1368         libquadmath, too.
1369         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1371 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1373         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1374         at 'lang_test_file_found'.
1375         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1376         'return' early if not able to test.  Simplify 'ld_library_path' setup.
1377         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1378         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1379         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1381 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1383         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1384         first.
1385         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1386         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1387         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1389 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1391         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1392         * testsuite/libgomp.c/c.exp: Likewise.
1393         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1394         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1395         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1396         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1397         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1399 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1401         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1402         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1403         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1404         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1405         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1406         'lang_test_file'.
1407         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1408         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1409         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1410         'lang_test_file_found' instead of 'lang_test_file'.
1412 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1414         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1415         set.
1416         * testsuite/libgomp.c++/c++.exp: Likewise.
1417         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1419 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1421         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1422         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1424 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1426         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1427         of 'libstdcxx_includes'.
1428         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1430 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1432         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1433         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1434         * libgomp.h (gomp_target_rev): Adjust.
1435         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1436         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1437         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1438         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1439         (rev_off_host_to_dev_cpy): Remove.
1440         (GOMP_OFFLOAD_run): Adjust.
1442 2023-05-04  Julian Brown  <julian@codesourcery.com>
1444         PR fortran/109622
1445         * testsuite/libgomp.fortran/pr109622.f90: Move test...
1446         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1447         vector length warning.
1448         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1449         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
1450         missing copyin/copyout variable. Ignore vector length warnings.
1451         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1452         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
1453         vector length warnings.
1454         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1456 2023-04-28  Julian Brown  <julian@codesourcery.com>
1458         PR fortran/109622
1459         * testsuite/libgomp.fortran/pr109622.f90: New test.
1460         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1461         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1463 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
1465         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1466         * testsuite/libgomp.c/scan-23.c: New test.
1467         * testsuite/libgomp.fortran/scan-2.f90: New test.
1469 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1471         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1472         weak_undefined options.
1474 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
1476         * libgomp.texi (Offload-Target Specifics): Grammar fix.
1478 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
1480         PR fortran/104949
1481         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1482         caveat/safeguard.
1484 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1486         PR libgomp/90596
1487         * target.c (gomp_map_vars_internal): Allow for
1488         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1489         * oacc-parallel.c (GOACC_parallel_keyed): Pass
1490         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1491         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1492         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1493         Adjust, simplify.
1494         (gomp_offload_free): Remove.
1495         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1496         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1497         (cuda_free_argmem): Remove.
1498         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1499         Adjust.
1501 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1503         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1504         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1505         data.
1507 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1509         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1510         'GOMP_MAP_IF_PRESENT'.
1511         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1512         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1513         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1514         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1515         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1516         testing.
1517         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1519 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1521         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1522         shortcut.
1524 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1526         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1527         another aspect of OpenACC 'async' semantics.
1529 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1531         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1532         position.
1533         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1534         Verify 'acc_ev_alloc', 'acc_ev_free'.
1536 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
1538         PR libgomp/109062
1539         * env.c (wait_policy): Initialize to -1.
1540         (initialize_icvs): Initialize icvs->wait_policy to -1.
1541         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1543 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
1545         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1547 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1548             Paul-Antoine Arras  <pa@codesourcery.com>
1550         * testsuite/libgomp.c/simd-math-1.c: New testcase.
1552 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
1554         PR middle-end/108546
1555         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1556         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1558 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1560         * testsuite/libgomp.fortran/alloc-10.f90: Use
1561         '-Wno-complain-wrong-lang'.
1562         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1563         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1564         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1565         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1566         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1567         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1568         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1569         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1570         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1571         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1572         Likewise.
1573         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1574         Likewise.
1575         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1576         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1577         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1578         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1579         'dg-prune-output'.
1581 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1583         * libgomp.texi: Fix typos - theads -> threads.
1585 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1587         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1588         comment typo and improve its wording.
1590 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1592         * target.c (gomp_target_rev): Dereference ptr
1593         to get device address.
1594         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1595         for unallocated allocatable.
1597 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1599         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1600         kind check.
1601         (GOMP_target_enter_exit_data): If the next map item is
1602         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1603         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1605 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
1607         PR fortran/107424
1608         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1609         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1610         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1611         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1612         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1613         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1615 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
1617         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1618         offloading compilation.
1620 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1622         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1623         freeing not allocated memory.
1624         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1626 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1628         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1629         reverse offload.
1630         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1631         reverse-offload requirement.
1633 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
1635         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1636         (DEFAULT_TEAM_ARENA_SIZE): New define.
1637         (struct heap): Move to this file.
1638         (struct kernargs_abi): Likewise.
1639         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1640         the kernargs.
1641         * libgomp.h: Include libgomp-gcn.h.
1642         (TEAM_ARENA_SIZE): Remove.
1643         (team_malloc): Update the error message.
1644         * plugin/plugin-gcn.c (struct kernargs): Move common content to
1645         struct kernargs_abi.
1646         (struct agent_info): Rename team arenas to ephemeral memories.
1647         (struct team_arena_list): Rename ....
1648         (struct ephemeral_memories_list): to this.
1649         (struct heap): Delete.
1650         (team_arena_size): New variable.
1651         (stack_size): New variable.
1652         (print_kernel_dispatch): Update debug messages.
1653         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1654         Read GCN_STACK_SIZE.
1655         (get_team_arena): Rename ...
1656         (configure_ephemeral_memories): ... to this, and set up stacks.
1657         (release_team_arena): Rename ...
1658         (release_ephemeral_memories): ... to this.
1659         (destroy_team_arenas): Rename ...
1660         (destroy_ephemeral_memories): ... to this.
1661         (create_kernel_dispatch): Add num_threads parameter.
1662         Adjust for kernargs_abi refactor and ephemeral memories.
1663         (release_kernel_dispatch): Adjust for ephemeral memories.
1664         (run_kernel): Pass thread-count to create_kernel_dispatch.
1665         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1666         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1668 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
1670         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1672 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1674         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1675         usage, remove unused -fdump-tree-original.
1676         * testsuite/libgomp.fortran/allocate-4.f90: New.
1678 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1680         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1681         (GCN): Add item about 'omp requires'.
1682         (nvptx): Likewise; add item about reverse offload.
1684 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
1686         PR fortran/108558
1687         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1689 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
1691         * libgomp.texi (OpenMP 5.0): Set non-rectangular
1692         loop nest back to 'P' as Fortran support is incomplete.
1694 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
1696         PR middle-end/108459
1697         * testsuite/libgomp.c/pr108459.c: New test.
1699 2023-01-17  Martin Liska  <mliska@suse.cz>
1701         * Makefile.in: Regenerate.
1702         * configure: Regenerate.
1704 2023-01-07  LIU Hao  <lh_mouse@126.com>
1706         PR middle-end/108300
1707         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1708         <windows.h>.
1710 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
1712         PR c++/108286
1713         * testsuite/libgomp.c++/pr108286.C: New test.
1715 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
1717         * libgomp.texi: Bump @copying's copyright year.
1719 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
1721         PR target/99555
1722         * config/nvptx/bar.c (generation_to_barrier): Remove.
1723         (futex_wait,futex_wake,do_spin,do_wait): Remove.
1724         (GOMP_WAIT_H): Remove.
1725         (#include "../linux/bar.c"): Remove.
1726         (gomp_barrier_wait_end): New function.
1727         (gomp_barrier_wait): Likewise.
1728         (gomp_barrier_wait_last): Likewise.
1729         (gomp_team_barrier_wait_end): Likewise.
1730         (gomp_team_barrier_wait): Likewise.
1731         (gomp_team_barrier_wait_final): Likewise.
1732         (gomp_team_barrier_wait_cancel_end): Likewise.
1733         (gomp_team_barrier_wait_cancel): Likewise.
1734         (gomp_team_barrier_cancel): Likewise.
1735         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1736         (gomp_barrier_init): Remove init of waiters, lock fields.
1737         (gomp_team_barrier_wake): Remove prototype, add new static inline
1738         function.
1740 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1742         PR c++/108180
1743         * testsuite/libgomp.c++/pr108180.C: New test.
1745 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1747         PR libfortran/108056
1748         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1749         accidentally added file.
1751 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1753         PR libfortran/108056
1754         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1756 2022-12-14  Julian Brown  <julian@codesourcery.com>
1758         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1759         test.
1761 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1763         * libgomp.h (struct target_mem_desc): Predeclare; move
1764         below after 'reverse_splay_tree_node' and add rev_array
1765         member.
1766         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1767         (reverse_splay_tree_node, reverse_splay_tree,
1768         reverse_splay_tree_key): New typedef.
1769         (struct gomp_device_descr): Add mem_map_rev member.
1770         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1771         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1772         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1773         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1774         splay_tree_callback but returning int not void.
1775         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1776         taking splay_tree_callback_stop as argument.
1777         * splay-tree.c (splay_tree_foreach_internal_lazy,
1778         splay_tree_foreach_lazy): New; but early exit if callback returns
1779         nonzero.
1780         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1781         (gomp_map_lookup_rev): New.
1782         (gomp_load_image_to_device): Handle reverse-offload function
1783         lookup table.
1784         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1785         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1786         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1787         gomp_map_cdata_lookup): New auxiliary structs and functions for
1788         gomp_target_rev.
1789         (gomp_target_rev): Implement reverse offloading and its mapping.
1790         (gomp_target_init): Init current_device.mem_map_rev.root.
1791         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1792         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1793         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1794         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1795         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1796         mapping of on-device allocated variables.
1798 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1800         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1801         item about 'align'; mark clause as 'Y' and directive as 'N'.
1802         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1803         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1805 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1807         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1808         allow processing of device-specific values.
1809         (omp_set_teams_thread_limit): Likewise.
1810         (ialias): Likewise.
1811         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1812         (omp_set_teams_thread_limit): Likewise.
1813         (ialias): Likewise.
1814         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1815         (ialias): Likewise.
1816         (omp_set_teams_thread_limit): Likewise.
1817         * icv.c (omp_set_teams_thread_limit): Removed.
1818         (omp_get_teams_thread_limit): Likewise.
1819         (ialias): Likewise.
1820         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1821         to the limitation of the number of teams.
1822         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1823         the number of teams by twice the number of compute units.
1824         (parse_target_attributes): Limit the number of teams on gcn offload
1825         devices.
1826         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1827         handling.
1828         (gomp_load_image_to_device): Added a size check for the ICVs struct
1829         variable.
1830         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1831         copy back the ICV values from device to host.
1832         (GOMP_target_ext): Update the number of teams and threads in the kernel
1833         args also considering device-specific values.
1834         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1835         of OMP_TEAMS_THREAD_LIMIT from the environment.
1836         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1837         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1838         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1839         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1840         * testsuite/libgomp.fortran/icv-5.f90: New test.
1841         * testsuite/libgomp.fortran/icv-6.f90: New test.
1843 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1845         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1846         (TR11): Add missing '@tab N @tab'.
1848 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1850         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1852 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1854         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1855         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1856         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1857         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1858         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1859         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1860         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1862 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1864         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1866 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1868         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1869         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1870         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1871         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1873 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1875         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1876         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1877         as valid and the code having no reverse-offload code.
1878         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1880 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1882         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1883         and status for Technical Report (TR) 11.
1885 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1887         * config/gcn/libgomp-gcn.h (struct output):
1888         Remove 'msg_u64' from the union, change
1889         value_u64[2] to value_u64[6].
1890         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1891         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1892         Likewise.
1894 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1896         * config/gcn/libgomp-gcn.h: New file; contains
1897         struct output, declared previously in plugin-gcn.c.
1898         * config/gcn/target.c: Include it.
1899         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1900         (GOMP_target_ext): Handle reverse offload.
1901         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1902         (struct kernargs): Replace struct def by the one
1903         from libgomp-gcn.h for output_data.
1904         (process_reverse_offload): New.
1905         (console_output): Call it.
1907 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1908             Andrew Stubbs  <ams@codesourcery.com>
1910         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1911         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1913 2022-11-14  Martin Liska  <mliska@suse.cz>
1915         Revert:
1916         2022-11-14  Martin Liska  <mliska@suse.cz>
1918         * doc/amd-radeon-gcn.rst: New file.
1919         * doc/conf.py: New file.
1920         * doc/copyright.rst: New file.
1921         * doc/cuda-streams-usage.rst: New file.
1922         * doc/enabling-openacc.rst: New file.
1923         * doc/enabling-openmp.rst: New file.
1924         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1925         * doc/first-invocation-openacc-library-api.rst: New file.
1926         * doc/funding.rst: New file.
1927         * doc/general-public-license-3.rst: New file.
1928         * doc/gnu-free-documentation-license.rst: New file.
1929         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1930         * doc/index.rst: New file.
1931         * doc/indices-and-tables.rst: New file.
1932         * doc/introduction.rst: New file.
1933         * doc/memory-allocation-with-libmemkind.rst: New file.
1934         * doc/nvptx.rst: New file.
1935         * doc/offload-target-specifics.rst: New file.
1936         * doc/openacc-environment-variables.rst: New file.
1937         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1938         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1939         * doc/openacc-environment-variables/accproflib.rst: New file.
1940         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1941         * doc/openacc-introduction.rst: New file.
1942         * doc/openacc-library-and-environment-variables.rst: New file.
1943         * doc/openacc-library-interoperability.rst: New file.
1944         * doc/openacc-profiling-interface.rst: New file.
1945         * doc/openacc-runtime-library-routines.rst: New file.
1946         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1947         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1948         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1949         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1950         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1951         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1952         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1953         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1954         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1955         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1956         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1957         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1958         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1959         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1960         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1961         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1962         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1963         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1964         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1965         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1966         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1967         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1968         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1969         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1970         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1971         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1972         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1973         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1974         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1975         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1976         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1977         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1978         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1979         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1980         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1981         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1982         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1983         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1984         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1985         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1986         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1987         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1988         * doc/openmp-context-selectors.rst: New file.
1989         * doc/openmp-environment-variables.rst: New file.
1990         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1991         * doc/openmp-environment-variables/gompdebug.rst: New file.
1992         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1993         * doc/openmp-environment-variables/gompspincount.rst: New file.
1994         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1995         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1996         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1997         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1998         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1999         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2000         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2001         * doc/openmp-environment-variables/ompnested.rst: New file.
2002         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2003         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2004         * doc/openmp-environment-variables/ompplaces.rst: New file.
2005         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2006         * doc/openmp-environment-variables/ompschedule.rst: New file.
2007         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2008         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2009         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2010         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2011         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2012         * doc/openmp-implementation-specifics.rst: New file.
2013         * doc/openmp-implementation-status.rst: New file.
2014         * doc/openmp-implementation-status/openmp-45.rst: New file.
2015         * doc/openmp-implementation-status/openmp-50.rst: New file.
2016         * doc/openmp-implementation-status/openmp-51.rst: New file.
2017         * doc/openmp-implementation-status/openmp-52.rst: New file.
2018         * doc/openmp-runtime-library-routines.rst: New file.
2019         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2020         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2021         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2022         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2023         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2024         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2025         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2026         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2027         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2028         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2029         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2030         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2031         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2032         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2033         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2034         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2035         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2036         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2037         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2038         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2039         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2040         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2041         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2042         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2043         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2044         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2045         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2046         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2047         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2048         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2049         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2050         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2051         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2052         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2053         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2054         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2055         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2056         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2057         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2058         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2059         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2060         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2061         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2062         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2063         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2064         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2065         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2066         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2067         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2068         * doc/reporting-bugs.rst: New file.
2069         * doc/the-libgomp-abi.rst: New file.
2070         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2071         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2072         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2073         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2074         New file.
2075         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2076         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2077         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2078         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2079         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2080         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2081         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2082         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2083         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2084         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2085         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2087 2022-11-14  Martin Liska  <mliska@suse.cz>
2089         Revert:
2090         2022-11-14  Martin Liska  <mliska@suse.cz>
2092         * Makefile.in: Support Sphinx based documentation.
2094 2022-11-14  Martin Liska  <mliska@suse.cz>
2096         Revert:
2097         2022-11-14  Martin Liska  <mliska@suse.cz>
2099         * libgomp.texi: Removed.
2101 2022-11-14  Martin Liska  <mliska@suse.cz>
2103         Revert:
2104         2022-11-14  Martin Liska  <mliska@suse.cz>
2106         * Makefile.in: Support --with-sphinx-build.
2107         * configure.ac: Likewise..
2108         * configure: Regenerate.
2110 2022-11-14  Martin Liska  <mliska@suse.cz>
2112         Revert:
2113         2022-11-09  Martin Liska  <mliska@suse.cz>
2115         * Makefile.in: Build info pages conditionally.
2117 2022-11-14  Martin Liska  <mliska@suse.cz>
2119         Revert:
2120         2022-11-14  Martin Liska  <mliska@suse.cz>
2122         * doc/amd-radeon-gcn.rst:
2123         Add trailing newline.
2124         * doc/copyright.rst:
2125         Add trailing newline.
2126         * doc/cuda-streams-usage.rst:
2127         Add trailing newline.
2128         * doc/enabling-openacc.rst:
2129         Add trailing newline.
2130         * doc/enabling-openmp.rst:
2131         Add trailing newline.
2132         * doc/first-invocation-nvidia-cublas-library-api.rst:
2133         Add trailing newline.
2134         * doc/first-invocation-openacc-library-api.rst:
2135         Add trailing newline.
2136         * doc/funding.rst:
2137         Add trailing newline.
2138         * doc/general-public-license-3.rst:
2139         Add trailing newline.
2140         * doc/gnu-free-documentation-license.rst:
2141         Add trailing newline.
2142         * doc/implementation-status-and-implementation-defined-behavior.rst:
2143         Add trailing newline.
2144         * doc/index.rst:
2145         Add trailing newline.
2146         * doc/indices-and-tables.rst:
2147         Add trailing newline.
2148         * doc/introduction.rst:
2149         Add trailing newline.
2150         * doc/memory-allocation-with-libmemkind.rst:
2151         Add trailing newline.
2152         * doc/nvptx.rst:
2153         Add trailing newline.
2154         * doc/offload-target-specifics.rst:
2155         Add trailing newline.
2156         * doc/openacc-environment-variables.rst:
2157         Add trailing newline.
2158         * doc/openacc-environment-variables/accdevicenum.rst:
2159         Add trailing newline.
2160         * doc/openacc-environment-variables/accdevicetype.rst:
2161         Add trailing newline.
2162         * doc/openacc-environment-variables/accproflib.rst:
2163         Add trailing newline.
2164         * doc/openacc-environment-variables/gccaccnotify.rst:
2165         Add trailing newline.
2166         * doc/openacc-introduction.rst:
2167         Add trailing newline.
2168         * doc/openacc-library-and-environment-variables.rst:
2169         Add trailing newline.
2170         * doc/openacc-library-interoperability.rst:
2171         Add trailing newline.
2172         * doc/openacc-profiling-interface.rst:
2173         Add trailing newline.
2174         * doc/openacc-runtime-library-routines.rst:
2175         Add trailing newline.
2176         * doc/openacc-runtime-library-routines/accasynctest.rst:
2177         Add trailing newline.
2178         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2179         Add trailing newline.
2180         * doc/openacc-runtime-library-routines/accattach.rst:
2181         Add trailing newline.
2182         * doc/openacc-runtime-library-routines/acccopyin.rst:
2183         Add trailing newline.
2184         * doc/openacc-runtime-library-routines/acccopyout.rst:
2185         Add trailing newline.
2186         * doc/openacc-runtime-library-routines/acccreate.rst:
2187         Add trailing newline.
2188         * doc/openacc-runtime-library-routines/accdelete.rst:
2189         Add trailing newline.
2190         * doc/openacc-runtime-library-routines/accdetach.rst:
2191         Add trailing newline.
2192         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2193         Add trailing newline.
2194         * doc/openacc-runtime-library-routines/accfree.rst:
2195         Add trailing newline.
2196         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2197         Add trailing newline.
2198         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2199         Add trailing newline.
2200         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2201         Add trailing newline.
2202         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2203         Add trailing newline.
2204         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2205         Add trailing newline.
2206         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2207         Add trailing newline.
2208         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2209         Add trailing newline.
2210         * doc/openacc-runtime-library-routines/acchostptr.rst:
2211         Add trailing newline.
2212         * doc/openacc-runtime-library-routines/accinit.rst:
2213         Add trailing newline.
2214         * doc/openacc-runtime-library-routines/accispresent.rst:
2215         Add trailing newline.
2216         * doc/openacc-runtime-library-routines/accmalloc.rst:
2217         Add trailing newline.
2218         * doc/openacc-runtime-library-routines/accmapdata.rst:
2219         Add trailing newline.
2220         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2221         Add trailing newline.
2222         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2223         Add trailing newline.
2224         * doc/openacc-runtime-library-routines/accondevice.rst:
2225         Add trailing newline.
2226         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2227         Add trailing newline.
2228         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2229         Add trailing newline.
2230         * doc/openacc-runtime-library-routines/accproflookup.rst:
2231         Add trailing newline.
2232         * doc/openacc-runtime-library-routines/accprofregister.rst:
2233         Add trailing newline.
2234         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2235         Add trailing newline.
2236         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2237         Add trailing newline.
2238         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2239         Add trailing newline.
2240         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2241         Add trailing newline.
2242         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2243         Add trailing newline.
2244         * doc/openacc-runtime-library-routines/accshutdown.rst:
2245         Add trailing newline.
2246         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2247         Add trailing newline.
2248         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2249         Add trailing newline.
2250         * doc/openacc-runtime-library-routines/accupdateself.rst:
2251         Add trailing newline.
2252         * doc/openacc-runtime-library-routines/accwait.rst:
2253         Add trailing newline.
2254         * doc/openacc-runtime-library-routines/accwaitall.rst:
2255         Add trailing newline.
2256         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2257         Add trailing newline.
2258         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2259         Add trailing newline.
2260         * doc/openmp-context-selectors.rst:
2261         Add trailing newline.
2262         * doc/openmp-environment-variables.rst:
2263         Add trailing newline.
2264         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2265         Add trailing newline.
2266         * doc/openmp-environment-variables/gompdebug.rst:
2267         Add trailing newline.
2268         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2269         Add trailing newline.
2270         * doc/openmp-environment-variables/gompspincount.rst:
2271         Add trailing newline.
2272         * doc/openmp-environment-variables/gompstacksize.rst:
2273         Add trailing newline.
2274         * doc/openmp-environment-variables/ompcancellation.rst:
2275         Add trailing newline.
2276         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2277         Add trailing newline.
2278         * doc/openmp-environment-variables/ompdisplayenv.rst:
2279         Add trailing newline.
2280         * doc/openmp-environment-variables/ompdynamic.rst:
2281         Add trailing newline.
2282         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2283         Add trailing newline.
2284         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2285         Add trailing newline.
2286         * doc/openmp-environment-variables/ompnested.rst:
2287         Add trailing newline.
2288         * doc/openmp-environment-variables/ompnumteams.rst:
2289         Add trailing newline.
2290         * doc/openmp-environment-variables/ompnumthreads.rst:
2291         Add trailing newline.
2292         * doc/openmp-environment-variables/ompplaces.rst:
2293         Add trailing newline.
2294         * doc/openmp-environment-variables/ompprocbind.rst:
2295         Add trailing newline.
2296         * doc/openmp-environment-variables/ompschedule.rst:
2297         Add trailing newline.
2298         * doc/openmp-environment-variables/ompstacksize.rst:
2299         Add trailing newline.
2300         * doc/openmp-environment-variables/omptargetoffload.rst:
2301         Add trailing newline.
2302         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2303         Add trailing newline.
2304         * doc/openmp-environment-variables/ompthreadlimit.rst:
2305         Add trailing newline.
2306         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2307         Add trailing newline.
2308         * doc/openmp-implementation-specifics.rst:
2309         Add trailing newline.
2310         * doc/openmp-implementation-status.rst:
2311         Add trailing newline.
2312         * doc/openmp-implementation-status/openmp-45.rst:
2313         Add trailing newline.
2314         * doc/openmp-implementation-status/openmp-50.rst:
2315         Add trailing newline.
2316         * doc/openmp-implementation-status/openmp-51.rst:
2317         Add trailing newline.
2318         * doc/openmp-implementation-status/openmp-52.rst:
2319         Add trailing newline.
2320         * doc/openmp-runtime-library-routines.rst:
2321         Add trailing newline.
2322         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2323         Add trailing newline.
2324         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2325         Add trailing newline.
2326         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2327         Add trailing newline.
2328         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2329         Add trailing newline.
2330         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2331         Add trailing newline.
2332         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2333         Add trailing newline.
2334         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2335         Add trailing newline.
2336         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2337         Add trailing newline.
2338         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2339         Add trailing newline.
2340         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2341         Add trailing newline.
2342         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2343         Add trailing newline.
2344         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2345         Add trailing newline.
2346         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2347         Add trailing newline.
2348         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2349         Add trailing newline.
2350         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2351         Add trailing newline.
2352         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2353         Add trailing newline.
2354         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2355         Add trailing newline.
2356         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2357         Add trailing newline.
2358         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2359         Add trailing newline.
2360         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2361         Add trailing newline.
2362         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2363         Add trailing newline.
2364         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2365         Add trailing newline.
2366         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2367         Add trailing newline.
2368         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2369         Add trailing newline.
2370         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2371         Add trailing newline.
2372         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2373         Add trailing newline.
2374         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2375         Add trailing newline.
2376         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2377         Add trailing newline.
2378         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2379         Add trailing newline.
2380         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2381         Add trailing newline.
2382         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2383         Add trailing newline.
2384         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2385         Add trailing newline.
2386         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2387         Add trailing newline.
2388         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2389         Add trailing newline.
2390         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2391         Add trailing newline.
2392         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2393         Add trailing newline.
2394         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2395         Add trailing newline.
2396         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2397         Add trailing newline.
2398         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2399         Add trailing newline.
2400         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2401         Add trailing newline.
2402         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2403         Add trailing newline.
2404         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2405         Add trailing newline.
2406         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2407         Add trailing newline.
2408         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2409         Add trailing newline.
2410         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2411         Add trailing newline.
2412         * doc/openmp-runtime-library-routines/omptestlock.rst:
2413         Add trailing newline.
2414         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2415         Add trailing newline.
2416         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2417         Add trailing newline.
2418         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2419         Add trailing newline.
2420         * doc/reporting-bugs.rst:
2421         Add trailing newline.
2422         * doc/the-libgomp-abi.rst:
2423         Add trailing newline.
2424         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2425         Add trailing newline.
2426         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2427         Add trailing newline.
2428         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2429         Add trailing newline.
2430         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2431         Add trailing newline.
2432         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2433         Add trailing newline.
2434         * doc/the-libgomp-abi/implementing-for-construct.rst:
2435         Add trailing newline.
2436         * doc/the-libgomp-abi/implementing-master-construct.rst:
2437         Add trailing newline.
2438         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2439         Add trailing newline.
2440         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2441         Add trailing newline.
2442         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2443         Add trailing newline.
2444         * doc/the-libgomp-abi/implementing-private-clause.rst:
2445         Add trailing newline.
2446         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2447         Add trailing newline.
2448         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2449         Add trailing newline.
2450         * doc/the-libgomp-abi/implementing-single-construct.rst:
2451         Add trailing newline.
2452         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2453         Add trailing newline.
2455 2022-11-14  Martin Liska  <mliska@suse.cz>
2457         Revert:
2458         2022-11-09  Martin Liska  <mliska@suse.cz>
2460         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2462 2022-11-14  Martin Liska  <mliska@suse.cz>
2464         Revert:
2465         2022-11-14  Martin Liska  <mliska@suse.cz>
2467         * doc/conf.py: Add newline at last line.
2469 2022-11-14  Martin Liska  <mliska@suse.cz>
2471         Revert:
2472         2022-11-14  Martin Liska  <mliska@suse.cz>
2474         PR other/107620
2475         * configure: Regenerate.
2476         * configure.ac: Always set sphinx-build.
2478 2022-11-13  Martin Liska  <mliska@suse.cz>
2480         PR other/107620
2481         * configure: Regenerate.
2482         * configure.ac: Always set sphinx-build.
2484 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
2486         PR libgomp/107641
2487         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2488         unsigned long.  Change type of upper from unsigned to unsigned long.
2490 2022-11-10  Martin Liska  <mliska@suse.cz>
2492         * doc/conf.py: Add newline at last line.
2494 2022-11-09  Martin Liska  <mliska@suse.cz>
2496         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2498 2022-11-09  Martin Liska  <mliska@suse.cz>
2500         * doc/amd-radeon-gcn.rst:
2501         Add trailing newline.
2502         * doc/copyright.rst:
2503         Add trailing newline.
2504         * doc/cuda-streams-usage.rst:
2505         Add trailing newline.
2506         * doc/enabling-openacc.rst:
2507         Add trailing newline.
2508         * doc/enabling-openmp.rst:
2509         Add trailing newline.
2510         * doc/first-invocation-nvidia-cublas-library-api.rst:
2511         Add trailing newline.
2512         * doc/first-invocation-openacc-library-api.rst:
2513         Add trailing newline.
2514         * doc/funding.rst:
2515         Add trailing newline.
2516         * doc/general-public-license-3.rst:
2517         Add trailing newline.
2518         * doc/gnu-free-documentation-license.rst:
2519         Add trailing newline.
2520         * doc/implementation-status-and-implementation-defined-behavior.rst:
2521         Add trailing newline.
2522         * doc/index.rst:
2523         Add trailing newline.
2524         * doc/indices-and-tables.rst:
2525         Add trailing newline.
2526         * doc/introduction.rst:
2527         Add trailing newline.
2528         * doc/memory-allocation-with-libmemkind.rst:
2529         Add trailing newline.
2530         * doc/nvptx.rst:
2531         Add trailing newline.
2532         * doc/offload-target-specifics.rst:
2533         Add trailing newline.
2534         * doc/openacc-environment-variables.rst:
2535         Add trailing newline.
2536         * doc/openacc-environment-variables/accdevicenum.rst:
2537         Add trailing newline.
2538         * doc/openacc-environment-variables/accdevicetype.rst:
2539         Add trailing newline.
2540         * doc/openacc-environment-variables/accproflib.rst:
2541         Add trailing newline.
2542         * doc/openacc-environment-variables/gccaccnotify.rst:
2543         Add trailing newline.
2544         * doc/openacc-introduction.rst:
2545         Add trailing newline.
2546         * doc/openacc-library-and-environment-variables.rst:
2547         Add trailing newline.
2548         * doc/openacc-library-interoperability.rst:
2549         Add trailing newline.
2550         * doc/openacc-profiling-interface.rst:
2551         Add trailing newline.
2552         * doc/openacc-runtime-library-routines.rst:
2553         Add trailing newline.
2554         * doc/openacc-runtime-library-routines/accasynctest.rst:
2555         Add trailing newline.
2556         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2557         Add trailing newline.
2558         * doc/openacc-runtime-library-routines/accattach.rst:
2559         Add trailing newline.
2560         * doc/openacc-runtime-library-routines/acccopyin.rst:
2561         Add trailing newline.
2562         * doc/openacc-runtime-library-routines/acccopyout.rst:
2563         Add trailing newline.
2564         * doc/openacc-runtime-library-routines/acccreate.rst:
2565         Add trailing newline.
2566         * doc/openacc-runtime-library-routines/accdelete.rst:
2567         Add trailing newline.
2568         * doc/openacc-runtime-library-routines/accdetach.rst:
2569         Add trailing newline.
2570         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2571         Add trailing newline.
2572         * doc/openacc-runtime-library-routines/accfree.rst:
2573         Add trailing newline.
2574         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2575         Add trailing newline.
2576         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2577         Add trailing newline.
2578         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2579         Add trailing newline.
2580         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2581         Add trailing newline.
2582         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2583         Add trailing newline.
2584         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2585         Add trailing newline.
2586         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2587         Add trailing newline.
2588         * doc/openacc-runtime-library-routines/acchostptr.rst:
2589         Add trailing newline.
2590         * doc/openacc-runtime-library-routines/accinit.rst:
2591         Add trailing newline.
2592         * doc/openacc-runtime-library-routines/accispresent.rst:
2593         Add trailing newline.
2594         * doc/openacc-runtime-library-routines/accmalloc.rst:
2595         Add trailing newline.
2596         * doc/openacc-runtime-library-routines/accmapdata.rst:
2597         Add trailing newline.
2598         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2599         Add trailing newline.
2600         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2601         Add trailing newline.
2602         * doc/openacc-runtime-library-routines/accondevice.rst:
2603         Add trailing newline.
2604         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2605         Add trailing newline.
2606         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2607         Add trailing newline.
2608         * doc/openacc-runtime-library-routines/accproflookup.rst:
2609         Add trailing newline.
2610         * doc/openacc-runtime-library-routines/accprofregister.rst:
2611         Add trailing newline.
2612         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2613         Add trailing newline.
2614         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2615         Add trailing newline.
2616         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2617         Add trailing newline.
2618         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2619         Add trailing newline.
2620         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2621         Add trailing newline.
2622         * doc/openacc-runtime-library-routines/accshutdown.rst:
2623         Add trailing newline.
2624         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2625         Add trailing newline.
2626         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2627         Add trailing newline.
2628         * doc/openacc-runtime-library-routines/accupdateself.rst:
2629         Add trailing newline.
2630         * doc/openacc-runtime-library-routines/accwait.rst:
2631         Add trailing newline.
2632         * doc/openacc-runtime-library-routines/accwaitall.rst:
2633         Add trailing newline.
2634         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2635         Add trailing newline.
2636         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2637         Add trailing newline.
2638         * doc/openmp-context-selectors.rst:
2639         Add trailing newline.
2640         * doc/openmp-environment-variables.rst:
2641         Add trailing newline.
2642         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2643         Add trailing newline.
2644         * doc/openmp-environment-variables/gompdebug.rst:
2645         Add trailing newline.
2646         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2647         Add trailing newline.
2648         * doc/openmp-environment-variables/gompspincount.rst:
2649         Add trailing newline.
2650         * doc/openmp-environment-variables/gompstacksize.rst:
2651         Add trailing newline.
2652         * doc/openmp-environment-variables/ompcancellation.rst:
2653         Add trailing newline.
2654         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2655         Add trailing newline.
2656         * doc/openmp-environment-variables/ompdisplayenv.rst:
2657         Add trailing newline.
2658         * doc/openmp-environment-variables/ompdynamic.rst:
2659         Add trailing newline.
2660         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2661         Add trailing newline.
2662         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2663         Add trailing newline.
2664         * doc/openmp-environment-variables/ompnested.rst:
2665         Add trailing newline.
2666         * doc/openmp-environment-variables/ompnumteams.rst:
2667         Add trailing newline.
2668         * doc/openmp-environment-variables/ompnumthreads.rst:
2669         Add trailing newline.
2670         * doc/openmp-environment-variables/ompplaces.rst:
2671         Add trailing newline.
2672         * doc/openmp-environment-variables/ompprocbind.rst:
2673         Add trailing newline.
2674         * doc/openmp-environment-variables/ompschedule.rst:
2675         Add trailing newline.
2676         * doc/openmp-environment-variables/ompstacksize.rst:
2677         Add trailing newline.
2678         * doc/openmp-environment-variables/omptargetoffload.rst:
2679         Add trailing newline.
2680         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2681         Add trailing newline.
2682         * doc/openmp-environment-variables/ompthreadlimit.rst:
2683         Add trailing newline.
2684         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2685         Add trailing newline.
2686         * doc/openmp-implementation-specifics.rst:
2687         Add trailing newline.
2688         * doc/openmp-implementation-status.rst:
2689         Add trailing newline.
2690         * doc/openmp-implementation-status/openmp-45.rst:
2691         Add trailing newline.
2692         * doc/openmp-implementation-status/openmp-50.rst:
2693         Add trailing newline.
2694         * doc/openmp-implementation-status/openmp-51.rst:
2695         Add trailing newline.
2696         * doc/openmp-implementation-status/openmp-52.rst:
2697         Add trailing newline.
2698         * doc/openmp-runtime-library-routines.rst:
2699         Add trailing newline.
2700         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2701         Add trailing newline.
2702         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2703         Add trailing newline.
2704         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2705         Add trailing newline.
2706         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2707         Add trailing newline.
2708         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2709         Add trailing newline.
2710         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2711         Add trailing newline.
2712         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2713         Add trailing newline.
2714         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2715         Add trailing newline.
2716         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2717         Add trailing newline.
2718         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2719         Add trailing newline.
2720         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2721         Add trailing newline.
2722         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2723         Add trailing newline.
2724         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2725         Add trailing newline.
2726         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2727         Add trailing newline.
2728         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2729         Add trailing newline.
2730         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2731         Add trailing newline.
2732         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2733         Add trailing newline.
2734         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2735         Add trailing newline.
2736         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2737         Add trailing newline.
2738         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2739         Add trailing newline.
2740         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2741         Add trailing newline.
2742         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2743         Add trailing newline.
2744         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2745         Add trailing newline.
2746         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2747         Add trailing newline.
2748         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2749         Add trailing newline.
2750         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2751         Add trailing newline.
2752         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2753         Add trailing newline.
2754         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2755         Add trailing newline.
2756         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2757         Add trailing newline.
2758         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2759         Add trailing newline.
2760         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2761         Add trailing newline.
2762         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2763         Add trailing newline.
2764         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2765         Add trailing newline.
2766         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2767         Add trailing newline.
2768         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2769         Add trailing newline.
2770         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2771         Add trailing newline.
2772         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2773         Add trailing newline.
2774         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2775         Add trailing newline.
2776         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2777         Add trailing newline.
2778         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2779         Add trailing newline.
2780         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2781         Add trailing newline.
2782         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2783         Add trailing newline.
2784         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2785         Add trailing newline.
2786         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2787         Add trailing newline.
2788         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2789         Add trailing newline.
2790         * doc/openmp-runtime-library-routines/omptestlock.rst:
2791         Add trailing newline.
2792         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2793         Add trailing newline.
2794         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2795         Add trailing newline.
2796         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2797         Add trailing newline.
2798         * doc/reporting-bugs.rst:
2799         Add trailing newline.
2800         * doc/the-libgomp-abi.rst:
2801         Add trailing newline.
2802         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2803         Add trailing newline.
2804         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2805         Add trailing newline.
2806         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2807         Add trailing newline.
2808         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2809         Add trailing newline.
2810         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2811         Add trailing newline.
2812         * doc/the-libgomp-abi/implementing-for-construct.rst:
2813         Add trailing newline.
2814         * doc/the-libgomp-abi/implementing-master-construct.rst:
2815         Add trailing newline.
2816         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2817         Add trailing newline.
2818         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2819         Add trailing newline.
2820         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2821         Add trailing newline.
2822         * doc/the-libgomp-abi/implementing-private-clause.rst:
2823         Add trailing newline.
2824         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2825         Add trailing newline.
2826         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2827         Add trailing newline.
2828         * doc/the-libgomp-abi/implementing-single-construct.rst:
2829         Add trailing newline.
2830         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2831         Add trailing newline.
2833 2022-11-09  Martin Liska  <mliska@suse.cz>
2835         * Makefile.in: Build info pages conditionally.
2837 2022-11-09  Martin Liska  <mliska@suse.cz>
2839         * Makefile.in: Support --with-sphinx-build.
2840         * configure.ac: Likewise..
2841         * configure: Regenerate.
2843 2022-11-09  Martin Liska  <mliska@suse.cz>
2845         * libgomp.texi: Removed.
2847 2022-11-09  Martin Liska  <mliska@suse.cz>
2849         * Makefile.in: Support Sphinx based documentation.
2851 2022-11-09  Martin Liska  <mliska@suse.cz>
2853         * doc/amd-radeon-gcn.rst: New file.
2854         * doc/conf.py: New file.
2855         * doc/copyright.rst: New file.
2856         * doc/cuda-streams-usage.rst: New file.
2857         * doc/enabling-openacc.rst: New file.
2858         * doc/enabling-openmp.rst: New file.
2859         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2860         * doc/first-invocation-openacc-library-api.rst: New file.
2861         * doc/funding.rst: New file.
2862         * doc/general-public-license-3.rst: New file.
2863         * doc/gnu-free-documentation-license.rst: New file.
2864         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2865         * doc/index.rst: New file.
2866         * doc/indices-and-tables.rst: New file.
2867         * doc/introduction.rst: New file.
2868         * doc/memory-allocation-with-libmemkind.rst: New file.
2869         * doc/nvptx.rst: New file.
2870         * doc/offload-target-specifics.rst: New file.
2871         * doc/openacc-environment-variables.rst: New file.
2872         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2873         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2874         * doc/openacc-environment-variables/accproflib.rst: New file.
2875         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2876         * doc/openacc-introduction.rst: New file.
2877         * doc/openacc-library-and-environment-variables.rst: New file.
2878         * doc/openacc-library-interoperability.rst: New file.
2879         * doc/openacc-profiling-interface.rst: New file.
2880         * doc/openacc-runtime-library-routines.rst: New file.
2881         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2882         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2883         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2884         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2885         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2886         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2887         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2888         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2889         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2890         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2891         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2892         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2893         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2894         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2895         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2896         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2897         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2898         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2899         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2900         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2901         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2902         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2903         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2904         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2905         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2906         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2907         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2908         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2909         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2910         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2911         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2912         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2913         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2914         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2915         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2916         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2917         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2918         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2919         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2920         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2921         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2922         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2923         * doc/openmp-context-selectors.rst: New file.
2924         * doc/openmp-environment-variables.rst: New file.
2925         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2926         * doc/openmp-environment-variables/gompdebug.rst: New file.
2927         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2928         * doc/openmp-environment-variables/gompspincount.rst: New file.
2929         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2930         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2931         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2932         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2933         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2934         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2935         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2936         * doc/openmp-environment-variables/ompnested.rst: New file.
2937         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2938         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2939         * doc/openmp-environment-variables/ompplaces.rst: New file.
2940         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2941         * doc/openmp-environment-variables/ompschedule.rst: New file.
2942         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2943         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2944         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2945         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2946         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2947         * doc/openmp-implementation-specifics.rst: New file.
2948         * doc/openmp-implementation-status.rst: New file.
2949         * doc/openmp-implementation-status/openmp-45.rst: New file.
2950         * doc/openmp-implementation-status/openmp-50.rst: New file.
2951         * doc/openmp-implementation-status/openmp-51.rst: New file.
2952         * doc/openmp-implementation-status/openmp-52.rst: New file.
2953         * doc/openmp-runtime-library-routines.rst: New file.
2954         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2955         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2956         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2957         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2958         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2959         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2960         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2961         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2962         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2963         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2964         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2965         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2966         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2967         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2968         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2969         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2970         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2971         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2972         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2973         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2974         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2975         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2976         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2977         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2978         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2979         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2980         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2981         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2982         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2983         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2984         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2985         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2986         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2987         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2988         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2989         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2990         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2991         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2992         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2993         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2994         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2995         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2996         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2997         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2998         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2999         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
3000         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
3001         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
3002         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
3003         * doc/reporting-bugs.rst: New file.
3004         * doc/the-libgomp-abi.rst: New file.
3005         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
3006         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
3007         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
3008         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
3009         New file.
3010         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
3011         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
3012         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
3013         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
3014         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
3015         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
3016         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
3017         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
3018         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
3019         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
3020         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
3022 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
3024         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
3025         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
3026         documentation.
3027         * plugin/configfrag.ac <enable_offload_targets>
3028         [*-intelmic-* | *-intelmicemul-*]: Remove.
3029         * configure: Regenerate.
3030         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
3031         handling.
3032         (offload_target_to_openacc_device_type)
3033         [$offload_target = *-intelmic*]: Remove.
3034         (check_effective_target_offload_device_intel_mic)
3035         (check_effective_target_offload_device_any_intel_mic): Remove.
3036         * testsuite/libgomp.c-c++-common/on_device_arch.h
3037         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
3038         (any_device_arch_intel_mic): Remove.
3039         * testsuite/libgomp.c-c++-common/target-45.c: Remove
3040         'offload_device_any_intel_mic' XFAIL.
3041         * testsuite/libgomp.fortran/target10.f90: Likewise.
3043 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
3045         * testsuite/libgomp.fortran/target-11.f90: New test.
3046         * testsuite/libgomp.fortran/target-13.f90: New test.
3048 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3050         PR libgomp/106643
3051         PR fortran/96668
3052         * oacc-mem.c (goacc_enter_data_internal): Support
3053         OpenACC 'declare create' with Fortran allocatable arrays, part II.
3054         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3055         Adjust.
3056         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
3058 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3060         PR libgomp/106643
3061         * oacc-mem.c (goacc_enter_data_internal): Support
3062         OpenACC 'declare create' with Fortran allocatable arrays, part I.
3063         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
3064         New.
3065         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3066         New.
3068 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3070         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
3071         New.
3073 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3075         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
3076         New.
3078 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
3079             Thomas Schwinge  <thomas@codesourcery.com>
3081         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
3083 2022-10-28  Julian Brown  <julian@codesourcery.com>
3084             Thomas Schwinge  <thomas@codesourcery.com>
3086         PR middle-end/90115
3087         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
3088         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3089         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3090         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3091         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3093 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
3095         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
3096         'ptx_dev->rev_data'.
3098 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
3100         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
3101         'static' for this variable.
3102         * config/nvptx/libgomp-nvptx.h: New file.
3103         * config/nvptx/target.c: Include it.
3104         (GOMP_ADDITIONAL_ICVS): Declare extern var.
3105         (GOMP_REV_OFFLOAD_VAR): Declare var.
3106         (GOMP_target_ext): Handle reverse offload.
3107         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
3108         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
3109         * target.c (gomp_target_rev): ... this new stub function.
3110         * libgomp.h (gomp_target_rev): Declare.
3111         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
3112         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
3113         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
3114         (struct ptx_device): Add rev_data member.
3115         (nvptx_open_device): Remove async_engines query, last used in
3116         r10-304-g1f4c5b9b; add unified-address assert check.
3117         (GOMP_OFFLOAD_get_num_devices): Claim unified address
3118         support.
3119         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
3120         offload functions exist. Make offload var available
3121         on host and device.
3122         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
3123         (GOMP_OFFLOAD_run): Handle reverse offload.
3125 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
3127         PR tree-optimization/107195
3128         PR target/107344
3129         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3130         regions checking.
3132 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
3134         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3135         New.
3136         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3137         on_device_arch_gcn): New.
3138         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3139         requires-4.c but using heap-allocated memory.
3141 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
3143         PR target/105421
3144         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3146 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
3148         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3149         '-foffload-options' syntax.
3151 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
3153         * testsuite/libgomp.fortran/task-7.f90: New test.
3154         * testsuite/libgomp.fortran/task-8.f90: New test.
3155         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3156         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3157         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3158         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3159         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3161 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3163         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3164         in deprecation bullet.
3166 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3168         * omp.h.in (omp_in_explicit_task): Declare.
3169         * omp_lib.h.in (omp_in_explicit_task): Likewise.
3170         * omp_lib.f90.in (omp_in_explicit_task): New interface.
3171         * libgomp.map (OMP_5.2): New symbol version, export
3172         omp_in_explicit_task and omp_in_explicit_task_.
3173         * task.c (omp_in_explicit_task): New function.
3174         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3175         (omp_in_explicit_task_): New function.
3176         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3177         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3178         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3179         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3181 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3183         * task.c (gomp_create_artificial_team): Fix up handling of invocations
3184         from within explicit task.
3185         * target.c (GOMP_target_ext): Likewise.
3186         * testsuite/libgomp.c/task-7.c: New test.
3187         * testsuite/libgomp.c/task-8.c: New test.
3188         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3189         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3191 2022-10-12  Martin Liska  <mliska@suse.cz>
3193         * configure: Regenerate.
3195 2022-10-11  Olivier Hainque  <hainque@adacore.com>
3196             Olivier Hainque  <hainque@adacore.com>
3198         * configure: Regenerate.
3200 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
3202         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3204 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
3206         * libgomp.texi (Support begin/end declare target syntax in C/C++):
3207         Mark as implemented.
3209 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
3211         PR fortran/105318
3212         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3214 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
3216         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3217         for C/C++. Remove duplicated 'begin declare target' entry.
3219 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
3221         PR c/106981
3222         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3224 2022-09-14  Julian Brown  <julian@codesourcery.com>
3226         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3227         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3228         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3229         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3230         test to here, make "run" test.
3232 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
3234         PR libgomp/106906
3235         * env.c (get_icv_member_addr): Cast false to void * before assigning
3236         it to icv_addr[1], and comment the whole assignment out.
3238 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
3240         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3241         (nvptx): ... here.
3243 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3245         * libgomp.texi (Offload-Target Specifics: nvptx): Document
3246         that reverse offload requires >= -march=sm_35.
3247         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3248         with -misa=sm_35.
3249         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3250         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3251         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3252         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3253         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3255 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3257         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3258         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3260 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
3262         PR libgomp/106894
3263         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3264         (main): Avoid tests for which corresponding non-_ALL suffixed variable
3265         is in the environment, or for OMP_NUM_TEAMS on the device
3266         OMP_NUM_TEAMS_DEV_?.
3268 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
3270         * env.c (initialize_env): Include libiberty environ.h.
3272 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3274         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3275         function address table '$offload_func_table' if rev_fn_table
3276         is not NULL.
3278 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3280         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3281         .offload_func_table to populate rev_fn_table when requested.
3283 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3285         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3286         'uint64_t **rev_fn_table' argument.
3287         * oacc-host.c (host_load_image): Likewise.
3288         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3289         currently unused.
3290         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3291         * target.c (gomp_load_image_to_device): Update call but pass
3292         NULL for now.
3294 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
3296         PR libgomp/106894
3297         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3298         char * for dest[1] initialization from params[1].  Formatting fixes.
3300 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3302         PR fortran/106670
3303         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3305 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3307         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3308         section; move OpenMP Context Selectors from ...
3309         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3310         'nvptx' sections.
3312 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
3314         * config/gcn/icv-device.c (omp_get_default_device): Return device-
3315         specific ICV.
3316         (omp_get_max_teams): Added for GCN devices.
3317         (omp_set_num_teams): Likewise.
3318         (ialias): Likewise.
3319         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3320         specific ICV.
3321         (omp_get_max_teams): Added for NVPTX devices.
3322         (omp_set_num_teams): Likewise.
3323         (ialias): Likewise.
3324         * env.c (struct gomp_icv_list): New struct to store entries of initial
3325         ICV values.
3326         (struct gomp_offload_icv_list): New struct to store entries of device-
3327         specific ICV values that are copied to the device and back.
3328         (struct gomp_default_icv_values): New struct to store default values of
3329         ICVs according to the OpenMP standard.
3330         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3331         (print_env_var_error): Function that prints an error for invalid values
3332         for ICVs.
3333         (parse_unsigned_long_1): Removed getenv.  Generalized.
3334         (parse_unsigned_long): Likewise.
3335         (parse_int_1): Likewise.
3336         (parse_int): Likewise.
3337         (parse_int_secure): Likewise.
3338         (parse_unsigned_long_list): Likewise.
3339         (parse_target_offload): Likewise.
3340         (parse_bind_var): Likewise.
3341         (parse_stacksize): Likewise.
3342         (parse_boolean): Likewise.
3343         (parse_wait_policy): Likewise.
3344         (parse_allocator): Likewise.
3345         (omp_display_env): Extended to output different variants of environment
3346         variables.
3347         (print_schedule): New helper function for omp_display_env which prints
3348         the values of run_sched_var.
3349         (print_proc_bind): New helper function for omp_display_env which prints
3350         the values of proc_bind_var.
3351         (enum gomp_parse_type): Collection of types used for parsing environment
3352         variables.
3353         (ENTRY): Preprocess string lengths of environment variables.
3354         (OMP_VAR_CNT): Preprocess table size.
3355         (OMP_HOST_VAR_CNT): Likewise.
3356         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3357         number.
3358         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3359         (gomp_set_icv_flag): Sets a flag for a particular ICV.
3360         (print_device_specific_icvs): New helper function for omp_display_env to
3361         print device specific ICV values.
3362         (get_device_num): New helper function for parse_device_specific.
3363         Extracts the device number from an environment variable name.
3364         (get_icv_member_addr): Gets the memory address for a particular member
3365         of an ICV struct.
3366         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3367         (initialize_icvs): New function to initialize a gomp_initial_icvs
3368         struct.
3369         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3370         (startswith): Checks if a string starts with a given prefix.
3371         (initialize_env): Extended to parse the new syntax of environment
3372         variables.
3373         * icv-device.c (omp_get_max_teams): Added.
3374         (ialias): Likewise.
3375         (omp_set_num_teams): Likewise.
3376         * icv.c (omp_set_num_teams): Moved to icv-device.c.
3377         (omp_get_max_teams): Likewise.
3378         (ialias): Likewise.
3379         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3380         (GOMP_ADDITIONAL_ICVS): New target-side struct that
3381         holds the designated ICVs of the target device.
3382         * libgomp.h (enum gomp_icvs): Collection of ICVs.
3383         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3384         no suffix.
3385         (enum gomp_env_suffix): Collection of possible suffixes of environment
3386         variables.
3387         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3388         initial values.
3389         (struct gomp_default_icv):New struct to hold ICVs for which we need
3390         to store initial values.
3391         (struct gomp_icv_list): Definition of a linked list that is used for
3392         storing ICVs for the devices and also for _DEV, _ALL, and without
3393         suffix.
3394         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3395         a device.
3396         (struct gomp_offload_icv_list): Definition of a linked list that holds
3397         device-specific ICVs that are copied to devices.
3398         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3399         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3400         * libgomp.texi: Updated.
3401         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3402         further ICVs from the offload image.
3403         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3404         * target.c (gomp_get_offload_icv_item): Get a list item of
3405         gomp_offload_icv_list.
3406         (get_gomp_offload_icvs): New. Returns the ICV values
3407         depending on the device num and the variable hierarchy.
3408         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3409         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3410         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3411         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3412         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3413         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3414         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3416 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
3418         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3419         fully supported.
3420         * testsuite/libgomp.c/doacross-4.c: New test.
3421         * testsuite/libgomp.c/doacross-5.c: New test.
3422         * testsuite/libgomp.c/doacross-6.c: New test.
3423         * testsuite/libgomp.c/doacross-7.c: New test.
3425 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
3427         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3429 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
3431         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3432         refer to 'requires'.
3433         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3434         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3435         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3436         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3438 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3440         PR middle-end/106548
3441         * testsuite/libgomp.c/linear-2.c: New test.
3443 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3445         * splay-tree.h: Fix splay_* macro unsetting if
3446         splay_tree_prefix is defined.
3448 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
3450         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3452 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
3454         PR middle-end/106449
3455         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3457 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
3459         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3461 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
3463         PR middle-end/101551
3464         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3465         'offloading_enabled' diagnostics issue.
3467 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
3469         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3470         '_Pragma' diagnostics verification.
3472 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
3474         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3475         improved warning locations.
3476         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3478 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3480         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3481         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3482         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3483         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3484         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3486 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3488         * target.c (GOMP_offload_register, GOMP_offload_unregister):
3489         Denote as legacy entry points.
3490         * testsuite/lib/libgomp.exp
3491         (check_effective_target_offload_target_any): New proc.
3492         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3493         'offload_target_any'.
3494         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3495         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3496         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3498 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3500         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3501         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3503 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3505         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3507 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
3509         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3510         'data'.
3511         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
3513 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3514             Jakub Jelinek  <jakub@redhat.com>
3516         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3518 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3519             Chung-Lin Tang  <cltang@codesourcery.com>
3520             Thomas Schwinge  <thomas@codesourcery.com>
3522         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3523         omp_requires_mask arg.
3524         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3525         return -1 when device available but omp_requires_mask != 0.
3526         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3527         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3528         Update call.
3529         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3530         goacc_attach_host_thread_to_device, acc_get_num_devices,
3531         acc_set_device_num, get_property_any): Likewise.
3532         * target.c (omp_requires_mask): New global var.
3533         (gomp_requires_to_name): New.
3534         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3535         (gomp_target_init): Handle omp_requires_mask.
3536         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3537         (OpenMP 5.1): Add a missed item.
3538         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3539         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3540         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3541         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3542         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3543         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3544         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3545         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3546         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3547         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3548         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3549         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3550         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3551         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3552         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3553         * testsuite/libgomp.fortran/requires-1.f90: New test.
3555 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
3557         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3558         with fromto as implemented.
3560 2022-06-28  Martin Liska  <mliska@suse.cz>
3562         * acinclude.m4: Fix typo in mold linker detection.
3563         * Makefile.in: Regenerate.
3564         * configure: Regenerate.
3566 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
3567             Paul Iannetta  <piannetta@kalrayinc.com>
3569         PR libgomp/106045
3570         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3572 2022-06-17  Martin Liska  <mliska@suse.cz>
3574         * libgomp.texi: Add table header for new features of
3575         OpenMP 5.2.
3577 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
3579         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3580         q to ddress of an automatic variable.  Use -5 instead of -1 in
3581         omp_get_mapped_ptr call.  Add test with omp_initial_device.
3582         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3583         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
3584         Renumber stop arguments afterwards.
3586 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
3588         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3589         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3590         parameters.
3591         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3592         * target.c (resolve_device): Add remapped argument, handle
3593         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3594         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3595         if remapped, otherwise treat omp_initial_device that way.  For
3596         omp_invalid_device, always emit gomp_fatal, even when
3597         OMP_TARGET_OFFLOAD isn't mandatory.
3598         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3599         GOMP_target_update, GOMP_target_update_ext,
3600         GOMP_target_enter_exit_data): Pass true as remapped argument to
3601         resolve_device.
3602         (omp_target_alloc, omp_target_free, omp_target_is_present,
3603         omp_target_memcpy_check, omp_target_associate_ptr,
3604         omp_target_disassociate_ptr, omp_get_mapped_ptr,
3605         omp_target_is_accessible): Pass false as remapped argument to
3606         resolve_device.  Treat omp_initial_device the same as
3607         gomp_get_num_devices ().  Don't bypass resolve_device calls if
3608         device_num is negative.
3609         (omp_pause_resource): Treat omp_initial_device the same as
3610         gomp_get_num_devices ().  Call resolve_device.
3611         * icv-device.c (omp_set_default_device): Always set to device_num
3612         even when it is negative.
3613         * libgomp.texi: Document that Conforming device numbers,
3614         omp_initial_device and omp_invalid_device is implemented.
3615         * testsuite/libgomp.c/target-41.c (main): Add test with
3616         omp_initial_device.
3617         * testsuite/libgomp.c/target-45.c: New test.
3618         * testsuite/libgomp.c/target-46.c: New test.
3619         * testsuite/libgomp.c/target-47.c: New test.
3620         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3621         test with omp_initial_device.  Use -5 instead of -1 for negative value
3622         test.
3623         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3624         Likewise.  Reorder stop numbers.
3626 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
3628         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3629         rather than "libmemkind.so".
3631 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3633         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3634         * plugin/configfrag.ac (--with-cuda-driver)
3635         (--with-cuda-driver-include, --with-cuda-driver-lib)
3636         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3637         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3638         Remove.
3639         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3640         (cuda_driver_lib): Remove.
3641         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3642         * Makefile.in: Regenerate.
3643         * configure: Likewise.
3644         * testsuite/Makefile.in: Likewise.
3646 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3648         * config/linux/allocator.c: Fix up #include directive.
3650 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3652         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3653         (enum gomp_memkind_kind): New type.
3654         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3655         is defined.
3656         (struct gomp_memkind_data): New type.
3657         (memkind_data, memkind_data_once): New variables.
3658         (gomp_init_memkind, gomp_get_memkind): New functions.
3659         (omp_init_allocator): Initialize data.memkind, don't fail for
3660         omp_high_bw_mem_space if libmemkind supports it.
3661         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3662         memkind support of LIBGOMP_USE_MEMKIND is defined.
3663         * config/linux/allocator.c: New file.
3665 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
3667         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3668         * testsuite/libgomp.fortran/scope-2.f90: New test.
3670 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
3672         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3674 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
3676         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3677         scope construct with allocate clause.
3678         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3679         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3681 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
3683         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3684         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3685         explicit 'to' and 'enter' clause.
3686         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3688 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
3690         PR libgomp/105745
3691         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3692         defined(HAVE__ALIGNED_MALLOC) case.
3693         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3694         handling as last option before fallback instead of first.
3695         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3696         _aligned_free.
3698 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
3700         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3701         clauses to enter.
3702         * testsuite/libgomp.c/target-41.c: Likewise.
3704 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
3706         * libgomp.texi (Other new OpenMP 5.1 features): Add
3707         'begin declare target'.
3708         (Other new OpenMP 5.2 features): New.
3710 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
3712         * task.c (gomp_task_run_post_handle_dependers): If empty_task
3713         is the last task taskwait depend depends on, wake it up.
3714         Similarly if it is the last child of a taskgroup, use atomic
3715         store instead of decrement and awak taskgroup wait if any.
3716         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3718 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
3720         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3721         EF_AMDGPU_MACH_AMDGCN_GFX90a.
3722         (gcn_gfx90a_s): New.
3723         (isa_hsa_name): Support gfx90a.
3724         (isa_code): Likewise.
3726 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
3728         PR c/105378
3729         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3730         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3732 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3734         PR c/105378
3735         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3736         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3737         * task.c (empty_task): New function.
3738         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3739         (gomp_task_run_post_handle_depend): Declare.
3740         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3741         for.
3742         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3743         (GOMP_taskwait_depend_nowait): New function.
3744         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3746 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3748         PR fortran/104949
3749         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3750         Support attach for GOMP_MAP_FIRSTPRIVATE.
3751         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3752         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3753         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3755 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3757         * libgomp.map: Added omp_target_memcpy_async and
3758         omp_target_memcpy_rect_async.
3759         * libgomp.texi: Both functions are now supported.
3760         * omp.h.in: Added omp_target_memcpy_async and
3761         omp_target_memcpy_rect_async.
3762         * omp_lib.f90.in: Added interfaces for both new functions.
3763         * omp_lib.h.in: Likewise.
3764         * target.c (ialias_redirect): Added for GOMP_task.
3765         (omp_target_memcpy): Restructured into check and copy part.
3766         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3767         omp_target_memcpy_async that checks requirements.
3768         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3769         omp_target_memcpy_async that performs the memcpy.
3770         (omp_target_memcpy_async_helper): New helper function that is used in
3771         omp_target_memcpy_async for the asynchronous task.
3772         (omp_target_memcpy_async): Added.
3773         (omp_target_memcpy_rect): Restructured into check and copy part.
3774         (omp_target_memcpy_rect_check): New helper function for
3775         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3776         requirements.
3777         (omp_target_memcpy_rect_copy): New helper function for
3778         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3779         the memcpy.
3780         (omp_target_memcpy_rect_async_helper): New helper function that is used
3781         in omp_target_memcpy_rect_async for the asynchronous task.
3782         (omp_target_memcpy_rect_async): Added.
3783         * task.c (ialias): Added for GOMP_task.
3784         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3785         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3786         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3787         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3788         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3789         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3790         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3791         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3793 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3795         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3796         (OpenMP Context Selectors): Add missing comma.
3797         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3798         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3799         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3800         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3802 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3804         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3805         comment for omp_display_env feature.
3807 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3809         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3810         to document OpenMP context selectors.
3812 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3814         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3815         from bool to unsigned char.
3816         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3817         Ignore dependencies where
3818         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3819         rather than just task->depend[i].is_in && ent->is_in.  Remember
3820         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3821         conditional.
3822         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3823         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3824         rather than just elem.is_in && ent->is_in.
3825         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3826         inoutset depend-kind.
3827         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3828         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3829         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3831 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3833         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3835 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3837         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3838         * testsuite/libgomp.fortran/depend-5.f90: New test.
3839         * testsuite/libgomp.fortran/depend-6.f90: New test.
3840         * testsuite/libgomp.fortran/depend-7.f90: New test.
3842 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3844         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3845         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3846         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3848 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3850         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3852 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3854         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3856 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3858         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3859         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3860         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3861         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3862         * Makefile.in: Regenerate.
3864 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3866         * Makefile.am (libgomp_la_LIBADD): Initialize.
3867         * plugin/configfrag.ac (DL_LIBS): New.
3868         (PLUGIN_GCN_LIBS): Remove.
3869         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3870         * plugin/Makefrag.am (libgomp_la_LIBADD)
3871         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3872         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3873         * Makefile.in: Regenerate.
3874         * config.h.in: Likewise.
3875         * configure: Likewise.
3876         * testsuite/Makefile.in: Likewise.
3878 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3880         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3881         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3882         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3883         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3884         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3885         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3886         * Makefile.in: Regenerate.
3887         * config.h.in: Likewise.
3888         * configure: Likewise.
3890 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3892         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3893         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3894         * Makefile.in: Regenerate.
3895         * config.h.in: Likewise.
3896         * configure: Likewise.
3897         * testsuite/Makefile.in: Likewise.
3899 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3901         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3902         * task.c (gomp_init_task): Initialize depend_all_memory.
3903         (gomp_task_handle_depend): Handle omp_all_memory.
3904         (gomp_task_run_post_handle_depend_hash): Clear
3905         parent->depend_all_memory if equal to current task.
3906         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3907         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3908         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3909         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3911 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3913         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3914         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3915         * Makefile.in: Regenerate.
3916         * configure: Likewise.
3917         * testsuite/Makefile.in: Likewise.
3919 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3921         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3922         consider 'PLUGIN_GCN_CPPFLAGS'.
3923         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3924         'PLUGIN_GCN_LDFLAGS'.
3925         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3926         Remove.
3927         * Makefile.in: Regenerate.
3928         * configure: Likewise.
3929         * testsuite/Makefile.in: Likewise.
3931 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3933         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3934         (HSA_RUNTIME_LDFLAGS): Remove.
3935         * configure: Regenerate.
3937 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3939         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3940         'append always_ld_library_path ":$hsa_runtime_lib"'.
3941         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3943 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3945         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3946         multi-device testing.
3948 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3950         * libgomp.map: Added omp_target_is_accessible.
3951         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3952         * omp.h.in: Added omp_target_is_accessible.
3953         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3954         * omp_lib.h.in: Likewise.
3955         * target.c (omp_target_is_accessible): Added implementation of
3956         omp_target_is_accessible.
3957         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3958         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3960 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3962         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3964 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3966         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3968 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3970         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3972 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3974         * libgomp.map: Added omp_get_mapped_ptr.
3975         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3976         * omp.h.in: Added omp_get_mapped_ptr.
3977         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3978         * omp_lib.h.in: Likewise.
3979         * target.c (omp_get_mapped_ptr): Added implementation of
3980         omp_get_mapped_ptr.
3981         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3982         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3983         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3984         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3985         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3986         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3987         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3988         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3990 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3992         PR fortran/104717
3993         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3994         privatization scanning.  For GCN offloading compilation, raise
3995         '-mgang-private-size'.
3997 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3999         PR libgomp/105358
4000         * work.c (gomp_init_work_share): Don't mask of adjustment for
4001         dynamic long long realignment if struct gomp_work_share has smaller
4002         alignof than long long.
4003         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
4004         struct gomp_work_share has smaller alignof than long long or if
4005         sizeof (struct gomp_work_share) is smaller than
4006         INLINE_ORDERED_TEAM_IDS_OFF.
4007         * loop_ull.c (GOMP_loop_ull_start): Likewise.
4008         * sections.c (GOMP_sections2_start): Likewise.
4010 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
4011             Thomas Schwinge  <thomas@codesourcery.com>
4013         PR fortran/104717
4014         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
4016 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
4018         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
4020 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
4022         * plugin/cuda/cuda.h: Remove file.
4023         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
4024         "cuda/cuda.h" instead of <cuda.h>.
4025         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
4026         'PLUGIN_NVPTX_CPPFLAGS'.
4027         * configure: Regenerate.
4029 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
4031         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
4033 2022-04-04  Tom de Vries  <tdevries@suse.de>
4035         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
4036         on_device_arch_nvptx instead of offload_target_nvptx.
4037         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4039 2022-04-01  Tom de Vries  <tdevries@suse.de>
4041         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
4042         and use REC_DEPTH.
4043         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4045 2022-04-01  Tom de Vries  <tdevries@suse.de>
4047         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
4048         num_workers check.
4050 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
4051             Lulu Cheng  <chenglulu@loongson.cn>
4053         * configure.tgt: Add LoongArch triplet.
4055 2022-03-28  Tom de Vries  <tdevries@suse.de>
4057         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
4058         instead of /libexec/.
4059         * configure: Regenerate.
4061 2022-03-25  Tom de Vries  <tdevries@suse.de>
4063         PR libgomp/105042
4064         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
4065         execution time.
4066         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
4067         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
4069 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
4071         PR middle-end/104285
4072         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
4073         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
4074         * testsuite/libgomp.c++/target-same-name-2.C: New test.
4075         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
4076         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
4077         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
4079 2022-03-22  Tom de Vries  <tdevries@suse.de>
4081         PR target/104916
4082         PR target/104783
4083         * testsuite/libgomp.c/pr104783-2.c: New test.
4085 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
4087         PR fortran/103039
4088         * testsuite/libgomp.fortran/associate4.f90: New test.
4090 2022-03-18  Tom de Vries  <tdevries@suse.de>
4092         PR target/104952
4093         * testsuite/libgomp.c/pr104952-1.c: New test.
4094         * testsuite/libgomp.c/pr104952-2.c: New test.
4096 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
4098         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
4099         variable next to pl variable.
4101 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
4103         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4104         Enhance.
4105         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4106         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4108 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
4110         PR middle-end/90115
4111         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
4112         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4114 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
4116         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
4117         omp_set_max_active_levels.
4118         * testsuite/libgomp.fortran/icv-8.f90: New test.
4120 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
4122         PR testsuite/102841
4123         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
4125 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
4127         * libgomp.texi: Fix typo.
4129 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4131         PR middle-end/100280
4132         PR middle-end/104892
4133         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4134         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4135         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4136         Likewise.
4137         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4138         Likewise.
4139         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4140         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4141         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4142         Likewise.
4144 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4146         PR middle-end/104892
4147         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4148         to PR104892.
4149         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4150         enable '--param=openacc-kernels=decompose' and adjust.
4151         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4152         Likewise.
4153         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4154         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4155         Likewise.
4157 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4159         PR middle-end/90115
4160         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4161         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4162         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4163         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4165 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4167         PR middle-end/100280
4168         PR middle-end/104086
4169         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4170         Merge this...
4171         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4172         ..., and this...
4173         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4174         this, and adjust.
4175         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4176         Extend.
4178 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4180         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4181         trait.  Test last index in w and v array.  Remove redundant
4182         assignment to V(1).  Move alignment checks at the end of
4183         parallel region.
4185 2022-03-10  Tom de Vries  <tdevries@suse.de>
4187         * testsuite/libgomp.c/pr104783.c: New test.
4189 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4191         PR middle-end/90115
4192         PR middle-end/102330
4193         PR middle-end/104774
4194         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4195         Enhance.
4196         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4197         Adjust.
4198         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4199         Likewise.
4200         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4201         Likewise.
4202         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4203         Likewise.
4204         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4205         Likewise.
4206         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4207         Likewise.
4208         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4209         Likewise.
4210         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4211         Likewise.
4212         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4213         Likewise.
4214         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4215         Likewise.
4216         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4217         Likewise.
4218         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4219         Likewise.
4220         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4221         Likewise.
4222         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4223         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4224         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4226 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4228         PR middle-end/90115
4229         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4230         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4231         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4232         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4234 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4236         PR testsuite/104791
4237         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4238         expected diagnostics.
4240 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4242         PR middle-end/104784
4243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4244         Test with '--param=openacc-kernels=decompose'.
4245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4246         Likewise.
4247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4248         Likewise.
4249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4250         Likewise.
4251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4252         Likewise.
4253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4254         Likewise.
4255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4256         Likewise.
4257         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4258         Likewise.
4259         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4260         Likewise.
4261         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4262         Likewise.
4263         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4264         Likewise.
4265         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4266         Likewise.
4267         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4268         Likewise.
4269         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4270         Likewise.
4271         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4272         Likewise.
4273         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4274         Likewise.
4275         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4276         Likewise.
4277         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4278         Likewise.
4279         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4280         Likewise.
4281         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4282         Likewise.
4283         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4284         Likewise.
4285         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4286         Likewise.
4287         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4288         Likewise.
4289         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4290         Likewise.
4291         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4292         Likewise.
4293         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4294         Likewise.
4295         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4296         Likewise.
4297         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4298         Likewise.
4299         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4300         Likewise.
4301         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4302         Likewise.
4303         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4304         Likewise.
4305         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4306         Likewise.
4307         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4308         Likewise.
4310 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4312         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4313         Test '-fopt-info-omp-all'.
4314         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4315         Likewise.
4316         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4317         Likewise.
4318         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4319         Likewise.
4320         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4321         Likewise.
4322         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4323         Likewise.
4324         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4325         Likewise.
4326         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4327         Likewise.
4328         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4329         Likewise.
4330         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4331         Likewise.
4332         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4333         Likewise.
4334         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4335         Likewise.
4336         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4337         Likewise.
4338         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4339         Likewise.
4340         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4341         Likewise.
4342         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4343         Likewise.
4344         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4345         Likewise.
4346         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4347         Likewise.
4348         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4349         Likewise.
4350         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4351         Likewise.
4352         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4353         Likewise.
4354         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4355         Likewise.
4356         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4357         Likewise.
4358         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4359         Likewise.
4360         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4361         Likewise.
4362         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4363         Likewise.
4364         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4365         Likewise.
4366         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4367         Likewise.
4368         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4369         Likewise.
4370         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4371         Likewise.
4372         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4373         Likewise.
4374         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4375         Likewise.
4376         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4377         Likewise.
4379 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4381         PR middle-end/100280
4382         PR middle-end/104132
4383         PR middle-end/104133
4384         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4385         Extend.
4387 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4389         PR middle-end/100280
4390         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4391         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4392         Likewise.
4394 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4396         PR middle-end/100280
4397         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4398         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4399         Likewise.
4401 2022-02-28  Tom de Vries  <tdevries@suse.de>
4403         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4404         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4405         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4406         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4407         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4408         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4410 2022-02-24  Tom de Vries  <tdevries@suse.de>
4412         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4413         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4414         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4415         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4416         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4417         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4418         * testsuite/libgomp.c/declare-variant-3.h: New header file.
4420 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
4422         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4423         gang-redundant execution.
4425 2022-02-22  Tom de Vries  <tdevries@suse.de>
4427         PR target/99555
4428         * config/nvptx/bar.c (generation_to_barrier): New function, copied
4429         from config/rtems/bar.c.
4430         (futex_wait, futex_wake): New function.
4431         (do_spin, do_wait): New function, copied from config/linux/wait.h.
4432         (gomp_barrier_wait_end, gomp_barrier_wait_last)
4433         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4434         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4435         and replace with include of config/linux/bar.c.
4436         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4437         (gomp_barrier_init): Init new fields.
4438         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4439         workarounds.
4440         * testsuite/libgomp.c/pr99555-1.c: Same.
4441         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4443 2022-02-22  Tom de Vries  <tdevries@suse.de>
4445         PR testsuite/104146
4446         * testsuite/libgomp.c++/pr96390.C: Add additional-option
4447         -foffload=-Wa,--verify for nvptx.
4448         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4450 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
4452         * testsuite/libgomp.fortran/depend-4.f90: New test.
4454 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
4456         PR c++/102204
4457         * testsuite/libgomp.c++/target-virtual-1.C: New test.
4459 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
4461         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4462         * target.c (copy_firstprivate_data): Copy only if host address is not
4463         NULL.
4464         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4465         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4466         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4467         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4468         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4469         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4470         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4471         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4472         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4473         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4475 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
4477         PR libgomp/104385
4478         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4479         clear task->parent.
4480         * testsuite/libgomp.c/pr104385.c: New test.
4482 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4484         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4485         STOP of previous commit.
4487 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4489         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4490         from is_64bit_aligned_.
4491         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4492         and use it, more implicit none, remove unused argument.
4494 2022-02-03  David Seifert  <soap@gentoo.org>
4495             Jakub Jelinek  <jakub@redhat.com>
4497         * configure.ac: Support --disable-werror.
4498         * configure: Regenerate.
4500 2022-02-01  Tom de Vries  <tdevries@suse.de>
4502         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4503         PR83812 workaround.
4504         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4505         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4507 2022-02-01  Tom de Vries  <tdevries@suse.de>
4509         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4510         num_workers for nvidia accelerator to fix libgomp error 'insufficient
4511         resources'.
4512         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4513         Same.
4514         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4516 2022-02-01  Tom de Vries  <tdevries@suse.de>
4518         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4519         recursion depth.
4520         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4522 2022-01-31  Martin Liska  <mliska@suse.cz>
4524         * acinclude.m4: Detect *_ld_is_mold and use it.
4525         * configure: Regenerate.
4527 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
4529         * libgomp.texi (OpenMP 5.0): Update implementation status.
4531 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
4533         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4534         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4535         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4536         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4537         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4538         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4539         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4540         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4541         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4542         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4543         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4544         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4545         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4546         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4547         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4549 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
4551         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4552         "static") to make the device num available in the offload image.
4554 2022-01-19  Martin Liska  <mliska@suse.cz>
4555             Thomas Schwinge  <thomas@codesourcery.com>
4557         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4558         patterns.
4559         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4560         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4561         Likewise.
4562         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4563         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4564         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4565         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4566         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4567         Likewise.
4568         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4569         Likewise.
4570         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4571         Likewise.
4572         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4573         Likewise.
4574         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4575         Likewise.
4576         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4577         Likewise.
4578         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4579         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4580         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4582 2022-01-18  Martin Liska  <mliska@suse.cz>
4584         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4585         in dg-warning.
4586         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4587         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4588         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4589         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4590         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4591         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4592         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4593         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4594         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4595         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4596         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4597         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4598         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4599         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4600         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4602 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
4604         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4605         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4606         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4608 2022-01-17  Julian Brown  <julian@codesourcery.com>
4609             Thomas Schwinge  <thomas@codesourcery.com>
4611         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4612         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4613         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4615 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
4616             Andrew Stubbs   <ams@codesourcery.com>
4618         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4619         the number of teams and threads if necessary.
4620         (gcn_exec): Automatically set the number of gangs and workers if
4621         necessary.
4623 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4625         * testsuite/libgomp.fortran/allocate-1.c: New test.
4626         * testsuite/libgomp.fortran/allocate-1.f90: New test.
4627         * libgomp.texi: Remove string that says that allocate clause
4628         support is for C/C++ only.
4630 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4632         * testsuite/libgomp.c-c++-common/on_device_arch.h
4633         (any_device_arch, any_device_arch_intel_mic): New.
4634         * testsuite/lib/libgomp.exp
4635         (check_effective_target_offload_device_any_intel_mic): New.
4636         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4637         * testsuite/libgomp.fortran/target10.f90: Likewise.
4639 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4641         PR tree-optimization/102192
4642         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4643         '-Wuninitialized' diagnostics.
4645 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4647         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4648         current '-Wuninitialized' diagnostics.
4649         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4650         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4651         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4652         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4653         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4654         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4655         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4656         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4657         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4658         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4659         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4660         Likewise.
4662 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4664         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4665         for 'offload_device_intel_mic'.
4667 2022-01-13  Julian Brown  <julian@codesourcery.com>
4668             Thomas Schwinge  <thomas@codesourcery.com>
4670         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4671         offloading execution XFAIL.
4673 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4675         PR middle-end/100280
4676         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4677         Update.
4678         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4679         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4680         Likewise.
4682 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4684         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4685         Enhance.
4686         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4687         Likewise.
4688         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4689         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4690         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4691         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4692         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4693         Likewise.
4694         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4695         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4696         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4697         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4699 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
4701         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4702         * testsuite/libgomp.fortran/target10.f90: Likewise.
4704 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
4706         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4707         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4708         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4710 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
4712         * libgomp.texi: Bump @copying's copyright year.
4714 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
4716         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4717         * testsuite/libgomp.fortran/atomic-19.f90: New test.
4719 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
4721         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4722         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4723         table, not individual symbols.
4725 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
4727         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4728         "target offload_device_nonshared_as"
4729         * testsuite/libgomp.c++/target-this-3.C: Likewise.
4730         * testsuite/libgomp.c++/target-this-4.C: Likewise.
4732 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4734         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4735         not overwritten during cross-host/device copying.
4736         (gomp_update): Likewise.
4737         (gomp_exit_data): Likewise.
4738         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4739         * testsuite/libgomp.c++/target-12.C: Likewise.
4740         * testsuite/libgomp.c++/target-15.C: Likewise.
4741         * testsuite/libgomp.c++/target-16.C: Likewise.
4742         * testsuite/libgomp.c++/target-17.C: Likewise.
4743         * testsuite/libgomp.c++/target-21.C: Likewise.
4744         * testsuite/libgomp.c++/target-23.C: Likewise.
4745         * testsuite/libgomp.c/target-23.c: Likewise.
4746         * testsuite/libgomp.c/target-29.c: Likewise.
4747         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4749 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4751         PR middle-end/92120
4752         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4753         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4754         (goacc_enter_data_internal): Likewise.
4755         * target.c (gomp_map_vars_existing): Update assert condition to
4756         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4757         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4758         parameter, add support for mapping a pointer with NULL target.
4759         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4760         parameter, add support for attaching a pointer with NULL target.
4761         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4762         gomp_attach_pointer, add handling for
4763         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4764         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4765         * testsuite/libgomp.c++/target-23.C: New testcase.
4766         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4767         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4768         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4769         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4770         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4771         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4772         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4774 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4776         * libgomp.texi (OpenMP 5.1): Update status.
4778 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4780         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4782 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4784         PR fortran/90030
4785         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4786         * testsuite/libgomp.fortran/pr90030.f90: New test.
4788 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4789             Thomas Schwinge  <thomas@codesourcery.com>
4791         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4792         temporary skip.
4794 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4795             Thomas Schwinge  <thomas@codesourcery.com>
4797         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4798         skip.
4800 2021-11-29  Richard Biener  <rguenther@suse.de>
4802         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4803         return.
4805 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4807         PR middle-end/103384
4808         * testsuite/libgomp.c/declare-variant-2.c: New test.
4810 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4812         * alloc.c (gomp_aligned_alloc): Fix typo.
4814 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4816         PR libgomp/102838
4817         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4818         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4819         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4820         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4821         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4822         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4823         gomp_aligned_alloc instead of team_malloc.
4825 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4827         PR libgomp/102838
4828         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4829         memalign over posix_memalign over aligned_alloc over fallback
4830         with malloc instead of aligned_alloc over _aligned_alloc over
4831         posix_memalign over memalign over fallback with malloc.  For
4832         aligned_alloc, round up size up to multiple of al.
4834 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4836         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4837         construct as implemented.
4839 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4841         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4843 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4845         * task.c (gomp_create_target_task): Copy args array as well.
4846         * target.c (gomp_target_fallback): Add args argument.
4847         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4848         (GOMP_target): Adjust gomp_target_fallback caller.
4849         (GOMP_target_ext): Likewise.
4850         (gomp_target_task_fn): Likewise.
4851         * config/nvptx/team.c (gomp_nvptx_main): Set
4852         gomp_global_icv.thread_limit_var.
4853         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4855 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4857         * config/nvptx/team.c (__gomp_team_num): Define as
4858         __attribute__((shared)) var.
4859         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4860         * config/nvptx/target.c (__gomp_team_num): Declare as
4861         extern __attribute__((shared)) var.
4862         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4863         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4864         is bigger than num_blocks, use num_teams_lower teams and arrange for
4865         bumping of __gomp_team_num if !first and returning false once we run
4866         out of teams.
4867         * config/nvptx/teams.c (__gomp_team_num): Declare as
4868         extern __attribute__((shared)) var.
4869         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4871 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4873         * testsuite/libgomp.c/teams-5.c: New test.
4875 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4877         PR target/103201
4878         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4879         to ...
4880         * config/gcn/teams.c: ... here.  New file.
4882 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4884         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4885         implicit map handling to allow a "superset" existing map as valid case.
4886         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4887         (get_implicit): New function to extract implicit status.
4888         (gomp_map_fields_existing): Adjust arguments in calls to
4889         gomp_map_vars_existing, and add uses of get_implicit.
4890         (gomp_map_vars_internal): Likewise.
4891         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4893 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4895         * libgomp_g.h (GOMP_teams4): Declare.
4896         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4897         * target.c (GOMP_teams4): New function.
4898         * config/nvptx/target.c (GOMP_teams): Remove.
4899         (GOMP_teams4): New function.
4900         * config/gcn/target.c (GOMP_teams): Remove.
4901         (GOMP_teams4): New function.
4902         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4903         teams instead of <= 2.
4904         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4906 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4908         * testsuite/libgomp.fortran/teams-1.f90: New test.
4910 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4912         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4913         * team.c (struct gomp_thread_start_data): Likewise.
4914         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4915         (gomp_team_start): Initialize start_data->num_teams and
4916         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4917         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4918         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4919         instead of gomp_num_teams and gomp_team_num.
4920         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4921         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4922         * testsuite/libgomp.c/teams-4.c: New test.
4924 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4926         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4928 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4930         * env.c (parse_gomp_openacc_dim): Restore parsing.
4932 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4934         PR middle-end/102972
4935         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4936         parallel construct.
4937         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4938         * testsuite/libgomp.c/target-3.c: Likewise.
4939         * testsuite/libgomp.c/target-5.c: Likewise.
4940         * testsuite/libgomp.c/target-6.c: Likewise.
4941         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4942         * testsuite/libgomp.c/teams-1.c: Likewise.
4943         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4944         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4945         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4946         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4947         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4948         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4949         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4951 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4953         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4954         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4956 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4958         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4959         aren't implemented for Fortran yet.
4961 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4963         * testsuite/libgomp.c/loop-26.c: New test.
4964         * testsuite/libgomp.c/loop-27.c: New test.
4966 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4968         PR testsuite/102910
4969         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4970         instead of #include <alloca.h> + alloca.
4972 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4974         * libgomp.texi (Support of strictly structured blocks in Fortran):
4975         Adjust to 'Y'.
4976         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4978 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4980         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4981         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4983 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4985         PR libgomp/102838
4986         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4987         (struct gomp_work_share): Only use aligned(64) attribute if
4988         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4989         add padding before lock to ensure lock is at offset 64 bytes
4990         into the structure.
4991         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4992         New poor man's static assertions.
4993         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4994         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4996 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4997             Richard Biener  <rguenther@suse.de>
4999         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
5001 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
5003         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
5004         && gomp_places_list_len < count after nfirst <= nlast loop condition.
5006 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
5008         PR fortran/102086
5009         PR fortran/92189
5010         PR fortran/92621
5011         PR fortran/101308
5012         PR fortran/101309
5013         PR fortran/101635
5014         PR fortran/92482
5015         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
5017 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5019         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
5020         type from char [50] to const char *.
5021         (places_array): Add a testcase for simplified syntax place followed
5022         by length or length and stride.
5024 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5026         * env.c (parse_one_place): Handle non-negative-number the same
5027         as { non-negative-number }.  Reject even !number:1 and
5028         !number:1:stride or !place:1 or !place:1:stride instead of just
5029         length other than 1.
5030         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
5031         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
5032         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
5033         as implemented.
5034         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
5035         simplified syntax.
5037 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5039         * env.c (parse_schedule): For strtoul or strtoull calls which don't
5040         clearly reject return value 0 as invalid handle the case where end
5041         pointer is the same as first argument as invalid.
5042         (parse_unsigned_long_1): Likewise.
5043         (parse_one_place): Likewise.
5044         (parse_places_var): Likewise.
5045         (parse_stacksize): Likewise.
5046         (parse_spincount): Likewise.
5047         (parse_affinity): Likewise.
5048         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
5049         Make code valid C89.
5050         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
5051         For strtoul calls which don't clearly reject return value 0 as
5052         invalid handle the case where end pointer is the same as first
5053         argument as invalid.
5054         (gomp_affinity_init_level_1): Likewise.
5055         (gomp_affinity_init_numa_domains): Likewise.
5056         * config/rtems/proc.c (parse_thread_pools): Likewise.
5058 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5060         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
5061         after creating count places clean up and return immediately.
5062         * testsuite/libgomp.c/places-6.c: New test.
5063         * testsuite/libgomp.c/places-7.c: New test.
5064         * testsuite/libgomp.c/places-8.c: New test.
5065         * testsuite/libgomp.c/places-9.c: New test.
5066         * testsuite/libgomp.c/places-10.c: New test.
5068 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5070         * env.c (parse_places_var): Handle numa_domains as level 5.
5071         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
5072         function.
5073         (gomp_affinity_init_level): Use it instead of
5074         gomp_affinity_init_level_1 for level == 5.
5075         * testsuite/libgomp.c/places-5.c: New test.
5077 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5079         * env.c (parse_places_var): Handle ll_caches as level 4.
5080         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
5081         function.
5082         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
5083         last level cache.
5084         (gomp_affinity_init_level): Likewise.
5085         * testsuite/libgomp.c/places-1.c: New test.
5086         * testsuite/libgomp.c/places-2.c: New test.
5087         * testsuite/libgomp.c/places-3.c: New test.
5088         * testsuite/libgomp.c/places-4.c: New test.
5090 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5092         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
5093         directive.
5095 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5097         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
5099 2021-10-12  Julian Brown  <julian@codesourcery.com>
5101         * target.c (gomp_copy_host2dev): Release device lock on cbuf
5102         error path.
5104 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
5106         * testsuite/libgomp.fortran/icv-3.f90: New.
5107         * testsuite/libgomp.fortran/icv-4.f90: New.
5109 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5111         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
5112         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
5113         OMP_TEAMS_THREAD_LIMIT): Document.
5115 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5117         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
5118         to avoid makeinfo warnings.
5120 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5122         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
5123         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
5125 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5127         PR libgomp/102628
5128         PR libgomp/102668
5129         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5130         allocation sizes from 420 to 320 and from 768 to 568.
5131         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5132         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5133         for cr from 16 to 4.
5135 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5137         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5138         * testsuite/libgomp.c/scan-12.c: Likewise.
5139         * testsuite/libgomp.c/scan-13.c: Likewise.
5140         * testsuite/libgomp.c/scan-14.c: Likewise.
5141         * testsuite/libgomp.c/scan-15.c: Likewise.
5142         * testsuite/libgomp.c/scan-16.c: Likewise.
5143         * testsuite/libgomp.c/scan-17.c: Likewise.
5144         * testsuite/libgomp.c/scan-18.c: Likewise.
5145         * testsuite/libgomp.c/scan-19.c: Likewise.
5146         * testsuite/libgomp.c/scan-20.c: Likewise.
5147         * testsuite/libgomp.c/scan-21.c: Likewise.
5148         * testsuite/libgomp.c/scan-22.c: Likewise.
5149         * testsuite/libgomp.c++/scan-9.C: Likewise.
5150         * testsuite/libgomp.c++/scan-10.C: Likewise.
5151         * testsuite/libgomp.c++/scan-11.C: Likewise.
5152         * testsuite/libgomp.c++/scan-12.C: Likewise.
5153         * testsuite/libgomp.c++/scan-13.C: Likewise.
5154         * testsuite/libgomp.c++/scan-14.C: Likewise.
5155         * testsuite/libgomp.c++/scan-15.C: Likewise.
5156         * testsuite/libgomp.c++/scan-16.C: Likewise.
5158 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
5160         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5162 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
5164         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5165         omp_atv_serialized.
5166         * omp.h.in: Add deprecated flag for omp_atv_sequential.
5167         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5168         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5169         * testsuite/libgomp.fortran/alloc-12.f90: New test.
5171 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
5173         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5174         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5175         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5176         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5177         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5178         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5179         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5180         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5181         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5182         omp_set_teams_thread_limit{,_,_8_}.
5183         * icv.c (omp_set_num_teams, omp_get_max_teams,
5184         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5185         functions.
5186         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5187         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5188         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5189         vars.
5190         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5191         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
5192         is not specified, use gomp_nteams_var.
5193         * fortran.c (omp_set_num_teams, omp_get_max_teams,
5194         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5195         ialias_redirect.
5196         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5197         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5198         omp_get_teams_thread_limit_): New functions.
5200 2021-10-09  liuhongt  <hongtao.liu@intel.com>
5202         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5203         * testsuite/libgomp.c++/scan-11.C: Ditto.
5204         * testsuite/libgomp.c++/scan-12.C: Ditto.
5205         * testsuite/libgomp.c++/scan-13.C: Ditto.
5206         * testsuite/libgomp.c++/scan-14.C: Ditto.
5207         * testsuite/libgomp.c++/scan-15.C: Ditto.
5208         * testsuite/libgomp.c++/scan-16.C: Ditto.
5209         * testsuite/libgomp.c++/scan-9.C: Ditto.
5210         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5211         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5212         * testsuite/libgomp.c/scan-11.c: Ditto.
5213         * testsuite/libgomp.c/scan-12.c: Ditto.
5214         * testsuite/libgomp.c/scan-13.c: Ditto.
5215         * testsuite/libgomp.c/scan-14.c: Ditto.
5216         * testsuite/libgomp.c/scan-15.c: Ditto.
5217         * testsuite/libgomp.c/scan-16.c: Ditto.
5218         * testsuite/libgomp.c/scan-17.c: Ditto.
5219         * testsuite/libgomp.c/scan-18.c: Ditto.
5220         * testsuite/libgomp.c/scan-19.c: Ditto.
5221         * testsuite/libgomp.c/scan-20.c: Ditto.
5222         * testsuite/libgomp.c/scan-21.c: Ditto.
5223         * testsuite/libgomp.c/scan-22.c: Ditto.
5225 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
5227         * libgomp.texi (OpenMP 5.1): Mention implemented support for
5228         structured block sequences in C/C++.  Mention support for
5229         unconstrained/reproducible modifiers on order clause.
5230         Mention partial (C/C++ only) support of extentensions to atomics
5231         construct.  Mention partial (C/C++ on clause only) support of
5232         align/allocator modifiers on allocate clause.
5234 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
5236         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5237         based on libgomp.c-c++-common/order-reproducible-1.c.
5238         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5239         * testsuite/libgomp.fortran/my-usleep.c: New test.
5241 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
5243         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5244         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5245         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5246         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5247         based on libgomp.c-c++-common/alloc-9.c.
5249 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5251         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5252         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5254 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5256         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5257         ialias_redirect.
5258         * env.c (handle_omp_display_env): Use ialias_call.
5259         * icv-device.c: Move ialias right below each function.
5260         (omp_get_device_num): Use ialias_call.
5261         * fortran.c (omp_fulfill_event): Add ialias_redirect.
5262         * icv.c (omp_get_active_level): Add ialias_redirect.
5264 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5266         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5267         __alloc_align__ (1) attribute.
5268         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5270 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5272         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5273         for -fintrinsic-modules-path= warning of the C compiler.
5274         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5275         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5277 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5279         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5280         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5281         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5282         omp_realloc): Add.
5283         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5284         omp_realloc): Add.
5285         * testsuite/libgomp.fortran/alloc-10.f90: New test.
5286         * testsuite/libgomp.fortran/alloc-6.f90: New test.
5287         * testsuite/libgomp.fortran/alloc-7.c: New test.
5288         * testsuite/libgomp.fortran/alloc-7.f90: New test.
5289         * testsuite/libgomp.fortran/alloc-8.f90: New test.
5290         * testsuite/libgomp.fortran/alloc-9.f90: New test.
5292 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
5294         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5295         omp_realloc): New prototypes.
5296         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5297         attribute.
5298         * allocator.c: Include string.h.
5299         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
5300         variable and use it instead of alignment so that when retrying the old
5301         alignment is used again.  Don't retry if new alignment is the same
5302         as old alignment, unless allocator had pool size.
5303         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5304         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5305         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5306         omp_aligned_calloc and omp_realloc.
5307         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5308         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5309         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5310         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5311         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5312         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5314 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
5316         PR libgomp/96661
5317         * configure.ac: Only check for int-type = 2*size_t support when
5318         building with Fortran support.
5319         * configure: Regenerate.
5321 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
5323         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5324         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5326 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5328         * team.c: Initialize start_data.
5329         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5330         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5332 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5334         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5335         dg-message back to dg-note.
5337 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5339         PR fortran/94070
5340         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5341         expected dg-note output.
5343 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
5345         PR fortran/55534
5346         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5347         r12-3722 by removing -Wno-missing-include-dirs.
5348         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5350 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
5352         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5353         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5355 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
5357         PR fortran/55534
5358         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5359         to ALWAYS_CFLAGS.
5360         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5362 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
5364         * testsuite/libgomp.c++/default-1.C: New test.
5365         * testsuite/libgomp.c-c++-common/default-1.c: New test.
5366         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5367         to default clause in C and C++" as implemented.
5369 2021-09-17  Julian Brown  <julian@codesourcery.com>
5371         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5373 2021-09-17  Julian Brown  <julian@codesourcery.com>
5375         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5377 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5379         * libgomp.texi (OpenMP 5.1): Spelling fix,
5380         declare variante -> declare variant.
5382 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5384         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5385         Use /* */ comments instead of //.
5386         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5387         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5388         * testsuite/libgomp.c++/atomic-16.C: New test.
5389         * testsuite/libgomp.c++/atomic-17.C: New test.
5391 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
5393         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5394         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5395         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5397 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5399         * libgomp.texi (OpenMP Implementation Status): Extend
5400         OpenMP 5.0 section.
5401         (OpenACC Profiling Interface): Fix typo.
5403 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5405         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5406         not to 4.5; link to new section.
5407         (OpenMP Implementation Status): New.
5409 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
5411         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5413 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
5415         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5416         dg-output.
5417         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5419 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5420             Jakub Jelinek  <jakub@redhat.com>
5422         * testsuite/libgomp.c/address-space-1.c: New file.
5424 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5426         * testsuite/lib/libgomp.exp
5427         (check_effective_target_offload_target_intelmic): Remove 'proc'.
5428         (check_effective_target_offload_device_intel_mic): New 'proc'.
5429         * testsuite/libgomp.c-c++-common/on_device_arch.h
5430         (device_arch_intel_mic, on_device_arch_intel_mic): New.
5431         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5432         'dg-xfail-run-if'.
5433         * testsuite/libgomp.fortran/target10.f90: Likewise.
5435 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
5437         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5438         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5439         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5440         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5442 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5444         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5445         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5446         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5448 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
5450         * config/nvptx/error.c (fwrite, exit): Override, too.
5451         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5452         of offloading testing.
5453         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5455 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
5457         * testsuite/libgomp.fortran/error-1.f90: New test.
5459 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
5461         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5462         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5463         * error.c (GOMP_warning, GOMP_error): New functions.
5464         * testsuite/libgomp.c-c++-common/error-1.c: New test.
5466 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
5468         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5469         omp_target_free. omp_target_is_present, omp_target_memcpy,
5470         omp_target_memcpy_rect, omp_target_associate_ptr,
5471         omp_target_disassociate_ptr): Add interface.
5472         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5473         omp_target_free. omp_target_is_present, omp_target_memcpy,
5474         omp_target_memcpy_rect, omp_target_associate_ptr,
5475         omp_target_disassociate_ptr): Add interface.
5476         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5477         interface block for omp_alloc + omp_free.
5478         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5479         * testsuite/libgomp.fortran/refcount-1.f90: New test.
5480         * testsuite/libgomp.fortran/target-12.f90: New test.
5482 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
5484         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5486 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
5488         * testsuite/libgomp.fortran/scope-1.f90: New test.
5489         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5491 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
5493         * Makefile.am (libgomp_la_SOURCES): Add scope.c
5494         * Makefile.in: Regenerated.
5495         * libgomp_g.h (GOMP_scope_start): Declare.
5496         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5497         * scope.c: New file.
5498         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5499         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5501 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
5503         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5504         '?:' issues.
5506 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
5508         * testsuite/libgomp.fortran/masked-1.f90: New test.
5510 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
5512         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5514 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
5516         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5518 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
5520         * env.c (parse_bind_var): Accept 'primary' as alias for
5521         'master'.
5522         (omp_display_env): Add TODO comment to
5523         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5524         * libgomp.texi: Change 'master thread' to 'primary thread'
5525         in line with OpenMP 5.1.
5526         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5527         omp_proc_bind_master is an alias of it.
5528         (OMP_PROC_BIND): Mention 'PRIMARY'.
5529         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5530         (omp_proc_bind_primary): Add.
5531         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5532         * omp_lib.f90.in (omp_proc_bind_primary): Add.
5533         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5534         * omp_lib.h.in (omp_proc_bind_primary): Add.
5535         * testsuite/libgomp.c/affinity-1.c: Check that
5536         'primary' works and is identical to 'master'.
5538 2021-08-09  Julian Brown  <julian@codesourcery.com>
5539             Kwok Cheung Yeung  <kcy@codesourcery.com>
5540             Thomas Schwinge  <thomas@codesourcery.com>
5542         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5543         16.
5544         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5545         [acc_device_radeon]: Update.
5546         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5547         [ACC_DEVICE_TYPE_radeon]: Likewise.
5548         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5549         [acc_device_radeon]: Likewise.
5550         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5551         [ACC_DEVICE_TYPE_radeon]: Likewise.
5552         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5553         'openacc_radeon_accel_selected' and '-O0'.
5554         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5556 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
5558         * icv-device.c (omp_get_device_num): New API function, host side.
5559         * fortran.c (omp_get_device_num_): New interface function.
5560         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5561         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5562         omp_get_device_num_.
5563         * libgomp.texi (omp_get_device_num): Add documentation for new API
5564         function.
5565         * omp.h.in (omp_get_device_num): Add declaration.
5566         * omp_lib.f90.in (omp_get_device_num): Likewise.
5567         * omp_lib.h.in (omp_get_device_num): Likewise.
5568         * target.c (gomp_load_image_to_device): If additional entry for device
5569         number exists at end of returned entries from 'load_image_func' hook,
5570         copy the assigned device number over to the device variable.
5571         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5572         (omp_get_device_num): New API function, device side.
5573         * plugin/plugin-gcn.c ("symcat.h"): Add include.
5574         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5575         at end of returned 'target_table' entries.
5576         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5577         (omp_get_device_num): New API function, device side.
5578         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5579         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5580         at end of returned 'target_table' entries.
5581         * testsuite/lib/libgomp.exp
5582         (check_effective_target_offload_target_intelmic): New function for
5583         testing for intelmic offloading.
5584         * testsuite/libgomp.c-c++-common/target-45.c: New test.
5585         * testsuite/libgomp.fortran/target10.f90: New test.
5587 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
5588             Ulrich Drepper  <drepper@redhat.com>
5590         * fortran.c (omp_display_env_, omp_display_env_8_): Only
5591         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5593 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
5594             Julian Brown  <julian@codesourcery.com>
5595             Kwok Cheung Yeung  <kcy@codesourcery.com>
5597         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5598         's%oaccdevlow%oaccloops%g'.
5599         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5600         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5601         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5602         Likewise.
5603         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5604         Likewise.
5605         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5606         Likewise.
5607         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5608         Likewise.
5609         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5610         Likewise.
5611         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5612         Likewise.
5613         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5614         Likewise.
5615         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5616         Likewise.
5617         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5619 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
5621         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5622         threader.
5623         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5625 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
5627         * env.c (wait_policy, stacksize): New static variables,
5628         move out of handle_omp_display_env.
5629         (omp_display_env): New function.  The meat of the old
5630         handle_omp_display_env function.
5631         (handle_omp_display_env): Change to not take parameters
5632         and instead use the global variables.  Only perform
5633         parsing, defer to omp_display_env for the implementation.
5634         (initialize_env): Remove local variables wait_policy and
5635         stacksize.  Don't pass parameters to handle_omp_display_env.
5636         * fortran.c: Add ialias_redirect for omp_display_env.
5637         (omp_display_env_, omp_display_env_8_): New functions.
5638         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
5639         omp_display_env_, and omp_display_env_8_.
5640         * omp.h.in: Declare omp_display_env.
5641         * omp_lib.f90.in: Likewise.
5642         * omp_lib.h.in: Likewise.
5644 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5645             Julian Brown  <julian@codesourcery.com>
5647         * target.c (gomp_coalesce_buf_add): Update comment.
5648         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5649         'aq && cbuf'.
5650         (gomp_map_vars_internal): Only 'if (!aq)', do
5651         'gomp_coalesce_buf_add'.
5652         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5653         XFAIL.
5655 2021-07-27  Julian Brown  <julian@codesourcery.com>
5656             Thomas Schwinge  <thomas@codesourcery.com>
5658         * libgomp.h (gomp_copy_host2dev): Update prototype.
5659         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5660         argument to gomp_copy_host2dev (false).
5661         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5662         (copy_data): Don't free src.
5663         (queue_push_copy): Remove free_src handling.
5664         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5665         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5666         snapshotting.
5667         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5668         queue_push_copy.
5669         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5670         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
5671         data when true, and set up deferred freeing of temporary buffer.
5672         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5673         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5674         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5675         calls to gomp_copy_host2dev with appropriate ephemeral argument.
5676         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5677         XFAIL.
5679 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5680             Tom de Vries  <tom@codesourcery.com>
5682         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5683         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5685 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5687         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5688         sequencing of 'async' data copying vs. profiling events.
5689         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5690         Likewise.
5692 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5693             Julian Brown  <julian@codesourcery.com>
5695         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5696         'async'/'wait' issue.
5697         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5698         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5699         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5701 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
5702             Joseph Myers  <joseph@codesourcery.com>
5703             Cesar Philippidis  <cesar@codesourcery.com>
5705         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5706         file.
5707         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5708         Likewise.
5709         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5710         Likewise.
5711         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5713 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
5715         PR target/101484
5716         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5717         '-Wno-error=array-bounds'.
5718         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5719         * libgomp.h [__AMDGCN__]: Likewise.
5721 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
5723         PR target/101484
5724         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5725         * libgomp.h [__AMDGCN__]: Likewise.
5727 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
5728             Florian Weimer  <fweimer@redhat.com>
5730         * config/linux/sem.h: Don't include limits.h.
5731         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5732         * config/linux/affinity.c: Include limits.h.
5734 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5736         PR middle-end/94366
5737         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5739 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5741         PR other/67300
5742         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5743         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5744         avoid disabling other offload targets.
5745         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5746         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5747         * testsuite/libgomp.c/target-44.c: Likewise.
5749 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5751         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5752         target has shared memory and disable some scalar pointer/allocatable
5753         checks if not as firstprivate does not work.
5755 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5757         PR testsuite/101114
5758         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5759         Add "target offload_device_nonshared_as" condition for enabling test.
5761 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5763         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5764         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5765         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5766         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5768 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5770         PR middle-end/101167
5771         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5773 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5775         * hashtab.h (htab_clear): New function with initialization code
5776         factored out from...
5777         (htab_create): ...here, adjust to use htab_clear function.
5778         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5779         special refcount values, add comments.
5780         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5781         (REFCOUNT_LINK): Likewise.
5782         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5783         element siblings.
5784         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5785         sibling maps.
5786         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5787         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5788         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5789         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5790         (struct splay_tree_key_s): Add structelem_refcount and
5791         structelem_refcount_ptr fields into a union with dynamic_refcount.
5792         Add comments.
5793         (gomp_map_vars): Delete declaration.
5794         (gomp_map_vars_async): Likewise.
5795         (gomp_unmap_vars): Likewise.
5796         (gomp_unmap_vars_async): Likewise.
5797         (goacc_map_vars): New declaration.
5798         (goacc_unmap_vars): Likewise.
5799         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5800         (goacc_enter_datum): Likewise.
5801         (goacc_enter_data_internal): Likewise.
5802         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5803         and goacc_unmap_vars.
5804         (GOACC_data_start): Adjust to use goacc_map_vars.
5805         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5806         * target.c (hash_entry_type): New typedef.
5807         (htab_alloc): New function hook for hashtab.h.
5808         (htab_free): Likewise.
5809         (htab_hash): Likewise.
5810         (htab_eq): Likewise.
5811         (hashtab.h): Add file include.
5812         (gomp_increment_refcount): New function.
5813         (gomp_decrement_refcount): Likewise.
5814         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5815         gomp_increment_refcount.
5816         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5817         to gomp_map_vars_existing.
5818         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5819         variable to guard OpenMP specific paths, adjust calls to
5820         gomp_map_vars_existing, add structure element sibling splay_tree_key
5821         sequence creation code, adjust Fortran map case to avoid increment
5822         under OpenMP.
5823         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5824         local refcount_set if caller passed in NULL, adjust call to
5825         gomp_map_vars_internal.
5826         (gomp_map_vars_async): Adjust and rename into...
5827         (goacc_map_vars): ...this new function, adjust call to
5828         gomp_map_vars_internal.
5829         (gomp_remove_splay_tree_key): New function with code factored out from
5830         gomp_remove_var_internal.
5831         (gomp_remove_var_internal): Add code to handle removing multiple
5832         splay_tree_key sequence for structure elements, adjust code to use
5833         gomp_remove_splay_tree_key for splay-tree key removal.
5834         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5835         gomp_decrement_refcount.
5836         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5837         local refcount_set if caller passed in NULL, adjust call to
5838         gomp_unmap_vars_internal.
5839         (gomp_unmap_vars_async): Adjust and rename into...
5840         (goacc_unmap_vars): ...this new function, adjust call to
5841         gomp_unmap_vars_internal.
5842         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5843         gomp_unmap_vars.
5844         (GOMP_target_ext): Likewise.
5845         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5846         (GOMP_target_data): Likewise.
5847         (GOMP_target_data_ext): Likewise.
5848         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5849         (gomp_exit_data): Add refcount_set parameter, adjust to use
5850         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5851         after main loop.
5852         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5853         gomp_map_vars and gomp_exit_data.
5854         (gomp_target_task_fn): Likewise.
5855         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5856         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5857         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5858         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5859         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5860         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5862 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5864         PR fortran/92568
5865         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5867 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5868             Thomas Schwinge  <thomas@codesourcery.com>
5870         * libgomp.map (GOACC_2.0.2): New symbol version.
5871         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5872         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5874 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5875             Andrew Stubbs  <ams@codesourcery.com>
5877         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5878         extracted from...
5879         (GOACC_enter_exit_data): ... here.
5880         (GOACC_declare): Use it.
5882 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5884         * oacc-parallel.c (GOACC_declare): Move...
5885         * oacc-mem.c: ... here.
5886         * libgomp_g.h: Adjust.
5888 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5889             Thomas Schwinge  <thomas@codesourcery.com>
5891         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5892         handling.
5894 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5896         PR tree-optimization/100981
5897         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5898         dsdotr and dsdoti to 0.
5900 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5902         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5903         if atomic compare-and-swap is supported on 'int'.
5905 2021-06-09  Richard Biener  <rguenther@suse.de>
5907         PR tree-optimization/100981
5908         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5910 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5912         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5913         unconditionally.
5914         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5915         Update.
5916         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5917         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5919 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5921         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5922         '-DACC_MEM_SHARED=0'.
5923         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5924         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5925         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5926         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5927         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5928         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5929         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5930         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5931         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5932         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5933         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5934         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5935         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5936         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5937         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5938         'acc_device_radeon' testing.
5939         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5940         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5941         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5942         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5943         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5944         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5945         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5946         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5947         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5948         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5949         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5950         for non-'openacc_nvidia_accel_selected'.
5951         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5952         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5953         all implement this checking".
5954         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5955         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5956         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5957         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5958         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5960 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5962         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5963         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5965 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5967         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5968         for 'acc_device_radeon'.
5970 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5972         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5973         for non-'acc_device_nvidia'.
5975 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5977         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5978         'acc_device_radeon' testing.
5979         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5980         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5981         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5983 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5985         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5986         require 'openacc_nvidia_accel_selected'.  Fix up for
5987         'ACC_DEVICE_TYPE_radeon'.
5989 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5991         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5992         'openacc_nvidia_accel_selected'.
5993         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5995 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5997         * testsuite/lib/libgomp.exp
5998         (check_effective_target_openacc_radeon_accel_selected):
5999         Streamline.
6001 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6003         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
6004         PR80547 workaround.
6006 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
6008         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
6009         <acc_device_nvidia>: Update comment.
6011 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
6013         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
6015 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
6017         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
6018         check_effective_target_openacc_cublas,
6019         check_effective_target_openacc_cudart): New.
6020         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
6021         target openacc_cublas.
6022         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6023         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6024         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
6025         target openacc_cuda.
6026         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6027         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6028         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6029         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6030         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6031         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6032         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6033         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6034         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
6035         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6036         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6037         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6038         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6039         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6040         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6041         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6042         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
6043         targets openacc_cublas and openacc_cudart.
6044         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6045         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6046         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6047         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6048         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
6049         Require effective target openacc_cudart.
6050         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
6051         for effective target openacc_cuda and add && defined USE_CUDA_H to
6052         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
6053         effective target.
6055 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
6057         PR libgomp/100573
6058         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
6059         GOMP_target_end_data, GOMP_target_update_ext,
6060         GOMP_target_enter_exit_data): New dummy entrypoints.
6061         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
6062         GOMP_target_end_data, GOMP_target_update_ext,
6063         GOMP_target_enter_exit_data): Likewise.
6064         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
6065         OMPFROM, OMPTO): Define.
6066         (main): Remove #pragma omp target teams around all the tests.
6067         * testsuite/libgomp.c-c++-common/target-41.c: New test.
6068         * testsuite/libgomp.c-c++-common/target-42.c: New test.
6070 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
6072         PR middle-end/99928
6073         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
6075 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
6077         PR fortran/86470
6078         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
6079         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
6080         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
6082 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
6084         PR testsuite/90115
6085         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
6086         uninteresting/varying diagnostics.
6088 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6090         PR middle-end/90115
6091         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
6092         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6094 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6096         PR middle-end/90115
6097         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
6098         file.
6099         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6100         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
6101         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6102         Likewise.
6103         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6104         Likewise.
6105         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6106         Likewise.
6107         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6108         Likewise.
6109         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6110         Likewise.
6111         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6112         Likewise.
6113         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6114         Likewise.
6115         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6116         Likewise.
6117         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6118         Likewise.
6119         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6120         Likewise.
6121         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6122         Likewise.
6123         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6124         Likewise.
6125         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6126         Likewise.
6127         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6128         Likewise.
6129         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6130         Likewise.
6131         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6132         Likewise.
6133         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6134         Likewise.
6135         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6136         Likewise.
6137         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6138         Likewise.
6139         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6140         Likewise.
6141         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6142         Likewise.
6143         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6144         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6145         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6146         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6147         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6148         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6149         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6150         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6151         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6152         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6153         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6154         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6155         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6156         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6157         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6158         Likewise.
6159         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6160         Likewise.
6161         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6162         Likewise.
6163         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6164         Likewise.
6165         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6166         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6167         Likewise.
6168         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6169         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6170         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6171         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6172         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6173         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6174         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6175         Likewise.
6176         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6177         Likewise.
6178         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6179         Likewise.
6180         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6181         Likewise.
6182         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6183         Likewise.
6184         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6185         Likewise.
6186         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6187         Likewise.
6188         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6189         Likewise.
6190         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6191         Likewise.
6192         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6193         Likewise.
6194         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6195         Likewise.
6196         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6197         Likewise.
6198         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6199         Likewise.
6200         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6201         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6202         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6203         Likewise.
6204         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6205         Likewise.
6206         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6207         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6208         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6210 2021-05-21  Julian Brown  <julian@codesourcery.com>
6211             Chung-Lin Tang  <cltang@codesourcery.com>
6212             Thomas Schwinge  <thomas@codesourcery.com>
6214         PR middle-end/90115
6215         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6216         test.
6217         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6218         Likewise.
6219         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6220         Likewise.
6222 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6224         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6225         for nvptx offloading.
6227 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
6229         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6231 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
6233         PR target/83812
6234         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6236 2021-05-19  Julian Brown  <julian@codesourcery.com>
6238         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6240 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6242         * testsuite/lib/libgomp.exp
6243         (check_effective_target_offload_target_nvptx): Don't shadow global
6244         'offload_targets' variable.
6246 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6248         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6249         '-latomic' to nvptx offloading compilation.
6250         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6252 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6254         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6255         offloading compilation.
6257 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
6259         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6260         if new tasks generated.
6261         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6263 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
6265         * testsuite/libgomp.fortran/parallel-master.f90: New test.
6267 2021-05-13  Martin Liska  <mliska@suse.cz>
6269         PR testsuite/100569
6270         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6271         * testsuite/libgomp.c/pr46032-2.c: Likewise.
6272         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6273         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6275 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6277         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6278         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6280 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6282         PR middle-end/100471
6283         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6284         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6285         reduction pointer.
6286         * testsuite/libgomp.c/task-reduction-4.c: New test.
6288 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6289             Tom de Vries  <tdevries@suse.de>
6291         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6292         complex/floating-point || + && reduction with 'omp target'.
6293         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6295 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6297         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6298         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6299         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6300         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6302 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6304         PR testsuite/100397
6305         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6306         declaration to scope of non-'depend'-guarded assignment to avoid races.
6308 2021-05-03  Tom de Vries  <tdevries@suse.de>
6310         PR target/100321
6311         * testsuite/libgomp.c/target-44.c: New test.
6313 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
6315         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6317 2021-04-29  Tom de Vries  <tdevries@suse.de>
6319         * testsuite/libgomp.c/pr81778.c: New test.
6321 2021-04-29  Tom de Vries  <tdevries@suse.de>
6323         PR target/100232
6324         * testsuite/libgomp.c/target-43.c: New file.
6326 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
6327             Tobias Burnus  <tobias@codesourcery.com>
6329         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6330         * target.c (gomp_load_plugin_for_device): If set and if a plugin
6331         can't be dlopened, silently assume it has no devices.
6332         * Makefile.in: Regenerate.
6333         * config.h.in: Regenerate.
6334         * configure: Regenerate.
6336 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6338         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6339         Use [Ww]arning in dg-bogus as FE diagnostic and default
6340         diagnostic differ and the result depends on ENABLE_OFFLOAD.
6341         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6342         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6343         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6345 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6347         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6348         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6349         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6350         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6351         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6353 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6354             Nathan Sidwell  <nathan@codesourcery.com>
6355             Tom de Vries  <vries@codesourcery.com>
6356             Julian Brown  <julian@codesourcery.com>
6357             Kwok Cheung Yeung  <kcy@codesourcery.com>
6359         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6360         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6361         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6362         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6363         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6364         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6365         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6366         Likewise.
6367         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6368         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6369         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6370         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6371         Likewise.
6372         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6373         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6374         Likewise.
6375         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6376         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6377         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6378         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6379         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6380         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6381         Likewise.
6382         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6383         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6384         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6385         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6386         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6387         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6388         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6389         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6390         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6391         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6392         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6394 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6396         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6397         compile with '-w'.
6398         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6399         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6400         Likewise.
6401         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6402         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6403         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6404         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6405         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6406         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6407         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6409 2021-04-22  Richard Biener  <rguenther@suse.de>
6411         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6412         only on nvptx-none.
6414 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6416         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6417         omp_depend_kind instead of defining it as 16.
6419 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6421         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6422         New, based on check_effective_target_offload_target_nvptx.
6423         (check_effective_target_offload_target_nvptx): Call it.
6424         (check_effective_target_offload_target_amdgcn): New.
6425         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6426         Require target offload_target_nvptx || offload_target_amdgcn.
6427         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6428         * testsuite/libgomp.c/pr86416-1.c: Likewise.
6429         * testsuite/libgomp.c/pr86416-2.c: Likewise.
6431 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6433         * testsuite/libgomp.fortran/depobj-1.f90: New test.
6435 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6437         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6438         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6439         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6440         Likewise.
6441         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6442         Likewise.
6443         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6445 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6447         PR target/99555
6448         * testsuite/lib/libgomp.exp
6449         (check_effective_target_offload_device_nvptx): New.
6450         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6451         resolved, make sure that we exit quickly, with error status,
6452         XFAILed.
6453         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6454         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6456 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
6458         PR testsuite/100071
6459         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6460         cp = omp_alloc with cp, p arguments instead of cq, q and call
6461         c_f_pointer after last cq = omp_alloc with cq, q.
6463 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6465         PR middle-end/98088
6466         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6467         for loop with GT/GE condition.
6468         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6470 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
6472         PR middle-end/84991
6473         PR middle-end/84992
6474         PR middle-end/90779
6475         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6477 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
6479         PR libgomp/99984
6480         * team.c (gomp_thread_start): Call pthread_setspecific for
6481         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6482         has been initialized to avoid false positive warning.
6484 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
6486         PR target/99555
6487         * testsuite/lib/on_device_arch.c: Move to ...
6488         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6489         * testsuite/libgomp.fortran/on_device_arch.c: New file;
6490         #include on_device_arch.h.
6491         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6492         on_device_arch.h instead of using dg-additional-source.
6493         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6494         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6495         on_device_arch.c without relative paths.
6497 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6499         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6500         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6501         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6502         * config.h.in: Regenerate.
6503         * configure: Likewise.
6505 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6507         PR target/99555
6508         * testsuite/lib/on_device_arch.c: New file.
6509         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6510         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6511         skip for nvptx offloading, with error status.
6512         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6514 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6516         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6517         OpenACC 'serial' construct diagnostic for nvptx offloading.
6519 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
6521         PR c++/99509
6522         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6524 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
6526         PR fortran/98858
6527         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6529 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
6531         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6532         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6533         checking of -m32 or -mx32 options on the command line.
6534         * config.h.in: Regenerated.
6535         * configure: Regenerated.
6537 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
6539         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6540         support from the target.
6542 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6543             Jakub Jelinek  <jakub@redhat.com>
6545         PR libgomp/98738
6546         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6547         (struct gomp_task): Replace detach and completion_sem fields with
6548         union containing completion_sem and detach_team.  Add deferred_p
6549         field.
6550         (struct gomp_team): Remove task_detach_queue.
6551         * task.c: Include assert.h.
6552         (gomp_init_task): Initialize deferred_p and completion_sem fields.
6553         Rearrange initialization order of fields.
6554         (task_fulfilled_p): Delete.
6555         (GOMP_task): Use address of task as the event handle.  Remove
6556         initialization of detach field.  Initialize deferred_p field.
6557         Use automatic local for completion_sem.  Initialize detach_team field
6558         for deferred tasks.
6559         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6560         Set kind of suspended detach task to GOMP_TASK_DETACHED and
6561         decrement task_running_count.  Move finish_cancelled block out of
6562         else branch.  Relocate call to gomp_team_barrier_done.
6563         (GOMP_taskwait): Handle tasks with completion events that have not
6564         been fulfilled.
6565         (GOMP_taskgroup_end): Likewise.
6566         (omp_fulfill_event): Use address of task as event handle.  Post to
6567         completion_sem for undeferred tasks.  Clear detach_team if task
6568         has not finished.  For finished tasks, handle post-execution tasks,
6569         call gomp_team_barrier_wake if necessary, and free task.
6570         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6571         (free_team): Remove free of task_detach_queue.
6572         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6573         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6574         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6575         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6576         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6577         Change data-sharing of detach events on enclosing parallel to private.
6578         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
6579         taskwait directive.
6580         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6581         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6582         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6583         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6584         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6585         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6586         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6587         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6588         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6589         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6590         Change data-sharing of detach events on enclosing parallel to private.
6591         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
6592         taskwait directive.
6593         * testsuite/libgomp.fortran/task-detach-7.f90: New.
6594         * testsuite/libgomp.fortran/task-detach-8.f90: New.
6595         * testsuite/libgomp.fortran/task-detach-9.f90: New.
6596         * testsuite/libgomp.fortran/task-detach-10.f90: New.
6597         * testsuite/libgomp.fortran/task-detach-11.f90: New.
6599 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
6601         PR fortran/99171
6602         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6604 2021-02-17  Julian Brown  <julian@codesourcery.com>
6606         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6607         expected errors.
6609 2021-02-17  Julian Brown  <julian@codesourcery.com>
6611         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6612         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6614 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6616         * config/linux/x86/futex.h (__futex_wait):
6617         Revert output type back to long.
6618         (__futex_wake): Ditto.
6619         (futex_wait): Update for revert.
6620         (futex_wake): Ditto.
6622 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6624         * config/linux/x86/futex.h (__futex_wait): New static inline
6625         wrapper function.  Correct output type to int and
6626         timeout type to void *.
6627         (__futex_wake): New static inline wrapper function.
6628         Correct output type to int.
6629         (futex_wait): Use __futex_wait.
6630         (futex_wake): Use __futex_wake.
6632 2021-02-10  Julian Brown  <julian@codesourcery.com>
6634         PR fortran/98979
6635         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6636         errors.
6638 2021-02-04  Julian Brown  <julian@codesourcery.com>
6640         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6642 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
6644         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6645         EF_AMDGPU_MACH_AMDGCN_GFX908.
6646         (gcn_gfx908_s): New constant string.
6647         (isa_hsa_name): Add gfx908.
6648         (isa_code): Add gfx908.
6650 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6652         * libgomp.texi (omp_fulfill_event): New entry.
6654 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
6656         * task.c (GOMP_task): Rename priority argument to priority_arg,
6657         add priority automatic variable and modify that variable.  Instead of
6658         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6659         check flags for that bit.
6661 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
6663         PR fortran/98476
6664         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6666 2021-01-18  Andreas Schwab  <schwab@suse.de>
6668         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6670 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6672         * config/rtems/sem.h (gomp_sem_getcount): New function.
6674 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
6676         * config/linux/sem.h (gomp_sem_getcount): New function.
6677         * config/posix/sem.h (gomp_sem_getcount): New function.
6678         * config/posix/sem.c (gomp_sem_getcount): New function.
6679         * config/accel/sem.h (gomp_sem_getcount): New function.
6680         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6681         (omp_fulfill_event): Likewise.
6683 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
6685         * fortran.c (omp_fulfill_event_): New.
6686         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6687         (struct gomp_team): Add task_detach_queue and task_detach_count
6688         fields.
6689         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6690         * libgomp_g.h (GOMP_task): Add extra argument.
6691         * omp.h.in (enum omp_event_handle_t): New.
6692         (omp_fulfill_event): New.
6693         * omp_lib.f90.in (omp_event_handle_kind): New.
6694         (omp_fulfill_event): New.
6695         * omp_lib.h.in (omp_event_handle_kind): New.
6696         (omp_fulfill_event): Declare.
6697         * priority_queue.c (priority_tree_find): New.
6698         (priority_list_find): New.
6699         (priority_queue_find): New.
6700         * priority_queue.h (priority_queue_predicate): New.
6701         (priority_queue_find): New.
6702         * task.c (gomp_init_task): Initialize detach field.
6703         (task_fulfilled_p): New.
6704         (GOMP_task): Add detach argument.  Ignore detach argument if
6705         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
6706         field.  Copy address of completion_sem into detach argument and
6707         into the start of the data record.  Wait for detach event if task
6708         not deferred.
6709         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6710         Remove completed tasks and requeue dependent tasks.
6711         (omp_fulfill_event): New.
6712         * team.c (gomp_new_team): Initialize task_detach_queue and
6713         task_detach_count fields.
6714         (free_team): Free task_detach_queue field.
6715         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6716         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6717         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6718         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6719         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6720         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6721         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6722         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6723         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6724         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6725         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6726         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6728 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
6730         PR target/70454
6731         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6732         be added through preprocessor check on
6733         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6735 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6737         PR libgomp/65099
6738         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6739         configurations.
6740         * configure: Regenerate.
6741         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6742         check.
6744 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6746         * configure: Re-generate.
6748 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6750         * configure: Re-generate.
6752 2021-01-05  Julian Brown  <julian@codesourcery.com>
6754         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6755         (struct ptx_device): Add omp_stacks struct.
6756         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6757         (nvptx_close_device): Free cached stacks block and mutex.
6758         (nvptx_stacks_free): New function.
6759         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6760         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6761         (nvptx_stacks_alloc): Rename to...
6762         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6763         size or smaller is required.
6764         (nvptx_stacks_free): Remove.
6765         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6766         during kernel execution.
6768 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6770         * libgomp.texi: Bump @copying's copyright year.
6772 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6774         * libgomp.texi (Top): Avoid bad "up" link.
6776 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6778         * testsuite/libgomp.c/task-6.c: New test.
6780 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6782         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6783         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6785 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6787         * testsuite/libgomp.fortran/scan-1.f90: New test.
6789 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6791         PR target/97865
6792         * configure: Regenerate.
6794 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6796         * configure: Regenerate.
6798 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6800         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6801         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6803 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6805         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6806         expected results.
6808 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6810         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6811         (reserved): Delete unused define.
6813 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6815         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6816         Tcl 8.5-specific behavior.
6817         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6819 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6821         * env.c (gomp_global_icv): Remove nest_var field.  Add
6822         max_active_levels_var field.
6823         (gomp_max_active_levels_var): Remove.
6824         (parse_boolean): Return true on success.
6825         (handle_omp_display_env): Express OMP_NESTED in terms of
6826         max_active_levels_var.  Change format specifier for
6827         max_active_levels_var.
6828         (initialize_env): Set max_active_levels_var from
6829         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6830         OMP_PROC_BIND.
6831         * icv.c (omp_set_nested): Express in terms of
6832         max_active_levels_var.
6833         (omp_get_nested): Likewise.
6834         (omp_set_max_active_levels): Use max_active_levels_var field instead
6835         of gomp_max_active_levels_var.
6836         (omp_get_max_active_levels): Likewise.
6837         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6838         max_active_levels_var field.
6839         (gomp_supported_active_levels): Set to UCHAR_MAX.
6840         (gomp_max_active_levels_var): Delete.
6841         * libgomp.texi (omp_get_nested): Update documentation.
6842         (omp_set_nested): Likewise.
6843         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6844         (OMP_NESTED): Likewise.
6845         (OMP_NUM_THREADS): Likewise.
6846         (OMP_PROC_BIND): Likewise.
6847         * parallel.c (gomp_resolve_num_threads): Replace reference
6848         to nest_var with max_active_levels_var.  Use max_active_levels_var
6849         field instead of gomp_max_active_levels_var.
6851 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6853         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6854         nvptx_usleep; use also for device={arch(gcn)}.
6856 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6858         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6859         (foo): Add tests for non-VLA private and firstprivate clauses on
6860         omp task.
6861         (bar): Likewise.  Remove taking of address from private/firstprivate
6862         variables.
6863         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6864         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6865         and for non-VLA private and firstprivate clauses on omp task.
6866         (bar): Removed.
6867         (main): Adjust foo caller.  Don't call bar.
6869 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6870             Thomas Schwinge  <thomas@codesourcery.com>
6872         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6873         New.
6874         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6875         Likewise.
6876         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6877         Likewise.
6878         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6879         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6881 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6882             Thomas Schwinge  <thomas@codesourcery.com>
6884         PR fortran/94358
6885         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6887 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6889         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6890         for array reductions.
6891         (main): Adjust foo callers.
6893 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6895         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6896         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6897         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6898         * allocator.c (omp_aligned_alloc): New for now static function,
6899         add alignment argument and handle it.
6900         (omp_alloc): Reimplement using omp_aligned_alloc.
6901         (GOMP_alloc, GOMP_free): New functions.
6902         (omp_free): Add ialias.
6903         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6904         * testsuite/libgomp.c++/allocate-1.C: New test.
6906 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6908         PR fortran/97782
6909         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6911 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6913         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6914         usable.
6915         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6916         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6917         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6918         (goacc_enter_data_internal): Likewise.
6919         * target.c (gomp_map_vars_internal):
6920         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6921         of gomp_attach_pointer for OpenMP cases.
6922         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6923         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6924         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6926 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6927             Kwok Cheung Yeung  <kcy@codesourcery.com>
6929         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6930         * Makefile.in: Regenerate.
6931         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6932         pragmas to ignore -Wdeprecated-declarations warnings.
6933         * icv.c: Likewise.
6934         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6935         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6936         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6937         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6938         deprecated.
6939         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6940         to test options.
6941         * testsuite/libgomp.c/affinity-1.c: Likewise.
6942         * testsuite/libgomp.c/affinity-2.c: Likewise.
6943         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6944         * testsuite/libgomp.c/lib-1.c: Likewise.
6945         * testsuite/libgomp.c/nested-1.c: Likewise.
6946         * testsuite/libgomp.c/nested-2.c: Likewise.
6947         * testsuite/libgomp.c/nested-3.c: Likewise.
6948         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6949         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6950         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6951         * testsuite/libgomp.c/pr35549.c: Likewise.
6952         * testsuite/libgomp.c/pr42942.c: Likewise.
6953         * testsuite/libgomp.c/pr61200.c: Likewise.
6954         * testsuite/libgomp.c/sort-1.c: Likewise.
6955         * testsuite/libgomp.c/target-5.c: Likewise.
6956         * testsuite/libgomp.c/target-6.c: Likewise.
6957         * testsuite/libgomp.c/teams-1.c: Likewise.
6958         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6959         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6960         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6961         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6962         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6963         * testsuite/libgomp.fortran/lib2.f: Likewise.
6964         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6965         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6967 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6969         PR target/85486
6970         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6971         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6972         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6974 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6976         PR testsuite/80219
6977         PR testsuite/85303
6978         * testsuite/lib/libgomp.exp (libgomp_init): Set
6979         'gcc_warning_prefix', 'gcc_error_prefix'.
6981 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6983         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6984         even in field_tgt_clear initializer.
6986 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6988         * testsuite/libgomp.c/target-42.c: New test.
6990 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6991             Tom de Vries  <tdevries@suse.de>
6993         PR testsuite/81690
6994         * testsuite/libgomp.c/usleep.h: New file.
6995         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6996         (main): Use tgt_usleep instead of usleep.
6997         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6998         (main): Use tgt_usleep instead of usleep.
7000 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
7002         PR lto/96680
7003         * testsuite/libgomp.c/declare-variant-1.c: New test.
7005 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
7007         * testsuite/libgomp.c/target-41.c: New test.
7009 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
7011         * icv.c (omp_get_initial_device): Remove including corresponding
7012         ialias.
7013         * icv-device.c (omp_get_initial_device): New function.  Return
7014         gomp_get_num_devices ().  Add ialias.
7015         * target.c (resolve_device): Don't fail with
7016         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
7017         gomp_get_num_devices ().
7018         (omp_target_alloc, omp_target_free, omp_target_is_present,
7019         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
7020         omp_target_disassociate_ptr, omp_pause_resource): Use
7021         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
7022         first use in the functions, in uses dominated by the
7023         gomp_get_num_devices call use num_devices_openmp instead.
7024         * libgomp.texi (omp_get_initial_device): Document.
7025         * config/gcn/icv-device.c (omp_get_initial_device): New function.
7026         Add ialias.
7027         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
7028         * testsuite/libgomp.c/target-40.c: New test.
7030 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
7032         * env.c (parse_target_offload): Change new_offload var type to int,
7033         preinitialize to -1, remove found var and test new_offload != -1
7034         instead of found.
7036 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
7038         * target.c (gomp_target_init): Inside of the function, use automatic
7039         variables corresponding to num_devices, num_devices_openmp and devices
7040         global variables and update the globals only at the end of the
7041         function.
7043 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
7045         * env.c (gomp_target_offload_var): New.
7046         (parse_target_offload): New.
7047         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
7048         (initialize_env): Parse OMP_TARGET_OFFLOAD.
7049         * libgomp.h (gomp_target_offload_t): New.
7050         (gomp_target_offload_var): New.
7051         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
7052         * target.c (resolve_device): Generate error if device not found and
7053         offloading is mandatory.
7054         (gomp_target_fallback): Generate error if offloading is mandatory.
7055         (GOMP_target): Add argument in call to gomp_target_fallback.
7056         (GOMP_target_ext): Likewise.
7057         (gomp_target_data_fallback): Generate error if offloading is mandatory.
7058         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
7059         (GOMP_target_data_ext): Likewise.
7060         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
7061         (gomp_target_init): Return early if offloading is disabled.
7063 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
7065         * libgomp.texi (omp_get_max_active_levels): Modify description.
7066         (omp_get_supported_active_levels): Make descriptions consistent.
7068 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
7070         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
7072 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7074         * env.c (gomp_max_active_levels_var): Initialize to
7075         gomp_supported_active_levels.
7076         (initialize_env): Limit gomp_max_active_levels_var to be at most
7077         equal to gomp_supported_active_levels.
7078         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
7079         (omp_get_supported_active_levels_): New.
7080         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
7081         to at most equal to gomp_supported_active_levels.
7082         (omp_get_supported_active_levels): New.
7083         * libgomp.h (gomp_supported_active_levels): New.
7084         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
7085         omp_get_supported_active_levels_.
7086         * libgomp.texi (omp_get_supported_active_levels): New.
7087         (omp_set_max_active_levels): Update.  Add reference to
7088         omp_get_supported_active_levels.
7089         * omp.h.in (omp_get_supported_active_levels): New.
7090         * omp_lib.f90.in (omp_get_supported_active_levels): New.
7091         * omp_lib.h.in (omp_get_supported_active_levels): New.
7092         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
7093         against omp_get_supported_active_levels.
7094         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
7096 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
7098         * config/t-aix: Delete and recreate libgomp before creating
7099         FAT library.
7101 2020-10-08  Tom de Vries  <tdevries@suse.de>
7103         PR libgomp/81802
7104         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
7105         dimensions.
7107 2020-10-06  Tom de Vries  <tdevries@suse.de>
7109         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
7111 2020-10-06  Tom de Vries  <tdevries@suse.de>
7113         PR middle-end/90861
7114         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
7116 2020-10-05  Tom de Vries  <tdevries@suse.de>
7118         PR fortran/95654
7119         * testsuite/libgomp.fortran/pr95654.f90: New test.
7121 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
7123         * Makefile.in: Regenerate with automake 1.15.1.
7124         * aclocal.m4: Likewise.
7125         * configure: Likewise.
7126         * testsuite/Makefile.in: Likewise.
7128 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
7130         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7131         and amdgcn targets.
7133 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
7135         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7137 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
7139         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7140         total number of threads is one.
7141         (gomp_team_barrier_wake): Likewise.
7142         (gomp_team_barrier_wait_end): Likewise.
7143         (gomp_team_barrier_wait_cancel_end): Likewise.
7144         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7145         (gomp_team_barrier_wake): Likewise.
7146         (gomp_team_barrier_wait_end): Likewise.
7147         (gomp_team_barrier_wait_cancel_end): Likewise.
7148         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7150 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
7152         PR middle-end/96390
7153         * testsuite/libgomp.c++/pr96390.C: New test.
7154         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7156 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
7158         * config/t-aix: Use $(AR) without -X32_64.
7160 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
7162         * testsuite/libgomp.c/loop-25.c: New test.
7164 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
7166         PR fortran/95654
7167         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7169 2020-09-22  Tom de Vries  <tdevries@suse.de>
7171         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7172         fails.
7174 2020-09-16  Nathan Sidwell  <nathan@acm.org>
7176         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7178 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
7180         PR fortran/96668
7181         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7183 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
7185         PR fortran/96668
7186         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7187         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7188         (gomp_map_vars_existing): Update call to it.
7189         (gomp_map_fields_existing): Likewise
7190         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7191         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7192         remapped.
7193         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7194         GOMP_MAP_POINTER.
7195         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7196         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7198 2020-09-14  Tom de Vries  <tdevries@suse.de>
7200         * config/nvptx/atomic.c: New file.  Add
7201         __sync_val_compare_and_swap_16.
7202         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7203         target offload_target_nvptx.
7205 2020-09-08  Julian Brown  <julian@codesourcery.com>
7207         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7208         iteration-ordering assumptions.
7210 2020-09-08  Julian Brown  <julian@codesourcery.com>
7212         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7213         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7215 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
7217         * plugin/plugin-nvptx.c (nvptx_free):
7218         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7219         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7220         comments.
7222 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
7224         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7226 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7228         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7230 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
7232         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7233         * testsuite/libgomp.c/loop-23.c (main): Likewise.
7234         * testsuite/libgomp.c/loop-24.c: New test.
7236 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
7237             Tobias Burnus  <tobias@codesourcery.com>
7239         PR fortran/93553
7240         * testsuite/libgomp.fortran/pr93553.f90: New test.
7242 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7244         * testsuite/libgomp.c/loop-22.c: New test.
7245         * testsuite/libgomp.c/loop-23.c: New test.
7247 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7249         PR middle-end/96459
7250         * testsuite/libgomp.c/teams-3.c: New test.
7251         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7252         if not defined yet.
7253         (N(test)): Use it before all N(f*) calls.
7254         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7255         (main): Don't call all test_* functions from within
7256         #pragma omp teams reduction(|:err), call them directly.
7258 2020-08-04  Tom de Vries  <tdevries@suse.de>
7260         PR target/96428
7261         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7262         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7264 2020-08-03  Julian Brown  <julian@codesourcery.com>
7265             Thomas Schwinge  <thomas@codesourcery.com>
7267         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7268         shared-memory devices.  Extend with further checking.
7270 2020-08-03  Martin Jambor  <mjambor@suse.cz>
7272         * plugin/Makefrag.am: Remove configuration of HSA plugin.
7273         * aclocal.m4: Regenerated.
7274         * Makefile.in: Regenerated.
7275         * config.h.in: Regenerated.
7276         * configure: Regenerated.
7277         * plugin/configfrag.ac: Likewise.
7278         * plugin/hsa_ext_finalize.h: Removed.
7279         * plugin/plugin-hsa.c: Likewise.
7280         * testsuite/Makefile.in: Regenerated.
7281         * testsuite/lib/libgomp.exp
7282         (offload_target_to_openacc_device_type): Remove hsa case.
7283         (check_effective_target_hsa_offloading_selected_nocache): Removed
7284         (check_effective_target_hsa_offloading_selected): Likewise.
7285         (libgomp_init): Do not add -Wno-hsa to additional_flags.
7286         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7287         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7288         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7289         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7290         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7291         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7292         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7293         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7294         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7295         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7296         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7297         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7298         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7299         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7300         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7301         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7302         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7303         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7304         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7305         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7306         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7307         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7308         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7309         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7311 2020-07-27  Julian Brown  <julian@codesourcery.com>
7312             Thomas Schwinge  <thomas@codesourcery.com>
7314         * libgomp.h (struct target_var_desc): Rename do_detach field to
7315         is_attach.
7316         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
7317         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7318         (goacc_enter_data_internal): Don't affect reference counts
7319         for attach mappings.
7320         (goacc_exit_data_internal): Don't affect reference counts for detach
7321         mappings.
7322         * target.c (gomp_map_vars_existing): Don't affect reference counts for
7323         attach mappings.
7324         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7325         mark attach mappings.
7326         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7327         reference count for attach mappings.
7328         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7329         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7330         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7331         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7332         test as shouldfail.
7333         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7334         gracefully in no-finalize mode.
7335         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7337 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
7339         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7340         use.
7341         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7342         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7344 2020-07-23  Julian Brown  <julian@codesourcery.com>
7345             Thomas Schwinge  <thomas@codesourcery.com>
7347         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7348         finalization for detach operation.
7349         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7350         New test.
7352 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
7354         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7355         * libgomp_f.h.in (omp_check_defines): Check whether
7356         sizeof of determined Fortran kind and C typedef match.
7357         * omp_lib.f90.in: Add omp_depened_kind.
7358         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7359         * configure: Regenerate.
7360         * Makefile.in: Regenerate.
7361         * testsuite/Makefile.in: Regenerate.
7363 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7365         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7366         gcc/testsuite/c-c++-common/gomp/.
7367         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7368         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7369         from gcc/testsuite/gfortran.dg/gomp/.
7370         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7372 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7374         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7375         * omp_lib.h.in: Likewise.
7377 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
7379         PR target/95620
7380         * testsuite/libgomp.c/pr95620.c: New test.
7382 2020-07-16  Julian Brown  <julian@codesourcery.com>
7383             Thomas Schwinge  <thomas@codesourcery.com>
7385         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7386         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7388 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7390         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7391         avoid conversion on 32bit systems from 32bit to 64bit due
7392         to -fdefault-integer-8.
7394 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7396         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7397         variables; add character(kind=4) tests; update TODO comment.
7399 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7401         * allocator.c: Add ialias for omp_init_allocator and
7402         omp_destroy_allocator.
7403         * configure.ac: Set INTPTR_T_KIND.
7404         * configure: Regenerate.
7405         * Makefile.in: Regenerate.
7406         * testsuite/Makefile.in: Regenerate.
7407         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7408         omp_set_default_allocator_, omp_get_default_allocator_): New
7409         functions and ialias_redirect.
7410         * icv.c: Add ialias for omp_set_default_allocator and
7411         omp_get_default_allocator.
7412         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7413         omp_destroy_allocator_, omp_set_default_allocator_ and
7414         omp_get_default_allocator_.
7415         * omp_lib.f90.in: Add allocator traits parameters, declare
7416         allocator routines and add related kind parameters.
7417         * omp_lib.h.in: Likewise.
7418         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7419         * testsuite/libgomp.fortran/alloc-1.F90: New test.
7420         * testsuite/libgomp.fortran/alloc-2.F90: New test.
7421         * testsuite/libgomp.fortran/alloc-3.F: New test.
7422         * testsuite/libgomp.fortran/alloc-4.f90: New test.
7423         * testsuite/libgomp.fortran/alloc-5.f90: New test.
7425 2020-07-14  Tom de Vries  <tom@codesourcery.com>
7426             Cesar Philippidis  <cesar@codesourcery.com>
7427             Thomas Schwinge  <thomas@codesourcery.com>
7428             Kwok Cheung Yeung  <kcy@codesourcery.com>
7430         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7431         New variable.
7432         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
7433         acc_init_state to initializing at the start, and to initialized at the
7434         end.
7435         (self_initializing_p): New function.
7436         (acc_get_device_type): Return acc_device_none if called by thread that
7437         is currently executing acc_init_1.
7438         * libgomp.texi (acc_get_device_type): Update documentation.
7439         (Implementation Status and Implementation-Defined Behavior): Likewise.
7440         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7442 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
7444         * config/t-aix: Set BITS from compiler cpp macro.
7446 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7448         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7450 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7452         PR fortran/67311
7453         * testsuite/libgomp.fortran/target-map-1.f90: New test.
7455 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
7457         * testsuite/libgomp.c/loop-21.c: New test.
7459 2020-07-13  Julian Brown  <julian@codesourcery.com>
7460             Thomas Schwinge  <thomas@codesourcery.com>
7462         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7464 2020-07-10  Julian Brown  <julian@codesourcery.com>
7465             Thomas Schwinge  <thomas@codesourcery.com>
7467         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7468         dynamic_refcount.
7469         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7470         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7471         dynamic_refcount.
7472         (acc_unmap_data): Update comment.
7473         (goacc_map_var_existing, goacc_enter_datum): Adjust for
7474         dynamic_refcount semantics.
7475         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7476         Adjust for dynamic_refcount semantics.
7477         (goacc_enter_data_internal): Implement "present" case of dynamic
7478         memory-map handling here.  Update "non-present" case for
7479         dynamic_refcount semantics.
7480         (goacc_exit_data_internal): Use goacc_exit_datum_1.
7481         * target.c (gomp_map_vars_internal): Remove
7482         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
7483         handling.
7484         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7485         (gomp_load_image_to_device): Substitute dynamic_refcount for
7486         virtual_refcount.
7487         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7488         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7489         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7490         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7491         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7492         trace output.
7493         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7494         trace output.
7495         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7496         test.
7497         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7498         Remove stale comment.
7499         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7500         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7501         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7502         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7503         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7504         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7506 2020-07-10  Julian Brown  <julian@codesourcery.com>
7507             Thomas Schwinge  <thomas@codesourcery.com>
7509         * oacc-mem.c (goacc_map_var_existing): New function.
7510         (goacc_enter_datum): Use above function.
7511         (goacc_exit_datum_1): New function.
7512         (goacc_exit_datum): Use above function.
7514 2020-07-09  Julian Brown  <julian@codesourcery.com>
7515             Thomas Schwinge  <thomas@codesourcery.com>
7517         PR middle-end/95270
7518         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7519         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7521 2020-07-09  Julian Brown  <julian@codesourcery.com>
7523         * oacc-mem.c (find_group_last): Group data-movement clauses
7524         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7525         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
7527 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7529         * testsuite/libgomp.c/loop-19.c: New test.
7530         * testsuite/libgomp.c/loop-20.c: New test.
7532 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7534         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7535         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
7536         it.  Remove __omp_alloctrait_value_max__.
7537         * allocator.c (omp_init_allocator): Handle omp_atv_default for
7538         omp_atk_alignment and omp_atk_pool_size.
7540 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7542         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7543         behavior for 'GOMP_MAP_FORCE_FROM'.
7544         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7546 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7548         * oacc-mem.c (goacc_exit_data_internal): Remove
7549         'GOMP_MAP_ALWAYS_FROM' handling.
7551 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7553         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7554         'scan-assembler' with 'scan-offload-rtl'.
7555         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7556         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7557         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7558         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7560 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7562         * target.c (gomp_map_vars_existing): Assert 'kind !=
7563         GOMP_MAP_ATTACH'.
7564         (gomp_map_vars_internal): Clean up.
7566 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
7568         * testsuite/libgomp.c/loop-17.c: New test.
7569         * testsuite/libgomp.c/loop-18.c: New test.
7571 2020-06-26  Marek Polacek  <polacek@redhat.com>
7573         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7575 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
7577         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7578         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7580 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
7582         * Makefile.am: Use -include.
7583         * Makefile.in: Regenerate.
7585 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
7587         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7588         * Makefile.in: Regenerate
7589         * configure.ac (tmake_file): Substitute.
7590         * configure: Regenerate.
7591         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7592         * config/t-aix: New file.
7594 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
7596         PR lto/94848
7597         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7598         'dg-do run'.
7600 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
7602         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7603         variant for HSA_RUNTIME_LIB name.
7604         (find_executable_symbol_1): Delete.
7605         (find_executable_symbol): Delete.
7606         (init_kernel_properties): Add ".kd" suffix to symbol names.
7607         (find_load_offset): Delete.
7608         (create_and_finalize_hsa_program): Remove relocation handling.
7610 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
7612         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7614 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
7616         PR lto/94848
7617         PR middle-end/95551
7618         * testsuite/libgomp.fortran/target-var.f90: New test.
7620 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7621             Julian Brown  <julian@codesourcery.com>
7623         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7624         special handling.
7626 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7627             Julian Brown  <julian@codesourcery.com>
7629         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7630         Simplify.
7632 2020-06-05  Julian Brown  <julian@codesourcery.com>
7634         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7635         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7637 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7639         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7640         Evaluate 'copyfrom' individually for each entry.
7641         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7643 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7645         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7646         Evaluate 'finalize' individually for each entry.
7647         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7648         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7649         file.
7651 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7653         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7654         usage.
7655         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7657 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7658             Julian Brown  <julian@codesourcery.com>
7660         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7661         checking.
7662         (acc_unmap_data, goacc_exit_data_internal): Restore
7663         'is_tgt_unmapped' checking.
7664         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7665         file.
7666         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7667         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7668         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7669         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7670         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7671         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7673 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7674             Julian Brown  <julian@codesourcery.com>
7676         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7678 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7680         PR libgomp/92854
7681         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7683 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7685         PR libgomp/92854
7686         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7687         more.
7689 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7690             Julian Brown  <julian@codesourcery.com>
7692         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7693         'gomp_map_vars'.
7694         (acc_map_data): Clean up accordingly.
7696 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7698         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7699         of over-eager 'finalize' clause.
7700         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7701         file.
7702         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7703         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7704         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7705         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7706         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7707         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7708         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7709         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7711 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7713         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7715 2020-06-04  Julian Brown  <julian@codesourcery.com>
7717         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7718         error path.
7719         (goacc_detach_internal): Likewise.
7721 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7723         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7724         the checkpoint.
7725         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7726         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7727         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7728         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7729         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7731 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7733         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7734         defined.
7736 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7738         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7740 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7742         * allocator.c (omp_alloc): For size == 0, return NULL early.
7744 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7746         PR bootstrap/95413
7747         * configure: Regenerated.
7749 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7751         PR libfortran/95191
7752         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7754 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7756         * omp.h.in (omp_uintptr_t): New typedef.
7757         (__GOMP_UINTPTR_T_ENUM): Define.
7758         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7759         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7760         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7761         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7762         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7763         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7764         (gomp_def_allocator): Declare.
7765         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7766         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7767         omp_alloc and omp_free.
7768         * team.c (gomp_team_start): Copy over ts.def_allocator.
7769         * env.c (gomp_def_allocator): New variable.
7770         (parse_wait_policy): Adjust function comment.
7771         (parse_allocator): New function.
7772         (handle_omp_display_env): Print OMP_ALLOCATOR.
7773         (initialize_env): Call parse_allocator.
7774         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7775         * allocator.c: New file.
7776         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7777         functions.
7778         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7779         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7780         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7781         * Makefile.in: Regenerated.
7783 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7785         PR bootstrap/95147
7786         * configure: Regenerated.
7788 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7790         PR libfortran/95119
7791         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7793 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7795         * configure: Regenerated.
7797 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7799         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7801 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7803         PR fortran/94690
7804         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7805         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7806         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7807         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7808         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7809         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7810         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7812 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7814         * testsuite/libgomp.c/target-39.c: New test.
7816 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7818         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7819         * openacc.f90 (acc_device_current): Likewise.
7820         * openacc.h (acc_device_current): Likewise.
7821         * openacc_lib.h (acc_device_current): Likewise.
7823         PR target/94282
7824         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7825         'dg-allow-blank-lines-in-output'.
7827         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7828         * testsuite/lib/libgomp.exp
7829         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7830         'radeon'.  Adjust all users.
7831         (check_effective_target_openacc_amdgcn_accel_present): Rename
7832         to...
7833         (check_effective_target_openacc_radeon_accel_present): ... this.
7834         Adjust all users.
7835         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7836         (check_effective_target_openacc_radeon_accel_selected): ... this.
7837         Adjust all users.
7839         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7840         'dg-do run'.
7842 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7844         PR other/94629
7846         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7847         hsa_iterate_agents.
7848         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7849         hsa_agent_iterate_regions.
7851 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7853         PR middle-end/94635
7854         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7855         run'.
7857 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7859         PR middle-end/94120
7860         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7861         test case.
7863 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7865         PR middle-end/94635
7866         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7868 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7870         PR libgomp/92843
7871         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7872         Rename to...
7873         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7874         ... this.
7875         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7876         Rename to...
7877         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7878         ... this.
7879         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7880         Rename to...
7881         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7882         ... this.
7883         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7884         Rename to...
7885         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7886         ... this.
7887         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7888         Rename to...
7889         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7890         ... this.
7891         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7892         Rename to...
7893         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7894         ... this.
7895         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7896         Rename to...
7897         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7898         ... this.
7899         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7900         Rename to...
7901         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7902         ... this.
7903         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7904         Rename to...
7905         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7906         ... this.
7907         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7908         Rename to...
7909         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7910         ... this.
7911         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7912         Rename to...
7913         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7914         ... this.
7915         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7916         Rename to...
7917         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7918         ... this.
7919         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7920         Rename to...
7921         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7922         ... this.
7923         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7924         Rename to...
7925         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7926         ... this.
7927         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7928         Rename to...
7929         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7930         ... this.
7931         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7932         Rename to...
7933         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7934         ... this.
7936 2020-04-10  Julian Brown  <julian@codesourcery.com>
7937             Thomas Schwinge  <thomas@codesourcery.com>
7939         PR libgomp/92843
7940         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7941         New file.
7942         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7943         Likewise.
7944         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7945         Likewise.
7946         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7947         Likewise.
7948         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7949         Likewise.
7950         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7951         Likewise.
7952         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7953         Likewise.
7954         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7955         Likewise.
7956         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7957         Likewise.
7958         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7959         Likewise.
7960         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7961         Likewise.
7962         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7963         Likewise.
7964         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7965         Likewise.
7966         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7967         Likewise.
7968         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7969         Likewise.
7970         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7971         Likewise.
7973 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7975         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7976         run'.
7978 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7980         PR middle-end/94120
7981         * libgomp.oacc-c++/declare-pr94120.C: New.
7983 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7985         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7986         files.
7987         * configure: Regenerate.
7988         * testsuite/libgomp-site-extra.exp.in: New file.
7989         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7990         variable.
7991         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7992         variable.
7993         * testsuite/Makefile.in: Regenerate.
7995 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7997         PR tree-optimization/89713
7998         PR c/94392
7999         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
8000         'bar.sync'.
8001         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
8003 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
8005         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
8006         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
8008 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
8010         PR libgomp/81689
8011         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
8013 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
8015         PR libgomp/94251
8016         * target.c (gomp_load_image_to_device): Fix link
8017         variable handling.
8019 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
8021         PR c++/93931
8022         * testsuite/libgomp.c++/pr93931.C: New test.
8024 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
8026         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
8027         dg-allow-blank-lines-in-output.
8029 2020-03-18  Julian Brown <julian@codesourcery.com>
8030             Tobias Burnus  <tobias@codesourcery.com>
8032         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
8033         it work concurrently.
8035 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
8037         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
8038         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
8039         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
8041 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
8043         PR middle-end/93566
8044         * testsuite/libgomp.c/pr93566.c: New test.
8046 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
8048         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
8049         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
8050         integer(acc_device_property) for the type of the return value of
8051         acc_get_property.
8053 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
8055         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
8056         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
8057         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
8058         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
8059         (acc_set_device_num): Fix Fortran argument name, use same name for C.
8060         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
8061         corrections; add note about the previous interface and named constant.
8062         (OpenACC library and environment variables): Fix two typos.
8063         * openacc.f90: Use for all procedures the argument names from the spec
8064         as for â€¦_h they are user visible.
8065         (openacc_kinds): Rename acc_device_property to
8066         acc_device_property_kinds and change value to int32 ; and update users.
8067         Re-add acc_device_property for for backward compatibility.
8068         (acc_get_property_string_h): Clean up as acc_device_property_kind
8069         changed.
8070         (acc_get_property_h): Likewise and return c_size_t instead of
8071         acc_device_property.
8072         (openacc): Also export acc_device_property_kinds.
8073         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
8074         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
8075         handling; check against /= 0 instead of == 1 to match C.
8076         * openacc_lib.h: Use for all procedures the argument names from the spec
8077         as for â€¦_h they are user visible. Place !GCC$ into the first column to
8078         be active also for fixed-form souce form.
8079         (acc_device_current, acc_device_property_kind, acc_device_property,
8080         acc_property_memory, acc_property_free_memory, acc_property_name,
8081         acc_property_vendor, acc_property_driver): New named constants.
8082         (acc_get_property, acc_get_property_string): New generic interface.
8084 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
8086         PR libgomp/93481
8087         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
8088         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
8089         optional.
8090         (gomp_target_task_fn): Assert "devicep->async_run_func".
8091         (clear_unsupported_flags): New function to remove unsupported flags
8092         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
8093         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
8094         * testsuite/libgomp.c/target-33.c:
8095         Remove xfail for offload_target_nvptx.
8096         * testsuite/libgomp.c/target-34.c: Likewise.
8098 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
8100         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
8101         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
8102         * testsuite/libgomp.c/target-34.c: Likewise.
8103         * testsuite/libgomp.c/target-link-1.c: Add xfail for
8104         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
8106 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
8108         * testsuite/libgomp.c/target-38.c: New test.
8110 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
8112         PR libgomp/93515
8113         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
8115 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
8117         * testsuite/lib/libgomp.exp
8118         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
8119         and not as 'source' argument to libgomp_target_compile.
8121 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
8123         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
8124         (gcn_gfx801_s): Remove.
8125         (isa_hsa_name): Remove gfx801.
8126         (isa_gcc_name): Remove gfx801/carizzo.
8127         (isa_code): Remove gfx801.
8129 2020-02-03  Julian Brown  <julian@codesourcery.com>
8130             Tobias Burnus  <tobias@codesourcery.com>
8132         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8133         and *_finalize variants; document acc_attach and acc_detach; update
8134         references from OpenACC 2.0 to 2.6.
8135         * openacc.f90 (openacc_version): Update to 201711.
8136         * openacc_lib.h (openacc_version): Update to 201711.
8137         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8138         openacc_version to 201711.
8139         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8141 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
8143         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8144         and vgpr_count fields.
8145         (struct kernel_info): Add a field for a hsa_kernel_description.
8146         (run_kernel): Reduce the number of threads/workers if the requested
8147         number would require too many VGPRs.
8148         (init_basic_kernel_info): Initialize description field with
8149         the hsa_kernel_description entry for the kernel.
8151 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
8153         PR bootstrap/93409
8154         * plugin/configfrag.ac (enable_offload_targets): Skip
8155         HSA and GCN plugin besides -m32 also for -mx32.
8156         * configure: Regenerate.
8158 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
8160         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8162 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
8164         * plugin-gcn.c (struct agent_info): Add fields "name" and
8165         "vendor_name" ...
8166         (GOMP_OFFLOAD_init_device): ... and init from here.
8167         (struct hsa_context_info): Add field "driver_version_s" ...
8168         (init_hsa_contest): ... and init from here.
8169         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8170         implementation.
8171         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8172         Enable test execution for amdgcn and host offloading targets.
8173         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8174         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8175         (expect_device_properties): Split function into ...
8176         (expect_device_string_properties): ... this new function ...
8177         (expect_device_memory): ... and this new function.
8178         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8179         Add test.
8181 2020-01-28  Julian Brown  <julian@codesourcery.com>
8183         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8184         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8185         component/non-component variable refs in a single directive.
8186         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8188 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
8190         * configure.ac: Handle `--with-toolexeclibdir='.
8191         * Makefile.in: Regenerate.
8192         * aclocal.m4: Regenerate.
8193         * configure: Regenerate.
8194         * testsuite/Makefile.in: Regenerate.
8196 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
8198         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8199         (expect_device_properties): Remove "expected_free_mem" argument,
8200         change "expected_total_mem" argument type to size_t;
8201         change types of acc_get_property results to size_t,
8202         adapt format strings.
8203         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8204         Use %zu instead of %zd to print size_t values.
8205         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8206         rename to ...
8207         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8208         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8209         rename to ...
8210         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8212 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
8214         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8215         the device id.
8217 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
8219         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8220         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8221         Adjust test dimensions for amdgcn.
8222         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8223         gang/worker/vector expectations dynamically.
8224         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8225         (main): Likewise.
8226         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8227         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8228         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8229         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8230         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8231         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8232         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8233         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8234         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8235         (acc_gang): Recognise acc_device_radeon.
8236         (acc_worker): Likewise.
8237         (acc_vector): Likewise.
8238         (main): Set expectations for amdgcn.
8239         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8240         (main): Adjust gang/worker/vector expectations dynamically.
8241         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8242         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8243         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8244         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8245         for amdgcn.
8247 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
8249         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8250         acc_device_radeon.
8251         (openacc): Likewise.
8252         * openacc.f90 (openacc_kinds): Likewise.
8253         (openacc): Likewise.
8254         * openacc.h (acc_device_t): Likewise.
8255         * openacc_lib.h: Likewise.
8256         * testsuite/lib/libgomp.exp
8257         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8258         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8259         (cb_compute_construct_end): Likewise.
8260         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8261         (cb_enqueue_launch_start): Likewise.
8262         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8263         (cb_enter_data_end): Likewise.
8264         (cb_exit_data_start): Likewise.
8265         (cb_exit_data_end): Likewise.
8266         (cb_compute_construct_end): Likewise.
8267         (cb_enqueue_launch_start): Likewise.
8268         (cb_enqueue_launch_end): Likewise.
8269         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8270         (main): Likewise.
8272 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8274         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
8275         to use this instead of 'enum gomp_device_property'.
8276         (GOMP_OFFLOAD_get_property): Rename to...
8277         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
8278         * libgomp.h (struct gomp_device_descr): Move
8279         'GOMP_OFFLOAD_openacc_get_property'...
8280         (struct acc_dispatch_t): ... here.  Adjust all users.
8281         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8283         * target.c (gomp_map_vars_internal)
8284         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8285         paths.
8287 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
8289         PR libgomp/93219
8290         * libgomp.h (gomp_print_string): Change return type from void to int.
8291         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
8292         not all characters have been written.
8294 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
8296         * libgomp.texi: Fix typos, use https.
8298 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
8300         * testsuite/libgomp.fortran/optional-map.f90: Add test for
8301         unallocated/disassociated actual arguments to nonallocatable/nonpointer
8302         dummy arguments; those are/shall be regarded as absent arguments.
8303         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8304         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8306 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
8308         Update copyright years.
8310         * libgomp.texi: Bump @copying's copyright year.
8312 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
8314         PR libgomp/93065
8315         * oacc-init.c (goacc_runtime_deinitialize): New function.
8317 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
8319         PR bootstrap/93074
8320         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8321         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
8323 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
8324             Frederik Harwath  <frederik@codesourcery.com>
8325             Thomas Schwinge  <tschwinge@codesourcery.com>
8327         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8328         * libgomp-plugin.h (gomp_device_property_value): New union.
8329         (gomp_device_property_value): New prototype.
8330         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8331         constant.
8332         (acc_device_property_t): New enum.
8333         (acc_get_property, acc_get_property_string): New prototypes.
8334         * oacc-init.c (acc_get_device_type): Also assert that result
8335         is not `acc_device_current'.
8336         (get_property_any, acc_get_property, acc_get_property_string):
8337         New functions.
8338         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8339         `acc_property_memory', `acc_property_free_memory',
8340         `acc_property_name', `acc_property_vendor' and
8341         `acc_property_driver' constants.  Add `acc_device_property' data
8342         type.
8343         (openacc_internal): Add `acc_get_property' and
8344         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
8345         `acc_get_property_string_h', `acc_get_property_l' and
8346         `acc_get_property_string_l'.
8347         * oacc-host.c (host_get_property): New function.
8348         (host_dispatch): Wire it.
8349         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8350         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8351         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8352         * libgomp.texi (OpenACC Runtime Library Routines): Add
8353         `acc_get_property'.
8354         (acc_get_property): New node.
8355         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8356         function (stub).
8357         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8358         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8359         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8360         calls.
8361         (GOMP_OFFLOAD_get_property): New function.
8362         (struct ptx_device): Add new field "name".
8363         (cuda_driver_version_s): Add new static variable ...
8364         (nvptx_init): ... and init from here.
8366         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8367         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8368         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8369         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8370         with test helper functions.
8372         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8374 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
8376         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8377         variable.
8379 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
8381         * target.c (gomp_map_vars_internal): Restore 'omp declare target
8382         link' handling.
8384 2019-12-19  Julian Brown  <julian@codesourcery.com>
8386         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8387         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8388         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8390 2019-12-19  Julian Brown  <julian@codesourcery.com>
8391             Cesar Philippidis  <cesar@codesourcery.com>
8393         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8394         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8395         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8396         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8397         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8398         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8399         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8400         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8401         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8402         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8403         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8404         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8405         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8407 2019-12-19  Julian Brown  <julian@codesourcery.com>
8409         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8410         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8411         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8412         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8413         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8414         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8415         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8416         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8417         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8418         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8419         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8420         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8422 2019-12-19  Julian Brown  <julian@codesourcery.com>
8424         * libgomp.h (struct target_var_desc): Add do_detach flag.
8425         * oacc-init.c (acc_shutdown_1): Free aux block if present.
8426         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8427         struct components.  Tidy up and add some new checks.
8428         (goacc_enter_data_internal): Update call to find_group_last.
8429         (goacc_exit_data_internal): Support detach operations and
8430         GOMP_MAP_STRUCT.
8431         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8432         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
8433         attach/detach in enter/exit data detection code.
8434         * target.c (gomp_map_vars_existing): Initialise do_detach field of
8435         tgt_var_desc.
8436         (gomp_map_vars_internal): Support attach.
8437         (gomp_unmap_vars_internal): Support detach.
8439 2019-12-19  Julian Brown  <julian@codesourcery.com>
8440             Thomas Schwinge  <thomas@codesourcery.com>
8442         * libgomp.h (struct splay_tree_aux): Add attach_count field.
8443         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8444         * libgomp.map (OACC_2.6): New section. Add acc_attach,
8445         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8446         acc_detach_finalize_async.
8447         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8448         acc_detach, acc_detach_async, acc_detach_finalize,
8449         acc_detach_finalize_async): New functions.
8450         * openacc.h (acc_attach, acc_attach_async, acc_detach,
8451         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8452         prototypes.
8453         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8454         (gomp_remove_var_internal): Free attachment counts if present.
8455         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8456         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8458 2019-12-19  Julian Brown  <julian@codesourcery.com>
8459             Cesar Philippidis  <cesar@codesourcery.com>
8461         * libgomp.h (gomp_map_val): Add prototype.
8462         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8463         open-coding device-address calculation.
8464         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8465         non-present case.
8467 2019-12-19  Julian Brown  <julian@codesourcery.com>
8469         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8470         field for virtual_refcount.
8471         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8472         (gomp_free_memmap): Remove prototype.
8473         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8474         instead of calling gomp_free_memmap.
8475         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8476         dynamic_refcount.
8477         (acc_unmap_data): Open code instead of forcing target_mem_desc's
8478         to_free field to NULL then calling gomp_unmap_vars.  Handle
8479         REFCOUNT_INFINITY on target blocks.
8480         (goacc_enter_data): Rename to...
8481         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
8482         handling for mapping groups.  Use virtual_refcount instead of
8483         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8484         map_map_vars_async call.  Re-do lookup for target pointer return value.
8485         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8486         renamed goacc_enter_datum function.
8487         (goacc_exit_data): Rename to...
8488         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
8489         (acc_delete, acc_delete_async, acc_delete_finalize,
8490         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8491         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8492         goacc_exit_datum function.
8493         (gomp_acc_remove_pointer, find_pointer): Remove functions.
8494         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8495         New functions.
8496         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8497         goacc_exit_data_internal helper functions.
8498         * target.c (gomp_map_vars_internal): Handle
8499         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
8500         semantics.
8501         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8502         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8503         virtual_refcount field instead of dynamic_refcount.
8504         (gomp_free_memmap): Remove function.
8505         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8506         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8507         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8509 2019-12-19  Julian Brown  <julian@codesourcery.com>
8510             Thomas Schwinge  <thomas@codesourcery.com>
8512         * libgomp.h (struct splay_tree_aux): New.
8513         (struct splay_tree_key_s): Replace link_key field with aux pointer.
8514         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8515         to aux struct.
8516         (gomp_remove_var_internal): Free aux block if present.
8517         (gomp_load_image_to_device): Zero-initialise aux field instead of
8518         link_key field.
8519         (omp_target_associate_pointer): Zero-initialise aux field.
8521 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
8523         PR middle-end/86416
8524         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8525         q or none.
8526         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8527         L or none.
8529 2019-12-19  Julian Brown  <julian@codesourcery.com>
8530             Maciej W. Rozycki  <macro@codesourcery.com>
8531             Tobias Burnus  <tobias@codesourcery.com>
8532             Thomas Schwinge  <thomas@codesourcery.com>
8534         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8535         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8536         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8537         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8538         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8539         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8540         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8541         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8542         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8544 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
8546         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8547         called...
8548         (goacc_insert_pointer): ... from here, "present" case.
8549         (goacc_insert_pointer): Inline function into...
8550         (GOACC_enter_exit_data): ... here, and simplify.
8552         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8553         called...
8554         (goacc_insert_pointer): ... from here, "not present" case.
8556         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
8557         all users.
8559         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8560         'goacc_enter_data', 'goacc_exit_data'.
8562         * oacc-mem.c (delete_copyout): Refactor into...
8563         (goacc_exit_data): ... this.  Adjust all users.
8565         * oacc-mem.c (present_create_copy): Refactor into...
8566         (goacc_enter_data): ... this.  Adjust all users.
8568         * target.c (gomp_unmap_vars_internal): Add a safeguard to
8569         'gomp_remove_var'.
8571         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8572         like 'GOMP_MAP_FROM'.
8574         PR libgomp/92726
8575         PR libgomp/92970
8576         PR libgomp/92984
8577         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8578         fails.
8579         (GOACC_enter_exit_data): Simplify accordingly.
8580         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8581         subsuming...
8582         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8583         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8584         file.
8585         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8586         subsuming...
8587         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8588         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8589         file.
8590         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8591         subsuming...
8592         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8594         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8595         'finalize' handling.
8597         PR libgomp/92848
8598         * oacc-mem.c (acc_map_data, present_create_copy)
8599         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8600         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8601         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8602         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8603         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8604         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8605         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8606         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8607         Remove "XFAIL"s.
8609         * target.c (gomp_unmap_tgt): Make it 'static'.
8610         * libgomp.h (gomp_unmap_tgt): Remove.
8612 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
8614         PR middle-end/86416
8615         * testsuite/libgomp.c/pr86416-1.c: New.
8616         * testsuite/libgomp.c/pr86416-2.c: New.
8618 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
8620         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8621         all symbols as public except for the 'use â€¦, only' imported symbol,
8622         which is private.
8623         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8624         all symbols from module openacc_kinds as PUBLIC
8625         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8626         fix comment typo.
8627         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8629 2019-12-13  Julian Brown  <julian@codesourcery.com>
8631         PR libgomp/92881
8633         * libgomp.h (gomp_remove_var_async): Add prototype.
8634         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8635         gomp_remove_var.
8636         * target.c (gomp_unref_tgt): Change return type to bool, indicating
8637         whether target_mem_desc was unmapped.
8638         (gomp_unref_tgt_void): New.
8639         (gomp_remove_var): Reimplement in terms of...
8640         (gomp_remove_var_internal): ...this new helper function.
8641         (gomp_remove_var_async): New, implemented using above helper function.
8642         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8643         gomp_unref_tgt.
8645 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
8647         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8648         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8649         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8650         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8651         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8652         Likewise.
8653         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8654         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8656 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
8658         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8659         as public except for the 'use â€¦, only' imported symbol, which is
8660         private.
8661         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8662         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8663         attributes for acc_copyout_finalize and acc_delete_finalize.
8665 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
8667         PR fortran/92899
8668         * testsuite/libgomp.fortran/atomic1.f90: New test.
8670 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8672         PR libgomp/92843
8673         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8674         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
8675         assertions.
8676         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8677         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8678         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8679         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8680         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8682         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8683         * oacc-mem.c: ... here.
8684         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8685         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8686         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8687         Remove.
8688         * libgomp_g.h: Update.
8690         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8691         * oacc-async.c: ... here.
8692         * oacc-int.h (goacc_wait): Declare.
8693         * libgomp_g.h: Update
8695         PR libgomp/92854
8696         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8697         New file.
8698         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8699         Likewise.
8700         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8701         Likewise.
8702         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8703         Likewise.
8704         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8705         Likewise.
8706         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8707         Likewise.
8709 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8710             Julian Brown  <julian@codesourcery.com>
8712         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8713         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8715 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8717         * omp_lib.h.in: Fix spelling of function declaration
8718         omp_get_cancell(l)ation.
8719         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8720         Fix typos.
8721         * env.c: Fix comment typos.
8722         * oacc-host.c: Likewise.
8723         * ordered.c: Likewise.
8724         * task.c: Likewise.
8725         * team.c: Likewise.
8726         * config/gcn/task.c: Likewise.
8727         * config/gcn/team.c: Likewise.
8728         * config/nvptx/task.c: Likewise.
8729         * config/nvptx/team.c: Likewise.
8730         * plugin/plugin-gcn.c: Likewise.
8731         * testsuite/libgomp.fortran/jacobi.f: Likewise.
8732         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8733         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8735 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8737         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8738         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8739         unnecessary 'dg-additional-options "-w"'.
8741 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8742             Julian Brown  <julian@codesourcery.com>
8744         PR libgomp/92116
8745         PR libgomp/92877
8747         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8748         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8749         Adjust all users.
8750         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8751         Remove XFAIL.
8752         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8753         Likewise.
8754         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8756 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8758         PR libgomp/92503
8759         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8760         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8761         file.
8762         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8763         Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8765         Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8767         Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8769         Likewise.
8770         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8771         Likewise.
8772         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8773         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8774         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8776         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8777         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8778         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8779         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8780         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8781         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8783         PR libgomp/92840
8784         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8785         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8786         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8787         New file.
8788         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8789         Likewise.
8790         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8791         Likewise.
8792         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8793         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8795         PR libgomp/92511
8796         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8797         this file...
8798         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8799         this file...
8800         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8801         file...
8802         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8803         file...
8804         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8805         ... with their content moved into, and extended in this new file.
8806         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8807         New file.
8808         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8809         Likewise.
8810         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8811         Likewise.
8812         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8813         Likewise.
8815         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8817         PR libgomp/92854
8818         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8820         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8822         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8824 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8826         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8827         unique.
8828         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8829         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8830         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8831         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8832         Ditto.
8833         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8834         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8836 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8838         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8840 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8841             Kwok Cheung Yeung <kcy@codesourcery.com>
8843         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8844         if input it a NULL pointer.
8845         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8846         diagnostic of NULL pointer.
8847         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8848         * testsuite/libgomp.fortran/optional-map.f90: New.
8849         * testsuite/libgomp.fortran/use_device_addr-1.f90
8850         (test_dummy_opt_callee_1_absent): New.
8851         (test_dummy_opt_call_1): Call it.
8852         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8853         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8854         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8855         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8856         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8857         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8858         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8859         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8860         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8861         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8862         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8863         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8864         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8865         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8866         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8867         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8869 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8871         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8872         expect dg-output of 'Error termination.' for GCN.
8873         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8874         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8876 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8878         PR fortran/92756
8879         * testsuite/libgomp.fortran/teams1.f90: New test.
8880         * testsuite/libgomp.fortran/teams2.f90: New test.
8882 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8884         * oacc-init.c (acc_known_device_type): Add function.
8885         (unknown_device_type_error): Add function.
8886         (name_of_acc_device_t): Change to call unknown_device_type_error
8887         on unknown type.
8888         (resolve_device): Use acc_known_device_type.
8889         (acc_init): Fail if acc_device_t argument is not valid.
8890         (acc_shutdown): Likewise.
8891         (acc_get_num_devices): Likewise.
8892         (acc_set_device_type): Likewise.
8893         (acc_get_device_num): Likewise.
8894         (acc_set_device_num): Likewise.
8895         (acc_on_device): Add comment that argument validity is not checked.
8897 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8899         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8900         Recognize amdgcn.
8901         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8902         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8903         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8904         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8905         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8907 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8909         PR libgomp/91938
8910         * configure.tgt: Avoid IE tls on *-*-musl*.
8912 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8914         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8915         adding a common-block test case.
8917 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8919         PR c++/60228
8920         * testsuite/libgomp.c++/udr-20.C: New test.
8921         * testsuite/libgomp.c++/udr-21.C: New test.
8923 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8925         * testsuite/lib/libgomp.exp
8926         (check_effective_target_offload_target_nvptx): New proc.
8927         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8928         'dg-skip-if'.
8929         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8930         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8931         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8933 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8935         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8936         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8937         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8938         * testsuite/libgomp.c/private-1.c: Likewise.
8939         * testsuite/libgomp.c/task-1.c: Likewise.
8940         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8942 2019-11-20  Julian Brown  <julian@codesourcery.com>
8944         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8945         aq->mutex here.
8946         (queue_push_launch): Lock aq->mutex before calling
8947         wait_for_queue_nonfull.
8948         (queue_push_callback): Likewise.
8949         (queue_push_asyncwait): Likewise.
8950         (queue_push_placeholder): Likewise.
8952 2019-11-20  Julian Brown  <julian@codesourcery.com>
8954         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8955         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8956         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8957         return code.
8959 2019-11-20  Julian Brown  <julian@codesourcery.com>
8961         PR libgomp/92511
8963         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8964         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8965         in non-present/create case.
8966         (delete_copyout): Change error condition to fail only on copies outside
8967         of mapped block.  Adjust error message accordingly.
8968         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8969         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8970         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8971         message.
8972         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8973         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8974         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8976 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8978         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8979         libatomic in build-tree testing.
8981 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8983         * testsuite/Makefile.in: Regenerate.
8985 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8987         * testsuite/libgomp.c/target-print-1.c: New file.
8988         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8989         * testsuite/libgomp.oacc-c/print-1.c: New file.
8990         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8992 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8993             Kwok Cheung Yeung  <kcy@codesourcery.com>
8994             Julian Brown  <julian@codesourcery.com>
8995             Tom de Vries  <tom@codesourcery.com>
8997         * plugin/Makefrag.am: Add amdgcn plugin support.
8998         * plugin/configfrag.ac: Likewise.
8999         * plugin/plugin-gcn.c: New file.
9000         * configure: Regenerate.
9001         * Makefile.in: Regenerate.
9002         * testsuite/Makefile.in: Regenerate.
9004 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9006         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
9007         and use team_malloc variants.
9008         (gomp_gcn_exit_kernel): Use team_free.
9009         * libgomp.h (TEAM_ARENA_SIZE): Define.
9010         (TEAM_ARENA_START): Define.
9011         (TEAM_ARENA_FREE): Define.
9012         (TEAM_ARENA_END): Define.
9013         (team_malloc): New function.
9014         (team_malloc_cleared): New function.
9015         (team_free): New function.
9016         * team.c (gomp_new_team): Initialize and use team_malloc.
9017         (free_team): Use team_free.
9018         (gomp_free_thread): Use team_free.
9019         (gomp_pause_host): Use team_free.
9020         * work.c (gomp_init_work_share): Use team_malloc.
9021         (gomp_fini_work_share): Use team_free.
9023 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9024             Kwok Cheung Yeung  <kcy@codesourcery.com>
9025             Julian Brown  <julian@codesourcery.com>
9026             Tom de Vries  <tom@codesourcery.com>
9028         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
9029         * Makefile.in: Regenerate.
9030         * config.h.in (PLUGIN_GCN): Add new undef.
9031         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
9032         * config/gcn/affinity-fmt.c: New file.
9033         * config/gcn/bar.c: New file.
9034         * config/gcn/bar.h: New file.
9035         * config/gcn/doacross.h: New file.
9036         * config/gcn/icv-device.c: New file.
9037         * config/gcn/oacc-target.c: New file.
9038         * config/gcn/simple-bar.h: New file.
9039         * config/gcn/target.c: New file.
9040         * config/gcn/task.c: New file.
9041         * config/gcn/team.c: New file.
9042         * config/gcn/time.c: New file.
9043         * configure.ac: Add amdgcn*-*-*.
9044         * configure: Regenerate.
9045         * configure.tgt: Add amdgcn*-*-*.
9046         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
9047         * libgomp.h (gcn_thrs): Add amdgcn variant.
9048         (set_gcn_thrs): Likewise.
9049         (gomp_thread): Likewise.
9050         * oacc-int.h (goacc_thread): Likewise.
9051         * oacc-target.c: New file.
9052         * openacc.f90 (acc_device_gcn): New parameter.
9053         * openacc.h (acc_device_t): Add acc_device_gcn.
9054         * team.c (gomp_free_pool_helper): Add amdgcn support.
9056 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9057             Julian Brown  <julian@codesourcery.com>
9059         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
9060         parameter.
9061         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
9062         queue constructor.
9063         * oacc-host.c (host_openacc_async_construct): Add device parameter.
9064         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
9065         device parameter.
9067 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9069         * configure.tgt (nvptx*-*-*): Add "accel" directory.
9070         * config/nvptx/libgomp-plugin.c: Move ...
9071         * config/accel/libgomp-plugin.c: ... to here.
9072         * config/nvptx/lock.c: Move ...
9073         * config/accel/lock.c: ... to here.
9074         * config/nvptx/mutex.c: Move ...
9075         * config/accel/mutex.c: ... to here.
9076         * config/nvptx/mutex.h: Move ...
9077         * config/accel/mutex.h: ... to here.
9078         * config/nvptx/oacc-async.c: Move ...
9079         * config/accel/oacc-async.c: ... to here.
9080         * config/nvptx/oacc-cuda.c: Move ...
9081         * config/accel/oacc-cuda.c: ... to here.
9082         * config/nvptx/oacc-host.c: Move ...
9083         * config/accel/oacc-host.c: ... to here.
9084         * config/nvptx/oacc-init.c: Move ...
9085         * config/accel/oacc-init.c: ... to here.
9086         * config/nvptx/oacc-mem.c: Move ...
9087         * config/accel/oacc-mem.c: ... to here.
9088         * config/nvptx/oacc-plugin.c: Move ...
9089         * config/accel/oacc-plugin.c: ... to here.
9090         * config/nvptx/omp-lock.h: Move ...
9091         * config/accel/omp-lock.h: ... to here.
9092         * config/nvptx/openacc.f90: Move ...
9093         * config/accel/openacc.f90: ... to here.
9094         * config/nvptx/pool.h: Move ...
9095         * config/accel/pool.h: ... to here.
9096         * config/nvptx/proc.c: Move ...
9097         * config/accel/proc.c: ... to here.
9098         * config/nvptx/ptrlock.c: Move ...
9099         * config/accel/ptrlock.c: ... to here.
9100         * config/nvptx/ptrlock.h: Move ...
9101         * config/accel/ptrlock.h: ... to here.
9102         * config/nvptx/sem.c: Move ...
9103         * config/accel/sem.c: ... to here.
9104         * config/nvptx/sem.h: Move ...
9105         * config/accel/sem.h: ... to here.
9106         * config/nvptx/thread-stacksize.h: Move ...
9107         * config/accel/thread-stacksize.h: ... to here.
9109 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
9110             Tobias Burnus  <tobias@codesourcery.com>
9111             Frederik Harwath  <frederik@codesourcery.com>
9112             Thomas Schwinge  <thomas@codesourcery.com>
9114         libgomp/
9115         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
9116         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
9117         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
9119 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
9120             Kwok Cheung Yeung  <kcy@codesourcery.com>
9122         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
9123         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
9125 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
9127         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9129         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9130         run'.
9131         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9132         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9134 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9136         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9137         Add expected warnings about missing reduction clauses.
9138         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9139         Likewise.
9140         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9141         Likewise.
9142         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9143         Likewise.
9145 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
9147         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9148         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9149         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9150         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9151         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9152         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9154 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
9156         PR fortran/92305
9157         * testsuite/libgomp.fortran/allocatable2.f90: Use
9158         unique numbers with 'stop'.
9159         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9160         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9161         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9162         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9163         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9165 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
9167         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9168         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9169         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9170         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9171         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9172         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9174 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9176         * testsuite/libgomp.fortran/target9.f90: New.
9178 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9180         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9181         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9182         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9183         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9184         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9185         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9186         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9187         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9188         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9189         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9190         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9191         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9192         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9193         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9194         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9195         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9196         * testsuite/libgomp.fortran/associate1.f90: Ditto.
9197         * testsuite/libgomp.fortran/associate2.f90: Ditto.
9198         * testsuite/libgomp.fortran/associate3.f90: Ditto.
9199         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9200         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9201         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9202         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9203         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9204         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9205         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9206         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9207         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9208         * testsuite/libgomp.fortran/character1.f90: Ditto.
9209         * testsuite/libgomp.fortran/character2.f90: Ditto.
9210         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9211         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9212         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9213         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9214         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9215         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9216         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9217         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9218         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9219         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9220         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9221         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9222         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9223         * testsuite/libgomp.fortran/do1.f90: Ditto.
9224         * testsuite/libgomp.fortran/do2.f90: Ditto.
9225         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9226         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9227         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9228         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9229         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9230         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9231         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9232         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9233         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9234         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9235         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9236         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9237         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9238         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9239         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9240         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9241         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9242         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9243         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9244         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9245         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9246         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9247         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9248         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9249         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9250         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9251         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9252         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9253         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9254         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9255         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9256         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9257         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9258         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9259         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9260         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9261         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9262         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9263         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9264         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9265         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9266         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9267         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9268         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9269         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9270         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9271         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9272         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9273         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9274         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9275         * testsuite/libgomp.fortran/lib1.f90: Ditto.
9276         * testsuite/libgomp.fortran/lib4.f90: Ditto.
9277         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9278         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9279         * testsuite/libgomp.fortran/nested1.f90: Ditto.
9280         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9281         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9282         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9283         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9284         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9285         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9286         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9287         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9288         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9289         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9290         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9291         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9292         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9293         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9294         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9295         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9296         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9297         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9298         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9299         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9300         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9301         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9302         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9303         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9304         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9305         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9306         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9307         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9308         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9309         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9310         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9311         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9312         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9313         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9314         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9315         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9316         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9317         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9318         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9319         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9320         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9321         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9322         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9323         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9324         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9325         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9326         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9327         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9328         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9329         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9330         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9331         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9332         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9333         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9334         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9335         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9336         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9337         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9338         * testsuite/libgomp.fortran/reference1.f90: Ditto.
9339         * testsuite/libgomp.fortran/reference2.f90: Ditto.
9340         * testsuite/libgomp.fortran/retval1.f90: Ditto.
9341         * testsuite/libgomp.fortran/retval2.f90: Ditto.
9342         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9343         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9344         * testsuite/libgomp.fortran/simd1.f90: Ditto.
9345         * testsuite/libgomp.fortran/simd2.f90: Ditto.
9346         * testsuite/libgomp.fortran/simd3.f90: Ditto.
9347         * testsuite/libgomp.fortran/simd4.f90: Ditto.
9348         * testsuite/libgomp.fortran/simd5.f90: Ditto.
9349         * testsuite/libgomp.fortran/simd6.f90: Ditto.
9350         * testsuite/libgomp.fortran/simd7.f90: Ditto.
9351         * testsuite/libgomp.fortran/stack.f90: Ditto.
9352         * testsuite/libgomp.fortran/strassen.f90: Ditto.
9353         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9354         * testsuite/libgomp.fortran/tabs2.f: Ditto.
9355         * testsuite/libgomp.fortran/target1.f90: Ditto.
9356         * testsuite/libgomp.fortran/target2.f90: Ditto.
9357         * testsuite/libgomp.fortran/target3.f90: Ditto.
9358         * testsuite/libgomp.fortran/target4.f90: Ditto.
9359         * testsuite/libgomp.fortran/target5.f90: Ditto.
9360         * testsuite/libgomp.fortran/target6.f90: Ditto.
9361         * testsuite/libgomp.fortran/target7.f90: Ditto.
9362         * testsuite/libgomp.fortran/target8.f90: Ditto.
9363         * testsuite/libgomp.fortran/task1.f90: Ditto.
9364         * testsuite/libgomp.fortran/task2.f90: Ditto.
9365         * testsuite/libgomp.fortran/task3.f90: Ditto.
9366         * testsuite/libgomp.fortran/task4.f90: Ditto.
9367         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9368         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9369         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9370         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9371         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9372         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9373         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9374         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9375         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9376         * testsuite/libgomp.fortran/udr1.f90: Ditto.
9377         * testsuite/libgomp.fortran/udr10.f90: Ditto.
9378         * testsuite/libgomp.fortran/udr11.f90: Ditto.
9379         * testsuite/libgomp.fortran/udr12.f90: Ditto.
9380         * testsuite/libgomp.fortran/udr13.f90: Ditto.
9381         * testsuite/libgomp.fortran/udr14.f90: Ditto.
9382         * testsuite/libgomp.fortran/udr15.f90: Ditto.
9383         * testsuite/libgomp.fortran/udr2.f90: Ditto.
9384         * testsuite/libgomp.fortran/udr3.f90: Ditto.
9385         * testsuite/libgomp.fortran/udr4.f90: Ditto.
9386         * testsuite/libgomp.fortran/udr5.f90: Ditto.
9387         * testsuite/libgomp.fortran/udr6.f90: Ditto.
9388         * testsuite/libgomp.fortran/udr7.f90: Ditto.
9389         * testsuite/libgomp.fortran/udr8.f90: Ditto.
9390         * testsuite/libgomp.fortran/udr9.f90: Ditto.
9391         * testsuite/libgomp.fortran/vla1.f90: Ditto.
9392         * testsuite/libgomp.fortran/vla2.f90: Ditto.
9393         * testsuite/libgomp.fortran/vla3.f90: Ditto.
9394         * testsuite/libgomp.fortran/vla4.f90: Ditto.
9395         * testsuite/libgomp.fortran/vla5.f90: Ditto.
9396         * testsuite/libgomp.fortran/vla6.f90: Ditto.
9397         * testsuite/libgomp.fortran/vla7.f90: Ditto.
9398         * testsuite/libgomp.fortran/vla8.f90: Ditto.
9399         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9400         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9402 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9404         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9405         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9406         Ditto; add 'dg-do run' for torture testing.
9407         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
9408         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9409         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9410         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9411         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9412         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9413         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9414         * testsuite/libgomp.fortran/task2.f90: Ditto.
9415         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9416         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9417         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9418         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9419         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9420         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9422 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
9424         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9425         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9426         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9427         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9428         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9429         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9430         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9431         Use 'stop' not abort().
9432         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9433         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9434         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9435         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9436         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9437         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9438         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9439         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9440         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9441         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9442         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9443         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9444         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9445         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9446         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9447         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9448         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9449         Ditto.
9450         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9451         Ditto.
9452         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9453         Ditto.
9454         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9455         Ditto.
9456         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9457         Ditto.
9458         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9459         Ditto.
9460         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9461         Ditto.
9462         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9463         Ditto.
9464         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9465         Ditto.
9466         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9467         Ditto.
9468         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9469         Ditto.
9470         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9471         Ditto.
9472         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9473         Ditto.
9474         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9475         Ditto.
9476         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9477         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9478         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9479         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9480         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9481         Likewise and also add 'dg-do run'.
9482         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9483         Ditto.
9485 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
9486             Tobias Burnus  <tobias@codesourcery.com>
9488         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9489         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9490         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9492 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
9494         PR libgomp/92081
9495         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9496         than 0.
9498 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9500         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9501         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9503 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
9505         PR middle-end/92036
9506         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9507         file.
9509 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
9511         PR testsuite/91884
9512         * testsuite/libgomp.fortran/fortran.exp: Conditionally
9513         add -lquadmath.
9514         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9516 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
9518         PR libgomp/92028
9519         * target.c (gomp_map_vars_internal): Readd the previous
9520         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9521         though do that just in the !not_found_cnt case.
9523 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
9525         * gfortran.dg/gomp/target-simd.f90: New.
9527 2019-10-02  Julian Brown  <julian@codesourcery.com>
9528             Cesar Philippidis  <cesar@codesourcery.com>
9530         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9531         * target.c (FIELD_TGT_EMPTY): Define.
9532         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
9533         as switch instead of list of ifs.
9534         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9536 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
9538         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9539         include. Replace alloca () with __builtin_alloca ().
9540         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9542 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
9544         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9545         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9546         * oacc-parallel.c: Don't include "libgomp_g.h".
9547         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9548         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9549         * aclocal.m4: Regenerated.
9550         * config.h.in: Regenerated.
9551         * configure: Regenerated.
9552         * Makefile.in: Regenerated.
9554 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
9556         * libgomp_g.h: Include stdint.h instead of gstdint.h.
9558 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
9560         * configure: Regenerate.
9562 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
9564         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9565         string is initialized.
9567 2019-09-06  Florian Weimer  <fweimer@redhat.com>
9569         * configure: Regenerate.
9571 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
9573         PR other/79543
9574         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9575         scanning to conform to the GNU Coding Standards.
9576         * configure: Regenerate.
9578 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
9580         PR libgomp/91530
9581         * testsuite/libgomp.c/scan-21.c: New test.
9582         * testsuite/libgomp.c/scan-22.c: New test.
9584 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
9586         PR libgomp/91530
9587         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9588         targets.
9589         * testsuite/libgomp.c/scan-12.c: Likewise.
9590         * testsuite/libgomp.c/scan-13.c: Likewise.
9591         * testsuite/libgomp.c/scan-14.c: Likewise.
9592         * testsuite/libgomp.c/scan-15.c: Likewise.
9593         * testsuite/libgomp.c/scan-16.c: Likewise.
9594         * testsuite/libgomp.c/scan-17.c: Likewise.
9595         * testsuite/libgomp.c/scan-18.c: Likewise.
9596         * testsuite/libgomp.c/scan-19.c: Likewise.
9597         * testsuite/libgomp.c/scan-20.c: Likewise.
9598         * testsuite/libgomp.c++/scan-9.C: Likewise.
9599         * testsuite/libgomp.c++/scan-10.C: Likewise.
9600         * testsuite/libgomp.c++/scan-11.C: Likewise.
9601         * testsuite/libgomp.c++/scan-12.C: Likewise.
9602         * testsuite/libgomp.c++/scan-14.C: Likewise.
9603         * testsuite/libgomp.c++/scan-15.C: Likewise.
9604         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
9605         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9606         * testsuite/libgomp.c++/scan-16.C: Likewise.
9608 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
9610         PR fortran/91473
9611         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9612         -std=legacy so invalid code in the test case is accepted.
9614 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9616         PR fortran/91422
9617         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9618         dimension.
9620 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
9622         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9623         perform the lookup in the first loop only if !not_found_cnt, otherwise
9624         perform lookups for it in the second loop guarded with
9625         if (not_found_cnt || has_firstprivate).
9626         * testsuite/libgomp.c/target-37.c: New test.
9627         * testsuite/libgomp.c++/target-22.C: New test.
9629 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
9631         * testsuite/libgomp.c/target-18.c (struct S): New type.
9632         (foo): Use use_device_addr clause instead of use_device_ptr clause
9633         where required by OpenMP 5.0, add further tests for both use_device_ptr
9634         and use_device_addr clauses.
9635         * testsuite/libgomp.c++/target-9.C (struct S): New type.
9636         (foo): Use use_device_addr clause instead of use_device_ptr clause
9637         where required by OpenMP 5.0, add further tests for both use_device_ptr
9638         and use_device_addr clauses.  Add t and u arguments.
9639         (main): Adjust caller.
9641 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
9643         * testsuite/libgomp.c++/loop-13.C: New test.
9644         * testsuite/libgomp.c++/loop-14.C: New test.
9645         * testsuite/libgomp.c++/loop-15.C: New test.
9647 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9649         PR middle-end/91301
9650         * testsuite/libgomp.c++/for-27.C: New test.
9652 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
9654         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9655         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9657 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9659         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9661 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
9663         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9664         * testsuite/libgomp.c++/scan-16.C: Likewise.
9666 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
9668         * testsuite/libgomp.c/scan-19.c: New test.
9669         * testsuite/libgomp.c/scan-20.c: New test.
9671         * testsuite/libgomp.c/scan-11.c: New test.
9672         * testsuite/libgomp.c/scan-12.c: New test.
9673         * testsuite/libgomp.c/scan-13.c: New test.
9674         * testsuite/libgomp.c/scan-14.c: New test.
9675         * testsuite/libgomp.c/scan-15.c: New test.
9676         * testsuite/libgomp.c/scan-16.c: New test.
9677         * testsuite/libgomp.c/scan-17.c: New test.
9678         * testsuite/libgomp.c/scan-18.c: New test.
9679         * testsuite/libgomp.c++/scan-9.C: New test.
9680         * testsuite/libgomp.c++/scan-10.C: New test.
9681         * testsuite/libgomp.c++/scan-11.C: New test.
9682         * testsuite/libgomp.c++/scan-12.C: New test.
9683         * testsuite/libgomp.c++/scan-13.C: New test.
9684         * testsuite/libgomp.c++/scan-14.C: New test.
9685         * testsuite/libgomp.c++/scan-15.C: New test.
9686         * testsuite/libgomp.c++/scan-16.C: New test.
9688 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
9690         * testsuite/libgomp.c/scan-9.c: New test.
9691         * testsuite/libgomp.c/scan-10.c: New test.
9693 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
9695         * testsuite/libgomp.c++/scan-1.C: New test.
9696         * testsuite/libgomp.c++/scan-2.C: New test.
9697         * testsuite/libgomp.c++/scan-3.C: New test.
9698         * testsuite/libgomp.c++/scan-4.C: New test.
9699         * testsuite/libgomp.c++/scan-5.C: New test.
9700         * testsuite/libgomp.c++/scan-6.C: New test.
9701         * testsuite/libgomp.c++/scan-7.C: New test.
9702         * testsuite/libgomp.c++/scan-8.C: New test.
9703         * testsuite/libgomp.c/scan-1.c: New test.
9704         * testsuite/libgomp.c/scan-2.c: New test.
9705         * testsuite/libgomp.c/scan-3.c: New test.
9706         * testsuite/libgomp.c/scan-4.c: New test.
9707         * testsuite/libgomp.c/scan-5.c: New test.
9708         * testsuite/libgomp.c/scan-6.c: New test.
9709         * testsuite/libgomp.c/scan-7.c: New test.
9710         * testsuite/libgomp.c/scan-8.c: New test.
9712 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9714         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9715         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9716         Likewise.
9718         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9719         check.
9721 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
9723         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9724         file.
9726 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9728         PR fortran/90743
9729         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9730         case.
9731         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9732         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9733         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9734         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9736         PR testsuite/90861
9737         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9739         PR middle-end/90862
9740         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9742 2019-06-16  Tom de Vries  <tdevries@suse.de>
9744         PR tree-optimization/89376
9745         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9747 2019-06-15  Tom de Vries  <tdevries@suse.de>
9749         PR tree-optimization/89713
9750         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9751         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9753 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9755         PR middle-end/90779
9756         * testsuite/libgomp.c/pr90779.c: New test.
9757         * testsuite/libgomp.fortran/pr90779.f90: New test.
9759 2019-06-15  Tom de Vries  <tdevries@suse.de>
9761         PR tree-optimization/90009
9762         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9764 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9766         PR tree-optimization/89713
9767         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9769 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9771         PR target/90811
9772         * testsuite/libgomp.c/pr90811.c: New test.
9774 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9776         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9777         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9779 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9781         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9782         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9783         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9784         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9786 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9788         * configure.ac: Call AX_COUNT_CPUS.
9789         Substitute CPU_COUNT.
9790         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9791         count fallback.
9792         * aclocal.m4: Regenerate.
9793         * configure: Regenerate.
9794         * Makefile.in, testsuite/Makefile.in: Regenerate.
9796 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9798         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9799         to ...
9800         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9801         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9802         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9804 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9806         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9808         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9810         PR libgomp/90641
9811         * work.c (gomp_init_work_share): Instead of aligning final ordered
9812         value to multiples of long long alignment, align to that the
9813         first part (ordered team ids) and if inline_ordered_team_ids
9814         is not on a long long alignment boundary within the structure,
9815         use __alignof__ (long long) - 1 pad size always.
9816         * loop.c (GOMP_loop_start): Fix *mem computation if
9817         inline_ordered_team_ids is not aligned on long long alignment boundary
9818         within the structure.
9819         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9820         * sections.c (GOMP_sections2_start): Likewise.
9822 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9824         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9825         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9827         PR libgomp/90585
9828         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9829         HAVE_INTTYPES_H is defined.
9830         (print_uint64_t): New typedef.
9831         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9832         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9833         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9834         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9835         before casting to void *.
9836         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9837         * oacc-mem.c: Don't include config.h nor stdint.h.
9838         * target.c: Don't include config.h.
9839         * oacc-cuda.c: Likewise.
9840         * oacc-host.c: Don't include stdint.h.
9842 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9844         PR libgomp/90527
9845         * alloc.c (_GNU_SOURCE): Define.
9847 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9849         * acc_prof.h: New file.
9850         * oacc-profiling.c: Likewise.
9851         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9852         Add these, respectively.
9853         * Makefile.in: Regenerate.
9854         * env.c (initialize_env): Call goacc_profiling_initialize.
9855         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9856         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9857         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9858         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9859         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9860         acc_prof_register, acc_prof_unregister, and acc_register_library.
9861         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9862         GOMP_PLUGIN_goacc_thread.
9863         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9864         prof_callbacks_enabled members.
9865         (goacc_prof_enabled, goacc_profiling_initialize)
9866         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9867         (goacc_profiling_dispatch): Declare.
9868         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9869         (GOACC_PROFILING_SETUP_P): Define.
9870         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9871         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9872         OpenACC Profiling Interface.
9873         * oacc-cuda.c (acc_get_current_cuda_device)
9874         (acc_get_current_cuda_context, acc_get_cuda_stream)
9875         (acc_set_cuda_stream): Likewise.
9876         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9877         (acc_init, acc_set_device_type, acc_get_device_type)
9878         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9879         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9880         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9881         (acc_unmap_data, present_create_copy, delete_copyout)
9882         (update_dev_host): Likewise.
9883         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9884         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9885         Likewise.
9886         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9887         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9888         Likewise.
9889         * libgomp.texi: Update.
9890         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9891         file.
9892         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9893         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9894         Likewise.
9895         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9896         Likewise.
9897         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9898         Likewise.
9899         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9900         Likewise.
9902 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9904         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9905         (struct goacc_asyncqueue_list): Likewise.
9906         (goacc_aq): Likewise.
9907         (goacc_aq_list): Likewise.
9908         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9909         (GOMP_OFFLOAD_openacc_async_test): Remove.
9910         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9911         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9912         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9913         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9914         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9915         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9916         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9917         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9918         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9919         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9920         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9921         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9922         (GOMP_OFFLOAD_openacc_async_test): Declare.
9923         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9924         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9925         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9926         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9927         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9929         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9930         (gomp_acc_insert_pointer): Adjust declaration.
9931         (gomp_copy_host2dev): New declaration.
9932         (gomp_copy_dev2host): Likewise.
9933         (gomp_map_vars_async): Likewise.
9934         (gomp_unmap_tgt): Likewise.
9935         (gomp_unmap_vars_async): Likewise.
9936         (gomp_fini_device): Likewise.
9938         * oacc-async.c (get_goacc_thread): New function.
9939         (get_goacc_thread_device): New function.
9940         (lookup_goacc_asyncqueue): New function.
9941         (get_goacc_asyncqueue): New function.
9942         (acc_async_test): Adjust code to use new async design.
9943         (acc_async_test_all): Likewise.
9944         (acc_wait): Likewise.
9945         (acc_wait_async): Likewise.
9946         (acc_wait_all): Likewise.
9947         (acc_wait_all_async): Likewise.
9948         (goacc_async_free): New function.
9949         (goacc_init_asyncqueues): Likewise.
9950         (goacc_fini_asyncqueues): Likewise.
9951         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9952         design.
9953         (acc_set_cuda_stream): Likewise.
9954         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9955         (host_openacc_register_async_cleanup): Remove.
9956         (host_openacc_async_exec): New function.
9957         (host_openacc_async_test): Adjust parameters.
9958         (host_openacc_async_test_all): Remove.
9959         (host_openacc_async_wait): Remove.
9960         (host_openacc_async_wait_async): Remove.
9961         (host_openacc_async_wait_all): Remove.
9962         (host_openacc_async_wait_all_async): Remove.
9963         (host_openacc_async_set_async): Remove.
9964         (host_openacc_async_synchronize): New function.
9965         (host_openacc_async_serialize): New function.
9966         (host_openacc_async_host2dev): New function.
9967         (host_openacc_async_dev2host): New function.
9968         (host_openacc_async_queue_callback): New function.
9969         (host_openacc_async_construct): New function.
9970         (host_openacc_async_destruct): New function.
9971         (struct gomp_device_descr host_dispatch): Remove initialization of old
9972         interface, add initialization of new async sub-struct.
9973         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9974         (goacc_attach_host_thread_to_device): Remove old async code usage.
9975         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9976         (goacc_fini_asyncqueues): Likewise.
9977         (goacc_async_copyout_unmap_vars): Likewise.
9978         (goacc_async_free): Likewise.
9979         (get_goacc_asyncqueue): Likewise.
9980         (lookup_goacc_asyncqueue): Likewise.
9981         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9982         design.
9983         (present_create_copy): Adjust code to use new async design.
9984         (delete_copyout): Likewise.
9985         (update_dev_host): Likewise.
9986         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9987         async design.
9988         (gomp_acc_remove_pointer): Adjust code to use new async design.
9989         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9990         design.
9991         (GOACC_enter_exit_data): Likewise.
9992         (goacc_wait): Likewise.
9993         (GOACC_update): Likewise.
9994         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9995         when called, warn as obsolete in comment.
9996         * target.c (goacc_device_copy_async): New function.
9997         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9998         add goacc_device_copy_async case.
9999         (gomp_copy_dev2host): Likewise.
10000         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
10001         (gomp_map_pointer): Likewise.
10002         (gomp_map_fields_existing): Likewise.
10003         (gomp_map_vars_internal): New always_inline function, renamed from
10004         gomp_map_vars.
10005         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
10006         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
10007         passing goacc_asyncqueue argument.
10008         (gomp_unmap_tgt): Remove static, add attribute_hidden.
10009         (gomp_unref_tgt): New function.
10010         (gomp_unmap_vars_internal): New always_inline function, renamed from
10011         gomp_unmap_vars.
10012         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
10013         (gomp_unmap_vars_async): Implement by calling
10014         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
10015         (gomp_fini_device): New function.
10016         (gomp_exit_data): Adjust gomp_copy_dev2host call.
10017         (gomp_load_plugin_for_device): Remove old interface, adjust to load
10018         new async interface.
10019         (gomp_target_fini): Adjust code to call gomp_fini_device.
10021         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
10022         (struct ptx_stream): Remove.
10023         (struct nvptx_thread): Remove current_stream field.
10024         (cuda_map_create): Remove.
10025         (cuda_map_destroy): Remove.
10026         (map_init): Remove.
10027         (map_fini): Remove.
10028         (map_pop): Remove.
10029         (map_push): Remove.
10030         (struct goacc_asyncqueue): Define.
10031         (struct nvptx_callback): Define.
10032         (struct ptx_free_block): Define.
10033         (struct ptx_device): Remove null_stream, active_streams, async_streams,
10034         stream_lock, and next fields.
10035         (enum ptx_event_type): Remove.
10036         (struct ptx_event): Remove.
10037         (ptx_event_lock): Remove.
10038         (ptx_events): Remove.
10039         (init_streams_for_device): Remove.
10040         (fini_streams_for_device): Remove.
10041         (select_stream_for_async): Remove.
10042         (nvptx_init): Remove ptx_events and ptx_event_lock references.
10043         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
10044         case.
10045         (nvptx_open_device): Add free_blocks initialization, remove
10046         init_streams_for_device call.
10047         (nvptx_close_device): Remove fini_streams_for_device call, add
10048         free_blocks destruct code.
10049         (event_gc): Remove.
10050         (event_add): Remove.
10051         (nvptx_exec): Adjust parameters and code.
10052         (nvptx_free): Likewise.
10053         (nvptx_host2dev): Remove.
10054         (nvptx_dev2host): Remove.
10055         (nvptx_set_async): Remove.
10056         (nvptx_async_test): Remove.
10057         (nvptx_async_test_all): Remove.
10058         (nvptx_wait): Remove.
10059         (nvptx_wait_async): Remove.
10060         (nvptx_wait_all): Remove.
10061         (nvptx_wait_all_async): Remove.
10062         (nvptx_get_cuda_stream): Remove.
10063         (nvptx_set_cuda_stream): Remove.
10064         (GOMP_OFFLOAD_alloc): Adjust code.
10065         (GOMP_OFFLOAD_free): Likewise.
10066         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10067         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
10068         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10069         (GOMP_OFFLOAD_openacc_async_wait): Remove.
10070         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10071         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10072         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10073         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10074         (cuda_free_argmem): New function.
10075         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
10076         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
10077         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
10078         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
10079         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
10080         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
10081         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
10082         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
10083         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
10084         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
10085         (cuda_callback_wrapper): New function.
10086         (cuda_memcpy_sanity_check): New function.
10087         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
10088         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
10089         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
10090         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
10092 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10094         PR target/87835
10095         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
10097 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
10099         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
10101 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
10103         * team.c (gomp_team_start): Initialize pool->threads[0].
10105 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
10107         * testsuite/libgomp.oacc-c++/c++.exp: Specify
10108         "-foffload=$offload_target".
10109         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10110         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10111         * testsuite/lib/libgomp.exp
10112         (check_effective_target_openacc_nvidia_accel_configured): Remove,
10113         as (conceptually) merged into
10114         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
10115         users.
10117         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
10118         * testsuite/libgomp-test-support.exp.in: Adjust.
10119         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
10120         openacc_device_types_s.
10121         (offload_target_to_openacc_device_type): New proc.
10122         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
10123         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10124         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10125         * Makefile.in: Regenerate.
10126         * configure: Likewise.
10127         * testsuite/Makefile.in: Likewise.
10129         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10130         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10131         instead of OFFLOAD_TARGETS.
10132         * target.c (gomp_target_init): Adjust.
10133         * testsuite/libgomp-test-support.exp.in: Likewise.
10134         * testsuite/lib/libgomp.exp: Likewise.  Populate
10135         openacc_device_types_s instead of offload_targets_s_openacc.
10136         (check_effective_target_openacc_nvidia_accel_selected)
10137         (check_effective_target_openacc_host_selected): Adjust.
10138         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10139         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10140         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10141         * Makefile.in: Regenerate.
10142         * config.h.in: Likewise.
10143         * configure: Likewise.
10144         * testsuite/Makefile.in: Likewise.
10146         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10147         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
10148         "offloading: supported, but hardware not accessible".
10149         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10150         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10152 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
10154         PR c/87924
10155         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10156         goacc_wait().
10157         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10158         and related adjustment.
10160 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
10162         PR c++/88988
10163         * testsuite/libgomp.c++/pr88988.C: New test.
10165 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
10167         PR middle-end/89002
10168         * testsuite/libgomp.c/pr89002.c: New test.
10170 2019-01-28  Richard Biener  <rguenther@suse.de>
10172         PR testsuite/89064
10173         PR tree-optimization/86865
10174         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10176 2019-01-24  Tom de Vries  <tdevries@suse.de>
10178         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10179         once instantiated_devices drops to 0.
10181 2019-01-23  Tom de Vries  <tdevries@suse.de>
10183         PR target/PR88946
10184         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10185         cuMemFree.
10186         (nvptx_exec): Don't call map_push if mapnum == 0.
10187         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10189 2019-01-23  Tom de Vries  <tdevries@suse.de>
10191         PR target/88941
10192         PR target/88939
10193         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10194         (map_fini): Remove "assert (!s->map->active)".
10195         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10197 2019-01-23  Tom de Vries  <tdevries@suse.de>
10199         PR target/87835
10200         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10201         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10203 2019-01-15  Tom de Vries  <tdevries@suse.de>
10205         PR target/80547
10206         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10207         New test.
10209 2019-01-12  Tom de Vries  <tdevries@suse.de>
10211         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10212         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10213         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10214         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10216 2019-01-12  Tom de Vries  <tdevries@suse.de>
10218         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10220 2019-01-12  Tom de Vries  <tdevries@suse.de>
10222         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10223         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10224         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10226 2019-01-12  Tom de Vries  <tdevries@suse.de>
10228         PR target/85486
10229         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10230         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10232 2019-01-12  Tom de Vries  <tdevries@suse.de>
10234         PR target/85381
10235         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10236         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10238 2019-01-12  Tom de Vries  <tdevries@suse.de>
10240         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10241         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10242         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10244 2019-01-12  Tom de Vries  <tdevries@suse.de>
10246         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10247         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10248         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10250 2019-01-12  Tom de Vries  <tdevries@suse.de>
10252         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10253         resources diagnostic.
10255 2019-01-12  Tom de Vries  <tdevries@suse.de>
10257         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10258         vector length to be 128.
10259         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10260         length 2097152 to be reduced to 1024 instead of 32.
10262 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
10263             James Norris  <jnorris@codesourcery.com>
10265         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10266         Library Routines", and "Environment Variables".
10268 2019-01-11  Tom de Vries  <tdevries@suse.de>
10270         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10271         num_workers 16.
10273 2019-01-11  Tom de Vries  <tdevries@suse.de>
10275         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10276         -foffload=-w.
10277         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10278         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10279         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10280         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10282 2019-01-11  Tom de Vries  <tdevries@suse.de>
10284         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10285         test.
10287 2019-01-10  Nathan Sidwell  <nathan@acm.org>
10288             Julian Brown  <julian@codesourcery.com>
10290         PR lto/71959
10291         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10292         * testsuite/libgomp.oacc-c++/pr71959.C: New.
10294 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10296         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10297         and paste code.
10299 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10301         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
10302         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10303         write.
10305 2019-01-09  Tom de Vries  <tdevries@suse.de>
10307         PR target/88756
10308         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10309         #define instead of "const int".
10310         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10311         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10312         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10313         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10315 2019-01-09  Tom de Vries  <tdevries@suse.de>
10317         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10318         one worker.
10320 2019-01-07  Tom de Vries  <tdevries@suse.de>
10322         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10323         GOMP_OPENACC_DIM argument.
10325 2019-01-03  Tom de Vries  <tdevries@suse.de>
10327         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10328         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10330 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10332         Update copyright years.
10334 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10336         * libgomp.texi: Bump @copying's copyright year.
10338 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10340         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10341         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10342         (GOACC_declare): Redefine the "device" argument to "flags".
10344 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10345             Cesar Philippidis  <cesar@codesourcery.com>
10347         * target.c (struct gomp_coalesce_chunk): New structure.
10348         (struct gomp_coalesce_buf): Update the chunks member to use that
10349         type.  Adjust all users.
10351 2018-12-19  Tom de Vries  <tdevries@suse.de>
10353         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10354         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10355         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10357 2018-12-19  Tom de Vries  <tdevries@suse.de>
10359         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10360         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10361         gcc/testsuite/gcc.dg/goacc.
10362         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10364 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10365             Chung-Lin Tang  <cltang@codesourcery.com>
10367         * oacc-mem.c (acc_present_or_create): Remove definition and change
10368         to alias of acc_create.
10369         (acc_present_or_copyin): Remove definition and change to alias of
10370         acc_copyin.
10371         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10372         of acc_present_or_create.
10373         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10374         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10375         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10376         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10377         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10378         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10379         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10380         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10381         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10382         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10383         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10384         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10385         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10386         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10387         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10388         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10390 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10392         PR libgomp/88495
10393         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10394         "identical parameters".
10395         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10396         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10398         PR libgomp/88484
10399         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10400         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10402         PR libgomp/88407
10403         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10404         (nvptx_wait_async): Unseen async-argument is a no-op.
10405         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10406         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10407         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10408         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10409         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10410         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10411         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
10412         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10413         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
10415         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10416         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10418 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
10420         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10421         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10422         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10424 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10426         PR libgomp/88370
10427         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10428         (acc_set_cuda_stream): Clarify.
10429         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10430         "async_valid_p".
10431         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10432         acc_async_sync".
10433         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10434         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10435         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10436         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10438 2018-12-14  Tom de Vries  <tdevries@suse.de>
10440         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10441         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10442         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10443         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10444         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10446 2018-12-13  Tom de Vries  <tdevries@suse.de>
10448         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10449         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10450         * fortran.c (omp_display_affinity_): ... here.
10451         * libgomp.h (gomp_print_string): Declare.
10452         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
10453         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10454         write.
10456 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
10458         PR libgomp/88460
10459         * testsuite/libgomp.c++/for-24.C (results): Include it in
10460         omp declare target region.
10461         (main): Use map (always, tofrom: results) instead of
10462         map (tofrom: results).
10464 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
10466         PR fortran/88463
10467         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10468         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10470         * testsuite/libgomp.c-c++-common/for-16.c: New test.
10472 2018-12-12  Andreas Schwab  <schwab@suse.de>
10474         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10475         clobbered.
10477 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
10479         PR fortran/88411
10480         * testsuite/libgomp.fortran/async_io_8.f90: New test.
10482 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
10483             Jakub Jelinek  <jakub@redhat.com>
10485         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10486         devicep->host2dev_func.
10488 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
10490         PR libgomp/87995
10491         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10492         tls_runtime effective target.
10493         (t): New threadprivate variable.
10494         (main): Set t in threads which execute iterations of the worksharing
10495         loop.  Propagate that to the task after the loop and don't abort
10496         if the current taskgroup hasn't been cancelled.
10498 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
10500         * testsuite/libgomp.c/task-reduction-3.c: New test.
10502         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10504 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
10506         PR libgomp/88288
10507         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10508         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10510 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
10512         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10514 2018-10-19  Richard Biener  <rguenther@suse.de>
10516         PR tree-optimization/88182
10517         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10519 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
10521         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10522         (RUNTEST): Don't define.
10523         (RUNTESTDEFAULTFLAGS): Add.
10524         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10525         (distclean-am): Depend on distclean-DEJAGNU.
10526         (check-am): If -j% option is present in MFLAGS and if
10527         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10528         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10529         * testsuite/Makefile.in: Regenerated.
10531 2018-11-26  Richard Biener  <rguenther@suse.de>
10533         PR tree-optimization/88182
10534         * testsuite/libgomp.c++/pr88182.C: New testcase.
10536 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
10538         PR bootstrap/88106
10539         * config/mingw32/affinity-fmt.c: New file.
10541 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
10543         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10544         (gomp_display_affinity): Use __builtin_choose_expr to handle
10545         properly handle argument having integral, or pointer or some other
10546         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
10547         with uint64_t type instead of %llx and unsigned long long.
10549         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10550         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10552 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10554         * affinity.c: Include <string.h>, <stdio.h>.
10555         (gomp_display_affinity_place): Remove cpusetp.
10556         * teams.c: Include <limits.h>.
10558 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
10560         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10561         in_reduction clause for s[0].
10563         * affinity.c (gomp_display_affinity_place): New function.
10564         * affinity-fmt.c: New file.
10565         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10566         * config/linux/affinity.c (gomp_display_affinity_place): New function.
10567         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10568         Move these functions to ...
10569         * config/nvptx/teams.c: ... here.  New file.
10570         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10571         New functions.
10572         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10573         functions.
10574         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10575         and _aligned_malloc.
10576         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10577         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10578         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10579         gomp_affinity_format_len): New variables.
10580         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10581         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
10582         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10583         modifiers.  Display (non-default) chunk sizes.  Print
10584         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10585         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
10586         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10587         * fortran.c: Include stdio.h and string.h.
10588         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10589         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10590         (omp_set_affinity_format_, omp_get_affinity_format_,
10591         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10592         omp_pause_resource_all_): New functions.
10593         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10594         switch.
10595         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10596         functions to ...
10597         * teams.c: ... here.  New file.
10598         * libgomp_g.h: Include gstdint.h.
10599         (GOMP_loop_nonmonotonic_runtime_start,
10600         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10601         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10602         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10603         GOMP_parallel_loop_nonmonotonic_runtime,
10604         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10605         GOMP_loop_ull_nonmonotonic_runtime_start,
10606         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10607         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10608         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10609         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10610         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10611         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10612         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10613         GOMP_teams_reg): Declare.
10614         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10615         gomp_aligned_alloc uses fallback implementation.
10616         (gomp_aligned_alloc, gomp_aligned_free): Declare.
10617         (enum gomp_schedule_type): Add GFS_MONOTONIC.
10618         (struct gomp_doacross_work_share): Add extra field.
10619         (struct gomp_work_share): Add task_reductions field.
10620         (struct gomp_taskgroup): Add workshare and reductions fields.
10621         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10622         (gomp_thread_handle): New typedef.
10623         (gomp_display_affinity_place, gomp_set_affinity_format,
10624         gomp_display_string, gomp_display_affinity,
10625         gomp_display_affinity_thread): Declare.
10626         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10627         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10628         gomp_workshare_task_reduction_register): Declare.
10629         (gomp_team_start): Add taskgroup argument.
10630         (gomp_pause_host): Declare.
10631         (gomp_init_work_share, gomp_work_share_start): Change bool argument
10632         to size_t.
10633         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10634         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10635         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10636         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10637         GOMP_loop_ull_doacross_start,
10638         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10639         GOMP_loop_maybe_nonmonotonic_runtime_next,
10640         GOMP_loop_maybe_nonmonotonic_runtime_start,
10641         GOMP_loop_nonmonotonic_runtime_next,
10642         GOMP_loop_nonmonotonic_runtime_start,
10643         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10644         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10645         GOMP_loop_ull_nonmonotonic_runtime_next,
10646         GOMP_loop_ull_nonmonotonic_runtime_start,
10647         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10648         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10649         GOMP_taskgroup_reduction_register,
10650         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10651         GOMP_teams_reg and GOMP_taskwait_depend.
10652         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10653         omp_{capture,display}_affinity{,_}, and
10654         omp_[gs]et_affinity_format{,_}.
10655         * loop.c: Include string.h.
10656         (GOMP_loop_runtime_next): Add ialias.
10657         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10658         (gomp_loop_static_start, gomp_loop_dynamic_start,
10659         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10660         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10661         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10662         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10663         or gomp_doacross_init callers.
10664         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10665         GOMP_loop_doacross_start): New functions.
10666         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10667         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10668         Mask off GFS_MONOTONIC bit.
10669         (GOMP_loop_maybe_nonmonotonic_runtime_next,
10670         GOMP_loop_maybe_nonmonotonic_runtime_start,
10671         GOMP_loop_nonmonotonic_runtime_next,
10672         GOMP_loop_nonmonotonic_runtime_start,
10673         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10674         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10675         functions.
10676         (gomp_parallel_loop_start): Pass NULL as taskgroup to
10677         gomp_team_start.
10678         * loop_ull.c: Include string.h.
10679         (GOMP_loop_ull_runtime_next): Add ialias.
10680         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10681         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10682         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10683         gomp_loop_ull_ordered_dynamic_start,
10684         gomp_loop_ull_ordered_guided_start,
10685         gomp_loop_ull_doacross_static_start,
10686         gomp_loop_ull_doacross_dynamic_start,
10687         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10688         and gomp_doacross_ull_init callers.
10689         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10690         GOMP_loop_ull_doacross_start): New functions.
10691         (GOMP_loop_ull_runtime_start,
10692         GOMP_loop_ull_ordered_runtime_start,
10693         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10694         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10695         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10696         GOMP_loop_ull_nonmonotonic_runtime_next,
10697         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10698         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10699         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10700         (omp_pause_resource_t, omp_depend_t): New typedefs.
10701         (enum omp_lock_hint_t): Renamed to ...
10702         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
10703         enumerators using numbers and omp_lock_hint_* as their aliases.
10704         (omp_lock_hint_t): New typedef.  Rename to ...
10705         (omp_sync_hint_t): ... this.
10706         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10707         omp_sync_hint_t instead of omp_lock_hint_t.
10708         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10709         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10710         Declare.
10711         (omp_target_is_present, omp_target_disassociate_ptr):
10712         Change first argument from void * to const void *.
10713         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10714         from void * to const void *.
10715         (omp_target_associate_ptr): Change first and second arguments from
10716         void * to const void *.
10717         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10718         omp_pause_hard): New parameters.
10719         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10720         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10721         New interfaces.
10722         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10723         omp_pause_hard): New parameters.
10724         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10725         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10726         New externals.
10727         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10728         EXTRA argument.  If not needed to prepare array, if extra is 0,
10729         clear ws->doacross, otherwise allocate just doacross structure and
10730         extra payload.  If array is needed, allocate also extra payload.
10731         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10732         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10733         doacross == NULL.
10734         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10735         gomp_team_start.
10736         (GOMP_parallel): Likewise.  Formatting fix.
10737         (GOMP_parallel_reductions): New function.
10738         (GOMP_cancellation_point): If taskgroup has workshare
10739         flag set, check cancelled of prev taskgroup if any.
10740         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10741         on prev taskgroup if any.
10742         * sections.c: Include string.h.
10743         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10744         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10745         (GOMP_sections2_start): New function.
10746         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10747         Pass NULL as taskgroup to gomp_team_start.
10748         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10749         gomp_work_share_start callers.
10750         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10751         If taskgroup has workshare flag set, check cancelled on prev
10752         taskgroup if any.  Guard all cancellation tests with
10753         gomp_cancel_var test.
10754         (omp_target_is_present, omp_target_disassociate_ptr):
10755         Change ptr argument from void * to const void *.
10756         (omp_target_memcpy): Change src argument from void * to const void *.
10757         (omp_target_memcpy_rect): Likewise.
10758         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10759         instead of char * where needed.
10760         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10761         from void * to const void *.
10762         (omp_pause_resource, omp_pause_resource_all): New functions.
10763         * task.c (gomp_task_handle_depend): Handle new depend array format
10764         in addition to the old.  Handle mutexinoutset kinds the same as
10765         inout for now, handle unspecified kinds.
10766         (gomp_create_target_task): If taskgroup has workshare flag set, check
10767         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10768         gomp_cancel_var test.  Handle new depend array format count in
10769         addition to the old.
10770         (GOMP_task): Likewise.  Adjust function comment.
10771         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10772         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10773         gomp_cancel_var test.
10774         (GOMP_taskwait_depend): New function.
10775         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10776         format in addition to the old.  Handle mutexinoutset kinds the same as
10777         inout for now, handle unspecified kinds.  Fix a function comment typo.
10778         (gomp_taskgroup_init): New function.
10779         (GOMP_taskgroup_start): Use it.
10780         (gomp_reduction_register, gomp_create_artificial_team,
10781         GOMP_taskgroup_reduction_register,
10782         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10783         gomp_parallel_reduction_register,
10784         gomp_workshare_task_reduction_register,
10785         gomp_workshare_taskgroup_start,
10786         GOMP_workshare_task_reduction_unregister): New functions.
10787         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10788         check cancelled on prev taskgroup if any.  Guard all cancellation
10789         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10790         by calling GOMP_taskgroup_reduction_register.
10791         * team.c (gomp_thread_attr): Remove comment.
10792         (struct gomp_thread_start_data): Add handle field.
10793         (gomp_thread_start): Call pthread_detach.
10794         (gomp_new_team): Adjust gomp_init_work_share caller.
10795         (gomp_free_pool_helper): Call pthread_detach.
10796         (gomp_team_start): Add taskgroup argument, initialize implicit
10797         tasks' taskgroup field to that.  Don't call
10798         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10799         (gomp_team_end): Determine nesting by thr->ts.level != 0
10800         rather than thr->ts.team != NULL.
10801         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10802         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10803         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10804         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10805         if more than 1 allocate also extra payload at the end of array.  Never
10806         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10807         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10808         return true instead of ws.
10809         * Makefile.in: Regenerated.
10810         * configure: Regenerated.
10811         * config.h.in: Regenerated.
10812         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10813         in some cases.
10814         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10815         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10816         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10817         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10818         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10819         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10820         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10821         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10822         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10823         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10824         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10825         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10826         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10827         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10828         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10829         define a different N(test), don't define N(f0) to N(f14), but instead
10830         define N(f20) to N(f34) using != comparisons.
10831         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10832         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10833         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10834         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10835         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10836         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10837         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10838         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10839         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10840         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10841         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10842         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10843         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10844         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10845         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10846         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10847         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10848         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10849         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10850         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10851         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10852         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10853         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10854         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10855         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10856         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10857         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10858         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10859         * testsuite/libgomp.c++/depend-1.C: New test.
10860         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10861         * testsuite/libgomp.c++/depobj-1.C: New test.
10862         * testsuite/libgomp.c++/for-16.C: New test.
10863         * testsuite/libgomp.c++/for-21.C: New test.
10864         * testsuite/libgomp.c++/for-22.C: New test.
10865         * testsuite/libgomp.c++/for-23.C: New test.
10866         * testsuite/libgomp.c++/for-24.C: New test.
10867         * testsuite/libgomp.c++/for-25.C: New test.
10868         * testsuite/libgomp.c++/for-26.C: New test.
10869         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10870         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10871         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10872         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10873         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10874         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10875         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10876         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10877         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10878         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10879         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10880         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10881         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10882         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10883         * testsuite/libgomp.c/task-reduction-1.c: New test.
10884         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10885         * testsuite/libgomp.c/task-reduction-2.c: New test.
10886         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10887         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10888         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10889         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10890         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10891         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10892         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10893         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10894         * testsuite/libgomp.c/teams-1.c: New test.
10895         * testsuite/libgomp.c/teams-2.c: New test.
10896         * testsuite/libgomp.c/thread-limit-4.c: New test.
10897         * testsuite/libgomp.c/thread-limit-5.c: New test.
10898         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10900 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10902         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10903         acc_memcpy_to/from_device functions, now with async parameter.
10904         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10905         (acc_memcpy_from_device): Likewise.
10906         (acc_memcpy_to_device_async): New API function.
10907         (acc_memcpy_from_device_async): Likewise.
10908         (present_create_copy): Add async parameter and async setting/unsetting.
10909         (acc_create): Adjust present_create_copy call.
10910         (acc_copyin): Likewise.
10911         (acc_present_or_create): Likewise.
10912         (acc_present_or_copyin): Likewise.
10913         (acc_create_async): New API function.
10914         (acc_copyin_async): New API function.
10915         (delete_copyout): Add async parameter and async setting/unsetting.
10916         (acc_delete): Adjust delete_copyout call.
10917         (acc_copyout): Likewise.
10918         (acc_delete_async): New API function.
10919         (acc_copyout_async): Likewise.
10920         (update_dev_host): Add async parameter and async setting/unsetting.
10921         (acc_update_device): Adjust update_dev_host call.
10922         (acc_update_self): Likewise.
10923         (acc_update_device_async): New API function.
10924         (acc_update_self_async): Likewise.
10925         * openacc.h (acc_copyin_async): Declare new API function.
10926         (acc_create_async): Likewise.
10927         (acc_copyout_async): Likewise.
10928         (acc_delete_async): Likewise.
10929         (acc_update_device_async): Likewise.
10930         (acc_update_self_async): Likewise.
10931         (acc_memcpy_to_device_async): Likewise.
10932         (acc_memcpy_from_device_async): Likewise.
10933         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10934         (acc_copyin_async_64_h): New subroutine.
10935         (acc_copyin_async_array_h): New subroutine.
10936         (acc_create_async_32_h): New subroutine.
10937         (acc_create_async_64_h): New subroutine.
10938         (acc_create_async_array_h): New subroutine.
10939         (acc_copyout_async_32_h): New subroutine.
10940         (acc_copyout_async_64_h): New subroutine.
10941         (acc_copyout_async_array_h): New subroutine.
10942         (acc_delete_async_32_h): New subroutine.
10943         (acc_delete_async_64_h): New subroutine.
10944         (acc_delete_async_array_h): New subroutine.
10945         (acc_update_device_async_32_h): New subroutine.
10946         (acc_update_device_async_64_h): New subroutine.
10947         (acc_update_device_async_array_h): New subroutine.
10948         (acc_update_self_async_32_h): New subroutine.
10949         (acc_update_self_async_64_h): New subroutine.
10950         (acc_update_self_async_array_h): New subroutine.
10951         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10952         (acc_copyin_async_64_h): New subroutine.
10953         (acc_copyin_async_array_h): New subroutine.
10954         (acc_create_async_32_h): New subroutine.
10955         (acc_create_async_64_h): New subroutine.
10956         (acc_create_async_array_h): New subroutine.
10957         (acc_copyout_async_32_h): New subroutine.
10958         (acc_copyout_async_64_h): New subroutine.
10959         (acc_copyout_async_array_h): New subroutine.
10960         (acc_delete_async_32_h): New subroutine.
10961         (acc_delete_async_64_h): New subroutine.
10962         (acc_delete_async_array_h): New subroutine.
10963         (acc_update_device_async_32_h): New subroutine.
10964         (acc_update_device_async_64_h): New subroutine.
10965         (acc_update_device_async_array_h): New subroutine.
10966         (acc_update_self_async_32_h): New subroutine.
10967         (acc_update_self_async_64_h): New subroutine.
10968         (acc_update_self_async_array_h): New subroutine.
10969         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10970         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10971         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10972         acc_memcpy_to_device_async*, acc_update_device_async*, and
10973         acc_update_self_async* entries.
10974         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10975         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10976         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10978 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10980         PR bootstrap/82856
10981         * Makefile.am: Include multilib.am
10982         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10983         (CLEANFILES): Remove libgomp.info.
10984         * configure.ac: Remove AC_PREREQ.
10985         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10986         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10987         Regenerate.
10989 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10990             Julian Brown  <julian@codesourcery.com>
10992         * testsuite/libgomp.oacc-c++/this.C: New.
10994 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10996         * plugin/plugin-nvptx.c (struct cuda_map): New.
10997         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10998         h_tail with (cuda_map *) map.
10999         (cuda_map_create): New function.
11000         (cuda_map_destroy): New function.
11001         (map_init): Update to use a linked list of cuda_map objects.
11002         (map_fini): Likewise.
11003         (map_pop): Likewise.
11004         (map_push): Likewise.  Return CUdeviceptr instead of void.
11005         (init_streams_for_device): Remove stales references to ptx_stream
11006         members.
11007         (select_stream_for_async): Likewise.
11008         (nvptx_exec): Update call to map_init.
11010 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
11011             Julian Brown  <julian@codesourcery.com>
11013         PR middle-end/86336
11014         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
11016 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
11017         Thomas Koenig <tkoenig@gcc.gnu.org>
11019         PR fortran/25829
11020         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11021         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11022         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11023         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11024         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11025         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11026         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11028 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
11029             Tom de Vries  <tdevries@suse.de>
11031         PR target/85590
11032         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
11033         (cuOccupancyMaxPotentialBlockSize): Declare.
11034         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
11035         CUDA_ONE_CALL_MAYBE_NULL.
11036         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
11037         CUoccupancyB2DSize and declare
11038         cuOccupancyMaxPotentialBlockSize.
11039         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
11040         default num_gangs and num_workers when the driver supports it.
11042 2018-08-08  Tom de Vries  <tdevries@suse.de>
11044         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
11045         CUDA_ONE_CALL_MAYBE_NULL.
11046         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
11047         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
11048         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
11049         are not found.
11051 2018-08-08  Tom de Vries  <tdevries@suse.de>
11053         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
11054         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
11055         present.
11057 2018-08-08  Tom de Vries  <tdevries@suse.de>
11059         * plugin/plugin-nvptx.c
11060         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
11061         (nvptx_open_device): Use
11062         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
11064 2018-08-08  Tom de Vries  <tdevries@suse.de>
11066         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
11067         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
11069 2018-08-07  Tom de Vries  <tdevries@suse.de>
11071         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
11072         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
11073         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
11074         corresponding call in CUDA_ONE_CALL.  Add def/undef of
11075         CUDA_ONE_CALL_MAYBE_NULL.
11076         (CUDA_CALL_EXISTS): Define.
11078 2018-08-07  Tom de Vries  <tdevries@suse.de>
11080         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
11081         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
11082         corresponding undefs right after.
11084 2018-08-04  Tom de Vries  <tdevries@suse.de>
11086         * plugin/configfrag.ac: For --without-cuda-driver, set
11087         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
11088         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
11089         * configure: Regenerate.
11091 2018-08-02  Tom de Vries  <tdevries@suse.de>
11093         PR target/86660
11094         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
11095         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
11096         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11097         Same.
11098         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
11099         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
11100         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
11102 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
11103             Thomas Schwinge <thomas@codesourcery.com>
11105         * config/nvptx/oacc-parallel.c: Truncate.
11107 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
11108             James Norris <jnorris@codesourcery.com>
11110         * plugin/plugin-nvptx.c (struct map): Removed.
11111         (map_init, map_pop): Remove use of struct map.
11112         (map_push): Likewise and change argument list.
11113         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
11115 2018-08-01  Tom de Vries  <tdevries@suse.de>
11117         * plugin/cuda-lib.def: New file.  Factor out of ...
11118         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
11119         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
11120         using CUDA_CALLS.
11122 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11124         Revert 'AsyncI/O patch committed'.
11125         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
11126                 Thomas Koenig <tkoenig@gcc.gnu.org>
11128         PR fortran/25829
11129         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11130         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11131         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11132         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11133         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11134         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11135         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11137 2018-07-30  Tom de Vries  <tdevries@suse.de>
11139         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11140         (nvptx_exec): Ensure worker and vector default dims don't exceed
11141         targ_fn->max_threads_per_block.
11143 2018-07-30  Tom de Vries  <tdevries@suse.de>
11145         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11146         (nvptx_open_device): Init default_dims for device.
11147         (nvptx_exec): Use default_dims from device.
11149 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
11151         PR testsuite/86660
11152         * testsuite/libgomp.c++/for-15.C (results): Include it in
11153         omp declare target region.
11154         (main): Use map (always, tofrom: results) instead of
11155         map (tofrom: results).
11157         PR middle-end/86660
11158         * testsuite/libgomp.c/pr86660.c: New test.
11160 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
11161             Tom de Vries  <tdevries@suse.de>
11163         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11164         sufficient resources to launch a kernel, and give a hint on how to fix
11165         it.
11167 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
11168             Tom de Vries  <tdevries@suse.de>
11170         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11171         max_threads_per_block and max_threads_per_multiprocessor fields.
11172         (nvptx_open_device): Initialize new fields.
11173         (nvptx_exec): Use num_sms, and new fields.
11175 2018-07-26  Tom de Vries  <tdevries@suse.de>
11177         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11178         to correct locations.  Remove xfail.
11180 2018-07-26  Tom de Vries  <tdevries@suse.de>
11182         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11183         acc_wait.  Move acc_async_test calls to correct locations.  Remove
11184         xfail.
11186 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
11187         Thomas Koenig <tkoenig@gcc.gnu.org>
11189         PR fortran/25829
11190         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11191         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11192         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11193         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11194         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11195         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11196         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11198 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
11200         PR middle-end/86542
11201         * testsuite/libgomp.c++/pr86542.C: New test.
11203         PR middle-end/86539
11204         * testsuite/libgomp.c++/pr86539.C: New test.
11206 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
11208         PR c++/86443
11209         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11210         (results): Make sure the variable is not inside declare target region.
11211         (qux): Remove unused function.
11213 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
11215         PR c++/86443
11216         * testsuite/libgomp.c++/for-15.C: New test.
11218 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
11220         PR c++/86291
11221         * testsuite/libgomp.c++/pr86291.C: New test.
11223 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
11225         * libgomp.texi (Top): Move www.openmp.org to https.
11226         (Enabling OpenMP): Ditto.
11227         (omp_get_active_level): Ditto.
11228         (omp_get_ancestor_thread_num): Ditto.
11229         (omp_get_cancellation): Ditto.
11230         (omp_get_default_device): Ditto.
11231         (omp_get_dynamic): Ditto.
11232         (omp_get_level): Ditto.
11233         (omp_get_max_active_levels): Ditto.
11234         (omp_get_max_task_priority): Ditto.
11235         (omp_get_max_threads): Ditto.
11236         (omp_get_nested): Ditto.
11237         (omp_get_num_devices): Ditto.
11238         (omp_get_num_procs): Ditto.
11239         (omp_get_num_teams): Ditto.
11240         (omp_get_num_threads): Ditto.
11241         (omp_get_proc_bind): Ditto.
11242         (omp_get_schedule): Ditto.
11243         (omp_get_team_num): Ditto.
11244         (omp_get_team_size): Ditto.
11245         (omp_get_thread_limit): Ditto.
11246         (omp_get_thread_num): Ditto.
11247         (omp_in_parallel): Ditto.
11248         (omp_in_final): Ditto.
11249         (omp_is_initial_device): Ditto.
11250         (omp_set_default_device): Ditto.
11251         (omp_set_dynamic): Ditto.
11252         (omp_set_max_active_levels): Ditto.
11253         (omp_set_nested): Ditto.
11254         (omp_set_num_threads): Ditto.
11255         (omp_set_schedule): Ditto.
11256         (omp_init_lock): Ditto.
11257         (omp_set_lock): Ditto.
11258         (omp_test_lock): Ditto.
11259         (omp_unset_lock): Ditto.
11260         (omp_destroy_lock): Ditto.
11261         (omp_init_nest_lock): Ditto.
11262         (omp_set_nest_lock): Ditto.
11263         (omp_test_nest_lock): Ditto.
11264         (omp_unset_nest_lock): Ditto.
11265         (omp_destroy_nest_lock): Ditto.
11266         (omp_get_wtick): Ditto.
11267         (omp_get_wtime): Ditto.
11268         (OMP_CANCELLATION): Ditto.
11269         (OMP_DISPLAY_ENV): Ditto.
11270         (OMP_DEFAULT_DEVICE): Ditto.
11271         (OMP_DYNAMIC): Ditto.
11272         (OMP_MAX_ACTIVE_LEVELS): Ditto.
11273         (OMP_MAX_TASK_PRIORITY): Ditto.
11274         (OMP_NESTED): Ditto.
11275         (OMP_NUM_THREADS): Ditto.
11276         (OMP_PROC_BIND): Ditto.
11277         (OMP_PLACES): Ditto.
11278         (OMP_STACKSIZE): Ditto.
11279         (OMP_SCHEDULE): Ditto.
11280         (OMP_THREAD_LIMIT): Ditto.
11281         (OMP_WAIT_POLICY): Ditto.
11283 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
11284             James Norris  <jnorris@codesourcery.com>
11285             Julian Brown  <julian@codesourcery.com>
11286             Thomas Schwinge  <thomas@codesourcery.com>
11287             Tom de Vries  <tom@codesourcery.com>
11289         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11290         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11291         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11292         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11293         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11294         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11295         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11296         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11297         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11298         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11299         Likewise.
11300         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11301         Likewise.
11302         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11303         Likewise.
11304         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11305         Likewise.
11306         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11307         Likewise.
11308         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11309         Likewise.
11310         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11311         Likewise.
11312         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11313         Likewise.
11314         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11315         Likewise.
11316         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11317         Likewise.
11318         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11319         Likewise.
11320         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11321         Likewise.
11322         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11323         Likewise.
11324         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11325         Likewise.
11326         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11327         Likewise.
11328         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11329         Likewise.
11330         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11331         Likewise.
11332         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11333         Likewise.
11334         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11335         Likewise.
11336         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11337         Likewise.
11338         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11339         Likewise.
11340         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11341         Likewise.
11342         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11343         Likewise.
11344         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11345         Likewise.
11346         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11347         Likewise.
11348         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11349         Likewise.
11350         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11351         Likewise.
11352         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11353         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11354         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11355         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11356         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11357         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11358         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11359         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11360         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11361         Likewise.
11362         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11363         Likewise.
11364         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11365         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11366         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11367         Likewise.
11368         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11369         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11370         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11371         Likewise.
11372         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11373         Likewise.
11374         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11375         Likewise.
11376         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11377         Likewise.
11378         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11379         Likewise.
11380         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11381         Likewise.
11382         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11383         Likewise.
11384         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11385         Likewise.
11386         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11387         Likewise.
11388         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11389         Likewise.
11390         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11391         Likewise.
11392         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11393         Likewise.
11394         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11395         Likewise.
11396         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11397         Likewise.
11398         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11399         Likewise.
11400         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11401         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11402         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11403         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11404         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11405         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11406         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11408 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
11409             Thomas Schwinge <thomas@codesourcery.com>
11410             Cesar Philippidis  <cesar@codesourcery.com>
11412         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11413         (gomp_acc_remove_pointer): Update declaration.
11414         (gomp_acc_declare_allocate): Declare.
11415         (gomp_remove_var): Declare.
11416         * libgomp.map (OACC_2.5): Define.
11417         * oacc-mem.c (acc_map_data): Update refcount.
11418         (acc_unmap_data): Likewise.
11419         (present_create_copy): Likewise.
11420         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11421         (acc_copyin): Likewise.
11422         (FLAG_FINALIZE): Define.
11423         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11424         (acc_delete_finalize): New function.
11425         (acc_delete_finalize_async): New function.
11426         (acc_copyout_finalize): New function.
11427         (acc_copyout_finalize_async): New function.
11428         (gomp_acc_insert_pointer): Update refcounts.
11429         (gomp_acc_remove_pointer): Return if data is not present on the
11430         accelerator.
11431         * oacc-parallel.c (find_pset): Rename to find_pointer.
11432         (find_pointer): Add support for GOMP_MAP_POINTER.
11433         (handle_ftn_pointers): New function.
11434         (GOACC_parallel_keyed): Update refcounts of variables.
11435         (GOACC_enter_exit_data): Add support for finalized data mappings.
11436         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11437         of fortran arrays.
11438         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11439         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11440         for GOMP_MAP_FORCE_FROM.
11441         * openacc.f90 (module openacc_internal): Add
11442         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11443         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11444         acc_copyout_finalize and acc_delete_finalize.
11445         (acc_copyout_finalize_32_h): New subroutine.
11446         (acc_copyout_finalize_64_h): New subroutine.
11447         (acc_copyout_finalize_array_h): New subroutine.
11448         (acc_delete_finalize_32_h): New subroutine.
11449         (acc_delete_finalize_64_h): New subroutine.
11450         (acc_delete_finalize_array_h): New subroutine.
11451         * openacc.h (acc_copyout_finalize): Declare.
11452         (acc_copyout_finalize_async): Declare.
11453         (acc_delete_finalize): Declare.
11454         (acc_delete_finalize_async): Declare.
11455         * openacc_lib.h (acc_copyout_finalize): New interface.
11456         (acc_delete_finalize): New interface.
11457         * target.c (gomp_map_vars): Update dynamic_refcount.
11458         (gomp_remove_var): New function.
11459         (gomp_unmap_vars): Use it.
11460         (gomp_unload_image_from_device): Likewise.
11461         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11462         case to utilize OpenACC 2.5 data clause semantics.
11463         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11464         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11465         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11466         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11467         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11468         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11469         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11470         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11471         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11472         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11473         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11474         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11475         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11476         utilize OpenACC 2.5 data clause semantics.
11477         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11478         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11479         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11480         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11481         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11482         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11483         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11484         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11485         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11487 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
11489         PR fortran/85841
11490         PR testsuite/85865
11491         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11492         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11493         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11494         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11495         * testsuite/libgomp.fortran/task2.f90: Ditto.
11496         * testsuite/libgomp.fortran/vla1.f90: Ditto.
11497         * testsuite/libgomp.fortran/vla2.f90: Ditto.
11498         * testsuite/libgomp.fortran/vla3.f90: Ditto.
11499         * testsuite/libgomp.fortran/vla4.f90: Ditto.
11500         * testsuite/libgomp.fortran/vla5.f90: Ditto.
11501         * testsuite/libgomp.fortran/vla6.f90: Ditto.
11502         * testsuite/libgomp.fortran/vla8.f90: Ditto.
11503         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11504         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11506 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
11508         PR c++/85782
11509         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11511 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11513         PR libgomp/82901
11514         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11515         to GOACC_enter_exit_data.
11517 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11519         PR libgomp/83792
11520         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11521         (async_synchronous_p): New function.
11522         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11523         async_valid_p.
11524         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11525         async_valid_stream_id_p.
11526         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11527         * oacc-parallel.c (GOACC_parallel_keyed): Same.
11529 2018-05-07  Tom de Vries  <tom@codesourcery.com>
11531         PR testsuite/85677
11532         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11533         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11535 2018-05-03  Tom de Vries  <tom@codesourcery.com>
11537         PR testsuite/85106
11538         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11539         extra_tool_flags if it contains an -foffload=-fdump-* flag.
11540         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11541         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11543 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11545         PR libgomp/85411
11546         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11547         GOMP_OPENACC_DIM ...
11548         * env.c (parse_gomp_openacc_dim): ... here.  New function.
11549         (initialize_env): Call parse_gomp_openacc_dim.
11550         (goacc_default_dims): Define.
11551         * libgomp.h (goacc_default_dims): Declare.
11552         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11553         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11554         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11555         GOMP_PLUGIN_acc_default_dim.
11556         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11557         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11559 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11561         PR testsuite/83791
11562         * testsuite/libgomp.c++/udr-9.C: Update.
11563         * testsuite/libgomp.c++/atomic-16.C: Remove.
11564         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11565         * testsuite/libgomp.c++/loop-13.C: Remove.
11566         * testsuite/libgomp.c++/loop-14.C: Remove.
11567         * testsuite/libgomp.c++/loop-15.C: Remove.
11568         * testsuite/libgomp.c++/monotonic-1.C: Remove.
11569         * testsuite/libgomp.c++/monotonic-2.C: Remove.
11570         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11571         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11572         * testsuite/libgomp.c++/ordered-1.C: Remove.
11573         * testsuite/libgomp.c++/pr45784.C: Remove.
11574         * testsuite/libgomp.c++/pr64824.C: Remove.
11575         * testsuite/libgomp.c++/pr64868.C: Remove.
11576         * testsuite/libgomp.c++/pr66199-1.C: Remove.
11577         * testsuite/libgomp.c++/pr66199-2.C: Remove.
11578         * testsuite/libgomp.c++/pr66199-3.C: Remove.
11579         * testsuite/libgomp.c++/pr66199-4.C: Remove.
11580         * testsuite/libgomp.c++/pr66199-5.C: Remove.
11581         * testsuite/libgomp.c++/pr66199-6.C: Remove.
11582         * testsuite/libgomp.c++/pr66199-7.C: Remove.
11583         * testsuite/libgomp.c++/pr66199-8.C: Remove.
11584         * testsuite/libgomp.c++/pr66199-9.C: Remove.
11585         * testsuite/libgomp.c++/pr69389.C: Remove.
11586         * testsuite/libgomp.c++/simd10.C: Remove.
11587         * testsuite/libgomp.c++/simd11.C: Remove.
11588         * testsuite/libgomp.c++/simd12.C: Remove.
11589         * testsuite/libgomp.c++/simd13.C: Remove.
11590         * testsuite/libgomp.c++/target-1.C: Remove.
11591         * testsuite/libgomp.c++/target-3.C: Remove.
11592         * testsuite/libgomp.c++/target-4.C: Remove.
11593         * testsuite/libgomp.c++/target-5.C: Remove.
11594         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11595         * testsuite/libgomp.c++/taskloop-1.C: Remove.
11596         * testsuite/libgomp.c++/taskloop-2.C: Remove.
11597         * testsuite/libgomp.c++/taskloop-3.C: Remove.
11598         * testsuite/libgomp.c++/taskloop-4.C: Remove.
11599         * testsuite/libgomp.c++/udr-9.C: Remove.
11600         * testsuite/libgomp.c++/for-10.C: Remove.
11601         * testsuite/libgomp.c++/for-11.C: Remove.
11602         * testsuite/libgomp.c++/for-12.C: Remove.
11603         * testsuite/libgomp.c++/for-13.C: Remove.
11604         * testsuite/libgomp.c++/for-14.C: Remove.
11605         * testsuite/libgomp.c++/for-9.C: Remove.
11606         * testsuite/libgomp.c/atomic-18.c: Move ...
11607         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11608         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11609         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11610         * testsuite/libgomp.c/loop-13.c: Move ...
11611         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11612         * testsuite/libgomp.c/loop-14.c: Move ...
11613         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11614         * testsuite/libgomp.c/loop-15.c: Remove.
11615         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11616         * testsuite/libgomp.c/monotonic-1.c: Move ...
11617         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11618         * testsuite/libgomp.c/monotonic-2.c: Move ...
11619         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11620         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11621         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11622         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11623         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11624         * testsuite/libgomp.c/ordered-4.c: Move ...
11625         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11626         * testsuite/libgomp.c/pr45784.c: Move ...
11627         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11628         * testsuite/libgomp.c/pr64824.c: Move ...
11629         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11630         * testsuite/libgomp.c/pr64868.c: Move ...
11631         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11632         * testsuite/libgomp.c/pr66199-1.c: Move ...
11633         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11634         * testsuite/libgomp.c/pr66199-2.c: Move ...
11635         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11636         * testsuite/libgomp.c/pr66199-3.c: Move ...
11637         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11638         * testsuite/libgomp.c/pr66199-4.c: Move ...
11639         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11640         * testsuite/libgomp.c/pr66199-5.c: Move ...
11641         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11642         * testsuite/libgomp.c/pr66199-6.c: Move ...
11643         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11644         * testsuite/libgomp.c/pr66199-7.c: Move ...
11645         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11646         * testsuite/libgomp.c/pr66199-8.c: Move ...
11647         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11648         * testsuite/libgomp.c/pr66199-9.c: Move ...
11649         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11650         * testsuite/libgomp.c/pr69389.c: Move ...
11651         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11652         * testsuite/libgomp.c/simd-14.c: Move ...
11653         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11654         * testsuite/libgomp.c/simd-15.c: Move ...
11655         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11656         * testsuite/libgomp.c/simd-16.c: Move ...
11657         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11658         * testsuite/libgomp.c/simd-17.c: Move ...
11659         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11660         * testsuite/libgomp.c/target-1.c: Move ...
11661         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11662         * testsuite/libgomp.c/target-10.c: Move ...
11663         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11664         * testsuite/libgomp.c/target-13.c: Move ...
11665         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11666         * testsuite/libgomp.c/target-2.c: Move ...
11667         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11668         * testsuite/libgomp.c/taskgroup-1.c: Move ...
11669         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11670         * testsuite/libgomp.c/taskloop-1.c: Move ...
11671         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11672         * testsuite/libgomp.c/taskloop-2.c: Move ...
11673         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11674         * testsuite/libgomp.c/taskloop-3.c: Move ...
11675         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11676         * testsuite/libgomp.c/taskloop-4.c: Move ...
11677         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11678         * testsuite/libgomp.c/udr-1.c: Move ...
11679         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11680         * testsuite/libgomp.c/for-1.c: Move ...
11681         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11682         * testsuite/libgomp.c/for-1.h: Move ...
11683         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11684         * testsuite/libgomp.c/for-2.c: Move ...
11685         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11686         * testsuite/libgomp.c/for-2.h: Move ...
11687         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11688         * testsuite/libgomp.c/for-3.c: Move ...
11689         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11690         * testsuite/libgomp.c/for-4.c: Move ...
11691         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11692         * testsuite/libgomp.c/for-5.c: Move ...
11693         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11694         * testsuite/libgomp.c/for-6.c: Move ...
11695         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11697 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11699         PR libgomp/82428
11700         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11701         __builtin_goacc_parlevel_{id,size}.
11702         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11703         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11704         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11705         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11706         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11707         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11708         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11709         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11710         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11711         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11712         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11713         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11714         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11715         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11716         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11717         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11718         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11719         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11720         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11721         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11722         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11723         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11724         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11726 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11728         PR testsuite/85106
11729         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11731 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11733         PR testsuite/85106
11734         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11736 2018-04-29  Julian Brown  <julian@codesourcery.com>
11737             Tom de Vries  <tom@codesourcery.com>
11739         PR testsuite/85527
11740         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11741         arbitrary order for iterations of atomic subtract check.
11743 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11745         PR testsuite/85527
11746         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11747         atomic capture results obtained in parallel loop to an array, instead of
11748         to a scalar.
11750 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11752         PR libgomp/84020
11753         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11754         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11755         (process_GOMP_NVPTX_JIT): New function.
11756         (link_ptx): Use process_GOMP_NVPTX_JIT.
11758 2018-04-26  Richard Biener <rguenther@suse.de>
11759             Tom de Vries  <tom@codesourcery.com>
11761         PR lto/85422
11762         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11764 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11766         PR target/85519
11767         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11768         recursion depth from 25 to 23.
11769         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11771 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11773         * configure: Regenerated.
11775 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11776             Tom de Vries  <tom@codesourcery.com>
11778         PR target/85445
11779         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11781 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11783         PR libgomp/85463
11784         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11785         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11786         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11787         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11788         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11789         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11791         PR libfortran/85166
11792         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11793         abort".
11794         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11796 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11798         * configure: Regenerated.
11800 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11802         PR jit/85384
11803         * configure: Regenerate.
11805 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11806             Tom de Vries  <tom@codesourcery.com>
11808         PR middle-end/84955
11809         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11810         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11812 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11814         PR fortran/83064
11815         PR testsuite/85346
11816         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11817         test from gfortran.dg to here.
11819 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11821         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11822         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11824 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11826         PR middle-end/84955
11827         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11828         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11830 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11832         PR target/85204
11833         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11835 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11837         PR tree-optimization/85063
11838         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11839         * testsuite/libgomp.c/switch-conversion.c: New test.
11840         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11841         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11843 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11845         PR fortran/84381
11846         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11847         call abort by STOP n.
11848         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11849         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11850         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11851         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11852         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11853         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11854         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11855         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11856         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11857         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11858         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11859         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11860         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11861         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11862         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11863         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11864         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11865         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11866         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11867         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11868         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11869         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11870         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11871         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11872         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11873         * testsuite/libgomp.fortran/character1.f90: Likewise.
11874         * testsuite/libgomp.fortran/character2.f90: Likewise.
11875         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11876         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11877         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11878         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11879         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11880         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11881         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11882         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11883         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11884         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11885         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11886         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11887         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11888         * testsuite/libgomp.fortran/do1.f90: Likewise.
11889         * testsuite/libgomp.fortran/do2.f90: Likewise.
11890         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11891         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11892         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11893         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11894         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11895         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11896         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11897         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11898         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11899         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11900         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11901         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11902         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11903         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11904         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11905         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11906         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11907         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11908         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11909         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11910         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11911         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11912         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11913         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11914         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11915         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11916         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11917         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11918         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11919         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11920         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11921         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11922         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11923         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11924         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11925         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11926         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11927         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11928         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11929         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11930         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11931         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11932         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11933         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11934         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11935         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11936         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11937         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11938         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11939         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11940         * testsuite/libgomp.fortran/lib2.f: Likewise.
11941         * testsuite/libgomp.fortran/lib3.f: Likewise.
11942         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11943         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11944         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11945         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11946         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11947         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11948         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11949         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11950         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11951         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11952         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11953         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11954         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11955         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11956         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11957         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11958         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11959         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11960         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11961         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11962         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11963         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11964         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11965         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11966         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11967         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11968         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11969         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11970         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11971         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11972         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11973         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11974         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11975         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11976         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11977         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11978         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11979         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11980         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11981         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11982         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11983         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11984         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11985         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11986         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11987         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11988         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11989         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11990         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11991         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11992         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11993         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11994         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11995         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11996         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11997         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11998         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11999         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
12000         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
12001         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
12002         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
12003         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
12004         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
12005         * testsuite/libgomp.fortran/reference1.f90: Likewise.
12006         * testsuite/libgomp.fortran/reference2.f90: Likewise.
12007         * testsuite/libgomp.fortran/retval1.f90: Likewise.
12008         * testsuite/libgomp.fortran/retval2.f90: Likewise.
12009         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
12010         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
12011         * testsuite/libgomp.fortran/simd1.f90: Likewise.
12012         * testsuite/libgomp.fortran/simd2.f90: Likewise.
12013         * testsuite/libgomp.fortran/simd3.f90: Likewise.
12014         * testsuite/libgomp.fortran/simd4.f90: Likewise.
12015         * testsuite/libgomp.fortran/simd5.f90: Likewise.
12016         * testsuite/libgomp.fortran/simd6.f90: Likewise.
12017         * testsuite/libgomp.fortran/simd7.f90: Likewise.
12018         * testsuite/libgomp.fortran/stack.f90: Likewise.
12019         * testsuite/libgomp.fortran/strassen.f90: Likewise.
12020         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
12021         * testsuite/libgomp.fortran/tabs2.f: Likewise.
12022         * testsuite/libgomp.fortran/target1.f90: Likewise.
12023         * testsuite/libgomp.fortran/target2.f90: Likewise.
12024         * testsuite/libgomp.fortran/target3.f90: Likewise.
12025         * testsuite/libgomp.fortran/target4.f90: Likewise.
12026         * testsuite/libgomp.fortran/target5.f90: Likewise.
12027         * testsuite/libgomp.fortran/target6.f90: Likewise.
12028         * testsuite/libgomp.fortran/target7.f90: Likewise.
12029         * testsuite/libgomp.fortran/target8.f90: Likewise.
12030         * testsuite/libgomp.fortran/task1.f90: Likewise.
12031         * testsuite/libgomp.fortran/task2.f90: Likewise.
12032         * testsuite/libgomp.fortran/task3.f90: Likewise.
12033         * testsuite/libgomp.fortran/task4.f90: Likewise.
12034         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
12035         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
12036         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
12037         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
12038         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
12039         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12040         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12041         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12042         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
12043         * testsuite/libgomp.fortran/udr1.f90: Likewise.
12044         * testsuite/libgomp.fortran/udr10.f90: Likewise.
12045         * testsuite/libgomp.fortran/udr11.f90: Likewise.
12046         * testsuite/libgomp.fortran/udr12.f90: Likewise.
12047         * testsuite/libgomp.fortran/udr13.f90: Likewise.
12048         * testsuite/libgomp.fortran/udr14.f90: Likewise.
12049         * testsuite/libgomp.fortran/udr15.f90: Likewise.
12050         * testsuite/libgomp.fortran/udr2.f90: Likewise.
12051         * testsuite/libgomp.fortran/udr3.f90: Likewise.
12052         * testsuite/libgomp.fortran/udr4.f90: Likewise.
12053         * testsuite/libgomp.fortran/udr5.f90: Likewise.
12054         * testsuite/libgomp.fortran/udr6.f90: Likewise.
12055         * testsuite/libgomp.fortran/udr7.f90: Likewise.
12056         * testsuite/libgomp.fortran/udr8.f90: Likewise.
12057         * testsuite/libgomp.fortran/udr9.f90: Likewise.
12058         * testsuite/libgomp.fortran/vla1.f90: Likewise.
12059         * testsuite/libgomp.fortran/vla2.f90: Likewise.
12060         * testsuite/libgomp.fortran/vla3.f90: Likewise.
12061         * testsuite/libgomp.fortran/vla4.f90: Likewise.
12062         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12063         * testsuite/libgomp.fortran/vla6.f90: Likewise.
12064         * testsuite/libgomp.fortran/vla7.f90: Likewise.
12065         * testsuite/libgomp.fortran/vla8.f90: Likewise.
12066         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
12067         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
12068         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12069         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12070         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12071         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12072         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12073         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12074         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12075         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12076         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12077         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
12078         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12079         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
12080         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12081         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12082         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12083         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12084         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12085         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12086         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12087         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12088         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12089         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
12090         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
12091         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12092         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12093         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12094         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12095         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12096         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12097         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12098         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12099         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12100         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12101         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12102         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12103         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12104         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
12105         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12106         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
12107         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12108         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
12109         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
12110         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
12111         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
12112         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12113         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12114         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12115         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12116         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12117         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12118         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12119         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12120         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12121         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12122         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12123         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12124         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12125         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12126         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12127         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12128         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12129         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12130         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12131         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12132         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12133         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12134         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12135         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12136         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12137         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12138         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12139         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12140         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12141         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12142         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12143         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12144         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12145         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12146         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12147         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12148         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12149         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12150         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12151         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12152         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12153         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12154         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12155         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12156         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12157         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12158         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12159         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12161 2018-03-20  Richard Biener  <rguenther@suse.de>
12163         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12164         parallelizable loop.
12166 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12168         PR target/84148
12169         * configure: Regenerate.
12171 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
12173         PR fortran/84418
12174         * libgomp.fortran/pr84418-1.f90: New test.
12175         * libgomp.fortran/pr84418-2.f90: New test.
12177 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
12179         PR fortran/84313
12180         * testsuite/libgomp.fortran/threadprivate4.f90: Add
12181         -std=f2003 -fall-intrinsics into dg-additional-options.
12183 2018-02-08  Martin Jambor  <mjambor@suse.cz>
12185         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12186         clonable.
12188 2018-02-08  Martin Jambor  <mjambor@suse.cz>
12190         * testsuite/libgomp.hsa.c/staticvar.c: New test.
12192 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12194         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12195         [__cplusplus]: Declare extern "C".
12197 2018-02-07  Tom de Vries  <tom@codesourcery.com>
12199         PR libgomp/84217
12200         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12202 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
12203             Jakub Jelinek  <jakub@redhat.com>
12205         PR libgomp/84096
12206         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12207         instead of omp_lock_t.
12209 2018-01-25  Tom de Vries  <tom@codesourcery.com>
12211         PR target/84028
12212         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12214 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12216         PR target/83589
12217         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12219 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12221         PR target/81352
12222         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12224 2018-01-19  Tom de Vries  <tom@codesourcery.com>
12225             Cesar Philippidis  <cesar@codesourcery.com>
12227         PR target/83920
12228         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12229         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12231 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
12233         Update copyright years.
12235         * libgomp.texi: Bump @copying's copyright year.
12237 2017-12-30  Tom de Vries  <tom@codesourcery.com>
12239         PR libgomp/83046
12240         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12241         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12243 2017-12-27  Tom de Vries  <tom@codesourcery.com>
12245         PR c++/83046
12246         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12247         (test_nonstatic): Fix return type to workaround PR83046.
12249 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
12251         PR testsuite/83281
12252         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12253         j suffix instead of i.
12254         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12255         Likewise.
12257 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
12259         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12260         call to acc_wait (1).
12262 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
12264         PR fortran/81304
12265         * testsuite/libgomp.fortran/pr81304.f90: New test.
12267 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
12269         PR fortran/81841
12270         * libgomp.fortran/pr81841.f90: New test.
12272 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
12274         PR libgomp/83106
12275         * target.c (gomp_target_init): Compute lengths just once and
12276         use them in both malloc size and subsequent copying.
12278 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12280         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12281         * acinclude.m4: Add cet.m4.
12282         * configure: Regenerate.
12283         * Makefile.in: Likewise.
12284         * testsuite/Makefile.in: Likewise.
12286 2017-11-15  Tom de Vries  <tom@codesourcery.com>
12288         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12289         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
12290         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12291         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
12292         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12293         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
12295 2017-11-14  Tom de Vries  <tom@codesourcery.com>
12297         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12298         non-nvidia devices.
12300 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
12302         PR c++/82835
12303         * testsuite/libgomp.c++/pr82835.C: New test.
12305 2017-11-06  Martin Liska  <mliska@suse.cz>
12307         * testsuite/libgomp.c++/loop-2.C: Return a value
12308         for functions with non-void return type, or change type to void,
12309         or add -Wno-return-type for test.
12310         * testsuite/libgomp.c++/loop-4.C: Likewise.
12311         * testsuite/libgomp.c++/parallel-1.C: Likewise.
12312         * testsuite/libgomp.c++/shared-1.C: Likewise.
12313         * testsuite/libgomp.c++/single-1.C: Likewise.
12314         * testsuite/libgomp.c++/single-2.C: Likewise.
12316 2017-10-31  Tom de Vries  <tom@codesourcery.com>
12318         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12319         "do {} while (false)".
12320         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12321         after HSA_DEBUG call.
12323 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
12325         * target.c (struct gomp_coalesce_buf): New type.
12326         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12327         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12328         (gomp_copy_host2dev): Add CBUF argument, if copying into
12329         the cached ranges, memcpy into buffer instead of copying
12330         into device.
12331         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12332         Add CBUF argument, pass it through to other calls.
12333         (gomp_map_vars): Aggregate copies from host to device if small enough
12334         and with small enough gaps in between into memcpy into a buffer and
12335         fewer host to device copies from the buffer.
12336         (gomp_update): Adjust gomp_copy_host2dev caller.
12338 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
12340         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12341         run" directive.
12342         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12343         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12344         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12345         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12347 2017-10-16  Tom de Vries  <tom@codesourcery.com>
12349         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12350         openacc_nvidia_accel_selected.
12351         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12352         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12353         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12354         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12355         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12356         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12357         openacc_nvidia_accel_selected. Skip for shared memory device.
12358         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12359         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12361 2017-10-09  Martin Jambor  <mjambor@suse.cz>
12363         PR hsa/82416
12364         * testsuite/libgomp.hsa.c/pr82416.c: New test.
12366 2017-10-07  Tom de Vries  <tom@codesourcery.com>
12368         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12369         Remove acc_device_nvidia references.
12370         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12371         Same.
12373 2017-10-05  Tom de Vries  <tom@codesourcery.com>
12375         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12376         vector_length(32) clause from acc parallel directive.
12377         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12379 2017-10-04  Tom de Vries  <tom@codesourcery.com>
12381         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12382         (main): Reduce sum of arr elements.  Assert that hres is exactly
12383         representable in 32-bit floating point.
12384         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12385         (main): Reduce sum of arr elements.  Assert that hres and hmres are
12386         exactly representable in 32-bit floating point.
12387         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12389 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12391         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12392         setting.
12393         * testsuite/libgomp.c++/pr69393.C: Same.
12394         * testsuite/libgomp.c++/taskloop-1.C: Same.
12395         * testsuite/libgomp.c++/taskloop-3.C: Same.
12396         * testsuite/libgomp.c++/taskloop-4.C: Same.
12397         * testsuite/libgomp.c/for-4.c: Same.
12398         * testsuite/libgomp.c/pr66199-3.c: Same.
12399         * testsuite/libgomp.c/pr66199-4.c: Same.
12400         * testsuite/libgomp.c/pr66199-6.c: Same.
12401         * testsuite/libgomp.c/taskloop-1.c: Same.
12402         * testsuite/libgomp.c/taskloop-3.c: Same.
12403         * testsuite/libgomp.c/taskloop-4.c: Same.
12404         * testsuite/libgomp.fortran/aligned1.f03: Same.
12405         * testsuite/libgomp.fortran/condinc1.f: Same.
12406         * testsuite/libgomp.fortran/condinc3.f90: Same.
12407         * testsuite/libgomp.fortran/crayptr1.f90: Same.
12408         * testsuite/libgomp.fortran/crayptr2.f90: Same.
12409         * testsuite/libgomp.fortran/crayptr3.f90: Same.
12410         * testsuite/libgomp.fortran/omp_cond1.f: Same.
12411         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12412         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12413         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12414         * testsuite/libgomp.fortran/recursion1.f90: Same.
12415         * testsuite/libgomp.fortran/target2.f90: Same.
12416         * testsuite/libgomp.fortran/target5.f90: Same.
12417         * testsuite/libgomp.fortran/task3.f90: Same.
12419 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12421         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12422         vector_length(32) clause from acc parallel directive.
12423         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12425 2017-09-27  Tom de Vries  <tom@codesourcery.com>
12427         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12428         Remove acc_device_nvidia references.
12430 2017-09-16  Tom de Vries  <tom@codesourcery.com>
12432         PR c/81875
12433         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12435 2017-09-14  Tom de Vries  <tom@codesourcery.com>
12437         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12438         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12439         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12440         * testsuite/libgomp.c/c.exp: Include test-cases from
12441         libgomp.c-c++-common.
12442         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
12443         files.
12445 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
12447         PR c++/81314
12448         * testsuite/libgomp.c++/pr81314.C: New test.
12450 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
12452         * libgomp.texi (Top): www.openacc.org now uses https.
12453         (Enabling OpenACC): Ditto.
12454         (acc_get_num_devices): Ditto.
12455         (acc_set_device_type): Ditto.
12456         (acc_get_device_type): Ditto.
12457         (acc_set_device_num): Ditto.
12458         (acc_get_device_num): Ditto.
12459         (acc_async_test): Ditto.
12460         (acc_async_test_all): Ditto.
12461         (acc_wait): Ditto.
12462         (acc_wait_all): Ditto.
12463         (acc_wait_all_async): Ditto.
12464         (acc_wait_async): Ditto.
12465         (acc_init): Ditto.
12466         (acc_shutdown): Ditto.
12467         (acc_on_device): Ditto.
12468         (acc_malloc): Ditto.
12469         (acc_free): Ditto.
12470         (acc_copyin): Ditto.
12471         (acc_present_or_copyin): Ditto.
12472         (acc_create): Ditto.
12473         (acc_present_or_create): Ditto.
12474         (acc_copyout): Ditto.
12475         (acc_delete): Ditto.
12476         (acc_update_device): Ditto.
12477         (acc_update_self): Ditto.
12478         (acc_map_data): Ditto.
12479         (acc_unmap_data): Ditto.
12480         (acc_deviceptr): Ditto.
12481         (acc_hostptr): Ditto.
12482         (acc_is_present): Ditto.
12483         (acc_memcpy_to_device): Ditto.
12484         (acc_memcpy_from_device): Ditto.
12485         (acc_get_current_cuda_device): Ditto.
12486         (acc_get_current_cuda_context): Ditto.
12487         (acc_get_cuda_stream): Ditto.
12488         (acc_set_cuda_stream): Ditto.
12489         (ACC_DEVICE_TYPE): Ditto.
12490         (ACC_DEVICE_NUM): Ditto.
12491         (OpenACC Library Interoperability): Ditto.
12493 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
12495         PR c/81687
12496         * testsuite/libgomp.c/pr81687-1.c: New test.
12497         * testsuite/libgomp.c/pr81687-2.c: New test.
12499 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
12501         PR c/69389
12502         * testsuite/libgomp.c/pr69389.c: New test.
12503         * testsuite/libgomp.c++/pr69389.C: New test.
12505 2017-08-07  Tom de Vries  <tom@codesourcery.com>
12507         PR middle-end/78266
12508         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12509         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12511 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
12513         PR c/45784
12514         * testsuite/libgomp.c/pr45784.c: New test.
12515         * testsuite/libgomp.c++/pr45784.C: New test.
12517 2017-07-19  Tom de Vries  <tom@codesourcery.com>
12519         * testsuite/libgomp.oacc-c/vec.c: New test.
12521 2017-07-03  Tom de Vries  <tom@codesourcery.com>
12523         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12525 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12527         * plugin/plugin-nvptx.c (notify_var): New function.
12528         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12530 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12532         * env.c (parse_unsigned_long_1): Factor out of ...
12533         (parse_unsigned_long): ... here.
12534         (parse_int_1): Factor out of ...
12535         (parse_int): ... here.
12536         (parse_int_secure): New function.
12537         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12538         * secure_getenv.h: Factor out of ...
12539         * plugin/plugin-hsa.c: ... here.
12540         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12542 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
12544         PR c++/81130
12545         * testsuite/libgomp.c++/pr81130.C: New test.
12547 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12549         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12550         default args.
12551         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12552         dg-xfail-run-if default args.
12554 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12556         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12557         * testsuite/libgomp.c/pr39591-3.c: Likewise.
12559 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
12561         PR libgomp/80822
12562         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12563         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
12564         sibling lists, depending on level just pick up what CPUs to put
12565         together into a place vs. whether add multiple ordered places.
12567 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
12569         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12570         * libgomp.map (OACC_2.0.1): Add these.
12571         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12572         for "acc_wait", and "acc_wait_all", respectively.
12573         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12574         for "acc_wait", and "acc_wait_all", respectively.
12575         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12576         * libgomp.texi (acc_wait, acc_wait_all): Update.
12577         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12578         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12579         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12581         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12582         acc_present_or_copyin and acc_present_or_create procedures,
12583         respectively.
12584         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12585         generally different variants of OpenACC Runtime Library functions.
12586         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12588         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12589         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12591         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12592         of preprocessor definitions.
12593         * libgomp.h (strong_alias): Guard by "#ifdef
12594         HAVE_ATTRIBUTE_ALIAS".
12595         * oacc-mem.c: Provide "acc_pcreate" as alias for
12596         "acc_present_or_create", and "acc_pcopyin" as alias for
12597         "acc_present_or_copyin".
12598         * libgomp.map: New version "OACC_2.0.1".
12599         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12600         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12601         its content into...
12602         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12603         Extend testing.
12605         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12606         when disabling nvptx offloading.
12608 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
12610         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12611         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12612         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12614         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12615         * testsuite/lib/libgomp.exp
12616         (check_effective_target_openacc_nvidia_accel_configured): New
12617         proc.
12618         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12619         (check_effective_target_c++): New procs.
12620         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12621         (check_effective_target_c++): Likewise.
12623 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
12625         PR middle-end/80809
12626         * testsuite/libgomp.c/pr80809-2.c: New test.
12627         * testsuite/libgomp.c/pr80809-3.c: New test.
12629         PR middle-end/80809
12630         * testsuite/libgomp.c/pr80809-1.c: New test.
12632         PR middle-end/80853
12633         * testsuite/libgomp.c/pr80853.c: New test.
12635 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
12637         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12638         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12639         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12640         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12641         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12643         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12644         Debug output for failure.
12646 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12648         * testsuite/lib/libgomp.exp: Load scanlang.exp.
12650 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
12652         PR bootstrap/80531
12653         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12654         bootstrap compare failures.
12656 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
12658         * testsuite/libgomp.c/target-36.c: New testcase.
12660 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
12662         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12663         instead of char.
12665 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
12667         PR libgomp/80394
12668         * testsuite/libgomp.c/pr80394.c: New test.
12670 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12672         PR libgomp/79876
12673         * config/posix/thread-stacksize.h: New file.
12674         * config/darwin/thread-stacksize.h: New file.
12675         * config/nvptx/thread-stacksize.h: New file.
12676         * env.c: Include thread-stacksize.h.
12677         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12678         instead of 0.  Call pthread_attr_setstacksize even if
12679         GOMP_DEFAULT_STACKSIZE is non-zero.
12681 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12683         * env.c (initialize_env): Initialize stacksize to 0.
12685 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
12687         PR c++/80029
12688         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12690 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
12692         PR c/79940
12693         * testsuite/libgomp.c/pr79940.c: New test.
12695 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12697         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12698         targets.
12699         Add __float128 options.
12701 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
12703         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12704         hppa*-*-* dg-skip-if directive.
12706 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
12708         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12709         dg-skip-if directive into a comment.
12711 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
12712             Chung-Lin Tang  <cltang@codesourcery.com>
12714         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12715         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12716         add additional case.
12717         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12718         "openacc_nvidia_accel_selected".
12719         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12720         Add num_workers(8) clause.
12722 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
12724         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12725         hppa*-*-*.
12726         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12727         include complex.h on hppa*-*-hpux*.
12728         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12730 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12732         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12734         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12735         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12736         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12737         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12738         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12739         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12740         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12741         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12742         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12743         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12745 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12747         * libgomp-plugin.h: #include <stdbool.h>.
12748         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12749         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12750         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12751         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12752         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12753         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12754         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12755         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12756         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12757         (GOMP_OFFLOAD_openacc_async_test)
12758         (GOMP_OFFLOAD_openacc_async_test_all)
12759         (GOMP_OFFLOAD_openacc_async_wait)
12760         (GOMP_OFFLOAD_openacc_async_wait_async)
12761         (GOMP_OFFLOAD_openacc_async_wait_all)
12762         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12763         (GOMP_OFFLOAD_openacc_async_set_async)
12764         (GOMP_OFFLOAD_openacc_create_thread_data)
12765         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12766         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12767         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12768         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12769         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12770         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12771         these.
12772         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12773         (GOMP_OFFLOAD_unload_image): Fix argument types.
12775 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12777         * testsuite/lib/libgomp.exp
12778         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12779         check_compile invocation.  Fix up removal of executable.  Drop
12780         bogus "2>&1" argument.
12782         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12783         directive.
12785 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12786             Martin Jambor  <mjambor@suse.cz>
12788         * plugin/hsa.h: Moved to top level include.
12789         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12791 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12793         PR other/79046
12794         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12795         of cat to get version from BASE-VER file.
12796         * testsuite/Makefile.in: Regenerated.
12798 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12800         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12801         for _WIN64.
12803 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12805         * plugin/hsa.h: Add GCC runtime library exception.
12806         * plugin/hsa_ext_finalize.h: Likewise.
12808         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12809         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12810         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12811         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12812         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12813         library to link ptx plugin against.
12814         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12815         (CUDA_CALLS): Define.
12816         (cuda_lib, cuda_lib_inited): New variables.
12817         (init_cuda_lib): New function.
12818         (CUDA_CALL_PREFIX): Define.
12819         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12820         (CUDA_CALL): Use FN instead of (FN).
12821         (CUDA_CALL_NOCHECK): Define.
12822         (cuda_error, fini_streams_for_device, select_stream_for_async,
12823         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12824         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12825         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12826         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12827         CUDA_CALL_NOCHECK.
12828         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12829         CUDA_CALL_NOCHECK.
12830         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12831         Use CUDA_CALL_NOCHECK.
12832         * plugin/cuda/cuda.h: New file.
12833         * config.h.in: Regenerated.
12834         * configure: Regenerated.
12836         PR other/79046
12837         * configure.ac: Add GCC_BASE_VER.
12838         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12839         get version from BASE-VER file.
12840         * testsuite/Makefile.in: Regenerated.
12841         * configure: Regenerated.
12842         * Makefile.in: Regenerated.
12844 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12846         PR libgomp/60670
12847         * Makefile.am: Make fincludedir multilib-aware.
12848         * Makefile.in: Regenerate.
12850 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12852         Update copyright years.
12854         * libgomp.texi: Bump @copying's copyright year.
12856 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12858         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12859         pthread_spinlock_t instead of gomp_mutex_t lock.
12860         (gomp_get_thread_pool): Likewise.
12861         (gomp_release_thread_pool): Likewise.
12862         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12863         Likewise.
12865 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12867         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12868         thread pool in case nthreads == 1.
12870 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12872         * config/nvptx/env.c: Delete.
12873         * icv.c: Move definitions of ICV variables back ...
12874         * env.c: ...here.  Do not compile environment-related functionality if
12875         LIBGOMP_OFFLOADED_ONLY is set.
12877 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12879         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12880         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12881         * configure: Regenerate.
12882         * config.h.in: Likewise.
12884 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12886         * Makefile.in: Regenerate with automake-1.11.6.
12887         * aclocal.m4: Likewise.
12888         * configure: Likewise.
12889         * testsuite/Makefile.in: Likewise.
12891 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12893         * config/nvptx/critical.c: Delete to use generic implementation.
12895 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12897         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12898         ../../affinity.c as fallback.
12899         * config/nvptx/affinity.c: Delete to use fallback implementation.
12901 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12902             Jakub Jelinek  <jakub@redhat.com>
12903             Dmitry Melnik  <dm@ispras.ru>
12905         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12906         * Makefile.in. Regenerate.
12907         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12908         (LIBGOMP_USE_PTHREADS): ...here; new define.
12909         * configure: Regenerate.
12910         * config.h.in: Likewise.
12911         * config/posix/affinity.c: Move to...
12912         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12913         interface by LIBGOMP_USE_PTHREADS. 
12914         * critical.c: Split out GOMP_atomic_{start,end} into...
12915         * atomic.c: ...here (new file).
12916         * env.c: Split out ICV definitions into...
12917         * icv.c: ...here (new file) and...
12918         * icv-device.c: ...here. New file.
12919         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12920         (gomp_destroy_lock_30): Ditto.
12921         (gomp_set_lock_30): Ditto.
12922         (gomp_unset_lock_30): Ditto.
12923         (gomp_test_lock_30): Ditto.
12924         (gomp_init_nest_lock_30): Ditto.
12925         (gomp_destroy_nest_lock_30): Ditto.
12926         (gomp_set_nest_lock_30): Ditto.
12927         (gomp_unset_nest_lock_30): Ditto.
12928         (gomp_test_nest_lock_30): Ditto.
12929         * lock.c: New.
12930         * config/nvptx/lock.c: New.
12931         * config/nvptx/bar.c: New.
12932         * config/nvptx/bar.h: New.
12933         * config/nvptx/doacross.h: New.
12934         * config/nvptx/error.c: New.
12935         * config/nvptx/icv-device.c: New.
12936         * config/nvptx/mutex.h: New.
12937         * config/nvptx/pool.h: New.
12938         * config/nvptx/proc.c: New.
12939         * config/nvptx/ptrlock.h: New.
12940         * config/nvptx/sem.h: New.
12941         * config/nvptx/simple-bar.h: New.
12942         * config/nvptx/target.c: New.
12943         * config/nvptx/task.c: New.
12944         * config/nvptx/team.c: New.
12945         * config/nvptx/time.c: New.
12946         * config/posix/simple-bar.h: New.
12947         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12948         (gomp_num_teams_var): Declare.
12949         (struct gomp_thread_pool): Change threads_dock member to
12950         gomp_simple_barrier_t.
12951         [__nvptx__] (gomp_thread): New implementation.
12952         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12953         (gomp_thread_destructor): Ditto.
12954         (gomp_init_thread_affinity): Ditto.
12955         * team.c: Guard uses of Pthreads-specific interfaces by
12956         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12957         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12958         * config/nvptx/alloc.c: Delete.
12959         * config/nvptx/barrier.c: Ditto.
12960         * config/nvptx/fortran.c: Ditto.
12961         * config/nvptx/iter.c: Ditto.
12962         * config/nvptx/iter_ull.c: Ditto.
12963         * config/nvptx/loop.c: Ditto.
12964         * config/nvptx/loop_ull.c: Ditto.
12965         * config/nvptx/ordered.c: Ditto.
12966         * config/nvptx/parallel.c: Ditto.
12967         * config/nvptx/priority_queue.c: Ditto.
12968         * config/nvptx/sections.c: Ditto.
12969         * config/nvptx/single.c: Ditto.
12970         * config/nvptx/splay-tree.c: Ditto.
12971         * config/nvptx/work.c: Ditto.
12972         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12973         -foffload=-lgfortran in addition to -lgfortran.
12974         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12975         * plugin/plugin-nvptx.c: Include <limits.h>.
12976         (struct targ_fn_descriptor): Add new fields.
12977         (struct ptx_device): Ditto.  Set them...
12978         (nvptx_open_device): ...here.
12979         (nvptx_adjust_launch_bounds): New.
12980         (nvptx_host2dev): Allow NULL 'nvthd'.
12981         (nvptx_dev2host): Ditto.
12982         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12983         (link_ptx): Adjust log sizes.
12984         (nvptx_host2dev): Allow NULL 'nvthd'.
12985         (nvptx_dev2host): Ditto.
12986         (nvptx_set_clocktick): New.  Use it...
12987         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12988         fields.
12989         (GOMP_OFFLOAD_dev2dev): New.
12990         (nvptx_adjust_launch_bounds): New.
12991         (nvptx_stacks_size): New.
12992         (nvptx_stacks_alloc): New.
12993         (nvptx_stacks_free): New.
12994         (GOMP_OFFLOAD_run): New.
12995         (GOMP_OFFLOAD_async_run): New (stub).
12997 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12999         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
13000         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
13001         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
13003 2016-11-23  Martin Liska  <mliska@suse.cz>
13004             Martin Jambor  <mjambor@suse.cz>
13006         * plugin/hsa.h: New file.
13007         * plugin/hsa_ext_finalize.h: New file.
13008         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
13009         header file unistd.h, and functions secure_getenv, __secure_getenv,
13010         getuid, geteuid, getgid and getegid.
13011         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
13012         -D_GNU_SOURCE.
13013         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
13014         Handle various cases of secure_getenv presence, add an implementation
13015         when we can test effective UID and GID.
13016         (struct hsa_runtime_fn_info): New structure.
13017         (hsa_runtime_fn_info hsa_fns): New variable.
13018         (hsa_runtime_lib): Likewise.
13019         (support_cpu_devices): Likewise.
13020         (init_enviroment_variables): Load newly introduced ENV
13021         variables.
13022         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
13023         (hsa_fatal): Likewise.
13024         (DLSYM_FN): New macro.
13025         (init_hsa_runtime_functions): New function.
13026         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
13027         structure.  Depending on environment, also allow CPU devices.
13028         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
13029         (get_kernarg_memory_region): Likewise.
13030         (GOMP_OFFLOAD_init_device): Likewise.
13031         (destroy_hsa_program): Likewise.
13032         (init_basic_kernel_info): New function.
13033         (GOMP_OFFLOAD_load_image): Use it.
13034         (create_and_finalize_hsa_program): Call hsa run-time functions via
13035         hsa_fns structure.
13036         (create_single_kernel_dispatch): Likewise.
13037         (release_kernel_dispatch): Likewise.
13038         (init_single_kernel): Likewise.
13039         (parse_target_attributes): Allow up multiple HSA grid dimensions.
13040         (get_group_size): New function.
13041         (run_kernel): Likewise.
13042         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
13043         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
13044         structure.
13045         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
13046         * testsuite/libgomp-test-support.exp.in: Likewise.
13047         * Makefile.in: Regenerated.
13048         * aclocal.m4: Likewise.
13049         * config.h.in: Likewise.
13050         * configure: Likewise.
13051         * testsuite/Makefile.in: Likewise.
13053 2016-11-15  Martin Jambor  <mjambor@suse.cz>
13054             Alexander Monakov  <amonakov@ispras.ru>
13056         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
13057         mapping clauses to target constructs.
13058         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
13060 2016-11-15  Matthias Klose  <doko@ubuntu.com>
13062         * configure: Regenerate.
13064 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
13066         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
13067         * omp_lib.h.in (openmp_version): Likewise.
13068         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
13069         of 201307.
13070         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13072         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
13073         (fib_wrapper): Add map(from: x) clause.
13074         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
13075         (e_53_2): Likewise.
13076         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
13077         (accum): Add map(tmp) clause.
13078         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
13079         (accum): Add map(tofrom: tmp) clause.
13080         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
13081         (gramSchmidt): Likewise.
13082         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
13083         map(tofrom: sum) clause.
13084         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
13085         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
13086         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
13087         only allowed on the loop iterator.
13088         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
13089         * testsuite/libgomp.fortran/taskloop2.f90: New test.
13090         * testsuite/libgomp.fortran/taskloop4.f90: New test.
13091         * testsuite/libgomp.fortran/doacross1.f90: New test.
13092         * testsuite/libgomp.fortran/doacross3.f90: New test.
13093         * testsuite/libgomp.fortran/taskloop1.f90: New test.
13094         * testsuite/libgomp.fortran/taskloop3.f90: New test.
13095         * testsuite/libgomp.fortran/doacross2.f90: New test.
13096         * testsuite/libgomp.c/doacross-1.c (main): Add missing
13097         #pragma omp atomic read.
13098         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13099         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
13101 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
13102             Nathan Sidwell  <nathan@acm.org>
13104         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
13105         to determine default geometry.
13106         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
13107         dimension.
13109 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
13111         * hashtab.h: Use standard GPLv3 with runtime exception
13112         boilerplate.
13114 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
13116         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
13117         size when allocating new thread.
13119 2016-09-14  Marek Polacek  <polacek@redhat.com>
13121         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
13123 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
13125         PR fortran/71014
13126         * testsuite/libgomp.fortran/pr71014.f90: New test.
13128 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
13130         PR middle-end/70895
13131         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13132         firstprivate clauses.
13133         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13134         copy clauses.
13135         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13136         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13137         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13138         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13139         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13140         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13141         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13142         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13143         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13144         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13145         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13146         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13148 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
13150         PR fortran/70598
13151         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13153 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
13155         PR c++/58706
13156         * testsuite/libgomp.c++/pr58706.C: New test.
13158 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
13160         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13161         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13162         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13163         Likewise.
13164         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13165         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13166         Likewise.
13167         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13169         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13170         test, and don't hardcode -O0.
13172 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
13174         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13176 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
13178         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13179         test.
13181 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
13183         PR middle-end/71734
13184         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13185         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13187 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
13189         PR fortran/71717
13190         * testsuite/libgomp.fortran/associate3.f90: New test.
13192 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
13194         * testsuite/libgomp.c++/target-21.C: New test.
13196 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
13198         * testsuite/libgomp.c++/target-20.C: New test.
13200 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13201             Cesar Philippidis  <cesar@codesourcery.com>
13203         PR middle-end/71373
13204         * libgomp.oacc-c/nested-function-1.c: New file.
13205         * libgomp.oacc-c/nested-function-2.c: Likewise.
13206         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13207         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13208         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13210 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13212         PR c/71381
13213         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13214         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13215         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13217 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
13219         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13220         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13222 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
13224         PR c/70688
13225         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13227 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13229         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13230         instead of invalid schedule(static, 0).
13231         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13233 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13235         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13236         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13237         parameter, use to set async stream around call to gomp_unmap_vars,
13238         call gomp_unmap_vars() with 'do_copyfrom' set to true.
13239         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13240         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13241         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13242         (event_add): Add int parameter, initialize 'val' field when
13243         adding new ptx_event struct.
13244         (nvptx_evec): Adjust event_add() call arguments.
13245         (nvptx_host2dev): Likewise.
13246         (nvptx_dev2host): Likewise.
13247         (nvptx_wait_async): Likewise.
13248         (nvptx_wait_all_async): Likewise.
13249         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13250         pass to event_add() call.
13251         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13252         parameter.
13253         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13254         call openacc.register_async_cleanup_func() hook.
13255         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13256         * target.c (gomp_copy_from_async): Delete function.
13257         (gomp_map_vars): Remove async_refcount.
13258         (gomp_unmap_vars): Likewise.
13259         (gomp_load_image_to_device): Likewise.
13260         (omp_target_associate_ptr): Likewise.
13261         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13262         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13263         (gomp_copy_from_async): Remove.
13265 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13267         * target.c (gomp_device_copy): New function.
13268         (gomp_copy_host2dev): Likewise.
13269         (gomp_copy_dev2host): Likewise.
13270         (gomp_free_device_memory): Likewise.
13271         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13272         (gomp_map_pointer): Likewise.
13273         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13274         NULL value from alloc_func plugin hook.
13275         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13276         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13277         (gomp_unmap_vars): Likewise.
13278         (gomp_update): Adjust to call gomp_copy_dev2host and
13279         gomp_copy_host2dev functions.
13280         (gomp_unload_image_from_device): Handle false value from
13281         unload_image_func plugin hook.
13282         (gomp_init_device): Handle false value from init_device_func
13283         plugin hook.
13284         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13285         (omp_target_free): Adjust to call gomp_free_device_memory.
13286         (omp_target_memcpy): Handle return values from host2dev_func,
13287         dev2host_func, and dev2dev_func plugin hooks.
13288         (omp_target_memcpy_rect_worker): Likewise.
13289         (gomp_target_fini): Handle false value from fini_device_func
13290         plugin hook.
13291         * libgomp.h (struct gomp_device_descr): Adjust return type of
13292         init_device_func, fini_device_func, unload_image_func, free_func,
13293         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13294         * oacc-init.c (acc_shutdown_1): Handle false value from
13295         fini_device_func plugin hook.
13296         * oacc-host.c (host_init_device): Change return type to bool.
13297         (host_fini_device): Likewise.
13298         (host_unload_image): Likewise.
13299         (host_free): Likewise.
13300         (host_dev2host): Likewise.
13301         (host_host2dev): Likewise.
13302         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13303         (acc_memcpy_to_device): Likewise.
13304         (acc_memcpy_from_device): Likewise.
13305         (delete_copyout): Add libfnname parameter, handle free_func
13306         hook fatal error case.
13307         (acc_delete): Adjust delete_copyout call.
13308         (acc_copyout): Likewise.
13309         (update_dev_host): Move gomp_mutex_unlock to after
13310         host2dev/dev2host hook calls.
13312         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13313         to 'hsa_error_msg', for clarity.
13314         (hsa_fatal): Likewise.
13315         (hsa_error): New function.
13316         (init_hsa_context): Change return type to bool, adjust to return
13317         false on error.
13318         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13319         return value.
13320         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13321         return false on error.
13322         (get_agent_info): Adjust to return NULL on error.
13323         (destroy_hsa_program): Change return type to bool, adjust to
13324         return false on error.
13325         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13326         (destroy_module): Change return type to bool, adjust to
13327         return false on error.
13328         (GOMP_OFFLOAD_unload_image): Likewise.
13329         (GOMP_OFFLOAD_fini_device): Likewise.
13330         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13331         (GOMP_OFFLOAD_free): Change to return false when called.
13332         (GOMP_OFFLOAD_dev2host): Likewise.
13333         (GOMP_OFFLOAD_host2dev): Likewise.
13334         (GOMP_OFFLOAD_dev2dev): Likewise.
13336         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13337         (CUDA_CALL): Likewise.
13338         (CUDA_CALL_ASSERT): Likewise.
13339         (map_init): Change return type to bool, use CUDA_CALL* macros.
13340         (map_fini): Likewise.
13341         (init_streams_for_device): Change return type to bool, adjust
13342         call to map_init.
13343         (fini_streams_for_device): Change return type to bool, adjust
13344         call to map_fini.
13345         (select_stream_for_async): Release stream_lock before calls to
13346         GOMP_PLUGIN_fatal, adjust call to map_init.
13347         (nvptx_init): Use CUDA_CALL* macros.
13348         (nvptx_attach_host_thread_to_device): Change return type to bool,
13349         use CUDA_CALL* macros.
13350         (nvptx_open_device): Use CUDA_CALL* macros.
13351         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13352         macros.
13353         (nvptx_get_num_devices): Use CUDA_CALL* macros.
13354         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13355         (nvptx_exec): Use CUDA_CALL* macros.
13356         (nvptx_alloc): Use CUDA_CALL* macros.
13357         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13358         (nvptx_host2dev): Likewise.
13359         (nvptx_dev2host): Likewise.
13360         (nvptx_wait): Use CUDA_CALL* macros.
13361         (nvptx_wait_async): Likewise.
13362         (nvptx_wait_all): Likewise.
13363         (nvptx_wait_all_async): Likewise.
13364         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13365         use CUDA_CALL* macros, adjust call to map_fini.
13366         (GOMP_OFFLOAD_init_device): Change return type to bool,
13367         adjust code accordingly.
13368         (GOMP_OFFLOAD_fini_device): Likewise.
13369         (GOMP_OFFLOAD_load_image): Adjust calls to
13370         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13371         use CUDA_CALL* macros.
13372         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13373         return code.
13374         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13375         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13376         handle error return.
13377         (GOMP_OFFLOAD_dev2host): Likewise.
13378         (GOMP_OFFLOAD_host2dev): Likewise.
13379         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13380         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13382 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13384         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13385         (acc_free): Likewise.
13386         (acc_memcpy_to_device): Likewise.
13387         (acc_memcpy_from_device): Likewise.
13388         (acc_deviceptr): Likewise.
13389         (acc_hostptr): Likewise.
13390         (acc_is_present): Likewise.
13391         (acc_map_data): Likewise.
13392         (acc_unmap_data): Likewise.
13393         (present_create_copy): Likewise.
13394         (delete_copyout): Likewise.
13395         (update_dev_host): Likewise.
13396         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13397         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13398         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13399         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13400         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13401         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13402         it only runs on nvptx targets.
13403         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13404         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13405         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13406         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13407         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13408         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13409         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13410         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13411         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13412         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13413         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13414         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13415         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13416         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13417         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13418         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13419         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13420         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13421         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13422         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13423         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13424         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13425         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13427 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13429         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13431 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
13433         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13434         to gomp_init_targets_once.
13435         (acc_set_device_type): Remove !cached_base_dev condition on call to
13436         gomp_init_targets_once, move call to before acc_device_lock acquire,
13437         to avoid deadlock.
13438         (acc_get_device_num): Remove !cached_base_dev condition on call to
13439         gomp_init_targets_once.
13440         (acc_set_device_num): Likewise.
13442 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13444         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13446 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
13448         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13449         expected partitioning.
13451 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
13453         PR middle-end/70626
13454         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13455         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13456         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13458 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
13460         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13461         non-fatal.
13463 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
13465         PR middle-end/70680
13466         * testsuite/libgomp.c/pr70680-1.c: New test.
13467         * testsuite/libgomp.c/pr70680-2.c: New test.
13469 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13471         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13472         pass parameter variables to subroutines.
13474 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13476         PR middle-end/70643
13477         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13479 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
13481         PR testsuite/68242
13482         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13483         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13485 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
13487         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13488         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13489         GOACC_declare prototype.
13491         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13492         Merge this file, and...
13493         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13494         ... this file, and...
13495         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13496         ... this file, and...
13497         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13498         ... this file, and...
13499         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13500         ... this file, and...
13501         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13502         ... this file, and...
13503         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13504         ... this file, and...
13505         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13506         ... this file, and...
13507         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13508         ... this file, and...
13509         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13510         ... this file, and...
13511         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13512         ... this file, and...
13513         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13514         ... this file, and...
13515         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13516         ... this file into...
13517         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13518         file.
13520         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13521         Make failure observable.
13523 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
13525         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13526         field.
13527         * target.c (gomp_target_fallback_firstprivate,
13528         gomp_target_unshare_firstprivate): Removed.
13529         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13530         before waiting for dependencies.
13531         (gomp_target_task_fn): Don't copy firstprivate vars here.
13532         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13533         firstprivate_copies here.
13534         (gomp_create_target_task): Don't initialize firstprivate_copies field.
13535         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13536         explicit/implicit firstprivate.
13538 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
13540         PR lto/70289
13541         PR ipa/70348
13542         PR tree-optimization/70373
13543         PR middle-end/70533
13544         PR middle-end/70534
13545         PR middle-end/70535
13546         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13547         test.
13548         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13549         test.
13550         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13551         test.
13552         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13553         test.
13554         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13555         test.
13556         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13557         test.
13558         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13559         test.
13560         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13561         test.
13562         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13563         test.
13564         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13565         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13566         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13567         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13568         test.
13569         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13570         test.
13571         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13572         test.
13573         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13574         test.
13575         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13576         coverage.
13577         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13578         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13579         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13580         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13581         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13582         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13583         coverage.
13584         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13585         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13586         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13587         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13588         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13589         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13590         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13591         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13592         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13593         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13594         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13595         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13596         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13597         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13598         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13600 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
13601             James Norris  <jnorris@codesourcery.com>
13602             Nathan Sidwell  <nathan@codesourcery.com>
13603             Julian Brown  <julian@codesourcery.com>
13604             Cesar Philippidis  <cesar@codesourcery.com>
13605             Chung-Lin Tang  <cltang@codesourcery.com>
13606             Tom de Vries  <tom@codesourcery.com>
13608         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13609         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13610         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13611         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13612         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13613         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13614         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13615         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13616         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13617         XFAIL.
13618         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13619         Incorporate...
13620         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13621         file.
13622         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13623         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13624         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13625         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13626         Likewise.
13627         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13628         Likewise.
13629         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13630         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13631         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13632         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13633         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13634         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13635         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13636         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13637         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13638         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13639         Likewise.
13640         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13641         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13642         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13643         file...
13644         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13645         file into...
13646         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13647         file.  Update.
13648         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13649         file.
13650         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13651         Likewise.
13652         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13653         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13654         ... this new file.  Update.
13655         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13656         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13657         ... this new file.  Update.
13658         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13659         file.  Incorporate...
13660         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13661         file, and...
13662         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13663         file, and...
13664         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13665         file.
13666         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13668 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13670         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13671         set-torture-options.
13673 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
13675         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13676         gcc-dg-runtest.
13677         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13678         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13679         -fno-builtin-acc_on_device instead of -O0.
13680         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13681         -O0.
13682         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13683         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13684         Likewise.
13685         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13686         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13687         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13688         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13689         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13690         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13691         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13692         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13693         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13694         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13695         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13696         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13697         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13698         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13699         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13700         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13701         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13702         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13703         Don't specify -O2.
13704         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13705         Likewise.
13706         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13707         Likewise.
13709 2016-03-24  Martin Liska  <mliska@suse.cz>
13711         * plugin/plugin-hsa.c (packet_store_release): New function
13712         that is taken from the HSA runtime manual.
13713         (GOMP_OFFLOAD_run): Use the function.
13715 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13717         PR c++/70376
13718         * testsuite/libgomp.c++/pr70376.C: New test.
13720 2016-03-23  Tom de Vries  <tom@codesourcery.com>
13722         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13723         initialization of lresult and lvresult.
13724         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13726 2016-03-23  James Norris  <jnorris@codesourcery.com>
13727             Daichi Fukuoka <dc-fukuoka@sgi.com>
13729         PR libgomp/69414
13730         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13731         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13732         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13733         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13735 2016-03-23  Martin Liska  <mliska@suse.cz>
13737         PR hsa/70337
13738         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13739         argument just in case a dispatched kernel uses that argument.
13741 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13743         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13744         -ftree-parallelize-loops/-fopenacc changes.
13745         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13746         Likewise.
13747         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13748         Likewise.
13749         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13750         Likewise.
13751         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13752         Likewise.
13753         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13754         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13756 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13758         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13759         always_ld_library_path the path to libgcc_s.
13761 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13763         PR testsuite/70009
13764         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13766 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13768         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13769         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13770         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13771         Same.
13772         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13773         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13774         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13775         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13777 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13779         * testsuite/lib/libgomp.exp
13780         (check_effective_target_hsa_offloading_selected_nocache): New.
13781         (check_effective_target_hsa_offloading_selected): Likewise.
13782         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13783         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13784         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13785         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13786         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13787         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13788         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13789         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13790         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13791         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13792         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13793         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13794         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13795         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13796         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13797         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13798         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13800 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13802         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13803         non-shared memory accelerators.
13804         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13805         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13806         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13807         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13808         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13809         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13810         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13811         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13812         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13814 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13816         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13817         ALWAYS_CFLAGS.
13819 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13821         PR libgomp/69555
13822         * testsuite/libgomp.c++/pr69555-1.C: New test.
13823         * testsuite/libgomp.c++/pr69555-2.C: New test.
13825 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13826             Martin Jambor  <mjambor@suse.cz>
13828         * testsuite/lib/libgomp.exp
13829         (check_effective_target_offload_device_shared_as): New proc.
13830         * testsuite/libgomp.c++/declare_target-1.C: New test.
13832 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13834         PR driver/68463
13835         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13837 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13839         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13840         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13841         dims.
13842         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13843         -ftree-parallelize-loops/-fopenacc changes.
13844         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13845         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13846         Likewise.
13847         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13848         Likewise.
13849         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13850         Likewise.
13851         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13852         Likewise.
13853         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13854         Likewise.
13855         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13856         Likewise.
13857         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13858         Likewise.
13859         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13860         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13861         Likewise.
13862         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13863         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13864         Likewise.
13865         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13866         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13867         Likewise.
13869 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13871         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13873 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13875         PR driver/69805
13876         * testsuite/libgomp.c/pr69805.c: New test.
13878 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13880         PR lto/67709
13881         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13883 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13885         PR tree-optimization/69599
13886         * testsuite/libgomp.c/omp-nested-3.c: New test.
13887         * testsuite/libgomp.c/pr46032-2.c: New test.
13888         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13889         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13891 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13893         PR lto/69707
13894         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13896 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13898         * testsuite/libgomp.c/target-31.c: Fix testcase.
13900 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13902         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13903         clause.
13904         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13905         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13906         reduction and map clauses.
13907         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13909 2016-02-02  James Norris  <jnorris@codesourcery.com>
13911         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13913 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13915         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13916         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13918         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13919         cases.
13921         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13922         variables.
13923         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13924         (hsa_kmt_lib): Set variables.
13925         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13926         always_ld_library_path.
13927         * Makefile.in: Regenerate.
13928         * configure: Likewise.
13929         * testsuite/Makefile.in: Likewise.
13931         * plugin/configfrag.ac (offload_additional_options)
13932         (offload_additional_lib_paths): Don't amend for hsa offloading.
13933         * configure: Regenerate.
13935         * plugin/configfrag.ac: Don't configure for offloading target if
13936         we don't build the corresponding plugin.
13937         * configure: Regenerate.
13939 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13941         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13942         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13944 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13946         PR tree-optimization/69110
13947         * testsuite/libgomp.c/pr69110.c: New test.
13949 2016-01-25  Richard Biener  <rguenther@suse.de>
13951         PR lto/69393
13952         * testsuite/libgomp.c++/pr69393.C: New testcase.
13954 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13956         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13957         function wasn't mapped to the device with non-shared memory.
13959 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13961         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13963 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13964             Martin Liska  <mliska@suse.cz>
13966         * plugin/Makefrag.am: Add HSA plugin requirements.
13967         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13968         (HSA_RUNTIME_LIB): Likewise.
13969         (HSA_RUNTIME_CPPFLAGS): Likewise.
13970         (HSA_RUNTIME_INCLUDE): New substitution.
13971         (HSA_RUNTIME_LIB): Likewise.
13972         (HSA_RUNTIME_LDFLAGS): Likewise.
13973         (hsa-runtime): New configure option.
13974         (hsa-runtime-include): Likewise.
13975         (hsa-runtime-lib): Likewise.
13976         (PLUGIN_HSA): New substitution variable.
13977         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13978         configure options.
13979         (PLUGIN_HSA_CPPFLAGS): Likewise.
13980         (PLUGIN_HSA_LDFLAGS): Likewise.
13981         (PLUGIN_HSA_LIBS): Likewise.
13982         Check that we have access to HSA run-time.
13983         * libgomp-plugin.h (offload_target_type): New element
13984         OFFLOAD_TARGET_TYPE_HSA.
13985         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13986         args.
13987         (bool gomp_create_target_task): Updated.
13988         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13989         new field can_run_func.
13990         * libgomp_g.h (GOMP_target_ext): Update prototype.
13991         * oacc-host.c (host_run): Added a new parameter args.
13992         * target.c (calculate_firstprivate_requirements): New function.
13993         (copy_firstprivate_data): Likewise.
13994         (gomp_target_fallback_firstprivate): Use them.
13995         (gomp_target_unshare_firstprivate): New function.
13996         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13997         devices.
13998         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13999         pass any args to plugins.
14000         (GOMP_target_ext): Introduce device-specific argument parameter args.
14001         Allow host fallback if device shares memory.  Do not remap data if
14002         device has shared memory.
14003         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
14004         like host fallback for mappings.
14005         (GOMP_target_data): Treat shared memory devices like host fallback.
14006         (GOMP_target_data_ext): Likewise.
14007         (GOMP_target_update): Likewise.
14008         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
14009         gomp_create_target_task.
14010         (GOMP_target_enter_exit_data): Likewise.
14011         (omp_target_alloc): Treat shared memory devices like host fallback.
14012         (omp_target_free): Likewise.
14013         (omp_target_is_present): Likewise.
14014         (omp_target_memcpy): Likewise.
14015         (omp_target_memcpy_rect): Likewise.
14016         (omp_target_associate_ptr): Likewise.
14017         (gomp_load_plugin_for_device): Also load can_run.
14018         * task.c (GOMP_PLUGIN_target_task_completion): Free
14019         firstprivate_copies.
14020         (gomp_create_target_task): Accept new argument args and store it to
14021         ttask.
14022         * plugin/plugin-hsa.c: New file.
14024 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14026         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
14027         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
14028         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
14029         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
14030         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
14031         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
14032         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
14033         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
14034         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
14035         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
14036         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
14037         Same.
14038         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
14039         Same.
14040         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
14041         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
14042         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
14043         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
14044         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
14045         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
14046         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
14047         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
14048         Same.
14049         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
14051 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
14053         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
14055 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
14057         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
14059 2016-01-12  James Norris  <jnorris@codesourcery.com>
14061         * libgomp.texi: Updates for OpenACC.
14063 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
14065         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
14067 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14069         PR fortran/66680
14070         * testsuite/libgomp.fortran/pr66680.f90: New test.
14072 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
14074         PR middle-end/68960
14075         * testsuite/libgomp.c/pr68960.c: New test.
14077 2016-01-06  Nathan Sidwell  <nathan@acm.org>
14079         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
14080         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
14082 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
14084         Update copyright years.
14086         * libgomp.texi: Bump @copying's copyright year.
14088 2015-12-31  Nathan Sidwell  <nathan@acm.org>
14090         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
14091         dg-additional-options syntax.
14092         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14093         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14094         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14095         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14096         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14097         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14098         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14099         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14100         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14101         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14102         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14103         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14104         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14105         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14106         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14107         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14108         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14109         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14111 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
14113         * libgomp.h (REFCOUNT_LINK): Define.
14114         (struct splay_tree_key_s): Add link_key.
14115         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
14116         Replace target address of the pointer with target address of newly
14117         mapped object in the splay tree.  Set link pointer on target to the
14118         device address of the mapped object.
14119         (gomp_unmap_vars): Restore target address of the pointer in the splay
14120         tree for REFCOUNT_LINK objects after unmapping.
14121         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
14122         declare target link" objects.
14123         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
14124         "omp declare target link" objects, which were mapped for the image.
14125         (gomp_exit_data): Restore target address of the pointer in the splay
14126         tree for REFCOUNT_LINK objects after unmapping.
14127         * testsuite/libgomp.c/target-link-1.c: New file.
14129 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
14131         * libgomp.h (gomp_device_state): New enum.
14132         (struct gomp_device_descr): Replace is_initialized with state.
14133         (gomp_fini_device): Remove declaration.
14134         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14135         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14136         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
14137         (acc_set_device_type): Use state instead of is_initialized.
14138         (acc_set_device_num): Likewise.
14139         * target.c (resolve_device): Use state instead of is_initialized.
14140         Do not initialize finalized device.
14141         (gomp_map_vars): Do nothing if device is finalized.
14142         (gomp_unmap_vars): Likewise.
14143         (gomp_update): Likewise.
14144         (GOMP_offload_register_ver): Use state instead of is_initialized.
14145         (GOMP_offload_unregister_ver): Likewise.
14146         (gomp_init_device): Likewise.
14147         (gomp_unload_device): Likewise.
14148         (gomp_fini_device): Remove.
14149         (gomp_get_target_fn_addr): Do nothing if device is finalized.
14150         (GOMP_target): Go to host fallback if device is finalized.
14151         (GOMP_target_ext): Likewise.
14152         (gomp_exit_data): Do nothing if device is finalized.
14153         (gomp_target_task_fn): Go to host fallback if device is finalized.
14154         (gomp_target_fini): New static function.
14155         (gomp_target_init): Use state instead of is_initialized.
14156         Call gomp_target_fini at exit.
14158 2015-12-09  Tom de Vries  <tom@codesourcery.com>
14160         PR tree-optimization/68716
14161         * testsuite/libgomp.c/omp-nested-2.c: New test.
14163 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
14165         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14166         target openacc_nvidia_accel_selected.
14167         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14168         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14169         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14170         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14172 2015-12-01  Julian Brown  <julian@codesourcery.com>
14173             James Norris  <James_Norris@mentor.com>
14175         * oacc-parallel.c (GOACC_host_data): New function.
14176         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14177         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14178         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14179         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14180         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14181         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14182         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14184 2015-11-30  James Norris  <jnorris@codesourcery.com>
14185             Cesar Philippidis  <cesar@codesourcery.com>
14187         libgomp/
14188         * libgomp.oacc-fortran/routine-5.f90: New test.
14189         * libgomp.oacc-fortran/routine-7.f90: New test.
14190         * libgomp.oacc-fortran/routine-9.f90: New test.
14192 2015-11-30  Tom de Vries  <tom@codesourcery.com>
14194         PR tree-optimization/46032
14195         * testsuite/libgomp.c/pr46032.c: New test.
14197 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
14199         PR libgomp/68579
14200         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14201         (gomp_create_target_task): Call it before freeing
14202         GOMP_TARGET_TASK_DATA tasks.
14204         PR c/63326
14205         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14206         in between case label and OpenMP standalone directives.
14207         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14209 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
14211         * configure: Regenerate.
14213 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
14215         * testsuite/libgomp.c/target-35.c: New test.
14217 2015-11-22  James Norris  <jnorris@codesourcery.com>
14218             Cesar Philippidis  <cesar@codesourcery.com>
14220         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14221         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14222         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14223         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14224         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14226 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
14228         PR middle-end/68221
14229         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14230         * testsuite/libgomp.c/reduction-12.c: Likewise.
14231         * testsuite/libgomp.c++/reduction-11.C: Likewise.
14232         * testsuite/libgomp.c++/reduction-12.C: Likewise.
14234 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
14236         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14237         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14238         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14239         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14240         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14241         and fix.
14242         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14243         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14245 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
14247         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14248         worker & gang cases.
14249         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14251 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
14253         * config/nvptx/priority_queue.c: New file.
14255 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14257         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14258         sections.
14260 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14261             Aldy Hernandez  <aldyh@redhat.com>
14262             Ilya Verbin  <ilya.verbin@intel.com>
14264         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14265         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14266         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14267         iterators or IV by chunk size.
14268         * parallel.c (gomp_resolve_num_threads): Don't assume that
14269         if thr->ts.team is non-NULL, then pool must be non-NULL.
14270         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14271         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14272         GOMP_PLUGIN_target_task_completion.
14273         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14274         * Makefile.in: Regenerate.
14275         * libgomp.h: Shuffle prototypes and forward definitions around so
14276         priority queues can be defined.
14277         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14278         (enum gomp_target_task_state): New enum.
14279         (struct gomp_target_task): Add state, tgt, task and team fields.
14280         (gomp_create_target_task): Change return type to bool, add
14281         state argument.
14282         (gomp_target_task_fn): Change return type to bool.
14283         (struct gomp_device_descr): Add async_run_func.
14284         (struct gomp_task): Remove children, next_child, prev_child,
14285         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14286         Add pnode field.
14287         (struct gomp_taskgroup): Remove children.
14288         Add taskgroup_queue.
14289         (struct gomp_team): Change task_queue type to a priority queue.
14290         (splay_compare): Define inline.
14291         (priority_queue_offset): New.
14292         (priority_node_to_task): New.
14293         (task_to_priority_node): New.
14294         * oacc-mem.c: Do not include splay-tree.h.
14295         * priority_queue.c: New file.
14296         * priority_queue.h: New file.
14297         * splay-tree.c: Do not include splay-tree.h.
14298         (splay_tree_foreach_internal): New.
14299         (splay_tree_foreach): New.
14300         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14301         (splay_tree_callback): Define typedef.
14302         * target.c (splay_compare): Move to libgomp.h.
14303         (GOMP_target): Don't adjust *thr in any way around running offloaded
14304         task.
14305         (GOMP_target_ext): Likewise.  Handle target nowait.
14306         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14307         return value from gomp_create_target_task, if false, fallthrough
14308         as if no dependencies exist.
14309         (gomp_target_task_fn): Change return type to bool, return true
14310         if the task should have another part scheduled later.  Handle
14311         target nowait.
14312         (gomp_load_plugin_for_device): Initialize async_run.
14313         * task.c (gomp_init_task): Initialize children_queue.
14314         (gomp_clear_parent_in_list): New.
14315         (gomp_clear_parent_in_tree): New.
14316         (gomp_clear_parent): Handle priorities.
14317         (GOMP_task): Likewise.
14318         (priority_queue_move_task_first,
14319         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14320         New functions.
14321         (gomp_create_target_task): Use priority queues.  Change return type
14322         to bool, add state argument, return false if for async
14323         {{enter,exit} data,update} constructs no dependencies need to be
14324         waited for, handle target nowait.  Set task->fn to NULL instead of
14325         gomp_target_task_fn.
14326         (verify_children_queue): Remove.
14327         (priority_list_upgrade_task): New.
14328         (priority_queue_upgrade_task): New.
14329         (verify_task_queue): Remove.
14330         (priority_list_downgrade_task): New.
14331         (priority_queue_downgrade_task): New.
14332         (gomp_task_run_pre): Use priority queues.
14333         Abstract code out to priority_queue_downgrade_task.
14334         (gomp_task_run_post_handle_dependers): Use priority queues.
14335         (gomp_task_run_post_remove_parent): Likewise.
14336         (gomp_task_run_post_remove_taskgroup): Likewise.
14337         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
14338         tasks specially.
14339         (GOMP_taskwait): Likewise.
14340         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
14341         priority-queue_upgrade_task.
14342         (GOMP_taskgroup_start): Use priority queues.
14343         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
14344         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
14345         barrier.
14346         * taskloop.c (GOMP_taskloop): Handle priorities.
14347         * team.c (gomp_new_team): Call priority_queue_init.
14348         (free_team): Call priority_queue_free.
14349         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14350         team created for target nowait in implicit parallel region.
14351         (gomp_team_start): For nested check, test thr->ts.level instead of
14352         thr->ts.team != NULL.
14353         * testsuite/libgomp.c/doacross-3.c: New test.
14354         * testsuite/libgomp.c/ordered-5.c: New test.
14355         * testsuite/libgomp.c/priority.c: New test.
14356         * testsuite/libgomp.c/target-31.c: New test.
14357         * testsuite/libgomp.c/target-32.c: New test.
14358         * testsuite/libgomp.c/target-33.c: New test.
14359         * testsuite/libgomp.c/target-34.c: New test.
14361 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14363         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14365         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14366         loop is sequential.
14368 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14370         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14371         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14373 2015-11-12  James Norris  <jnorris@codesourcery.com>
14374             Joseph Myers  <joseph@codesourcery.com>
14376         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14377         * oacc-parallel.c (GOACC_declare): New function.
14378         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14379         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14380         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14381         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14382         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14384 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
14386         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14388 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
14390         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14391         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14393 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14395         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14396         inadvertent commit.
14398 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14400         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14401         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14402         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14403         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14404         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14406 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
14408         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14409         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14411 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
14412             Ilya Verbin  <ilya.verbin@intel.com>
14414         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14415         GOMP_loop_nonmonotonic_dynamic_start,
14416         GOMP_loop_nonmonotonic_guided_next,
14417         GOMP_loop_nonmonotonic_guided_start,
14418         GOMP_loop_ull_nonmonotonic_dynamic_next,
14419         GOMP_loop_ull_nonmonotonic_dynamic_start,
14420         GOMP_loop_ull_nonmonotonic_guided_next,
14421         GOMP_loop_ull_nonmonotonic_guided_start,
14422         GOMP_parallel_loop_nonmonotonic_dynamic,
14423         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14424         (GOMP_target_41): Renamed to ...
14425         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14426         arguments.
14427         (GOMP_target_data_41): Renamed to ...
14428         (GOMP_target_data_ext): ... this.
14429         (GOMP_target_update_41): Renamed to ...
14430         (GOMP_target_update_ext): ... this.
14431         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14432         GOMP_target_data_ext and GOMP_target_update_ext instead of
14433         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14434         Export GOMP_loop_nonmonotonic_dynamic_next,
14435         GOMP_loop_nonmonotonic_dynamic_start,
14436         GOMP_loop_nonmonotonic_guided_next,
14437         GOMP_loop_nonmonotonic_guided_start,
14438         GOMP_loop_ull_nonmonotonic_dynamic_next,
14439         GOMP_loop_ull_nonmonotonic_dynamic_start,
14440         GOMP_loop_ull_nonmonotonic_guided_next,
14441         GOMP_loop_ull_nonmonotonic_guided_start,
14442         GOMP_parallel_loop_nonmonotonic_dynamic and
14443         GOMP_parallel_loop_nonmonotonic_guided.
14444         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14445         GOMP_parallel_loop_nonmonotonic_guided,
14446         GOMP_loop_nonmonotonic_dynamic_start,
14447         GOMP_loop_nonmonotonic_guided_start,
14448         GOMP_loop_nonmonotonic_dynamic_next,
14449         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14450         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14451         GOMP_loop_ull_nonmonotonic_guided_start,
14452         GOMP_loop_ull_nonmonotonic_dynamic_next,
14453         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14454         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14455         functions.
14456         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
14457         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14458         Use gomp_map_val function.
14459         (gomp_target_fallback_firstprivate): New static function.
14460         (GOMP_target_41): Renamed to ...
14461         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14462         arguments.  Move firstprivate fallback handling into a new
14463         function.
14464         (GOMP_target_data_41): Renamed to ...
14465         (GOMP_target_data_ext): ... this.
14466         (GOMP_target_update_41): Renamed to ...
14467         (GOMP_target_update_ext): ... this.
14468         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14469         gomp_map_0len_lookup instead of gomp_map_lookup.
14470         (omp_target_is_present): Use gomp_map_0len_lookup instead of
14471         gomp_map_lookup.
14472         * testsuite/libgomp.c/target-28.c: Likewise.
14473         * testsuite/libgomp.c/monotonic-1.c: New test.
14474         * testsuite/libgomp.c/monotonic-2.c: New test.
14475         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14476         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14477         * testsuite/libgomp.c/pr66199-5.c: New test.
14478         * testsuite/libgomp.c/pr66199-6.c: New test.
14479         * testsuite/libgomp.c/pr66199-7.c: New test.
14480         * testsuite/libgomp.c/pr66199-8.c: New test.
14481         * testsuite/libgomp.c/pr66199-9.c: New test.
14482         * testsuite/libgomp.c/reduction-11.c: New test.
14483         * testsuite/libgomp.c/reduction-12.c: New test.
14484         * testsuite/libgomp.c/reduction-13.c: New test.
14485         * testsuite/libgomp.c/reduction-14.c: New test.
14486         * testsuite/libgomp.c/reduction-15.c: New test.
14487         * testsuite/libgomp.c/target-12.c (main): Adjust for
14488         omp_target_is_present change for one-past-last element.
14489         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14490         the same var is both mapped and privatized.
14491         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14492         handling of zero-length array sections.
14493         * testsuite/libgomp.c/target-28.c: New test.
14494         * testsuite/libgomp.c/target-29.c: New test.
14495         * testsuite/libgomp.c/target-30.c: New test.
14496         * testsuite/libgomp.c/target-teams-1.c: New test.
14497         * testsuite/libgomp.c++/member-6.C: New test.
14498         * testsuite/libgomp.c++/member-7.C: New test.
14499         * testsuite/libgomp.c++/monotonic-1.C: New test.
14500         * testsuite/libgomp.c++/monotonic-2.C: New test.
14501         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14502         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14503         * testsuite/libgomp.c++/pr66199-3.C: New test.
14504         * testsuite/libgomp.c++/pr66199-4.C: New test.
14505         * testsuite/libgomp.c++/pr66199-5.C: New test.
14506         * testsuite/libgomp.c++/pr66199-6.C: New test.
14507         * testsuite/libgomp.c++/pr66199-7.C: New test.
14508         * testsuite/libgomp.c++/pr66199-8.C: New test.
14509         * testsuite/libgomp.c++/pr66199-9.C: New test.
14510         * testsuite/libgomp.c++/reduction-11.C: New test.
14511         * testsuite/libgomp.c++/reduction-12.C: New test.
14512         * testsuite/libgomp.c++/target-13.C: New test.
14513         * testsuite/libgomp.c++/target-14.C: New test.
14514         * testsuite/libgomp.c++/target-15.C: New test.
14515         * testsuite/libgomp.c++/target-16.C: New test.
14516         * testsuite/libgomp.c++/target-17.C: New test.
14517         * testsuite/libgomp.c++/target-18.C: New test.
14518         * testsuite/libgomp.c++/target-19.C: New test.
14520 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14522         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14523         and reduction copy.
14524         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14525         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14526         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14527         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14528         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14529         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14530         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14531         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14532         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14533         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14534         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14535         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14536         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14537         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14539 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14541         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14542         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14543         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14544         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14545         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14546         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14547         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14548         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14550 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
14552         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14553         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14554         (GOMP_OFFLOAD_openacc_parallel): Likewise.
14555         * oacc-host.c (host_openacc_exec): Likewise.
14556         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14558 2015-11-03  Julian Brown  <julian@codesourcery.com>
14559             Thomas Schwinge  <thomas@codesourcery.com>
14561         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14562         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14563         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14564         Likewise.
14565         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14566         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14568 2015-11-03  James Norris  <jnorris@codesourcery.com>
14570         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14571         file.
14572         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14573         Likewise.
14574         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14575         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14576         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14577         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14578         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14580 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
14582         * openacc.h (enum acc_device_t): Reformat. Ensure layout
14583         compatibility.
14584         (enum acc_async_t): Reformat.
14585         (acc_on_device): Declare compatible with builtin and provide C++
14586         wrapper.
14587         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14589 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
14590             Cesar Philippidis  <cesar@codesourcery.com>
14592         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14593         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14594         ... this.  Add a description of the test at the top of the file.
14595         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14596         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14597         ... this.  Add a description of the test at the top of the file.
14599 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
14601         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14602         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14603         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14604         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14605         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14606         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14608 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
14610         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14611         dimensions.
14613 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
14615         PR testsuite/68063
14616         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14618 2015-10-27  James Norris  <jnorris@codesourcery.com>
14620         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14621         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14623 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
14625         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14626         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14628         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14629         acc_device_nvidia usage.
14630         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14631         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14632         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14634         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14635         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14637         PR libgomp/66518
14638         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14640         PR libgomp/65437
14641         PR libgomp/66518
14642         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14643         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14645 2015-10-23  Tom de Vries  <tom@codesourcery.com>
14647         PR testsuite/68063
14648         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14650 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
14652         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14653         vector_length.
14654         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14656 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
14657             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
14659         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14660         to 0 when mapnum is 0.
14662 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14664         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14665         Cast to int from int32_t.
14667 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
14668             Aldy Hernandez  <aldyh@redhat.com>
14669             Ilya Verbin  <ilya.verbin@intel.com>
14671         * config/linux/affinity.c (omp_get_place_num_procs,
14672         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14673         * config/linux/doacross.h: New file.
14674         * config/posix/affinity.c (omp_get_place_num_procs,
14675         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14676         * config/posix/doacross.h: New file.
14677         * env.c: Include gomp-constants.h.
14678         (struct gomp_task_icv): Rename run_sched_modifier to
14679         run_sched_chunk_size.
14680         (gomp_max_task_priority_var): New variable.
14681         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14682         (handle_omp_display_env): Change _OPENMP value from 201307 to
14683         201511.  Print OMP_MAX_TASK_PRIORITY.
14684         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14685         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14686         chunk_size and run_sched_modifier to run_sched_chunk_size.
14687         (omp_get_max_task_priority, omp_get_initial_device,
14688         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14689         omp_get_partition_place_nums): New functions.
14690         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14691         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14692         to chunk_size.
14693         (omp_get_num_places_, omp_get_place_num_procs_,
14694         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14695         omp_get_place_proc_ids_8_, omp_get_place_num_,
14696         omp_get_partition_num_places_, omp_get_partition_place_nums_,
14697         omp_get_partition_place_nums_8_, omp_get_initial_device_,
14698         omp_get_max_task_priority_): New functions.
14699         * libgomp_g.h (GOMP_loop_doacross_static_start,
14700         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14701         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14702         GOMP_loop_ull_doacross_dynamic_start,
14703         GOMP_loop_ull_doacross_guided_start,
14704         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14705         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14706         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14707         GOMP_target_data_41, GOMP_target_update_41,
14708         GOMP_target_enter_exit_data): New prototypes.
14709         (GOMP_task): Add prototype argument.
14710         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14711         (struct gomp_doacross_work_share): New type.
14712         (struct gomp_work_share): Add doacross field.
14713         (struct gomp_task_icv): Rename run_sched_modifier to
14714         run_sched_chunk_size.
14715         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14716         GOMP_TASK_UNDEFERRED.  Add comments.
14717         (struct gomp_task_depend_entry): Add comments.
14718         (struct gomp_task): Likewise.
14719         (struct gomp_taskgroup): Likewise.
14720         (struct gomp_target_task): New type.
14721         (struct gomp_team): Add comment.
14722         (gomp_get_place_proc_ids_8, gomp_doacross_init,
14723         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14724         gomp_create_target_task, gomp_target_task_fn): New prototypes.
14725         (struct target_var_desc): New type.
14726         (struct target_mem_desc): Adjust comment.  Use struct
14727         target_var_desc instead of splay_tree_key for list.
14728         (REFCOUNT_INFINITY): Define.
14729         (struct splay_tree_key_s): Remove copy_from field.
14730         (struct gomp_device_descr): Add dev2dev_func field.
14731         (enum gomp_map_vars_kind): New enum.
14732         (gomp_map_vars): Add one argument.
14733         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14734         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14735         omp_get_place_num_procs, omp_get_place_num_procs_,
14736         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14737         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14738         omp_get_place_num_, omp_get_partition_num_places,
14739         omp_get_partition_num_places_, omp_get_partition_place_nums,
14740         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14741         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14742         omp_target_free, omp_target_is_present, omp_target_memcpy,
14743         omp_target_memcpy_rect, omp_target_associate_ptr and
14744         omp_target_disassociate_ptr.
14745         (GOMP_4.0.2): Renamed to ...
14746         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14747         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14748         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14749         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14750         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14751         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14752         GOMP_loop_ull_doacross_guided_start,
14753         GOMP_loop_ull_doacross_runtime_start,
14754         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14755         GOMP_doacross_ull_wait.
14756         * libgomp.texi: Document omp_get_max_task_priority.
14757         Rename modifier argument to chunk_size for omp_set_schedule and
14758         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14759         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14760         to run_sched_chunk_size renaming.
14761         (GOMP_loop_ordered_runtime_start): Likewise.
14762         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14763         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14764         GOMP_parallel_loop_runtime_start): New functions.
14765         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14766         to run_sched_chunk_size renaming.
14767         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14768         GOMP_loop_doacross_guided_start): New functions or aliases.
14769         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14770         run_sched_modifier to run_sched_chunk_size renaming.
14771         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14772         (gomp_loop_ull_doacross_static_start,
14773         gomp_loop_ull_doacross_dynamic_start,
14774         gomp_loop_ull_doacross_guided_start,
14775         GOMP_loop_ull_doacross_runtime_start): New functions.
14776         (GOMP_loop_ull_doacross_static_start,
14777         GOMP_loop_ull_doacross_dynamic_start,
14778         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14779         * oacc-mem.c (acc_map_data, present_create_copy,
14780         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14781         to gomp_map_vars.
14782         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14783         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14784         instead of false to gomp_map_vars.
14785         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14786         * omp.h.in (omp_lock_hint_t): New type.
14787         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14788         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14789         omp_get_place_num, omp_get_partition_num_places,
14790         omp_get_partition_place_nums, omp_get_initial_device,
14791         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14792         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14793         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14794         prototypes.
14795         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14796         (omp_lock_hint_none, omp_lock_hint_uncontended,
14797         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14798         omp_lock_hint_speculative): New parameters.
14799         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14800         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14801         omp_get_place_num, omp_get_partition_num_places,
14802         omp_get_partition_place_nums, omp_get_initial_device,
14803         omp_get_max_task_priority): New interfaces.
14804         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14805         to chunk_size.
14806         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14807         (omp_lock_hint_none, omp_lock_hint_uncontended,
14808         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14809         omp_lock_hint_speculative): New parameters.
14810         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14811         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14812         omp_get_place_num, omp_get_partition_num_places,
14813         omp_get_partition_place_nums, omp_get_initial_device,
14814         omp_get_max_task_priority): New functions and subroutines.
14815         * ordered.c: Include stdarg.h and string.h.
14816         (MAX_COLLAPSED_BITS): Define.
14817         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14818         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14819         GOMP_doacross_ull_wait): New functions.
14820         * target.c: Include errno.h.
14821         (resolve_device): If device is not initialized, call
14822         gomp_init_device on it.
14823         (gomp_map_lookup): New function.
14824         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14825         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14826         GOMP_MAP_ALWAYS_TO_P.
14827         (get_kind): Rename is_openacc argument to short_mapkind.
14828         (gomp_map_pointer): Use gomp_map_lookup.
14829         (gomp_map_fields_existing): New function.
14830         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14831         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14832         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14833         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14834         Adjust for tgt->list changed type and copy_from living in there.
14835         (gomp_copy_from_async): Adjust for tgt->list changed type and
14836         copy_from living in there.
14837         (gomp_unmap_vars): Likewise.
14838         (gomp_update): Likewise.  Rename is_openacc argument to
14839         short_mapkind.  Don't fail if object is not mapped.
14840         (gomp_load_image_to_device): Initialize refcount to
14841         REFCOUNT_INFINITY.
14842         (gomp_target_fallback): New function.
14843         (gomp_get_target_fn_addr): Likewise.
14844         (GOMP_target): Adjust gomp_map_vars caller, use
14845         gomp_get_target_fn_addr and gomp_target_fallback.
14846         (GOMP_target_41): New function.
14847         (gomp_target_data_fallback): New function.
14848         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14849         (GOMP_target_data_41): New function.
14850         (GOMP_target_update): Adjust gomp_update caller.
14851         (GOMP_target_update_41): New function.
14852         (gomp_exit_data, GOMP_target_enter_exit_data,
14853         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14854         omp_target_is_present, omp_target_memcpy,
14855         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14856         omp_target_associate_ptr, omp_target_disassociate_ptr,
14857         gomp_load_plugin_for_device): New functions.
14858         * task.c: Include gomp-constants.h.  Include taskloop.c
14859         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14860         (gomp_task_handle_depend): New function.
14861         (GOMP_task): Use it.  Add priority argument.  Use
14862         gomp-constant.h constants instead of hardcoded numbers.
14863         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14864         (gomp_create_target_task): New function.
14865         (verify_children_queue, verify_taskgroup_queue,
14866         verify_task_queue): New functions.
14867         (gomp_task_run_pre): Call verify_*_queue functions.
14868         If an upcoming tied task is about to leave the sibling or
14869         taskgroup queues in an invalid state, adjust appropriately.
14870         Remove taskgroup argument.  Add comments.
14871         (gomp_task_run_post_handle_dependers): Add comments.
14872         (gomp_task_run_post_remove_parent): Likewise.
14873         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14874         (GOMP_taskwait): Likewise.  Add comments.
14875         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14876         problem such that the first non parent_depends_on task does not
14877         end up at the end of the children queue.
14878         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14879         GOMP_TASK_UNDEFERRED.
14880         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14881         * taskloop.c: New file.
14882         * testsuite/lib/libgomp.exp
14883         (check_effective_target_offload_device_nonshared_as): New proc.
14884         * testsuite/libgomp.c/affinity-2.c: New test.
14885         * testsuite/libgomp.c/doacross-1.c: New test.
14886         * testsuite/libgomp.c/doacross-2.c: New test.
14887         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14888         Add map clause to target.
14889         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14890         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14891         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14892         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14893         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14894         Likewise.
14895         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14896         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14897         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14898         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14899         not defined.  Use those where needed.
14900         * testsuite/libgomp.c/for-4.c: New test.
14901         * testsuite/libgomp.c/for-5.c: New test.
14902         * testsuite/libgomp.c/for-6.c: New test.
14903         * testsuite/libgomp.c/linear-1.c: New test.
14904         * testsuite/libgomp.c/ordered-4.c: New test.
14905         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14906         only allowed on the loop iterator.
14907         * testsuite/libgomp.c/pr66199-3.c: New test.
14908         * testsuite/libgomp.c/pr66199-4.c: New test.
14909         * testsuite/libgomp.c/reduction-7.c: New test.
14910         * testsuite/libgomp.c/reduction-8.c: New test.
14911         * testsuite/libgomp.c/reduction-9.c: New test.
14912         * testsuite/libgomp.c/reduction-10.c: New test.
14913         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14914         map(tofrom:s).
14915         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14916         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14917         * testsuite/libgomp.c/target-11.c: New test.
14918         * testsuite/libgomp.c/target-12.c: New test.
14919         * testsuite/libgomp.c/target-13.c: New test.
14920         * testsuite/libgomp.c/target-14.c: New test.
14921         * testsuite/libgomp.c/target-15.c: New test.
14922         * testsuite/libgomp.c/target-16.c: New test.
14923         * testsuite/libgomp.c/target-17.c: New test.
14924         * testsuite/libgomp.c/target-18.c: New test.
14925         * testsuite/libgomp.c/target-19.c: New test.
14926         * testsuite/libgomp.c/target-20.c: New test.
14927         * testsuite/libgomp.c/target-21.c: New test.
14928         * testsuite/libgomp.c/target-22.c: New test.
14929         * testsuite/libgomp.c/target-23.c: New test.
14930         * testsuite/libgomp.c/target-24.c: New test.
14931         * testsuite/libgomp.c/target-25.c: New test.
14932         * testsuite/libgomp.c/target-26.c: New test.
14933         * testsuite/libgomp.c/target-27.c: New test.
14934         * testsuite/libgomp.c/taskloop-1.c: New test.
14935         * testsuite/libgomp.c/taskloop-2.c: New test.
14936         * testsuite/libgomp.c/taskloop-3.c: New test.
14937         * testsuite/libgomp.c/taskloop-4.c: New test.
14938         * testsuite/libgomp.c++/ctor-13.C: New test.
14939         * testsuite/libgomp.c++/doacross-1.C: New test.
14940         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14941         Replace offload_device with offload_device_nonshared_as.
14942         * testsuite/libgomp.c++/for-12.C: New test.
14943         * testsuite/libgomp.c++/for-13.C: New test.
14944         * testsuite/libgomp.c++/for-14.C: New test.
14945         * testsuite/libgomp.c++/linear-1.C: New test.
14946         * testsuite/libgomp.c++/member-1.C: New test.
14947         * testsuite/libgomp.c++/member-2.C: New test.
14948         * testsuite/libgomp.c++/member-3.C: New test.
14949         * testsuite/libgomp.c++/member-4.C: New test.
14950         * testsuite/libgomp.c++/member-5.C: New test.
14951         * testsuite/libgomp.c++/ordered-1.C: New test.
14952         * testsuite/libgomp.c++/reduction-5.C: New test.
14953         * testsuite/libgomp.c++/reduction-6.C: New test.
14954         * testsuite/libgomp.c++/reduction-7.C: New test.
14955         * testsuite/libgomp.c++/reduction-8.C: New test.
14956         * testsuite/libgomp.c++/reduction-9.C: New test.
14957         * testsuite/libgomp.c++/reduction-10.C: New test.
14958         * testsuite/libgomp.c++/reference-1.C: New test.
14959         * testsuite/libgomp.c++/simd14.C: New test.
14960         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14961         * testsuite/libgomp.c++/target-5.C: New test.
14962         * testsuite/libgomp.c++/target-6.C: New test.
14963         * testsuite/libgomp.c++/target-7.C: New test.
14964         * testsuite/libgomp.c++/target-8.C: New test.
14965         * testsuite/libgomp.c++/target-9.C: New test.
14966         * testsuite/libgomp.c++/target-10.C: New test.
14967         * testsuite/libgomp.c++/target-11.C: New test.
14968         * testsuite/libgomp.c++/target-12.C: New test.
14969         * testsuite/libgomp.c++/taskloop-1.C: New test.
14970         * testsuite/libgomp.c++/taskloop-2.C: New test.
14971         * testsuite/libgomp.c++/taskloop-3.C: New test.
14972         * testsuite/libgomp.c++/taskloop-4.C: New test.
14973         * testsuite/libgomp.c++/taskloop-5.C: New test.
14974         * testsuite/libgomp.c++/taskloop-6.C: New test.
14975         * testsuite/libgomp.c++/taskloop-7.C: New test.
14976         * testsuite/libgomp.c++/taskloop-8.C: New test.
14977         * testsuite/libgomp.c++/taskloop-9.C: New test.
14978         * testsuite/libgomp.fortran/affinity1.f90: New test.
14979         * testsuite/libgomp.fortran/affinity2.f90: New test.
14981 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14983         PR tree-optimization/67476
14984         * testsuite/libgomp.c/autopar-3.c: New test.
14985         * testsuite/libgomp.c/autopar-4.c: New test.
14986         * testsuite/libgomp.c/autopar-5.c: New test.
14987         * testsuite/libgomp.c/autopar-6.c: New test.
14988         * testsuite/libgomp.c/autopar-7.c: New test.
14989         * testsuite/libgomp.c/autopar-8.c: New test.
14991 2015-10-12  James Norris  <jnorris@codesourcery.com>
14993         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14994         initializer.
14996 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14998         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14999         using load_gcc_lib.
15001 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
15003         * oacc-ptx.h: Remove file, moving its content into...
15004         * config/nvptx/fortran.c: ... here...
15005         * config/nvptx/oacc-init.c: ..., here...
15006         * config/nvptx/oacc-parallel.c: ..., and here.
15007         * config/nvptx/openacc.f90: New file.
15008         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
15009         (link_ptx): Don't link in predefined bits of PTX code.
15011 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
15012             Bernd Schmidt <bernds@codesourcery.com>
15014         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
15015         (struct targ_ptx_obj): New.
15016         (nvptx_tdata): Move earlier, change data format.
15017         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
15018         objects.
15019         (GOMP_OFFLOAD_load_image): Adjust.
15021 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
15023         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
15024         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15025         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15026         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15027         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15028         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15029         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15030         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15031         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15032         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15033         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15034         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15035         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15036         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15037         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15038         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15039         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15040         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15041         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15042         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15043         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15044         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15045         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15046         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15047         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15048         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15049         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15050         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15051         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15052         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15053         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15054         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15055         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15056         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15057         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15058         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15059         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15060         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15061         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15062         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15063         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15064         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15065         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15066         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15067         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15068         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15069         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15070         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15071         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15072         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15073         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15074         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15075         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15076         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15077         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15078         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15079         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15080         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15081         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15082         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15083         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15084         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15085         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15087 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
15089         * oacc-init.c (acc_on_device): Force optimization level.
15091 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
15093         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
15094         (cuda_errlist): Delete.
15095         (cuda_error): Reimplement.
15097 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
15099         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
15100         array.
15101         * libgomp.map (GOACC_parallel_keyed): New.
15102         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
15103         all callers.
15104         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
15105         and take keyed varargs list.  Adjust call to exec_func.
15106         (GOACC_parallel): Force host fallback.
15107         * libgomp_g.h (GOACC_parallel): Remove.
15108         (GOACC_parallel_keyed): Declare.
15109         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
15110         (struct targ_gn_descriptor): Replace name field with launch field.
15111         (nvptx_exec): Lose separate geometry args, take array.  Process
15112         dynamic dimensions and adjust.
15113         (struct nvptx_tdata): Replace fn_names field with fn_descs.
15114         (GOMP_OFFLOAD_load_image): Adjust for change in function table
15115         data.
15116         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
15117         passing.
15118         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
15119         passing.
15121 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
15123         PR libgomp/67141
15124         * oacc-int.h (goacc_host_init): Add declaration.
15125         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15126         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15128 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15129             Sebastian Pop  <s.pop@samsung.com>
15131         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15132         match o/p.
15133         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15134         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15135         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15136         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15137         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15139 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
15141         * configure.tgt: Add missing ;; in between nvptx and rtems
15142         snippets.
15144 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15146         * config/posix/pool.h (gomp_adjust_thread_attr): New.
15147         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15148         (gomp_thread_pool_reservoir): Add priority member.
15149         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15150         priority.
15151         (parse_thread_pools): Likewise.
15152         * team.c (gomp_team_start): Call configuration provided
15153         gomp_adjust_thread_attr(). Destroy thread attributes if
15154         necessary.
15155         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15157 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15159         * config/posix/pool.h: New.
15160         * config/rtems/pool.h: Likewise.
15161         * config/rtems/proc.c: Likewise.
15162         * libgomp.h (gomp_thread_destructor): Declare.
15163         * team.c: Include configuration provided "pool.h".
15164         (gomp_get_thread_pool): Define in configuration.
15165         (gomp_team_end): Call configuration defined
15166         gomp_release_thread_pool().
15168 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15170         * config/rtems/bar.c: New.
15171         * config/rtems/bar.h: Likewise.
15172         * config/rtems/mutex.c: Likewise.
15173         * config/rtems/mutex.h: Likewise.
15174         * config/rtems/sem.c: Likewise.
15175         * config/rtems/sem.h: Likewise.
15176         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15177         <sys/lock.h> header file.
15178         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15179         supported by Newlib.
15180         * configure: Regenerate.
15182 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15184         * team.c (gomp_new_thread_pool): Delete and move content to ...
15185         (gomp_get_thread_pool): ... new function.  Allocate and
15186         initialize thread pool on demand.
15187         (get_last_team): Use gomp_get_thread_pool().
15188         (gomp_team_start): Delete thread pool initialization.
15190 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15192         PR tree-optimization/65637
15193         * testsuite/libgomp.c/autopar-2.c: New test.
15195 2015-08-29  Tom de Vries  <tom@codesourcery.com>
15197         PR tree-optimization/46193
15198         * testsuite/libgomp.c/pr46193.c: New test.
15200 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15202         libgomp/
15203         * libgomp.map: Add 4.0.2 version.
15204         * target.c (offload_image_descr): Add version field.
15205         (gomp_load_image_to_device): Add version argument.  Adjust plugin
15206         call.  Improve load mismatch diagnostic.
15207         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
15208         call.
15209         (GOMP_offload_regster): Make stub function, move bulk to ...
15210         (GOMP_offload_register_ver): ... here.  Process version argument.
15211         (GOMP_offload_unregister): Make stub function, move bulk to ...
15212         (GOMP_offload_unregister_ver): ... here.  Process version argument.
15213         (gomp_init_device): Process version field.
15214         (gomp_unload_device): Process version field.
15215         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15216         macros.  Check plugin version.
15217         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
15218         loader and unloader types.
15219         * oacc-host.c: Include gomp-constants.h.
15220         (host_version): New.
15221         (host_load_image, host_unload_image): Adjust.
15222         (host_dispatch): Add host_version.
15223         * plugin/plugin-nvptx.c: Include gomp-constants.h.
15224         (GOMP_OFFLOAD_version): New.
15225         (GOMP_OFFLOAD_load_image): Add version arg and check it.
15226         (GOMP_OFFLOAD_unload_image): Likewise.
15227         * plugin/plugin-host.c: Include gomp-constants.h.
15228         (GOMP_OFFLOAD_version): New.
15229         (GOMP_OFFLOAD_load_image): Add version arg.
15230         (GOMP_OFFLOAD_unload_image): Likewise.
15232 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15234         PR tree-optimization/65468
15235         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15237 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15239         PR tree-optimization/65468
15240         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15242 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
15244         PR libgomp/66761
15245         PR libgomp/67303
15246         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15247         (gomp_iter_guided_next): Idem.
15248         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15249         (gomp_iter_ull_guided_next): Idem.
15250         * config/linux/wait.h (do_spin): Idem.
15252 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15254         * libgomp-plugin.h (enum offload_target_type): Remove
15255         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15256         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15257         * openacc.h (enum acc_device_t): Likewise.
15258         * openacc_lib.h: Likewise.
15259         * oacc-init.c (name_of_acc_device_t): Don't handle it.
15260         (acc_on_device): Just use __builtin_acc_on_device.
15261         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15262         of acc_on_device builtin.
15263         * plugin/plugin-host.h: Remove file.
15264         * plugin/plugin-host.c: Likewise, but salvage some content into...
15265         * oacc-host.c: ... this file.
15266         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15267         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15268         * Makefile.in: Regenerate.
15269         * configure: Likewise.
15270         * testsuite/lib/libgomp.exp
15271         (check_effective_target_openacc_host_nonshm_selected): Remove.
15272         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15273         ACC_DEVICE_TYPE=host_nonshm.
15274         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15275         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15276         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15277         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15278         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15279         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15281 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15282             Jakub Jelinek  <jakub@redhat.com>
15284         * config/nvptx/affinity.c: New file.
15285         * config/nvptx/alloc.c: Likewise.
15286         * config/nvptx/bar.c: Likewise.
15287         * config/nvptx/barrier.c: Likewise.
15288         * config/nvptx/critical.c: Likewise.
15289         * config/nvptx/env.c: Likewise.
15290         * config/nvptx/error.c: Likewise.
15291         * config/nvptx/fortran.c: Likewise.
15292         * config/nvptx/iter.c: Likewise.
15293         * config/nvptx/iter_ull.c: Likewise.
15294         * config/nvptx/libgomp-plugin.c: Likewise.
15295         * config/nvptx/lock.c: Likewise.
15296         * config/nvptx/loop.c: Likewise.
15297         * config/nvptx/loop_ull.c: Likewise.
15298         * config/nvptx/mutex.c: Likewise.
15299         * config/nvptx/oacc-async.c: Likewise.
15300         * config/nvptx/oacc-cuda.c: Likewise.
15301         * config/nvptx/oacc-host.c: Likewise.
15302         * config/nvptx/oacc-init.c: Likewise.
15303         * config/nvptx/oacc-mem.c: Likewise.
15304         * config/nvptx/oacc-parallel.c: Likewise.
15305         * config/nvptx/oacc-plugin.c: Likewise.
15306         * config/nvptx/omp-lock.h: Likewise.
15307         * config/nvptx/ordered.c: Likewise.
15308         * config/nvptx/parallel.c: Likewise.
15309         * config/nvptx/proc.c: Likewise.
15310         * config/nvptx/ptrlock.c: Likewise.
15311         * config/nvptx/sections.c: Likewise.
15312         * config/nvptx/sem.c: Likewise.
15313         * config/nvptx/single.c: Likewise.
15314         * config/nvptx/splay-tree.c: Likewise.
15315         * config/nvptx/target.c: Likewise.
15316         * config/nvptx/task.c: Likewise.
15317         * config/nvptx/team.c: Likewise.
15318         * config/nvptx/time.c: Likewise.
15319         * config/nvptx/work.c: Likewise.
15320         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15321         * configure: Regenerate.
15322         * configure.tgt (config_path): Set to "nvptx" for target
15323         nvptx*-*-*.
15325 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15327         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15329 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
15331         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15332         (cuda_errlist): Constify.
15333         (errmsg):  Move into ...
15334         (cuda_error): ... here.  Make smaller.
15335         (_XSTR, _STR): Delete.
15336         (cuda_synames): Delete.
15337         (verify_device_library): Delete.
15338         (nvptx_init): Don't call it.
15340 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15342         * testsuite/libgomp.c/uns-outer-4.c: New test.
15344 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15346         * testsuite/libgomp.c/pr66714.c: New test.
15348 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15350         PR libgomp/66950
15351         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15352         (fib_ref): New function.
15353         (fib): Correct corner cases in the recursion.
15354         (main): Replace the non-simd loop with fib_ref call.
15355         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15356         subroutine.
15357         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
15358         for the last array element value.  Replace the non-simd loop with
15359         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
15360         of the last array element with according Fibonacci sequence element.
15361         (fib): Correct corner cases in the recursion.
15363 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15365         * target.c (gomp_offload_image_to_device): Rename to ...
15366         (gomp_load_image_to_device): ... here.
15367         (GOMP_offload_register): Adjust call.
15368         (gomp_init_device): Likewise.
15369         (gomp_unload_image_from_device): New.  Broken out of ...
15370         (GOMP_offload_unregister): ... here.  Call it.
15371         (gomp_unload_device): New.
15372         * libgomp.h (gomp_unload_device): Declare.
15373         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15374         mem maps.
15376 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
15378         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15379         wait=-specific if.
15380         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15381         !=0 condition.
15382         (goacc_waits): Move !num_waits handling to ...
15383         (GOACC_wait): ... here, the only caller that might have zero waits.
15385         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15386         (struct ptx_image_data): Move earlier, add fns field.
15387         (struct ptx_device): Add images and image_lock fields.
15388         (ptx_images, ptx_image_lock): Delete.
15389         (nvptx_open_device): Initialize images and image_lock fields.
15390         (nvptx_close_device): Destroy image_lock.
15391         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15392         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15393         fields.
15395 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15397         * target.c (GOMP_offload_register): Use int for device type arg.
15398         (GOMP_offload_unregister): Likewise.
15400         * target.c (struct_offload_image_descr): Constify host_table.
15401         (gomp_offload_image_to_device): Likewise.
15402         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15404         * libgomp.h (gomp_device_descr): Constify target data arguments.
15405         * target.c (struct offload_image_descr): Constify target_data.
15406         (gomp_offload_image_to_device): Likewise.
15407         (GOMP_offload_register): Likewise.
15408         (GOMP_offload_unregister): Likewise.
15409         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15410         GOMP_OFFLOAD_unload_image): Constify target data.
15411         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15412         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15414 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15416         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15417         Workaround driver library const error.
15418         (struct nvptx_tdata, nvptx_tdata_t): New.
15419         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15420         type.
15422 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15424         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15425         of EPS parameter from integer to real.
15426         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15427         type of EPS parameter from integer to real.
15429 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15431         * team.c (get_last_team): New.
15432         (gomp_new_team): Recycle last non-nested team if possible.
15433         (gomp_team_end): Move team work share list free lock destruction
15434         to ...
15435         (free_team): ... here.
15437 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15439         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15440         and ref from int to double.  Replaced their comparison with
15441         an inequality of their difference and EPS.
15442         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15443         comparison of pri and a reference number with an inequality of their
15444         difference and EPS.
15445         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15446         the comparison of sum and sum_ref with an inequality of their
15447         difference and EPS.
15448         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15449         the comparison of pri and a reference number with an inequality of
15450         their difference and EPS.
15452 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15454         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15455         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15456         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15457         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15458         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15459         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15460         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15461         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15462         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15463         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15464         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15465         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15466         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15467         variables.
15468         (vec_mult): Likewise.  Add #pragma omp taskwait.
15469         (main): Adjust caller.
15470         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15471         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15472         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15473         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15474         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15475         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15476         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15477         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15478         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15479         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15480         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15481         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15482         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15483         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15484         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15485         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15486         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15487         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15488         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15489         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15490         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15491         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15492         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15493         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15494         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15495         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15496         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15497         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15498         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15499         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15500         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15501         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15502         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15503         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15504         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15505         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15506         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15507         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15508         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15509         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15510         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15511         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15512         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15513         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15514         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15515         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15516         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15517         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15518         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15519         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15520         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15521         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15522         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15523         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15524         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15525         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15526         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15527         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15528         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15529         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15530         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15531         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15532         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15533         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15534         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15535         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15536         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15537         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15538         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15539         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15540         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15541         (vec_mult): Add !$omp taskwait.
15542         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15543         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15544         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15545         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15546         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15547         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15548         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15549         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15550         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15551         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15552         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15553         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15554         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15555         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15556         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15557         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15558         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15559         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15560         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15561         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15562         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15563         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15564         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15565         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15566         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15567         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15568         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15569         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15570         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15571         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15572         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15573         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15574         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15575         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15576         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15577         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15578         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15579         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15580         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15581         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15582         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15583         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15584         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15585         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15586         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15587         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15588         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15589         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15590         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15591         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15592         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15593         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15594         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15595         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15596         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15597         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15598         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15599         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15600         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15601         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15602         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15603         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15604         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15605         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15606         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15607         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15608         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15610 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15612         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15613         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15615 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15617         PR libgomp/65099
15618         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15619         in a 64-bit configuration.
15620         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15621         offloading testing if no such device is available.
15622         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15623         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15625 2015-07-08  Tom de Vries  <tom@codesourcery.com>
15627         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15628         second call to f.
15629         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15631 2015-07-07  Tom de Vries  <tom@codesourcery.com>
15633         PR tree-optimization/66642
15634         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15635         iteration count case.
15636         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15637         function, factor out of ...
15638         (main): ... here.  Test low iteration count case.
15640 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15642         * libgomp.h (gomp_thread_pool): Comment last_team field.
15644 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
15646         * testsuite/libgomp.c++/pr66702-1.C: Require
15647         vect_simd_clones effective target.
15648         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15650 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15652         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15653         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15654         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15655         "-O2".
15657 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15659         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15660         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15661         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15662         * testsuite/libgomp.c++/pr64824.C: Same.
15663         * testsuite/libgomp.c++/pr64868.C: Same.
15664         * testsuite/libgomp.c++/pr66199-1.C: Same.
15665         * testsuite/libgomp.c++/pr66199-2.C: Same.
15666         * testsuite/libgomp.c++/target-2.C: Same.
15667         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15668         -std=<standard> option.
15669         * testsuite/libgomp.c++/udr-11.C: Same.
15670         * testsuite/libgomp.c++/udr-12.C: Same.
15671         * testsuite/libgomp.c++/udr-13.C: Same.
15672         * testsuite/libgomp.c++/udr-14.C: Same.
15673         * testsuite/libgomp.c++/udr-15.C: Same.
15674         * testsuite/libgomp.c++/udr-16.C: Same.
15675         * testsuite/libgomp.c++/udr-17.C: Same.
15676         * testsuite/libgomp.c++/udr-18.C: Same.
15677         * testsuite/libgomp.c++/udr-19.C: Same.
15678         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15679         * testsuite/libgomp.c++/simd-1.C: Same.
15680         * testsuite/libgomp.c++/simd-2.C: Same.
15681         * testsuite/libgomp.c++/simd-3.C: Same.
15682         * testsuite/libgomp.c++/simd-4.C: Same.
15683         * testsuite/libgomp.c++/simd-5.C: Same.
15684         * testsuite/libgomp.c++/simd-6.C: Same.
15685         * testsuite/libgomp.c++/simd-7.C: Same.
15686         * testsuite/libgomp.c++/simd-8.C: Same.
15687         * testsuite/libgomp.c++/simd-9.C: Same.
15688         * testsuite/libgomp.c++/simd10.C: Same.
15689         * testsuite/libgomp.c++/simd11.C: Same.
15690         * testsuite/libgomp.c++/simd12.C: Same.
15691         * testsuite/libgomp.c++/simd13.C: Same.
15693 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15695         PR middle-end/66702
15696         * testsuite/libgomp.c++/pr66702-1.C: New test.
15697         * testsuite/libgomp.c++/pr66702-2.C: New test.
15699 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15701         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15702         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15703         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15704         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15706 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15708         PR tree-optimization/66652
15709         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15710         using restrict pointers.
15711         (main): Add arguments to calls to f.
15712         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15714 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
15716         * configure.ac: Fix check for header <sys/sysctl.h>.
15717         * configure: Regenerate.
15718         * config.h.in: Likewise.
15720 2015-06-23  Tom de Vries  <tom@codesourcery.com>
15722         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15723         abort.
15724         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15726 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15728         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15729         acc_device_nvidia.
15731         PR libgomp/66518
15732         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15733         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15735 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15737         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15738         dg-additional-options for any remaining options.
15739         * testsuite/libgomp.c/atomic-2.c: Same.
15740         * testsuite/libgomp.c/atomic-4.c: Same.
15741         * testsuite/libgomp.c/atomic-5.c: Same.
15742         * testsuite/libgomp.c/atomic-6.c: Same.
15743         * testsuite/libgomp.c/autopar-1.c: Same.
15744         * testsuite/libgomp.c/copyin-1.c: Same.
15745         * testsuite/libgomp.c/copyin-2.c: Same.
15746         * testsuite/libgomp.c/copyin-3.c: Same.
15747         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15748         * testsuite/libgomp.c/nestedfn-5.c: Same.
15749         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15750         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15751         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15752         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15753         * testsuite/libgomp.c/pr32362-1.c: Same.
15754         * testsuite/libgomp.c/pr32362-2.c: Same.
15755         * testsuite/libgomp.c/pr32362-3.c: Same.
15756         * testsuite/libgomp.c/pr39591-1.c: Same.
15757         * testsuite/libgomp.c/pr39591-2.c: Same.
15758         * testsuite/libgomp.c/pr39591-3.c: Same.
15759         * testsuite/libgomp.c/pr58392.c: Same.
15760         * testsuite/libgomp.c/pr58756.c: Same.
15761         * testsuite/libgomp.c/simd-1.c: Same.
15762         * testsuite/libgomp.c/simd-10.c: Same.
15763         * testsuite/libgomp.c/simd-11.c: Same.
15764         * testsuite/libgomp.c/simd-12.c: Same.
15765         * testsuite/libgomp.c/simd-13.c: Same.
15766         * testsuite/libgomp.c/simd-14.c: Same.
15767         * testsuite/libgomp.c/simd-15.c: Same.
15768         * testsuite/libgomp.c/simd-2.c: Same.
15769         * testsuite/libgomp.c/simd-3.c: Same.
15770         * testsuite/libgomp.c/simd-4.c: Same.
15771         * testsuite/libgomp.c/simd-5.c: Same.
15772         * testsuite/libgomp.c/simd-6.c: Same.
15773         * testsuite/libgomp.c/simd-7.c: Same.
15774         * testsuite/libgomp.c/simd-8.c: Same.
15775         * testsuite/libgomp.c/simd-9.c: Same.
15777 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15779         * testsuite/libgomp.c/pr35625.c: Fix typo.
15781 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15783         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15784         in dg-options.
15785         * testsuite/libgomp.c/atomic-3.c: Same.
15786         * testsuite/libgomp.c/debug-1.c: Same.
15787         * testsuite/libgomp.c/nqueens-1.c: Same.
15788         * testsuite/libgomp.c/pr26171.c: Same.
15789         * testsuite/libgomp.c/pr48591.c: Same.
15790         * testsuite/libgomp.c/pr64824.c: Same.
15791         * testsuite/libgomp.c/pr64868.c: Same.
15792         * testsuite/libgomp.c/pr66133.c: Same.
15793         * testsuite/libgomp.c/pr66199-1.c: Same.
15794         * testsuite/libgomp.c/pr66199-2.c: Same.
15795         * testsuite/libgomp.c/target-8.c: Same.
15797 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15799         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15800         -std={gnu99,c99}.
15801         * testsuite/libgomp.c/for-1.c: Same.
15802         * testsuite/libgomp.c/for-2.c: Same.
15803         * testsuite/libgomp.c/for-3.c: Same.
15804         * testsuite/libgomp.c/pr35625.c: Same.
15805         * testsuite/libgomp.c/pr39154.c: Same.
15806         * testsuite/libgomp.c/simd-16.c: Same.
15807         * testsuite/libgomp.c/simd-17.c: Same.
15809 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15811         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15813 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15815         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15816         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15817         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15818         (N): Define.
15819         (main): Use N instead of hardcoded constants.
15821 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15823         merge from gomp4 branch:
15824         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15826         PR tree-optimization/65443
15827         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15828         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15829         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15831 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15833         * testsuite/libgomp.graphite/bounds.c: Adjust for
15834         cleanup-tree-dump removal.
15835         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15836         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15837         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15838         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15839         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15840         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15841         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15842         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15843         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15844         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15846 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15848         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15849         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15850         (futex_wake) [!__x86_64__]: Ditto.
15852 2015-05-28  Julian Brown  <julian@codesourcery.com>
15854         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15855         function comment. Only call gomp_fatal if new argument is true.
15856         (acc_dev_num_out_of_range): New function.
15857         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15858         acc_dev_num_out_of_range as appropriate.
15859         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15860         (acc_get_device_num, acc_set_device_num): Update calls to
15861         resolve_device.
15862         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15863         output.
15865 2015-05-28  Julian Brown  <julian@codesourcery.com>
15867         PR libgomp/65742
15868         * oacc-init.c (plugin/plugin-host.h): Include.
15869         (acc_on_device): Check whether we're in an offloaded region for
15870         host_nonshm
15871         plugin. Don't use __builtin_acc_on_device.
15872         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15873         nonshm_exec flag in thread-local data.
15874         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15875         data for host_nonshm plugin.
15876         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15877         for host_nonshm plugin.
15878         * plugin/plugin-host.h: New.
15880 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15882         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15884 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15886         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15887         Declare as int.
15888         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15889         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15890         Declare as int.
15892 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15894         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15896 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15898         * target.c (gomp_map_pointer): New function abstracting out
15899         GOMP_MAP_POINTER handling.
15900         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15901         gomp_map_pointer().
15903 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15905         PR middle-end/66199
15906         * testsuite/libgomp.c/pr66199-1.c: New test.
15907         * testsuite/libgomp.c/pr66199-2.c: New test.
15908         * testsuite/libgomp.c++/pr66199-1.C: New test.
15909         * testsuite/libgomp.c++/pr66199-2.C: New test.
15910         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15911         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15913 2015-05-19  Julian Brown  <julian@codesourcery.com>
15915         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15916         on cuInit failure.
15918 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15920         PR middle-end/66133
15921         * testsuite/libgomp.c/pr66133.c: New test.
15923 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15925         * Makefile.in: Regenerated with automake-1.11.6.
15926         * aclocal.m4: Likewise.
15927         * config.h.in: Likewise.
15928         * configure: Likewise.
15929         * testsuite/Makefile.in: Likewise.
15931 2015-05-08  Jason Merrill  <jason@redhat.com>
15933         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15934         _Complex.
15936         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15938 2015-05-06  Julian Brown  <julian@codesourcery.com>
15940         * oacc-init.c (acc_device_lock): Add explanatory comment.
15941         (resolve_device): Add comment about locking requirement.
15942         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15943         gomp_init_device and gomp_fini_device calls.
15944         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15945         (acc_get_device_num, acc_set_device_num): Add locking around
15946         resolve_device and gomp_init_device calls.
15948 2015-05-06  Julian Brown  <julian@codesourcery.com>
15950         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15951         goacc_thread_lock on error paths.
15952         * oacc-mem.c (lookup_host): Remove locking from function. Note
15953         locking requirement for caller in function comment.
15954         (lookup_dev): Likewise.
15955         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15956         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15957         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15958         Add locking.
15960 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15962         PR testsuite/65205
15963         PR libgomp/65993
15964         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15965         don't expect "0x" prefix for "%p" format specifier, don't expect
15966         "(nil)" for NULL pointer.
15967         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15968         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15969         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15970         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15971         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15972         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15973         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15974         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15975         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15976         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15977         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15978         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15979         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15980         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15981         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15982         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15983         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15984         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15985         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15986         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15987         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15988         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15989         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15990         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15991         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15992         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15993         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15994         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15995         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15996         accurately specify what we're looking for.
15997         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15998         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15999         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16000         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16001         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16003 2015-04-30  James Norris  <jnorris@codesourcery.com>
16005         PR testsuite/65205
16006         * testsuite/lib/libgomp.exp
16007         (check_effective_target_openacc_host_selected)
16008         (check_effective_target_openacc_host_nonshm_selected): New
16009         procedures.
16010         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
16011         dg-shouldfail.
16012         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16013         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16014         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16015         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16016         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16017         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16018         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16019         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16020         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16021         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16022         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16023         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16024         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16025         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16026         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16027         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16028         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16029         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16030         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16031         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16032         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16033         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16034         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16035         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16036         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16037         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16038         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16039         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16040         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16041         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16042         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16043         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16044         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16045         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16046         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16047         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16048         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16049         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16050         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16051         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16052         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16053         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16054         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16056 2015-04-08  Julian Brown  <julian@codesourcery.com>
16058         * libgomp.h (target_mem_desc: Remove mem_map field.
16059         (acc_dispatch_t): Remove open_device_func, close_device_func,
16060         get_device_num_func, set_device_num_func, target_data members.
16061         Change create_thread_data_func argument to device number instead of
16062         generic pointer.
16063         * oacc-async.c (assert.h): Include.
16064         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
16065         (acc_wait_all, acc_wait_all_async): Use current host thread's
16066         active device, not base_dev.
16067         * oacc-cuda.c (acc_get_current_cuda_device)
16068         (acc_get_current_cuda_context, acc_get_cuda_stream)
16069         (acc_set_cuda_stream): Likewise.
16070         * oacc-host.c (host_dispatch): Don't set open_device_func,
16071         close_device_func, get_device_num_func or set_device_num_func.
16072         * oacc-init.c (base_dev, init_key): Remove.
16073         (cached_base_dev): New.
16074         (name_of_acc_device_t): New.
16075         (acc_init_1): Initialise default-numbered device, not zeroth.
16076         (acc_shutdown_1): Close all devices of a given type.
16077         (goacc_destroy_thread): Don't use base_dev.
16078         (lazy_open, lazy_init, lazy_init_and_open): Remove.
16079         (goacc_attach_host_thread_to_device): New.
16080         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
16081         (acc_get_num_devices): Don't use base_dev.
16082         (acc_set_device_type): Reimplement.
16083         (acc_get_device_type): Don't use base_dev.
16084         (acc_get_device_num): Tweak logic.
16085         (acc_set_device_num): Likewise.
16086         (acc_on_device): Use acc_get_device_type.
16087         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
16088         (goacc_lazy_initialize): Reimplement with acc_init and
16089         goacc_attach_host_thread_to_device.
16090         * oacc-int.h (goacc_thread): Add base_dev field.
16091         (base_dev): Remove extern declaration.
16092         (goacc_attach_host_thread_to_device): Add prototype.
16093         * oacc-mem.c (acc_malloc): Use current thread's device instead of
16094         base_dev.
16095         (acc_free): Likewise.
16096         (acc_memcpy_to_device): Likewise.
16097         (acc_memcpy_from_device): Likewise.
16098         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
16099         goacc_lazy_initialize (throughout).
16100         (GOACC_parallel): Use tgt_offset to locate target functions.
16101         * target.c (gomp_map_vars): Don't set tgt->mem_map.
16102         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
16103         (gomp_load_plugin_for_device): Remove open_device, close_device,
16104         get_device_num, set_device_num openacc hook initialisation. Don't set
16105         openacc.target_data.
16106         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
16107         (GOMP_OFFLOAD_openacc_close_device)
16108         (GOMP_OFFLOAD_openacc_get_device_num)
16109         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
16110         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
16111         to int.
16112         * plugin/plugin-nvptx.c (ptx_inited): Remove.
16113         (instantiated_devices, ptx_dev_lock): New.
16114         (struct ptx_image_data): New.
16115         (ptx_devices, ptx_images, ptx_image_lock): New.
16116         (fini_streams_for_device): Reorder cuStreamDestroy call.
16117         (nvptx_get_num_devices): Remove forward declaration.
16118         (nvptx_init): Change return type to bool.
16119         (nvptx_fini): Remove.
16120         (nvptx_attach_host_thread_to_device): New.
16121         (nvptx_open_device): Return struct ptx_device* instead of void*.
16122         (nvptx_close_device): Change argument type to struct ptx_device*,
16123         return type to void.
16124         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
16125         (kernel_target_data, kernel_host_table): Remove static globals.
16126         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16127         (GOMP_OFFLOAD_init_device): Reimplement.
16128         (GOMP_OFFLOAD_fini_device): Likewise.
16129         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16130         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16131         (GOMP_OFFLOAD_host2dev): Use ORD argument.
16132         (GOMP_OFFLOAD_openacc_open_device)
16133         (GOMP_OFFLOAD_openacc_close_device)
16134         (GOMP_OFFLOAD_openacc_set_device_num)
16135         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16136         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16137         (device number).
16139         testsuite/
16140         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16142 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
16144         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16145         * libgomp.h (struct gomp_memory_mapping): Remove.
16146         (struct target_mem_desc): Change type of mem_map from
16147         gomp_memory_mapping * to splay_tree_s *.
16148         (struct gomp_device_descr): Remove register_image_func, get_table_func.
16149         Add load_image_func, unload_image_func.
16150         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16151         Remove offload_regions_registered.
16152         (gomp_init_tables): Remove.
16153         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16154         to splay_tree_s *.
16155         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16156         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16157         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16158         offload_regions_registered.
16159         Initialize load_image_func, unload_image_func, mem_map.root.
16160         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16161         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16162         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16163         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16164         gomp_memory_mapping *.  Use dev's lock and splay_tree.
16165         (lookup_dev): Use dev's lock.
16166         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16167         (acc_is_present): Likewise.
16168         (acc_map_data): Likewise.
16169         (acc_unmap_data): Likewise.  Use dev's lock.
16170         (present_create_copy): Likewise.
16171         (delete_copyout): Pass dev to lookup_host instead of mem_map.
16172         (update_dev_host): Likewise.
16173         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
16174         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16175         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16176         (GOMP_OFFLOAD_get_table): Remove
16177         (GOMP_OFFLOAD_load_image): New function.
16178         (GOMP_OFFLOAD_unload_image): New function.
16179         * target.c (register_lock): New mutex for offload image registration.
16180         (num_devices): Do not guard with PLUGIN_SUPPORT.
16181         (gomp_realloc_unlock): New static function.
16182         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
16183         before gomp_fatal.
16184         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16185         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
16186         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16187         mem_map's.
16188         (gomp_unmap_vars): Likewise.
16189         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
16190         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
16191         (gomp_offload_image_to_device): New static function.
16192         (GOMP_offload_register): Add mutex lock.
16193         Call gomp_offload_image_to_device for all initialized devices.
16194         Replace gomp_realloc with gomp_realloc_unlock.
16195         (GOMP_offload_unregister): New function.
16196         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
16197         get_table_func from the plugin with calls to init_device_func and
16198         gomp_offload_image_to_device.
16199         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16200         to splay_tree_s *.
16201         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
16202         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
16203         (GOMP_target_data): Do not call gomp_init_tables.
16204         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
16205         (gomp_load_plugin_for_device): Replace register_image and get_table
16206         with load_image and unload_image in DLSYM ().
16207         (gomp_register_images_for_device): Remove function.
16208         (gomp_target_init): Do not initialize current_device.mem_map.*,
16209         current_device.offload_regions_registered.
16210         Remove call to gomp_register_images_for_device.
16211         Do not free offload_images and num_offload_images.
16213 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16215         PR fortran/65597
16216         * testsuite/libgomp.fortran/pr65597.f90: New test.
16218 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16220         PR testsuite/65594
16221         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16222         (init, check): New function.
16223         (foo): Change return type to void.
16224         (main): Call init and check.
16226 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16228         PR testsuite/65594
16229         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16230         (foo): Use M for non-inner loops to scale down test-case.
16232 2015-03-25  Kai Tietz  <ktietz@redhat.com>
16234         PR libgomp/64972
16235         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16236         (GOACC_data_start): Likewise.
16237         * target.c (gomp_map_vars): Likewise.
16239 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
16241         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16242         hppa*-*-hpux*.
16244 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
16246         * testsuite/libgomp.c/target-10.c: New test.
16247         * testsuite/libgomp.c++/target-4.C: New test.
16249 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16251         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16252         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16254 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16256         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16257         * configure.ac (*-*-rtems*): Assume Pthread is supported.
16258         (pthread.h): Check for this header file.
16259         * configure: Regenerate.
16261 2015-02-25  Tom de Vries  <tom@codesourcery.com>
16263         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16264         (check_reduction_op, check_reduction_macro, max, min):
16265         Declare.
16266         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16267         function.
16268         (main): Use new functions.
16270 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
16272         * target.c (gomp_load_plugin_for_device): Use const char * instead of
16273         char * for variables holding dlerror return values.
16274         (DLSYM_OPT): Ditto.
16276 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16278         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16280 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16281             Cesar Philippidis  <cesar@codesourcery.com>
16283         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16284         GOACC_ctaid, and GOACC_nctaid routines.
16286 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16288         PR c/64824
16289         * testsuite/libgomp.c/atomic-18.c: New test.
16290         * testsuite/libgomp.c++/atomic-16.C: New test.
16292 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16294         PR c/64824
16295         PR c/64868
16296         * testsuite/libgomp.c/pr64824.c: New test.
16297         * testsuite/libgomp.c/pr64868.c: New test.
16298         * testsuite/libgomp.c++/pr64824.C: New test.
16299         * testsuite/libgomp.c++/pr64868.C: New test.
16301 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16303         PR libgomp/64635
16304         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16305         Link with -lpthread.
16306         * config/aix/plugin-suffix.h: Delete.
16308 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
16310         PR libgomp/64635
16311         * configure.tgt (*-*-aix*): Use config_path "aix posix".
16312         (*-*-darwin*): Use config_path "bsd darwin posix".
16313         (*-*-hpux*): Use config_path "hpux posix".
16314         * target.c: Add include of plugin-suffix.h and use
16315         SONAME_SUFFIX macro.
16316         * config/aix/plugin-suffix.h: New file.
16317         * config/darwin/plugin-suffix.h: New file.
16318         * config/hpux/plugin-suffix.h: New file.
16319         * config/posix/plugin-suffix.h: New file.
16321 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16323         PR middle-end/64734
16324         * libgomp.c/pr64734.c: New test.
16326 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16328         PR libgomp/64672
16329         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16331 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16333         PR libgomp/64707
16334         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16335         dg-options.
16337 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16339         PR libgomp/64625
16340         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16341         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16342         formal parameter.  Update all users.
16343         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16344         Document unused formal parameter.
16346 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
16348         * oacc-parallel.c: Don't include <alloca.h>.
16349         (GOACC_parallel): Use gomp_alloca instead of alloca.
16351 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
16353         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16355 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16356             James Norris  <jnorris@codesourcery.com>
16357             Tom de Vries  <tom@codesourcery.com>
16358             Julian Brown  <julian@codesourcery.com>
16359             Cesar Philippidis  <cesar@codesourcery.com>
16360             Nathan Sidwell  <nathan@codesourcery.com>
16361             Tobias Burnus  <burnus@net-b.de>
16363         * Makefile.am (search_path): Add $(top_srcdir)/../include.
16364         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16365         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16366         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16367         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16368         Include $(top_srcdir)/plugin/Makefrag.am.
16369         (nodist_libsubinclude_HEADERS): Add openacc.h.
16370         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16371         openacc.f90, openacc.mod, openacc_kinds.mod.
16372         (omp_lib.mod): Generalize into...
16373         (%.mod): ... this new rule.
16374         (openacc_kinds.mod, openacc.mod): New rules.
16375         * plugin/configfrag.ac: New file.
16376         * configure.ac: Move plugin/offloading support into it.  Include
16377         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
16378         * plugin/Makefrag.am: New file.
16379         * testsuite/Makefile.am (OFFLOAD_TARGETS)
16380         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16381         export.
16382         (libgomp-test-support.exp): New rule.
16383         (all-local): Depend on it.
16384         * Makefile.in: Regenerate.
16385         * testsuite/Makefile.in: Regenerate.
16386         * config.h.in: Likewise.
16387         * configure: Likewise.
16388         * configure.tgt: Harden shell syntax.
16389         * env.c: Include "oacc-int.h".
16390         (parse_acc_device_type): New function.
16391         (gomp_debug_var, goacc_device_type, goacc_device_num): New
16392         variables.
16393         (initialize_env): Initialize those.  Call
16394         goacc_runtime_initialize.
16395         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16396         (gomp_fatal): Call gomp_vfatal.
16397         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16398         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16399         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16400         (splay_tree_node, splay_tree, splay_tree_key)
16401         (struct target_mem_desc, struct splay_tree_key_s)
16402         (struct gomp_memory_mapping, struct acc_dispatch_t)
16403         (struct gomp_device_descr, gomp_acc_insert_pointer)
16404         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16405         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16406         (gomp_free_memmap, gomp_fini_device): New declarations.
16407         (gomp_vdebug, gomp_debug): New macros.
16408         Include "splay-tree.h".
16409         * libgomp.map (OACC_2.0): New symbol version.  Use for
16410         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16411         acc_set_device_type_h_, acc_get_device_type,
16412         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16413         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16414         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16415         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16416         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16417         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16418         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16419         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16420         acc_copyin_array_h_, acc_present_or_copyin,
16421         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16422         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16423         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16424         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16425         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16426         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16427         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16428         acc_update_device, acc_update_device_32_h_,
16429         acc_update_device_64_h_, acc_update_device_array_h_,
16430         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16431         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16432         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16433         acc_is_present_64_h_, acc_is_present_array_h_,
16434         acc_memcpy_to_device, acc_memcpy_from_device,
16435         acc_get_current_cuda_device, acc_get_current_cuda_context,
16436         acc_get_cuda_stream, acc_set_cuda_stream.
16437         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
16438         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16439         GOACC_update, GOACC_wait, GOACC_get_thread_num,
16440         GOACC_get_num_threads.
16441         (GOMP_PLUGIN_1.0): New symbol version.  Use for
16442         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16443         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16444         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16445         GOMP_PLUGIN_acc_thread.
16446         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16447         environment variable.
16448         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16449         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16450         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16451         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16452         (splay_tree_remove): New declarations.
16453         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16454         (splay_tree_remove, splay_tree_lookup): Move into...
16455         * splay-tree.c: ... this new file.
16456         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16457         (splay_tree_node, splay_tree, splay_tree_key)
16458         (struct target_mem_desc, struct splay_tree_key_s)
16459         (struct gomp_device_descr): Don't declare.
16460         (num_devices_openmp): New variable.
16461         (gomp_get_num_devices ): Use it.
16462         (gomp_init_targets_once): New function.
16463         (gomp_get_num_devices ): Use it.
16464         (get_kind, gomp_copy_from_async, gomp_free_memmap)
16465         (gomp_fini_device, gomp_register_image_for_device): New functions.
16466         (gomp_map_vars): Add devaddrs parameter.
16467         (gomp_update): Add mm parameter.
16468         (gomp_init_device): Move most of it into...
16469         (gomp_init_tables): ... this new function.
16470         (gomp_register_images_for_device): Remove function.
16471         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16472         Make them hidden instead of static.
16473         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16474         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16475         (GOMP_target_end_data, GOMP_target_update)
16476         (gomp_load_plugin_for_device, gomp_target_init): Update for
16477         OpenACC changes.
16478         * oacc-async.c: New file.
16479         * oacc-cuda.c: Likewise.
16480         * oacc-host.c: Likewise.
16481         * oacc-init.c: Likewise.
16482         * oacc-int.h: Likewise.
16483         * oacc-mem.c: Likewise.
16484         * oacc-parallel.c: Likewise.
16485         * oacc-plugin.c: Likewise.
16486         * oacc-plugin.h: Likewise.
16487         * oacc-ptx.h: Likewise.
16488         * openacc.f90: Likewise.
16489         * openacc.h: Likewise.
16490         * openacc_lib.h: Likewise.
16491         * plugin/plugin-host.c: Likewise.
16492         * plugin/plugin-nvptx.c: Likewise.
16493         * libgomp-plugin.c: Likewise.
16494         * libgomp-plugin.h: Likewise.
16495         * libgomp_target.h: Remove file after merging content into the
16496         former file.  Update all users.
16497         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16498         (offload_targets_s, offload_targets_s_openacc): New variables.
16499         (check_effective_target_openacc_nvidia_accel_present)
16500         (check_effective_target_openacc_nvidia_accel_selected): New
16501         procedures.
16502         (libgomp_init): Update for OpenACC changes.
16503         * testsuite/libgomp-test-support.exp.in: New file.
16504         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16505         * testsuite/libgomp.oacc-c/c.exp: Likewise.
16506         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16507         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16508         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16509         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16510         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16511         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16512         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16513         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16514         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16515         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16516         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16517         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16518         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16519         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16520         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16521         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16522         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16523         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16524         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16525         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16526         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16527         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16528         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16529         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16530         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16531         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16532         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16533         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16534         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16535         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16536         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16537         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16538         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16539         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16540         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16541         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16542         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16543         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16544         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16545         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16546         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16547         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16548         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16549         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16550         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16551         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16552         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16553         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16554         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16555         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16556         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16557         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16558         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16559         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16560         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16561         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16562         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16563         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16564         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16565         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16566         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16567         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16568         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16569         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16570         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16571         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16572         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16573         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16574         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16575         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16576         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16577         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16578         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16579         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16580         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16581         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16582         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16583         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16584         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16585         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16586         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16587         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16588         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16589         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16590         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16591         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16592         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16593         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16594         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16595         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16596         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16597         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16598         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16599         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16600         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16601         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16602         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16603         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16604         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16605         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16606         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16607         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16608         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16609         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16610         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16611         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16612         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16613         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16614         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16615         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16616         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16617         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16618         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16619         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16620         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16621         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16622         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16623         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16624         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16625         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16626         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16627         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16628         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16629         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16630         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16631         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16632         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16633         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16634         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16635         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16636         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16637         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16638         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16639         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16640         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16641         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16642         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16643         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16644         Likewise.
16645         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16646         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16647         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16648         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16649         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16650         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16651         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16652         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16653         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16654         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16655         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16656         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16657         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16658         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16659         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16660         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16661         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16662         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16663         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16664         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16665         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16666         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16667         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16668         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16669         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16670         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16671         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16672         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16673         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16674         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16675         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16676         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16677         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16678         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16679         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16680         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16681         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16682         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16683         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16684         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16685         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16686         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16687         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16688         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16689         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16690         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16691         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16692         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16693         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16694         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16695         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16696         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16697         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16698         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16699         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16700         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16701         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16702         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16703         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16704         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16706 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16707             Julian Brown  <julian@codesourcery.com>
16708             David Malcolm  <dmalcolm@redhat.com>
16710         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16711         to "GNU Offloading and Multi Processing Runtime Library".  Change
16712         all users.
16713         * configure: Regenerate.
16714         * libgomp.texi: Update.
16716 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16718         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16719         "$tgt_dir/lib32".
16720         * configure: Regenerate.
16722         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16723         "intelmic" in $offload_targets.
16725 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16727         Update copyright years.
16729         * libgomp.texi: Bump @copying's copyright year.
16731 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16733         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16734         Move load of target-supports.exp earlier.
16736 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16738         * testsuite/libgomp.c/target-9.c: New test.
16740 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16742         * config.h.in: Regenerate.
16743         * configure: Regenerate.
16744         * configure.ac: Add GCC_CHECK_EMUTLS.
16745         * libgomp.h: Add check for USE_EMUTLS: this case
16746         is equal to HAVE_TLS.
16747         * team.c: Likewise.
16749 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16751         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16753 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16754             Ilya Verbin  <ilya.verbin@intel.com>
16756         * testsuite/libgomp.c/target-critical-1.c: New test.
16758 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16760         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16761         to dg-options unless expensive testing is on.
16762         (TESTITERS): Define to N if not defined.
16763         (main): Use TESTITERS instead of N.
16764         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16765         dg-additional-options depending on whether expensive testing is on.
16766         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16767         Decrease N to 100000 and CHUNKSZ to 10000.
16769 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16771         PR fortran/63938
16772         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16773         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16775 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16777         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16779 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16781         PR bootstrap/63784
16782         * configure: Regenerated.
16784 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16786         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16787         vect_simd_clones effective target.
16788         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16790 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16792         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16793         of 32 as block_size.
16794         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16795         instead of 32 as block_size.
16797 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16798             Ilya Verbin  <ilya.verbin@intel.com>
16800         * Makefile.in: Regenerate.
16801         * configure: Regenerate.
16802         * configure.ac: Set up offload_additional_options,
16803         offload_additional_lib_paths and offload_targets.
16804         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16805         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16806         * testsuite/Makefile.in: Regenerate.
16807         * testsuite/lib/libgomp.exp (libgomp_init): Append
16808         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16809         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16810         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16812 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16813             Ilya Verbin  <ilya.verbin@intel.com>
16814             Kirill Yukhin  <kirill.yukhin@intel.com>
16815             Ilya Tocar  <ilya.tocar@intel.com>
16817         * testsuite/lib/libgomp.exp
16818         (check_effective_target_offload_device): New.
16819         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16820         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16821         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16822         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16823         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16824         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16825         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16826         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16827         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16828         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16829         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16830         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16831         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16832         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16833         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16834         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16835         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16836         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16837         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16838         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16839         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16840         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16841         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16842         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16843         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16844         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16845         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16846         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16847         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16848         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16849         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16850         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16851         * testsuite/libgomp.c/target-7.c: Fix test.
16852         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16853         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16854         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16855         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16856         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16857         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16858         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16859         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16860         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16861         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16862         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16863         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16864         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16865         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16866         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16867         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16868         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16869         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16870         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16871         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16872         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16873         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16874         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16875         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16876         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16877         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16878         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16879         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16880         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16881         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16882         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16884 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16885             Ilya Verbin  <ilya.verbin@intel.com>
16886             Thomas Schwinge  <thomas@codesourcery.com>
16887             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16889         * libgomp.map (GOMP_4.0.1): New symbol version.
16890         Add GOMP_offload_register.
16891         * libgomp_target.h: New file.
16892         * splay-tree.h: New file.
16893         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16894         (gomp_target_init): New forward declaration.
16895         (gomp_is_initialized): New static variable.
16896         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16897         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16898         New structures.
16899         (offload_images, num_offload_images, devices, num_devices): New static
16900         variables.
16901         (splay_compare): New static function.
16902         (struct gomp_device_descr): New structure.
16903         (gomp_get_num_devices): Call gomp_target_init.
16904         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16905         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16906         (GOMP_offload_register): New function.
16907         (GOMP_target): Arrange for host callback to be performed in a separate
16908         initial thread and contention group, inheriting ICVs from
16909         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16910         Add device initialization and lookup for target function in splay tree.
16911         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16912         (GOMP_target_end_data): Call gomp_unmap_vars.
16913         (GOMP_target_update): Add device initialization and call gomp_update.
16914         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16915         (gomp_target_init): New static functions.
16917 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16918             Thomas Schwinge  <thomas@codesourcery.com>
16919             Ilya Verbin  <ilya.verbin@intel.com>
16920             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16922         * config.h.in: Regenerate.
16923         * configure: Regenerate.
16924         * configure.ac: Check for libdl, required for plugin support.
16925         (PLUGIN_SUPPORT): Define if plugins are supported.
16926         (enable_offload_targets): Support Intel MIC targets.
16927         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16929 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16931         PR target/63610
16932         * configure: Regenerate.
16934 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16936         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16938 2014-10-06  Marek Polacek  <polacek@redhat.com>
16940         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16941         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16942         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16943         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16945 2014-10-06  Marek Polacek  <polacek@redhat.com>
16947         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16948         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16949         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16950         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16951         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16952         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16953         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16954         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16955         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16956         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16957         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16958         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16959         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16960         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16961         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16962         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16963         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16964         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16965         declarations.
16967 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16969         PR libgomp/61200
16970         * testsuite/libgomp.c/pr61200.c: New test.
16972 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16974         PR c++/63248
16975         * testsuite/libgomp.c++/pr63248.C: New test.
16977 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16979         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16980         is not zero, but taskgroup->children is NULL and there are
16981         any task->children, schedule those instead of waiting.
16982         * testsuite/libgomp.c/depend-6.c: New test.
16983         * testsuite/libgomp.c/depend-7.c: New test.
16984         * testsuite/libgomp.c/depend-8.c: New test.
16985         * testsuite/libgomp.c/depend-9.c: New test.
16986         * testsuite/libgomp.c/depend-10.c: New test.
16988 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16990         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16991         (struct gomp_taskwait): New type.
16992         (struct gomp_task): Add taskwait and parent_depends_on, remove
16993         in_taskwait and taskwait_sem fields.
16994         (gomp_finish_task): Don't destroy taskwait_sem.
16995         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16996         taskwait and parent_depends_on.
16997         (GOMP_task): For if (0) tasks with depend clause that depend on
16998         earlier tasks don't defer them, instead call
16999         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
17000         Initialize redundant_out field, for redundant out entries just
17001         move them at the end of linked list instead of removing them
17002         completely, and set redundant_out flag instead of redundant.
17003         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
17004         that task.
17005         (gomp_task_run_post_handle_dependers): If parent is in
17006         gomp_task_maybe_wait_for_dependencies and newly runnable task
17007         is not parent_depends_on, queue it in parent->children linked
17008         list after all runnable tasks with parent_depends_on set.
17009         Adjust for addition of taskwait indirection.
17010         (gomp_task_run_post_remove_parent): If parent is in
17011         gomp_task_maybe_wait_for_dependencies and task to be removed
17012         is parent_depends_on, decrement n_depend and if needed awake
17013         parent.  Adjust for addition of taskwait indirection.
17014         (GOMP_taskwait): Adjust for addition of taskwait indirection.
17015         (gomp_task_maybe_wait_for_dependencies): New function.
17016         * testsuite/libgomp.c/depend-5.c: New test.
17018 2014-07-13  Tobias Burnus  <burnus@net-b.de>
17020         * testsuite/libgomp.fortran/pr34020.f90: Make compile
17021         with TS 18508/Fortran 2015.
17023 2014-07-06  Marek Polacek  <polacek@redhat.com>
17025         PR c/6940
17026         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
17028 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17030         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
17031         matches regex $lang_source_re, add $lang_include_flags to options.
17032         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
17033         * testsuite/libgomp.c++/c++.exp: Likewise.
17034         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
17035         and lang_include_flags instead of adding -fintrinsic-modules-path= to
17036         ALWAYS_CFLAGS.
17037         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
17039 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
17041         * testsuite/libgomp.fortran/fortran.exp: Explain
17042         gfortran-dg-runtest usage.
17044 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
17046         * testsuite/libgomp.fortran/simd5.f90: New test.
17047         * testsuite/libgomp.fortran/simd6.f90: New test.
17048         * testsuite/libgomp.fortran/simd7.f90: New test.
17050 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17052         * testsuite/libgomp.c/for-2.c: Define SC to static for
17053         #pragma omp for simd testing.
17054         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
17055         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
17056         SC macro.
17057         * testsuite/libgomp.c/simd-14.c: New test.
17058         * testsuite/libgomp.c/simd-15.c: New test.
17059         * testsuite/libgomp.c/simd-16.c: New test.
17060         * testsuite/libgomp.c/simd-17.c: New test.
17061         * testsuite/libgomp.c++/for-10.C: Define SC to static for
17062         #pragma omp for simd testing.
17063         * testsuite/libgomp.c++/simd10.C: New test.
17064         * testsuite/libgomp.c++/simd11.C: New test.
17065         * testsuite/libgomp.c++/simd12.C: New test.
17066         * testsuite/libgomp.c++/simd13.C: New test.
17068         * testsuite/libgomp.fortran/aligned1.f03: New test.
17069         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
17070         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
17071         tasks with !$omp parallel !$omp single.
17072         * testsuite/libgomp.fortran/target8.f90: New test.
17073         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
17074         not to use trim in the combiner, instead call elemental function.
17075         (fn): New elemental function.
17076         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
17077         Make elemental.
17078         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
17079         omp_in): Likewise.
17080         * testsuite/libgomp.fortran/udr12.f90: New test.
17081         * testsuite/libgomp.fortran/udr13.f90: New test.
17082         * testsuite/libgomp.fortran/udr14.f90: New test.
17083         * testsuite/libgomp.fortran/udr15.f90: New test.
17085 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17087         * omp_lib.f90.in (openmp_version): Set to 201307.
17088         * omp_lib.h.in (openmp_version): Likewise.
17089         * testsuite/libgomp.c/target-8.c: New test.
17090         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
17091         and inbranch clauses.
17092         * testsuite/libgomp.fortran/depend-3.f90: New test.
17093         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
17094         openmp_version.
17095         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17096         * testsuite/libgomp.fortran/target1.f90: New test.
17097         * testsuite/libgomp.fortran/target2.f90: New test.
17098         * testsuite/libgomp.fortran/target3.f90: New test.
17099         * testsuite/libgomp.fortran/target4.f90: New test.
17100         * testsuite/libgomp.fortran/target5.f90: New test.
17101         * testsuite/libgomp.fortran/target6.f90: New test.
17102         * testsuite/libgomp.fortran/target7.f90: New test.
17104 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17106         PR fortran/60928
17107         * testsuite/libgomp.fortran/allocatable9.f90: New test.
17108         * testsuite/libgomp.fortran/allocatable10.f90: New test.
17109         * testsuite/libgomp.fortran/allocatable11.f90: New test.
17110         * testsuite/libgomp.fortran/allocatable12.f90: New test.
17111         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
17112         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
17113         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
17114         * testsuite/libgomp.fortran/associate1.f90: New test.
17115         * testsuite/libgomp.fortran/associate2.f90: New test.
17116         * testsuite/libgomp.fortran/procptr1.f90: New test.
17118 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
17120         * testsuite/libgomp.fortran/simd1.f90: New test.
17121         * testsuite/libgomp.fortran/udr1.f90: New test.
17122         * testsuite/libgomp.fortran/udr2.f90: New test.
17123         * testsuite/libgomp.fortran/udr3.f90: New test.
17124         * testsuite/libgomp.fortran/udr4.f90: New test.
17125         * testsuite/libgomp.fortran/udr5.f90: New test.
17126         * testsuite/libgomp.fortran/udr6.f90: New test.
17127         * testsuite/libgomp.fortran/udr7.f90: New test.
17128         * testsuite/libgomp.fortran/udr8.f90: New test.
17129         * testsuite/libgomp.fortran/udr9.f90: New test.
17130         * testsuite/libgomp.fortran/udr10.f90: New test.
17131         * testsuite/libgomp.fortran/udr11.f90: New test.
17133 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
17135         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17136         vect_simd_clones effective target.
17137         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17139 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
17141         PR middle-end/61252
17142         * testsuite/libgomp.c++/simd-9.C: New test.
17144 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
17146         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17147         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17148         texts according to their @menu entry positions.
17150 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
17152         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17153         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17154         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17155         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17156         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17157         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17158         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17159         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17160         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17161         * testsuite/libgomp.fortran/depend-1.f90: New test.
17162         * testsuite/libgomp.fortran/depend-2.f90: New test.
17163         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17164         * testsuite/libgomp.fortran/simd1.f90: New test.
17165         * testsuite/libgomp.fortran/simd2.f90: New test.
17166         * testsuite/libgomp.fortran/simd3.f90: New test.
17167         * testsuite/libgomp.fortran/simd4.f90: New test.
17168         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17170 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
17172         * testsuite/libgomp.c/simd-10.c: New test.
17173         * testsuite/libgomp.c/simd-11.c: New test.
17174         * testsuite/libgomp.c/simd-12.c: New test.
17175         * testsuite/libgomp.c/simd-13.c: New test.
17177 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
17179         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17180         atomic type clauses in any order and optional comma in between.
17181         * testsuite/libgomp.c++/atomic-15.C: Likewise.
17182         * testsuite/libgomp.c/atomic-17.c: Likewise.
17184         * testsuite/libgomp.c/simd-7.c: New test.
17185         * testsuite/libgomp.c/simd-8.c: New test.
17186         * testsuite/libgomp.c/simd-9.c: New test.
17187         * testsuite/libgomp.c/loop-16.c: New test.
17189 2014-04-02  Richard Henderson  <rth@redhat.com>
17191         * config/linux/futex.h (futex_wait): Get error value from errno.
17192         (futex_wake): Likewise.
17194 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
17196         PR c++/60331
17197         * testsuite/libgomp.c++/udr-11.C: New test.
17198         * testsuite/libgomp.c++/udr-12.C: New test.
17199         * testsuite/libgomp.c++/udr-13.C: New test.
17200         * testsuite/libgomp.c++/udr-14.C: New test.
17201         * testsuite/libgomp.c++/udr-15.C: New test.
17202         * testsuite/libgomp.c++/udr-16.C: New test.
17203         * testsuite/libgomp.c++/udr-17.C: New test.
17204         * testsuite/libgomp.c++/udr-18.C: New test.
17205         * testsuite/libgomp.c++/udr-19.C: New test.
17207 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17209         Update copyright years
17211 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17213         * hashtab.h: Use the standard form for the copyright notice.
17215 2014-01-02  Tobias Burnus  <burnus@net-b.de>
17217         * libgomp.texi: Bump @copying's copyright year.
17219 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
17221         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17222         alloca () with __builtin_alloca ().
17223         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17224         * testsuite/libgomp.c/lock-3.c: Likewise.
17225         * testsuite/libgomp.c/pr48591.c: Likewise.
17227 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
17229         PR testsuite/59534
17230         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17231         comparisons.
17233 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
17235         PR libgomp/58756
17236         * testsuite/libgomp.c/pr58756.c: New test.
17238 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
17240         PR libgomp/59467
17241         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17242         !$omp parallel.
17244 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
17246         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17247         ALWAYS_CFLAGS.
17248         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17249         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17250         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17251         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17252         Likewise.
17254         * libgomp_g.h: Include <stddef.h> for size_t.
17256         * libgomp.spec.in: Update comment about libgomp's dependencies.
17257         * configure.ac: Likewise.
17258         * configure: Regenerate.
17260 2013-10-16  Tobias Burnus  <burnus@net-b.de>
17262         * libgomp.texi: (Runtime Library Routines): Update references for
17263         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17264         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17265         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17266         (Environment Variables): Update references for OpenMP 4.0. Add
17267         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17268         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17269         order.
17271 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
17273         * env.c (parse_bind_var): Initialize value to avoid
17274         (false positive) warning.
17276 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
17278         PR libgomp/58691
17279         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17280         to check variable.
17281         (gomp_init_num_threads): Move i variable declaration into
17282         #ifdef CPU_ALLOC_SIZE block.
17283         * config/linux/affinity.c (gomp_affinity_init_level): Test
17284         gomp_places_list_len == 0 rather than gomp_places_list == 0
17285         when checking for topology reading error.
17286         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17287         * env.c (parse_affinity): Add ignore argument, if true, don't populate
17288         gomp_places_list, only parse env var and always return false.
17289         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
17290         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17291         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17292         and either of these variables were parsed correctly into a places
17293         list.
17295 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17296             Jakub Jelinek  <jakub@redhat.com>
17298         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17299         of 5 loopfn matches.
17300         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17301         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17302         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17303         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17304         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17305         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17306         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17307         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17309 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17311         * Makefile.am (omp_lib.mod): Streamline rule.
17312         * Makefile.in: Regenerate.
17314         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17315         exceptions.
17317         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17318         * testsuite/libgomp.fortran/lib1.f90: Likewise.
17319         * testsuite/libgomp.fortran/lib2.f: Likewise.
17320         * testsuite/libgomp.fortran/lib3.f: Likewise.
17322         * configure.ac: Typo fix.
17323         * configure: Regenerate.
17325         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17326         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17328         * omp.h.in: Don't touch the user's namespace.
17330 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
17331             Tobias Burnus  <burnus@net-b.de>
17332             Richard Henderson  <rth@redhat.com>
17334         * target.c: New file.
17335         * Makefile.am (libgomp_la_SOURCES): Add target.c.
17336         * Makefile.in: Regenerated.
17337         * libgomp_g.h (GOMP_task): Add depend argument.
17338         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17339         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17340         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17341         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17342         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17343         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17344         GOMP_taskgroup_start, GOMP_taskgroup_end,
17345         GOMP_parallel_sections): New prototypes.
17346         * fortran.c (omp_is_initial_device): Add ialias_redirect.
17347         (omp_is_initial_device_): New function.
17348         (ULP, STR1, STR2, ialias_redirect): Removed.
17349         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17350         omp_set_default_device_8_, omp_get_default_device_,
17351         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17352         functions.
17353         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17354         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17355         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17356         @@GOMP_4.0.
17357         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17358         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17359         omp_set_default_device, omp_set_default_device_,
17360         omp_set_default_device_8_, omp_get_default_device,
17361         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17362         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17363         omp_get_team_num_): Export @@OMP_4.0.
17364         * team.c (struct gomp_thread_start_data): Add place field.
17365         (gomp_thread_start): Clear thr->thread_pool and
17366         thr->task before returning.  Use gomp_team_barrier_wait_final
17367         instead of gomp_team_barrier_wait.  Initialize thr->place.
17368         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17369         team_cancelled and task_queued_count fields.
17370         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17371         before calling pthread_exit.
17372         (gomp_free_thread): No longer static.  Use
17373         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17374         (gomp_team_start): Add flags argument.  Set
17375         thr->thread_pool->threads_busy to nthreads immediately after creating
17376         new pool.  Use gomp_managed_threads_lock instead of
17377         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
17378         (gomp_team_end): Use gomp_managed_threads_lock instead of
17379         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
17380         of gomp_team_barrier_wait.  If team->team_cancelled, call
17381         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17382         rather than thr->ts.work_share.
17383         (initialize_team): Don't call gomp_sem_init here.
17384         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17385         caller.
17386         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17387         * env.c (gomp_global_icv): Add default_device_var, target_data and
17388         bind_var initializers.
17389         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17390         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17391         gomp_places_list_len): New variables.
17392         (parse_bind_var, parse_one_place, parse_places_var): New functions.
17393         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17394         sized places.
17395         (gomp_cancel_var): New global variable.
17396         (parse_int): New function.
17397         (handle_omp_display_env): New function.
17398         (initialize_env): Use it.  Initialize default_device_var.
17399         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
17400         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
17401         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
17402         been successfully parsed (and call gomp_init_affinity in that case).
17403         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17404         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17405         omp_get_team_num, omp_is_initial_device): New functions.
17406         * libgomp.h: Include stdlib.h.
17407         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17408         Define.
17409         (struct target_mem_desc): Forward declare.
17410         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17411         and thread_limit_var fields.
17412         (gomp_get_num_devices): New prototype.
17413         (gomp_cancel_var): New extern decl.
17414         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17415         team_cancelled and task_queued_count fields.  Add comments about
17416         task_{,queued_,running_}count.
17417         (gomp_cancel_kind): New enum.
17418         (gomp_work_share_end_cancel): New prototype.
17419         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17420         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17421         and depend fields.
17422         (struct gomp_taskgroup): New type.
17423         (struct gomp_task_depend_entry,
17424         struct gomp_dependers_vec): New types.
17425         (gomp_finish_task): Free depend_hash if non-NULL.
17426         (struct gomp_team_state): Add place_partition_off
17427         and place_partition_len fields.
17428         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17429         gomp_places_list_len): New extern decls.
17430         (struct gomp_thread): Add place field.
17431         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17432         (gomp_init_thread_affinity): Add place argument.
17433         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17434         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17435         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17436         gomp_affinity_init_level, gomp_affinity_print_place): New
17437         prototypes.
17438         (gomp_team_start): Add flags argument.
17439         (gomp_thread_limit_var, gomp_remaining_threads_count,
17440         gomp_remaining_threads_lock): Remove.
17441         (gomp_managed_threads_lock): New variable.
17442         (struct gomp_thread_pool): Add threads_busy field.
17443         (gomp_free_thread): New prototype.
17444         * task.c: Include hashtab.h.
17445         (hash_entry_type): New typedef.
17446         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17447         (gomp_init_task): Clear dependers, depend_hash, depend_count,
17448         copy_ctors_done and taskgroup fields.
17449         (GOMP_task): Add depend argument, handle depend clauses.  If
17450         gomp_team_barrier_cancelled or if it's taskgroup has been
17451         cancelled, don't queue or start new tasks.  Set copy_ctors_done
17452         field if needed.  Initialize taskgroup field.  If copy_ctors_done
17453         and already cancelled, don't discard the task.  If taskgroup is
17454         non-NULL, enqueue the task into taskgroup queue.  Increment
17455         num_children field in taskgroup.  Increment task_queued_count.
17456         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17457         gomp_task_run_post_remove_taskgroup): New inline functions.
17458         (gomp_task_run_post_handle_depend_hash,
17459         gomp_task_run_post_handle_dependers,
17460         gomp_task_run_post_handle_depend): New functions.
17461         (GOMP_taskwait): Use them.  If more than one new tasks
17462         have been queued, wake other threads if needed.
17463         (gomp_barrier_handle_tasks): Likewise.  If
17464         gomp_team_barrier_cancelled, don't start any new tasks, just free
17465         all tasks.
17466         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17467         * omp_lib.f90.in
17468         (omp_proc_bind_kind, omp_proc_bind_false,
17469         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17470         omp_proc_bind_spread): New params.
17471         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17472         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17473         omp_get_team_num, omp_is_initial_device): New interfaces.
17474         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17475         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17476         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17477         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17478         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17479         useless use omp_lib_kinds.
17480         * omp.h.in (omp_proc_bind_t): New typedef.
17481         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17482         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17483         omp_get_team_num, omp_is_initial_device): New prototypes.
17484         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17485         through to gomp_team_start.
17486         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17487         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17488         Adjust gomp_parallel_loop_start callers.
17489         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17490         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17491         GOMP_loop_end_cancel): New functions.
17492         (GOMP_parallel_end): Add ialias_redirect.
17493         * hashtab.h: New file.
17494         * libgomp.texi (Environment Variables): Minor cleanup,
17495         update section refs to OpenMP 4.0rc2.
17496         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17497         environment variables.
17498         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17499         team->work_shares_to_free to thr->ts.work_share before calling
17500         free_work_share.
17501         (gomp_work_share_end_cancel): New function.
17502         * config/linux/proc.c: Include errno.h.
17503         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17504         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17505         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
17506         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
17507         gomp_cpuset_size is sizeof (cpu_set_t).
17508         (gomp_init_num_threads): Initialize gomp_cpuset_size,
17509         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17510         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17511         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
17512         contain any logical CPUs.
17513         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17514         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
17515         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17516         pthread_getaffinity_np.  Check gomp_places_list instead of
17517         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
17518         * config/linux/bar.c (gomp_barrier_wait_end,
17519         gomp_barrier_wait_last): Use BAR_* defines.
17520         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
17521         from state where needed.  Set work_share_cancelled to 0 on last
17522         thread.
17523         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17524         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17525         functions.
17526         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17527         Add cpusetsize argument.
17528         (gomp_cpuset_size, gomp_cpusetp): Declare.
17529         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17530         (affinity_counter): Remove.
17531         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17532         if CPU_ALLOC_SIZE isn't defined.
17533         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17534         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17535         bind current thread to the first place.
17536         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
17537         pthread_setaffinity_np to gomp_places_list[place].
17538         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17539         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17540         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17541         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17542         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17543         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17544         (gomp_barrier_t): Add awaited_final field.
17545         (gomp_barrier_init): Initialize awaited_final field.
17546         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17547         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17548         prototypes.
17549         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
17550         defines.
17551         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17552         gomp_team_barrier_cancelled): New inline functions.
17553         (gomp_barrier_last_thread,
17554         gomp_team_barrier_set_task_pending,
17555         gomp_team_barrier_clear_task_pending,
17556         gomp_team_barrier_set_waiting_for_tasks,
17557         gomp_team_barrier_waiting_for_tasks,
17558         gomp_team_barrier_done): Use BAR_* defines.
17559         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17560         (gomp_barrier_wait_end): Use BAR_* defines.
17561         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17562         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17563         Use BAR_* defines.
17564         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17565         gomp_team_barrier_cancel): New functions.
17566         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17567         argument.
17568         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17569         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17570         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17571         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17572         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17573         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17574         (gomp_barrier_t): Add cancellable field.
17575         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17576         gomp_team_barrier_cancel): New prototypes.
17577         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17578         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17579         gomp_team_barrier_cancelled): New inline functions.
17580         (gomp_barrier_wait_start, gomp_barrier_last_thread,
17581         gomp_team_barrier_set_task_pending,
17582         gomp_team_barrier_clear_task_pending,
17583         gomp_team_barrier_set_waiting_for_tasks,
17584         gomp_team_barrier_waiting_for_tasks,
17585         gomp_team_barrier_done): Use BAR_* defines.
17586         * barrier.c (GOMP_barrier_cancel): New function.
17587         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17588         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17589         omp_proc_bind_spread): New params.
17590         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17591         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17592         omp_get_team_num, omp_is_initial_device): New externals.
17593         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17594         New functions.
17595         (gomp_resolve_num_threads): Adjust for thread_limit now being in
17596         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17597         infinity.  If not nested, just return minimum of max_num_threads
17598         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17599         to the returned value.  Otherwise, don't update atomically
17600         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17601         (GOMP_parallel_end): Adjust for thread_limit now being in
17602         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17603         infinity.  Adjust threads_busy in the pool rather than
17604         gomp_remaining_threads_count.  Remember team->nthreads and call
17605         gomp_team_end before adjusting threads_busy, if not nested
17606         afterwards, just set it to 1 non-atomically.  Add ialias.
17607         (GOMP_parallel_start): Adjust gomp_team_start caller.
17608         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17609         * testsuite/libgomp.c/affinity-1.c: New test.
17610         * testsuite/libgomp.c/atomic-15.c: New test.
17611         * testsuite/libgomp.c/atomic-16.c: New test.
17612         * testsuite/libgomp.c/atomic-17.c: New test.
17613         * testsuite/libgomp.c/cancel-for-1.c: New test.
17614         * testsuite/libgomp.c/cancel-for-2.c: New test.
17615         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17616         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17617         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17618         * testsuite/libgomp.c/cancel-sections-1.c: New test.
17619         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17620         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17621         * testsuite/libgomp.c/depend-1.c: New test.
17622         * testsuite/libgomp.c/depend-2.c: New test.
17623         * testsuite/libgomp.c/depend-3.c: New test.
17624         * testsuite/libgomp.c/depend-4.c: New test.
17625         * testsuite/libgomp.c/for-1.c: New test.
17626         * testsuite/libgomp.c/for-1.h: New file.
17627         * testsuite/libgomp.c/for-2.c: New test.
17628         * testsuite/libgomp.c/for-2.h: New file.
17629         * testsuite/libgomp.c/for-3.c: New test.
17630         * testsuite/libgomp.c/pr58392.c: New test.
17631         * testsuite/libgomp.c/simd-1.c: New test.
17632         * testsuite/libgomp.c/simd-2.c: New test.
17633         * testsuite/libgomp.c/simd-3.c: New test.
17634         * testsuite/libgomp.c/simd-4.c: New test.
17635         * testsuite/libgomp.c/simd-5.c: New test.
17636         * testsuite/libgomp.c/simd-6.c: New test.
17637         * testsuite/libgomp.c/target-1.c: New test.
17638         * testsuite/libgomp.c/target-2.c: New test.
17639         * testsuite/libgomp.c/target-3.c: New test.
17640         * testsuite/libgomp.c/target-4.c: New test.
17641         * testsuite/libgomp.c/target-5.c: New test.
17642         * testsuite/libgomp.c/target-6.c: New test.
17643         * testsuite/libgomp.c/target-7.c: New test.
17644         * testsuite/libgomp.c/taskgroup-1.c: New test.
17645         * testsuite/libgomp.c/thread-limit-1.c: New test.
17646         * testsuite/libgomp.c/thread-limit-2.c: New test.
17647         * testsuite/libgomp.c/thread-limit-3.c: New test.
17648         * testsuite/libgomp.c/udr-1.c: New test.
17649         * testsuite/libgomp.c/udr-2.c: New test.
17650         * testsuite/libgomp.c/udr-3.c: New test.
17651         * testsuite/libgomp.c++/affinity-1.C: New test.
17652         * testsuite/libgomp.c++/atomic-10.C: New test.
17653         * testsuite/libgomp.c++/atomic-11.C: New test.
17654         * testsuite/libgomp.c++/atomic-12.C: New test.
17655         * testsuite/libgomp.c++/atomic-13.C: New test.
17656         * testsuite/libgomp.c++/atomic-14.C: New test.
17657         * testsuite/libgomp.c++/atomic-15.C: New test.
17658         * testsuite/libgomp.c++/cancel-for-1.C: New test.
17659         * testsuite/libgomp.c++/cancel-for-2.C: New test.
17660         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17661         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17662         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17663         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17664         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17665         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17666         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17667         * testsuite/libgomp.c++/cancel-test.h: New file.
17668         * testsuite/libgomp.c++/for-9.C: New test.
17669         * testsuite/libgomp.c++/for-10.C: New test.
17670         * testsuite/libgomp.c++/for-11.C: New test.
17671         * testsuite/libgomp.c++/simd-1.C: New test.
17672         * testsuite/libgomp.c++/simd-2.C: New test.
17673         * testsuite/libgomp.c++/simd-3.C: New test.
17674         * testsuite/libgomp.c++/simd-4.C: New test.
17675         * testsuite/libgomp.c++/simd-5.C: New test.
17676         * testsuite/libgomp.c++/simd-6.C: New test.
17677         * testsuite/libgomp.c++/simd-7.C: New test.
17678         * testsuite/libgomp.c++/simd-8.C: New test.
17679         * testsuite/libgomp.c++/target-1.C: New test.
17680         * testsuite/libgomp.c++/target-2.C: New test.
17681         * testsuite/libgomp.c++/target-2-aux.cc: New file.
17682         * testsuite/libgomp.c++/target-3.C: New test.
17683         * testsuite/libgomp.c++/taskgroup-1.C: New test.
17684         * testsuite/libgomp.c++/udr-1.C: New test.
17685         * testsuite/libgomp.c++/udr-2.C: New test.
17686         * testsuite/libgomp.c++/udr-3.C: New test.
17687         * testsuite/libgomp.c++/udr-4.C: New test.
17688         * testsuite/libgomp.c++/udr-5.C: New test.
17689         * testsuite/libgomp.c++/udr-6.C: New test.
17690         * testsuite/libgomp.c++/udr-7.C: New test.
17691         * testsuite/libgomp.c++/udr-8.C: New test.
17692         * testsuite/libgomp.c++/udr-9.C: New test.
17694 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
17696         PR testsuite/57605
17697         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17698         ALWAYS_CFLAGS.
17700 2013-09-20  Alan Modra  <amodra@gmail.com>
17702         * configure: Regenerate.
17704 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17706         * testsuite/libgomp.c/sections-2.c: New test.
17708 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17710         * testsuite/libgomp.fortran/strassen.f90:
17711         Add dg-skip-if aarch64_tiny.
17713 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
17714             Cesar Philippidis  <cesar@codesourcery.com>
17716         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17717         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17718         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17719         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17720         * testsuite/libgomp.graphite/graphite.exp: Likewise.
17721         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17722         Use dg-runtest rather than gfortran-dg-runtest.
17724 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17726         * testsuite/libgomp.c/icv-2.c: Extend current handling of
17727         Linux-based x86 systems to cover all GNU systems.
17728         * testsuite/libgomp.c/lock-3.c: Likewise.
17729         * testsuite/libgomp.c/pr48591.c: Likewise.
17731 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17733         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17734         GNU/Hurd, as done for Linux-based systems.
17736         * config/posix/ptrlock.h: Fix comment.
17738 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17740         PR fortran/57423
17741         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17742         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17743         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17744         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17745         omp_destroy_nest_lock): Correct arguments to match the one in
17746         the OpenMP spec.
17747         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17748         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17749         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17750         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17752 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17754         * testsuite/libgomp.c/loop-13.c: New test.
17755         * testsuite/libgomp.c/loop-14.c: New test.
17756         * testsuite/libgomp.c/loop-15.c: New test.
17757         * testsuite/libgomp.c++/loop-13.C: New test.
17758         * testsuite/libgomp.c++/loop-14.C: New test.
17759         * testsuite/libgomp.c++/loop-15.C: New test.
17761 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17763         PR middle-end/56217
17764         * testsuite/libgomp.c++/pr56217.C: New test.
17766 2013-02-01  Alan Modra  <amodra@gmail.com>
17768         * task.c (GOMP_task, GOMP_taskwait): Comment.
17770 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17771             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17773         PR libgomp/55561
17774         * config/linux/wait.h (do_spin): Use atomic load for addr.
17775         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17776         for intptr and ptrlock.
17777         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17778         for ptrlock.
17780 2013-01-22  Alan Modra  <amodra@gmail.com>
17782         PR libgomp/51376
17783         PR libgomp/56073
17784         * task.c (GOMP_task): Revert 2011-12-09 change.
17785         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17786         barrier to read task->children..
17787         (gomp_barrier_handle_tasks): ..and matching atomic store with
17788         release barrier here when setting parent->children to NULL.
17790 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17791             Tobias Burnus  <burnus@net-b.de>
17793         PR driver/55884
17794         * testsuite/libgomp.fortran/fortran.exp: Use
17795         -fintrinsic-modules-path= instead of
17796         -fintrinsic-modules-path.
17798 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17800         Update copyright years.
17802 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17804         * testsuite/libgomp.fortran/fortran.exp: Set
17805         -fintrinsic-modules-path.
17807 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17809         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17810         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17812 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17814         PR libgomp/55411
17815         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17816         if pool had any threads_used.
17818 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17820         * testsuite/libgomp.c++/pr24455.C: Use
17821         -Wl,-undefined,dynamic_lookup on darwin.
17823 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17825         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17827 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17829         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17831 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17832             Jim MacArthur  <jim.macarthur@arm.com>
17833             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17834             Nigel Stephens  <nigel.stephens@arm.com>
17835             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17836             Richard Earnshaw  <rearnsha@arm.com>
17837             Sofiane Naci  <sofiane.naci@arm.com>
17838             Stephen Thomas  <stephen.thomas@arm.com>
17839             Tejas Belagod  <tejas.belagod@arm.com>
17840             Yufeng Zhang  <yufeng.zhang@arm.com>
17842         * configure.tgt: Add AArch64.
17844 2012-10-04  Jason Merrill  <jason@redhat.com>
17846         * testsuite/libgomp.c++/tls-init1.C: New.
17848 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17850         * configure: Regenerated.
17852 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17854         * config/linux/mips/futex.h (sys_futex0): Change to static
17855         function with noinline, nomips16 attributes under MIPS16. Adjust
17856         asm statement to place 'li v0,SYS_futex' immediately before
17857         syscall insn.
17859 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17861         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17862         conflict with index.html on case-insensitive file systems.
17864 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17866         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17867         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17869 2012-07-02  Richard Guenther  <rguenther@suse.de>
17870             Michael Matz  <matz@suse.de>
17871             Tobias Grosser <tobias@grosser.es>
17872             Sebastian Pop <sebpop@gmail.com>
17874         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17875         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17876         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17877         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17879 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17881         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17883 2012-06-22  Richard Guenther  <rguenther@suse.de>
17885         Merge from graphite branch
17886         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17888         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17889         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17891 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17893         PR middle-end/53580
17894         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17895         use GOMP_barrier () call instead.
17896         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17897         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17898         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17899         call GOMP_barrier instead.
17900         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17902 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17904         PR libgomp/52993
17905         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17906         argument to memset call.
17908 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17910         * configure: Regenerated.
17912 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17914         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17916 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17918         PR bootstrap/52812
17919         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17921 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17923         PR middle-end/52547
17924         * testsuite/libgomp.c/pr52547.c: New test.
17926 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17928         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17930 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17932         * configure.tgt (mips-sgi-irix6*): Remove.
17934 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17936         * configure.tgt (alpha*-dec-osf*): Remove.
17938         * config/osf/sem.h: Remove.
17939         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17941 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17943         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17945 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17947         PR libstdc++/52188
17948         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17949         Remove ENABLE_SYMVERS_SOL2.
17950         * configure: Regenerate.
17951         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17952         (PREPROCESS): New variable.
17953         (libgomp.ver): New target.
17954         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17955         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17956         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17957         Use libgomp.ver.
17958         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17959         * Makefile.in: Regenerate.
17961 2012-02-14  Walter Lee  <walt@tilera.com>
17963         * configure.tgt: Handle tilegx and tilepro.
17964         * config/linux/tile/futex.h: New file.
17966 2012-02-08  Richard Guenther  <rguenther@suse.de>
17968         PR tree-optimization/46886
17969         * testsuite/libgomp.c/pr46886.c: New testcase.
17971 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17973         * config/linux/arm: Remove empty directory.
17974         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17976 2011-12-09  Alan Modra  <amodra@gmail.com>
17978         PR libgomp/51376
17979         * task.c (GOMP_taskwait): Don't access task->children outside of
17980         task_lock mutex region.
17981         (GOMP_task): Likewise.
17983 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17985         PR libgomp/51132
17986         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17987         to file scope.
17988         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17989         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17990         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17991         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17992         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17994 2011-12-02  Alan Modra  <amodra@gmail.com>
17996         * config/linux/affinity.c: Use atomic rather than sync builtin.
17997         * config/linux/lock.c: Likewise.
17998         * config/linux/ptrlock.h: Likewise.
17999         * config/linux/ptrlock.c: Likewise.
18000         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
18001         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
18002         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
18003         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
18004         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
18005         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
18006         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
18007         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
18008         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
18009         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
18011 2011-11-30  Alan Modra  <amodra@gmail.com>
18013         PR libgomp/51298
18014         * config/linux/bar.h: Use atomic rather than sync builtins.
18015         * config/linux/bar.c: Likewise.  Add missing acquire
18016         synchronisation on generation field.
18017         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
18018         double unlock.
18020 2011-11-30  Alan Modra  <amodra@gmail.com>
18022         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
18023         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
18024         * config/linux/mutex.h: Use atomic rather than sync builtins.
18025         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
18026         * config/linux/omp-lock.h: Comment fix.
18027         * config/linux/arm/mutex.h: Delete.
18028         * config/linux/powerpc/mutex.h: Delete.
18029         * config/linux/ia64/mutex.h: Delete.
18030         * config/linux/mips/mutex.h: Delete.
18032 2011-11-30  Alan Modra  <amodra@gmail.com>
18034         PR libgomp/51249
18035         * config/linux/sem.h: Rewrite.
18036         * config/linux/sem.c: Rewrite.
18038 2011-11-28  Richard Henderson  <rth@redhat.com>
18040         * libgomp.h (enum memmodel): New.
18042 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
18044         * configure: Regenerate.
18046 2011-10-10  Matthias Klose  <doko@ubuntu.com>
18048         * config/posix95: Remove empty directory.
18050 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
18052         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
18054 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
18056         PR fortran/49792
18057         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
18058         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
18060 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18062         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
18064 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18066         PR libgomp/49965
18067         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
18069 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
18071         * config/linux/proc.h: New.
18072         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
18073         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
18074         (gomp_init_num_threads): Update call to cpuset_popcount.
18075         (get_num_procs): Ditto.
18076         * config/linux/affinity.c (gomp_init_affinity): Call
18077         gomp_cpuset_popcount.
18079 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
18081         PR fortran/42041
18082         PR fortran/46752
18083         * omp.h.in (omp_in_final): New prototype.
18084         * omp_lib.f90.in (omp_in_final): New interface.
18085         (omp_integer_kind, omp_logical_kind): Remove
18086         and replace all its uses in the module with 4.
18087         (openmp_version): Change to 201107.
18088         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
18089         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
18090         kind for the parameters.
18091         (omp_in_final): New external.
18092         (openmp_version): Change to 201107.
18093         * task.c (omp_in_final): New function.
18094         (gomp_init_task): Initialize final_task.
18095         (GOMP_task): Remove unused attribute from flags.  Handle final
18096         tasks.
18097         (GOMP_taskyield): New function.
18098         (omp_in_final): Return true if if (false) or final (true) task
18099         or descendant of final (true).
18100         * fortran.c (omp_in_final_): New function.
18101         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
18102         (GOMP_3.0): Export GOMP_taskyield.
18103         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
18104         variables.
18105         (parse_unsigned_long_list): New function.
18106         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
18107         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
18108         even if parse_affinity returned false.
18109         * config/linux/affinity.c (gomp_init_affinity): Handle
18110         gomp_cpu_affinity_len == 0.
18111         * libgomp_g.h (GOMP_taskyield): New prototype.
18112         * libgomp.h (struct gomp_task): Add final_task field.
18113         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
18114         * team.c (gomp_team_start): Override new task's nthreads_var icv
18115         if list form OMP_NUM_THREADS has been used and it has value for
18116         the new nesting level.
18118         * testsuite/libgomp.c/atomic-11.c: New test.
18119         * testsuite/libgomp.c/atomic-12.c: New test.
18120         * testsuite/libgomp.c/atomic-13.c: New test.
18121         * testsuite/libgomp.c/atomic-14.c: New test.
18122         * testsuite/libgomp.c/reduction-6.c: New test.
18123         * testsuite/libgomp.c/task-5.c: New test.
18124         * testsuite/libgomp.c++/atomic-2.C: New test.
18125         * testsuite/libgomp.c++/atomic-3.C: New test.
18126         * testsuite/libgomp.c++/atomic-4.C: New test.
18127         * testsuite/libgomp.c++/atomic-5.C: New test.
18128         * testsuite/libgomp.c++/atomic-6.C: New test.
18129         * testsuite/libgomp.c++/atomic-7.C: New test.
18130         * testsuite/libgomp.c++/atomic-8.C: New test.
18131         * testsuite/libgomp.c++/atomic-9.C: New test.
18132         * testsuite/libgomp.c++/task-8.C: New test.
18133         * testsuite/libgomp.c++/reduction-4.C: New test.
18134         * testsuite/libgomp.fortran/allocatable7.f90: New test.
18135         * testsuite/libgomp.fortran/allocatable8.f90: New test.
18136         * testsuite/libgomp.fortran/crayptr3.f90: New test.
18137         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18138         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18139         * testsuite/libgomp.fortran/pointer1.f90: New test.
18140         * testsuite/libgomp.fortran/pointer2.f90: New test.
18141         * testsuite/libgomp.fortran/task4.f90: New test.
18143 2011-08-02  Tobias Burnus  <burnus@net-b.de>
18145         * libgomp.texi: Update OpenMP spec references to 3.1.
18146         (omp_in_final,OMP_PROC_BIND): New sections.
18147         (OMP_NUM_THREADS): Document that the value can be now a list.
18148         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18150 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
18152         * config/linux/x86/futex.h: Check __x86_64__ instead of
18153         __LP64__.
18155 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
18157         PR middle-end/49897
18158         PR middle-end/49898
18159         * testsuite/libgomp.c/pr49897-1.c: New test.
18160         * testsuite/libgomp.c/pr49897-2.c: New test.
18161         * testsuite/libgomp.c/pr49898-1.c: New test.
18162         * testsuite/libgomp.c/pr49898-2.c: New test.
18164 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
18166         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18167         for ia32 instead of ilp32.
18169         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18170         * testsuite/libgomp.c/atomic-6.c: Likewise.
18172 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
18174         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18175         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18177 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18179         PR libgomp/45351
18180         * config/osf/sem.h: New file.
18181         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18183 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18185         PR target/49541
18186         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18187         ldflags.
18189 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
18191         * config/linux/wait.h (do_spin): New inline, largely copied
18192         from do_wait, just don't do futex_wait here, instead return true if
18193         it should be done.
18194         (do_wait): Implement using do_spin.
18195         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18196         to prototype.
18197         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18198         __sync_bool_compare_and_swap, pass the oldval to
18199         gomp_mutex_lock_slow.
18200         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18201         If all mutex contenders are just spinning and not sleeping, don't
18202         change state to 2 unnecessarily.  Optimize the loop when state has
18203         already become 2 to use just one atomic operation per loop instead
18204         of two.
18205         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18206         to prototype.
18207         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18208         __sync_bool_compare_and_swap, pass the oldval to
18209         gomp_mutex_lock_slow.
18211 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18213         PR libgomp/49490
18214         * iter.c (gomp_iter_static_next): For chunk size 0
18215         only use n ceil/ nthreads size for the first
18216         n % nthreads threads in the team instead of
18217         all threads except for the last few ones which
18218         get less work or none at all.
18219         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18220         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18221         chunk argument, set run_sched_modifier to 0 for static
18222         resp. 1 for other kinds.  If chunk argument is 0
18223         and not static, set value to 1.
18225 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
18227         PR c++/49043
18228         * testsuite/libgomp.c++/pr49043.C: New test.
18230         PR c++/48869
18231         * testsuite/libgomp.c++/pr48869.C: New test.
18233 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18235         PR fortran/48894
18236         * fortran.c: Include limits.h.
18237         (TO_INT): Define.
18238         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18239         *set.
18240         (omp_set_num_threads_8_, omp_set_schedule_8_,
18241         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18242         omp_get_team_size_8_): Use TO_INT macro.
18243         * testsuite/libgomp.fortran/pr48894.f90: New test.
18245 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18247         PR middle-end/48591
18248         * testsuite/libgomp.c/pr48591.c: New test.
18250 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18252         PR bootstrap/48135
18253         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18254         * configure: Regenerate.
18256 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18258         PR fortran/47886
18259         * testsuite/libgomp.fortran/task3.f90: New test.
18261 2011-02-24  Tobias Burnus  <burnus@net-b.de>
18263         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18265 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
18267         PR libgomp/47854
18268         * libgomp.texi (omp_get_wtime): Don't say time in the past
18269         must be Unix Epoch.
18271 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18273         PR libgomp/47804
18274         * testsuite/libgomp.fortran/fortran.exp: Check for both
18275         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
18276         but $blddir != "", still append ${blddir}/${lang_library_path}
18277         to ld_library_path.
18279 2011-02-16  Tobias Burnus  <burnus@net-b.de>
18281         PR libgomp/47758
18282         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18283         of libquadmath.a before adding its libpath to ldflags.
18285 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
18287         PR libgomp/47731
18288         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18289         to FUTEX_WAIT futex syscall.
18290         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18292 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18294         * configure: Regenerate.
18296 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
18298         PR libstdc++/36104
18299         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18301 2011-01-16  Gerald Pfeifer
18303         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18305 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
18307         PR fortran/46874
18308         * libgomp.fortran/allocatable6.f90: New test.
18310 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18312         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18313         * configure: Regenerate.
18315 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18317         PR target/40125
18318         PR lto/46695
18319         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18320         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18321         * aclocal.m4: Regenerate.
18322         * configure: Regenerate.
18323         * Makefile.in: Regenerate.
18324         * testsuite/Makefile.in: Regenerate.
18326 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
18328         PR fortran/46753
18329         * libgomp.fortran/pr46753.f90: New test.
18331         PR libgomp/43706
18332         * env.c (initialize_env): Default to spin count 300000
18333         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18334         is specified.
18336         PR libgomp/45240
18337         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18338         at the end if sync builtins aren't supported.
18340 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18342         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18344 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18346         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18348 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
18350         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18352 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18353             Tobias Burnus  <burnus@net-b.de>
18355         PR fortran/32049
18356         * configure.ac:
18357         * configure: Regenerate.
18359 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18361         * config/linux/futex.h: New.
18362         * config/linux/arm/mutex.h: New.
18363         * configure.tgt (arm*-*-linux*): Add config path.
18365 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
18367         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18369 2010-09-23  Tobias Burnus  <burnus@net-b.de>
18371         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18372         Change Fortran datatype to LOGICAL.
18373         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18374         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18376 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18378         * configure: Regenerate.
18380 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
18382         * libgomp.texi: Add function keyword to a couple of Fortran
18383         interfaces, use integer instead of int for Fortran.
18385 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
18387         * libgomp.texi: Fix spelling and pasto problems throughout.
18388         Adjust prototypes to match code.
18390 2010-07-24  Tobias Burnus  <burnus@net-b.de>
18392         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18393         silence -fwhole-file warning.
18395 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18397         * configure.tgt (*-*-solaris2.[56]*): Removed.
18399 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18401         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18402         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18403         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18404         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18405         targetting solaris2*.
18406         * configure: Regenerate.
18407         * config.h.in: Regenerate.
18409         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18410         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18411         Add libgomp_version_dep.
18412         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18413         versioning.
18414         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18415         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18416         * Makefile.in: Regenerate.
18418         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18419         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18420         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18421         to common block, protected by
18422         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18424 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
18426         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
18428 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
18430         PR bootstrap/43170
18431         * configure: Regenerate.
18433 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18435         PR other/43620
18436         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18437         * configure: Regenerate.
18438         * Makefile.in: Regenerate.
18439         * testsuite/Makefile.in: Regenerate.
18441 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18443         PR c/43893
18444         * testsuite/libgomp.c/pr43893.c: New test.
18445         * testsuite/libgomp.c++/pr43893.C: New test.
18447 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18449         PR middle-end/43570
18450         * testsuite/libgomp.fortran/vla8.f90: New test.
18452 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18454         PR libgomp/43706
18455         * config/linux/affinity.c (gomp_init_affinity): Decrease
18456         gomp_available_cpus if affinity mask confines the process to fewer
18457         CPUs.
18458         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18459         non-NULL, just return gomp_available_cpus.
18461         PR libgomp/43569
18462         * sections.c (gomp_sections_init): Initialize ws->mode.
18464 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18466         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18467         not unused bar variable.
18468         * configure: Regenerate.
18470 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18472         * Makefile.in: Regenerate.
18473         * aclocal.m4: Regenerate.
18474         * testsuite/Makefile.in: Regenerate.
18476 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18478         PR libgomp/42942
18479         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18480         (initialize_env): Adjust callers.
18481         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18482         when the argument is 0.
18484         * testsuite/libgomp.c/pr42942.c: New test.
18486 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18488         PR middle-end/42644
18489         PR middle-end/42130
18490         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18491         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18493 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18495         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18496         * testsuite/libgomp.c++/task-6.C: Likewise.
18498 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
18500         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18502 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
18504         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18505         * configure: Regenerate.
18507 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18509         PR fortran/42866
18510         * testsuite/libgomp.fortran/allocatable5.f90: New test.
18512 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
18514         * configure.ac: Test for executability of GFORTRAN.
18515         * configure: Regenerate.
18517 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18519         * configure: Regenerate.
18521 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18523         PR libgomp/42602
18524         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18526 2010-01-03  Richard Guenther  <rguenther@suse.de>
18528         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18530 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
18532         * testsuite/libgomp.graphite/pr4118.c: New.
18534 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18536         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18537         for darwin, protect the test with require-effective-target tls_runtime.
18538         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18540 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18542         PR target/41605
18543         * testsuite/lib/libgomp.exp: Provide -B options to allow for
18544         link spec %s substitutions for static libraries.
18546 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
18548         PR testsuite/42135
18549         * libgomp.graphite/force-parallel-2.c: Reduce array size.
18551 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18553         * Makefile.in: Regenerate.
18554         * configure: Regenerate.
18555         * testsuite/Makefile.in: Regenerate.
18557 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18559         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18560         settings for LC_ALL and LANG.
18562 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
18564         PR fortran/42162
18565         * testsuite/libgomp.fortran/pr42162.f90: New test.
18567 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
18569         PR middle-end/42029
18570         * testsuite/libgomp.c/pr42029.c: New test.
18572 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
18574         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18575         *s.  Accept ld version without text in ()s.
18576         * configure: Regenerated.
18578 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
18580         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18582 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18584         PR libgomp/41418
18585         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18586         or a hyphen (happens with fortran language disabled).
18587         * configure: Regenerate.
18589 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18591         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18592         use sed script portable to Solaris /bin/sed for extracting ld
18593         version.
18594         * configure: Regenerate.
18596 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
18598         * testsuite/libgomp.graphite/bounds.c: New test.
18600 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18602         * Makefile.am (libgomp_la_LINK): New.
18603         * Makefile.in: Regenerate.
18605 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18607         * configure.ac (AC_PREREQ): Bump to 2.64.
18609 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18611         * Makefile.am (install-html, install-pdf): Remove.
18612         * Makefile.in: Regenerate.
18614         * Makefile.in: Regenerate.
18615         * aclocal.m4: Regenerate.
18616         * config.h.in: Regenerate.
18617         * configure: Regenerate.
18618         * testsuite/Makefile.in: Regenerate.
18620 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18622         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18623         * Makefile.in: Regenerate.
18625 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
18627         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18628         * Makefile.in: Regenerate.
18630 2009-08-19  Tobias Burnus  <burnus@net-b.de>
18632         PR fortran/41102
18633         omp_lib.h.in: Fix -std=f95 errors.
18635 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
18637         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18638         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18639         * testsuite/libgomp.graphite/graphite.exp: New.
18641 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
18643         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18644         only build.
18646 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
18648         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18649         needed memory barrier semantics.
18650         * config/linux/mips/mutex.h: New file.
18652 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18654         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18656 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
18658         * configure: Regenerate.
18660 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
18662         PR testsuite/40699
18663         PR testsuite/40707
18664         PR testsuite/40709
18665         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18666         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18667         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18669 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
18671         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18672         options when choosing a multilib.
18674 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
18676         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18677         ld_library_path.  Use add_path.  Add just find_libgcc_s to
18678         ld_library_path, not every libgcc multilib directory.
18679         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18680         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18681         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18682         Use add_path.
18683         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18685 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
18687         * Makefile.am (LTLDFLAGS): Define.
18688         (LINK): Define.
18689         * Makefile.in: Regenerate.
18691 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
18693         PR fortran/39718
18694         * testsuite/libgomp.fortran/fortran.exp: Don't link with
18695         libgfortranbegin, check existence of libgfortran.a instead of
18696         libgfortranbegin.a.
18698 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18700         PR libgomp/40174
18701         * team.c (gomp_thread_start): Destroy thr->release semaphore.
18702         (gomp_free_pool_helper): Likewise.
18704 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
18705             Jakub Jelinek  <jakub@redhat.com>
18707         PR fortran/35423
18708         * testsuite/libgomp.fortran/workshare2.f90: New test.
18710 2009-04-09  Nick Clifton  <nickc@redhat.com>
18712         * iter.c: Change copyright header to refer to version 3 of the
18713         GNU General Public License with version 3.1 of the GCC Runtime
18714         Library Exception and to point readers at the COPYING3 and
18715         COPYING3.RUNTIME files and the FSF's license web page.
18716         * alloc.c: Likewise.
18717         * barrier.c: Likewise.
18718         * config/bsd/proc.c: Likewise.
18719         * config/linux/affinity.c: Likewise.
18720         * config/linux/alpha/futex.h: Likewise.
18721         * config/linux/bar.c: Likewise.
18722         * config/linux/bar.h: Likewise.
18723         * config/linux/ia64/futex.h: Likewise.
18724         * config/linux/ia64/mutex.h: Likewise.
18725         * config/linux/lock.c: Likewise.
18726         * config/linux/mips/futex.h: Likewise.
18727         * config/linux/mutex.c: Likewise.
18728         * config/linux/mutex.h: Likewise.
18729         * config/linux/powerpc/futex.h: Likewise.
18730         * config/linux/proc.c: Likewise.
18731         * config/linux/ptrlock.c: Likewise.
18732         * config/linux/ptrlock.h: Likewise.
18733         * config/linux/s390/futex.h: Likewise.
18734         * config/linux/sem.c: Likewise.
18735         * config/linux/sem.h: Likewise.
18736         * config/linux/sparc/futex.h: Likewise.
18737         * config/linux/wait.h: Likewise.
18738         * config/linux/x86/futex.h: Likewise.
18739         * config/mingw32/proc.c: Likewise.
18740         * config/mingw32/time.c: Likewise.
18741         * config/posix/affinity.c: Likewise.
18742         * config/posix/bar.c: Likewise.
18743         * config/posix/bar.h: Likewise.
18744         * config/posix/lock.c: Likewise.
18745         * config/posix/mutex.h: Likewise.
18746         * config/posix/proc.c: Likewise.
18747         * config/posix/ptrlock.h: Likewise.
18748         * config/posix/sem.c: Likewise.
18749         * config/posix/sem.h: Likewise.
18750         * config/posix/time.c: Likewise.
18751         * config/posix95/lock.c: Likewise.
18752         * critical.c: Likewise.
18753         * env.c: Likewise.
18754         * error.c: Likewise.
18755         * fortran.c: Likewise.
18756         * iter_ull.c: Likewise.
18757         * libgomp.h: Likewise.
18758         * libgomp_f.h.in: Likewise.
18759         * libgomp_g.h: Likewise.
18760         * loop.c: Likewise.
18761         * loop_ull.c: Likewise.
18762         * omp.h.in: Likewise.
18763         * omp_lib.f90.in: Likewise.
18764         * omp_lib.h.in: Likewise.
18765         * ordered.c: Likewise.
18766         * parallel.c: Likewise.
18767         * sections.c: Likewise.
18768         * single.c: Likewise.
18769         * task.c: Likewise.
18770         * team.c: Likewise.
18771         * work.c: Likewise.
18773 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18775         * testsuite/config/default.exp: Change copyright header to refer to
18776         version 3 of the GNU General Public License and to point readers
18777         at the COPYING3 file and the FSF's license web page.
18779 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18781         PR middle-end/39573
18782         * libgomp.c++/pr39573.C: New test.
18784 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18786         PR other/39591
18787         * testsuite/libgomp.c/pr39591-1.c: New test.
18788         * testsuite/libgomp.c/pr39591-2.c: New test.
18789         * testsuite/libgomp.c/pr39591-3.c: New test.
18791 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18793         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18794         * testsuite/libgomp.c/atomic-6.c: Ditto.
18796 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18798         PR c/39495
18799         * testsuite/libgomp.c/loop-12.c: New test.
18800         * testsuite/libgomp.c/loop-11.c: New test.
18801         * testsuite/libgomp.c++/loop-11.C: New test.
18802         * testsuite/libgomp.c++/loop-12.C: New test.
18803         * testsuite/libgomp.c++/for-8.C: New test.
18805 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18807         * configure: Regenerate.
18809 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18811         PR middle-end/39154
18812         * testsuite/libgomp.c/pr39154.c: New test.
18814 2009-01-30  Ian Lance Taylor  <iant@google.com>
18816         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18817         libgomp_ld_is_gold.  Get gold version number.
18818         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18819         * configure: Rebuild.
18821 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18823         * testsuite/lib/libgomp.exp: Add -B option for targets that
18824         use libgfortran.a%s in their specs.
18826 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18828         PR libgomp/38086
18829         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18830         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18831         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18832         * configure: Regenerated.
18833         * config.h.in: Likewise.
18835 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18837         PR c++/38650
18838         * testsuite/libgomp.c/pr38650.c: New test.
18839         * testsuite/libgomp.c++/pr38650.C: New test.
18841 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18843         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18845 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18847         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18849 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18851         * configure: Regenerate.
18853 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18855         PR middle-end/36802
18856         * testsuite/libgomp.c/pr36802-1.c: New test.
18857         * testsuite/libgomp.c/pr36802-2.c: New test.
18858         * testsuite/libgomp.c/pr36802-3.c: New test.
18860 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18862         PR libgomp/38270
18863         * config/linux/powerpc/mutex.h: New.
18865 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18867         PR c++/38257
18868         * testsuite/libgomp.c++/for-7.C: New test.
18870         PR c++/38348
18871         * testsuite/libgomp.c++/for-6.C: New test.
18873 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18875         PR testsuite/28870
18876         * testsuite/lib/libgomp.exp: Include new timeout library files.
18877         (libgomp_target_compile): Set timeout value from new proc.
18879 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18881         PR libgomp/37938
18882         * config/linux/ia64/mutex.h: New.
18884 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18886         PR libgomp/37935
18887         * libgomp.texi (Runtime library routines, environment variables):
18888         Update for OpenMP version 3.0.
18890 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18891             Steve Ellcey  <sje@cup.hp.com>
18893         * configure: Regenerate for new libtool.
18894         * Makefile.in: Ditto.
18895         * testsuite/Makefile.in: Ditto.
18897 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18898             Andreas Tobler  <a.tobler@schweiz.org>
18900         * config/bsd/proc.c: New file.
18901         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18902         * configure.ac: Check for header <sys/sysctl.h>
18903         * configure: Regenerate.
18904         * config.h.in: Likewise.
18906 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18908         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18910 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18912         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18913         * Makefile.in: Regenerated.
18914         * testsuite/Makefile.in: Regenerated.
18916 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18918         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18919         depend on blddir if blddir exists.
18920         (libgomp_target_compile): Likewise.
18921         * testsuite/libgomp.c++/c++.exp: Likewise.
18922         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18924 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18926         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18927         Do not list GPL as Invariant Section.
18929 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18930             Chao-ying Fu  <fu@mips.com>
18932         * configure.tgt: Enable futex for MIPS.
18933         * config/linux/mips/futex.h: New file.
18935 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18937         * team.c (gomp_team_end): Free team immediately if it has
18938         just one thread.
18940 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18942         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18943         * testsuite/libgomp.fortran/fortran.exp: Same.
18944         * testsuite/libgomp.c/c.exp: Same.
18945         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18946         directory to library path first.
18948 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18950         * env.c (parse_stacksize): Add cast to avoid warning.
18951         (parse_spincount): Likewise.
18953 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18955         * testsuite/libgomp.c/loop-10.c: New test.
18956         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18957         * libgomp.c++/loop-6.C (main): Likewise.
18959         PR debug/36617
18960         * testsuite/libgomp.c/debug-1.c: New test.
18962 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18964         * testsuite/libgomp.c/nqueens-1.c: New test.
18966         PR c++/36523
18967         * testsuite/libgomp.c++/task-7.C: New function.
18969 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18971         * configure: Regenerate.
18973 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18975         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18976         mutex when HAVE_SYNC_BUILTINS isn't defined.
18978 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18980         * libgomp.texi (omp_test_lock): Fix typo.
18982 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18984         * omp_lib.f90.in: Add "implicit none".
18986 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18988         PR middle-end/36506
18989         * testsuite/libgomp.c/reduction-5.c: New test.
18991 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18993         * libgomp.h (struct gomp_task): Add in_tied_task field.
18994         * task.c (gomp_init_task): Initialize it.
18995         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18996         unconditionally.  Don't call gomp_team_barrier_wake if
18997         current task is implicit or if(0) from implicit and number of
18998         running tasks is equal to nthreads - 1.
19000         PR libgomp/36471
19001         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
19002         omp_get_team_size_8): Fix pastos.
19004         PR libgomp/36469
19005         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
19006         * configure: Regenerated.
19007         * config.h.in: Regenerated.
19008         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
19009         defined.
19011 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
19013         PR bootstrap/36452
19014         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
19015         (GOMP_loop_ull_dynamic_start): Likewise.
19016         (GOMP_loop_ull_guided_start): Likewise.
19017         (GOMP_loop_ull_ordered_static_start): Likewise.
19018         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
19019         (GOMP_loop_ull_ordered_guided_start): Likewise.
19021 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19022             Richard Henderson  <rth@redhat.com>
19023             Ulrich Drepper  <drepper@redhat.com>
19024             Jakob Blomer  <jakob.blomer@ira.uka.de>
19026         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
19027         Substitute also OMP_*LOCK_25*.
19028         * configure: Regenerated.
19029         * config.h.in: Regenerated.
19030         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
19031         ptrlock.c and task.c.
19032         * Makefile.in: Regenerated.
19033         * testsuite/Makefile.in: Regenerated.
19034         * task.c: New file.
19035         * loop_ull.c: New file.
19036         * iter_ull.c: New file.
19037         * libgomp.h: Include ptrlock.h.
19038         (enum gomp_task_kind): New type.
19039         (struct gomp_team): Add task_lock, task_queue, task_count,
19040         task_running_count, single_count fields.  Add
19041         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
19042         Remove work_share_lock, generation_mask,
19043         oldest_live_gen, num_live_gen and init_work_shares fields, add
19044         work work_share_list_alloc, work_share_list_free and work_share_chunk
19045         fields.  Change work_shares from pointer to pointers into an array.
19046         Change ordered_release field into gomp_sem_t ** from flexible array
19047         member.  Add implicit_task and initial_work_shares fields.
19048         Move close to the end of the struct.
19049         (struct gomp_team_state): Add single_count, last_work_share,
19050         active_level and level fields, remove work_share_generation.
19051         (gomp_barrier_handle_tasks): New prototype.
19052         (gomp_finish_task): New inline function.
19053         (struct gomp_work_share): Move chunk_size, end, incr into
19054         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
19055         next_ll fields.  Reshuffle fields.  Add next_alloc,
19056         next_ws, next_free and inline_ordered_team_ids fields, change
19057         ordered_team_ids into pointer from flexible array member.
19058         Add mode field.  Put lock and next into a different cache line
19059         from most of the write-once fields.
19060         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
19061         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
19062         gomp_iter_ull_guided_next): New prototypes.
19063         (gomp_new_icv): New prototype.
19064         (struct gomp_thread): Add thread_pool and task fields.
19065         (struct gomp_thread_pool): New type.
19066         (gomp_new_team): New prototype.
19067         (gomp_team_start): Change type of last argument.
19068         (gomp_new_work_share): Removed.
19069         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
19070         (gomp_work_share_init_done): New static inline.
19071         (gomp_throttled_spin_count_var, gomp_available_cpus,
19072         gomp_managed_threads): New extern decls.
19073         (gomp_init_task): New prototype.
19074         (gomp_spin_count_var): New extern var decl.
19075         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
19076         or no alias support, or if not PIC.
19077         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
19078         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
19079         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
19080         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
19081         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
19082         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
19083         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
19084         gomp_test_nest_lock_25): New prototypes.
19085         (omp_lock_symver, strong_alias): Define.
19086         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
19087         decls.
19088         (gomp_end_task): New.
19089         (struct gomp_task_icv, gomp_global_icv): New.
19090         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
19091         (struct gomp_task): New.
19092         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19093         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19094         (gomp_icv): New.
19095         (gomp_schedule_type): Reorder enum to match
19096         omp_sched_t.
19097         * team.c (struct gomp_thread_start_data): Add thread_pool and task
19098         fields.
19099         (gomp_thread_start): Add gomp_team_barrier_wait call.
19100         For non-nested case remove clearing of docked thread thr fields.
19101         Use pool fields instead of global gomp_* variables.  Use
19102         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
19103         Create tasks for each member thread.
19104         (free_team): Only destroy team barrier, task_lock here and free it.
19105         (gomp_free_thread): Free last_team if non-NULL.
19106         (gomp_team_end): Call gomp_team_barrier_wait instead of
19107         gomp_barrier_wait.  For nested case call one extra
19108         gomp_barrier_wait.  Move here some destruction from free_team.
19109         Call free_team on pool->last_team if any, rather than freeing
19110         current team.  Destroy work_share_list_free_lock ifndef
19111         HAVE_SYNC_BUILTINS.
19112         (gomp_new_icv): New function.
19113         (gomp_threads, gomp_threads_size, gomp_threads_used,
19114         gomp_threads_dock): Removed.
19115         (gomp_thread_destructor): New variable.
19116         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
19117         functions.
19118         (gomp_team_start): Create new pool if current thread doesn't have
19119         one.  Use pool fields instead of global gomp_* variables.
19120         Initialize thread_pool field for new threads.  Clear single_count.
19121         Change last argument from ws to team, don't create
19122         new team, set ts.work_share to &team->work_shares[0] and clear
19123         ts.last_work_share.  Don't clear ts.work_share_generation.
19124         If number of threads changed, adjust atomically gomp_managed_threads.
19125         Use gomp_init_task instead of gomp_new_task,
19126         set thr->task to the corresponding implicit_task array entry.
19127         Create tasks for each member thread.  Initialize ts.level.
19128         (initialize_team): Call pthread_key_create on
19129         gomp_thread_destructor.
19130         (team_destructor): New function.
19131         (new_team): Removed.
19132         (gomp_new_team): New function.
19133         (free_team): Free gomp_work_share blocks chained through next_alloc,
19134         instead of freeing work_shares and destroying work_share_lock.
19135         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
19136         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
19137         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19138         of gomp_barrier_wait.
19139         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19140         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
19141         if gomp_work_share_start returned true.  Don't unlock ws->lock.
19142         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19143         of gomp_barrier_wait.
19144         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
19145         gomp_work_share_init_done if gomp_work_share_start returned true.
19146         Don't unlock ws->lock.
19147         * work.c: Include stddef.h.
19148         (free_work_share): Use work_share_list_free_lock instead
19149         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
19150         Call gomp_fini_work_share and then either free ws if orphaned, or
19151         put it into work_share_list_free list of the current team.
19152         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19153         functions.
19154         (gomp_work_share_start, gomp_work_share_end,
19155         gomp_work_share_end_nowait): Rewritten.
19156         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19157         (openmp_version): Set to 200805.
19158         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19159         omp_sched_guided, omp_sched_auto): New parameters.
19160         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19161         omp_set_max_active_levels, omp_get_max_active_levels,
19162         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19163         omp_get_active_level): New interfaces.
19164         * omp_lib.h.in (openmp_version): Set to 200805.
19165         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19166         omp_sched_guided, omp_sched_auto): New parameters.
19167         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19168         omp_set_max_active_levels, omp_get_max_active_levels,
19169         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19170         omp_get_active_level): New externals.
19171         * loop.c: Include limits.h.
19172         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19173         GFS_AUTO.
19174         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19175         Likewise.  Use gomp_icv.
19176         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19177         ts.static_trip here.
19178         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19179         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
19180         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19181         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
19182         don't unlock ws->lock, otherwise lock it.
19183         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19184         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
19185         (gomp_parallel_loop_start): Call gomp_new_team instead of
19186         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
19187         Adjust gomp_team_start caller.  Pass 0 as second argument to
19188         gomp_resolve_num_threads.
19189         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19190         If adding ws->chunk_size nthreads + 1 times after end won't
19191         overflow, set ws->mode to 1.
19192         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19193         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19194         GOMP_loop_ull_ordered_static_start,
19195         GOMP_loop_ull_ordered_dynamic_start,
19196         GOMP_loop_ull_ordered_guided_start,
19197         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19198         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19199         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19200         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19201         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19202         prototypes.
19203         * libgomp.map: Export lock routines also @@OMP_2.0.
19204         (GOMP_loop_ordered_dynamic_first,
19205         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19206         GOMP_loop_ordered_static_first): Remove.
19207         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19208         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19209         GOMP_loop_ull_ordered_dynamic_next,
19210         GOMP_loop_ull_ordered_dynamic_start,
19211         GOMP_loop_ull_ordered_guided_next,
19212         GOMP_loop_ull_ordered_guided_start,
19213         GOMP_loop_ull_ordered_runtime_next,
19214         GOMP_loop_ull_ordered_runtime_start,
19215         GOMP_loop_ull_ordered_static_next,
19216         GOMP_loop_ull_ordered_static_start,
19217         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19218         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19219         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19220         (omp_set_schedule, omp_get_schedule,
19221         omp_get_thread_limit, omp_set_max_active_levels,
19222         omp_get_max_active_levels, omp_get_level,
19223         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19224         omp_set_schedule_, omp_set_schedule_8_,
19225         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19226         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19227         omp_get_max_active_levels_, omp_get_level_,
19228         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19229         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19230         New exports @@OMP_3.0.
19231         * omp.h.in (omp_sched_t): New type.
19232         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19233         omp_set_max_active_levels, omp_get_max_active_levels,
19234         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19235         omp_get_active_level): New prototypes.
19236         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19237         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19238         gomp_thread_limit_var, gomp_remaining_threads_count,
19239         gomp_remaining_threads_lock): New variables.
19240         (parse_spincount): New function.
19241         (initialize_env): Call gomp_init_num_threads unconditionally.
19242         Initialize gomp_available_cpus.  Call parse_spincount,
19243         initialize gomp_{,throttled_}spin_count_var
19244         depending on presence and value of OMP_WAIT_POLICY and
19245         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
19246         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19247         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
19248         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
19249         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
19250         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19251         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19252         (gomp_global_icv): New.
19253         (parse_schedule): Use it.  Parse "auto".
19254         (omp_set_num_threads): Use gomp_icv.
19255         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19256         Likewise.
19257         (omp_get_max_threads): Move from parallel.c.
19258         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19259         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19260         add ialias.
19261         (parse_stacksize, parse_wait_policy): New functions.
19262         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19263         both wrappers for compatibility and new locks.
19264         (omp_set_schedule, omp_get_schedule,
19265         omp_get_thread_limit, omp_set_max_active_levels,
19266         omp_get_max_active_levels, omp_get_level,
19267         omp_get_ancestor_thread_num, omp_get_team_size,
19268         omp_get_active_level): New ialias_redirect.
19269         (omp_set_schedule_, omp_set_schedule_8_,
19270         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19271         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19272         omp_get_max_active_levels_, omp_get_level_,
19273         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19274         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19275         New functions.
19276         * parallel.c: Include limits.h.
19277         (gomp_resolve_num_threads): Add count argument.  Rewritten.
19278         (GOMP_parallel_start): Call gomp_new_team and pass that as last
19279         argument to gomp_team_start.  Pass 0 as second argument to
19280         gomp_resolve_num_threads.
19281         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19282         if gomp_thread_limit_var != ULONG_MAX.
19283         (omp_in_parallel): Implement using ts.active_level.
19284         (omp_get_max_threads): Move to env.c.
19285         (omp_get_level, omp_get_ancestor_thread_num,
19286         omp_get_team_size, omp_get_active_level): New functions,
19287         add ialias.
19288         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19289         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
19290         gomp_iter_dynamic_next instead of the _locked variant and don't take
19291         lock around it, otherwise acquire it before calling
19292         gomp_iter_dynamic_next_locked.
19293         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19294         gomp_iter_dynamic_next instead of the _locked variant and don't take
19295         lock around it.
19296         (GOMP_parallel_sections_start): Call gomp_new_team instead of
19297         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
19298         Adjust gomp_team_start caller.  Pass count as second argument to
19299         gomp_resolve_num_threads, don't adjust num_threads after the call.
19300         Use gomp_icv.
19301         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19302         ws->chunk_size by incr.
19303         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
19304         code.
19305         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19306         types.
19307         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19308         (omp_check_defines): Check even the compat defines.
19309         * config/linux/ptrlock.c: New file.
19310         * config/linux/ptrlock.h: New file.
19311         * config/linux/wait.h: New file.
19312         * config/posix/ptrlock.c: New file.
19313         * config/posix/ptrlock.h: New file.
19314         * config/linux/bar.h (gomp_team_barrier_wait,
19315         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19316         (gomp_team_barrier_set_task_pending,
19317         gomp_team_barrier_clear_task_pending,
19318         gomp_team_barrier_set_waiting_for_tasks,
19319         gomp_team_barrier_waiting_for_tasks,
19320         gomp_team_barrier_done): New inlines.
19321         (gomp_barrier_t): Rewritten.
19322         (gomp_barrier_state_t): New typedef.
19323         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19324         gomp_barrier_wait_start): Rewritten.
19325         (gomp_barrier_wait_end): Change second argument to
19326         gomp_barrier_state_t.
19327         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19328         inlines.
19329         * config/linux/bar.c: Include wait.h instead of libgomp.h and
19330         futex.h.
19331         (gomp_barrier_wait_end): Rewritten.
19332         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19333         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19334         * config/posix/bar.h (gomp_barrier_t): Add generation field.
19335         (gomp_barrier_state_t): New typedef.
19336         (gomp_team_barrier_wait,
19337         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19338         (gomp_barrier_wait_start): Or all but low 2 bits from generation
19339         into the return value.  Return gomp_barrier_state_t.
19340         (gomp_team_barrier_set_task_pending,
19341         gomp_team_barrier_clear_task_pending,
19342         gomp_team_barrier_set_waiting_for_tasks,
19343         gomp_team_barrier_waiting_for_tasks,
19344         gomp_team_barrier_done): New inlines.
19345         (gomp_barrier_wait_end): Change second argument to
19346         gomp_barrier_state_t.
19347         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19348         inlines.
19349         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19350         (gomp_barrier_wait_end): Change second argument to
19351         gomp_barrier_state_t.
19352         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19353         gomp_team_barrier_wake): New functions.
19354         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19355         futex.h.
19356         (gomp_futex_wake, gomp_futex_wait): New variables.
19357         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19358         * config/linux/lock.c: Rewrite to make locks task owned,
19359         for backwards compatibility provide the old entrypoints
19360         if symbol versioning.  Include wait.h instead of libgomp.h and
19361         futex.h.
19362         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19363         * config/posix95/lock.c: Rewrite to make locks task owned,
19364         for backwards compatibility provide the old entrypoints
19365         if symbol versioning.
19366         * config/posix/lock.c: Rewrite to make locks task owned,
19367         for backwards compatibility provide the old entrypoints
19368         if symbol versioning.
19369         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19370         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19371         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19372         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19373         (sys_futex0): Return error code.
19374         (futex_wake, futex_wait): If ENOSYS was returned, clear
19375         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19376         (cpu_relax, atomic_write_barrier): New static inlines.
19377         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19378         (futex_wake, futex_wait): If ENOSYS was returned, clear
19379         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19380         (cpu_relax, atomic_write_barrier): New static inlines.
19381         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19382         (sys_futex0): Return error code.
19383         (futex_wake, futex_wait): If ENOSYS was returned, clear
19384         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19385         (cpu_relax, atomic_write_barrier): New static inlines.
19386         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19387         (sys_futex0): Return error code.
19388         (futex_wake, futex_wait): If ENOSYS was returned, clear
19389         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19390         (cpu_relax, atomic_write_barrier): New static inlines.
19391         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19392         (sys_futex0): Return error code.
19393         (futex_wake, futex_wait): If ENOSYS was returned, clear
19394         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19395         (cpu_relax, atomic_write_barrier): New static inlines.
19396         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19397         (sys_futex0): Return error code.
19398         (futex_wake, futex_wait): If ENOSYS was returned, clear
19399         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19400         (cpu_relax, atomic_write_barrier): New static inlines.
19401         * config/linux/sem.c: Include wait.h instead of libgomp.h and
19402         futex.h.
19403         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19404         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19405         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19406         types.
19407         (omp_nest_lock_t): Change owner into void *, add lock field.
19408         * config/posix95/omp-lock.h: Include semaphore.h.
19409         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19410         (omp_lock_t): Use sem_t instead of mutex if semaphores
19411         aren't broken.
19412         (omp_nest_lock_t): Likewise.  Change owner to void *.
19413         * config/posix/omp-lock.h: Include semaphore.h.
19414         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19415         (omp_lock_t): Use sem_t instead of mutex if semaphores
19416         aren't broken.
19417         (omp_nest_lock_t): Likewise.  Add owner field.
19419 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19421         * testsuite/libgomp.c/collapse-1.c: New test.
19422         * testsuite/libgomp.c/collapse-2.c: New test.
19423         * testsuite/libgomp.c/collapse-3.c: New test.
19424         * testsuite/libgomp.c/icv-1.c: New test.
19425         * testsuite/libgomp.c/icv-2.c: New test.
19426         * testsuite/libgomp.c/lib-2.c: New test.
19427         * testsuite/libgomp.c/lock-1.c: New test.
19428         * testsuite/libgomp.c/lock-2.c: New test.
19429         * testsuite/libgomp.c/lock-3.c: New test.
19430         * testsuite/libgomp.c/loop-4.c: New test.
19431         * testsuite/libgomp.c/loop-5.c: New test.
19432         * testsuite/libgomp.c/loop-6.c: New test.
19433         * testsuite/libgomp.c/loop-7.c: New test.
19434         * testsuite/libgomp.c/loop-8.c: New test.
19435         * testsuite/libgomp.c/loop-9.c: New test.
19436         * testsuite/libgomp.c/nested-3.c: New test.
19437         * testsuite/libgomp.c/nestedfn-6.c: New test.
19438         * testsuite/libgomp.c/sort-1.c: New test.
19439         * testsuite/libgomp.c/task-1.c: New test.
19440         * testsuite/libgomp.c/task-2.c: New test.
19441         * testsuite/libgomp.c/task-3.c: New test.
19442         * testsuite/libgomp.c/task-4.c: New test.
19443         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19444         to C++ testsuite default compiler options.
19445         * testsuite/libgomp.c++/collapse-1.C: New test.
19446         * testsuite/libgomp.c++/collapse-2.C: New test.
19447         * testsuite/libgomp.c++/ctor-10.C: New test.
19448         * testsuite/libgomp.c++/for-1.C: New test.
19449         * testsuite/libgomp.c++/for-2.C: New test.
19450         * testsuite/libgomp.c++/for-3.C: New test.
19451         * testsuite/libgomp.c++/for-4.C: New test.
19452         * testsuite/libgomp.c++/for-5.C: New test.
19453         * testsuite/libgomp.c++/loop-8.C: New test.
19454         * testsuite/libgomp.c++/loop-9.C: New test.
19455         * testsuite/libgomp.c++/loop-10.C: New test.
19456         * testsuite/libgomp.c++/task-1.C: New test.
19457         * testsuite/libgomp.c++/task-2.C: New test.
19458         * testsuite/libgomp.c++/task-3.C: New test.
19459         * testsuite/libgomp.c++/task-4.C: New test.
19460         * testsuite/libgomp.c++/task-5.C: New test.
19461         * testsuite/libgomp.c++/task-6.C: New test.
19462         * testsuite/libgomp.fortran/allocatable1.f90: New test.
19463         * testsuite/libgomp.fortran/allocatable2.f90: New test.
19464         * testsuite/libgomp.fortran/allocatable3.f90: New test.
19465         * testsuite/libgomp.fortran/allocatable4.f90: New test.
19466         * testsuite/libgomp.fortran/collapse1.f90: New test.
19467         * testsuite/libgomp.fortran/collapse2.f90: New test.
19468         * testsuite/libgomp.fortran/collapse3.f90: New test.
19469         * testsuite/libgomp.fortran/collapse4.f90: New test.
19470         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19471         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19472         * testsuite/libgomp.fortran/lib4.f90: New test.
19473         * testsuite/libgomp.fortran/lock-1.f90: New test.
19474         * testsuite/libgomp.fortran/lock-2.f90: New test.
19475         * testsuite/libgomp.fortran/nested1.f90: New test.
19476         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19477         * testsuite/libgomp.fortran/strassen.f90: New test.
19478         * testsuite/libgomp.fortran/tabs1.f90: New test.
19479         * testsuite/libgomp.fortran/tabs2.f: New test.
19480         * testsuite/libgomp.fortran/task1.f90: New test.
19481         * testsuite/libgomp.fortran/task2.f90: New test.
19482         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19483         * testsuite/libgomp.fortran/vla5.f90: Likewise.
19484         * testsuite/libgomp.c/pr26943-2.c: Likewise.
19485         * testsuite/libgomp.c/pr26943-3.c: Likewise.
19486         * testsuite/libgomp.c/pr26943-4.c: Likewise.
19488 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
19490         PR c++/36308
19491         * testsuite/libgomp.c++/ctor-11.C: New test.
19492         * testsuite/libgomp.c++/ctor-12.C: New test.
19494 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
19496         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19498 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19500         PR middle-end/36106
19501         * testsuite/libgomp.c/atomic-5.c: New test.
19502         * testsuite/libgomp.c/atomic-6.c: New test.
19503         * testsuite/libgomp.c/autopar-1.c: New test.
19505 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19507         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19508         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19509         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19510         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19511         * configure: Regenerate.
19512         * Makefile.in, testsuite/Makefile.in: Likewise.
19514 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19516         PR bootstrap/35457
19517         * aclocal.m4: Regenerate.
19518         * configure: Regenerate.
19520 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19522         PR middle-end/35611
19523         * testsuite/libgomp.c/atomic-4.c: New test.
19525         PR libgomp/35625
19526         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19527         (gomp_iter_guided_next): Likewise.
19528         * testsuite/libgomp.c/pr35625.c: New test.
19530 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19532         * aclocal.m4: Regenerate.
19533         * configure: Likewise.
19534         * Makefile.in: Likewise.
19535         * testsuite/Makefile.in: Likewise.
19537 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19539         PR middle-end/35185
19540         * testsuite/libgomp.c++/pr35185.C: New test.
19542 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19544         PR middle-end/35549
19545         * testsuite/libgomp.c/pr35549.c: New test.
19547 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19549         * testsuite/libgomp.c/atomic-3.c: New test.
19551 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19553         PR fortran/33197
19554         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19555         .F08 file suffixes.
19557 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
19559         PR libgomp/33131
19560         * configure.ac: Add ACX_HEADER_STRING.
19561         * env.c: Include strings.h.
19562         * aclocal.m4: Regenerate.
19563         * config.h.in: Regenerate.
19564         * configure: Regenerate.
19565         * Makefile.in: Regenerate.
19566         * testsuite/Makefile.in: Regenerate.
19568 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19570         PR middle-end/35196
19571         * testsuite/libgomp.c/pr35196.c: New test.
19573         PR middle-end/35130
19574         * testsuite/libgomp.fortran/pr35130.f90: New test.
19575         * testsuite/libgomp.c/pr35130.c: New test.
19577 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
19579         PR middle-end/33880
19580         * testsuite/libgomp.c/pr33880.c: New test.
19581         * testsuite/libgomp.fortran/pr33880.f90: New test.
19583 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
19585         * configure: Regenerate.
19587 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
19589         * configure.ac: Move futex checking into ../config/futex.m4.
19590         * configure: Rebuilt.
19591         * aclocal.m4: Rebuilt.
19592         * Makefile.in: Rebuilt.
19594         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19595         2007-10-15 ../config/tls.m4 change.
19597 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
19599         PR c++/34513
19600         * testsuite/libgomp.c/pr34513.c: New test.
19601         * testsuite/libgomp.c++/pr34513.C: New test.
19603 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
19605         PR target/32765
19606         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19608 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
19610         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
19612 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
19614         * testsuite/libgomp.c/private-1.c: New test.
19616 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
19617             Paolo Bonzini  <bonzini@gnu.org>
19619         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
19620         instead of 'VPATH ='.
19621         * Makefile.in: Regenerate.
19623 2007-11-23  Matthias Klose  <doko@ubuntu.com>
19625         * configure.ac: Adjust makeinfo version check.
19626         * configure: Regenerate.
19628 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
19630         PR fortran/34020
19631         * testsuite/libgomp.fortran/pr34020.f90: New test.
19633 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
19635         PR c++/33894
19636         * testsuite/libgomp.c++/atomic-1.C: New test.
19638 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
19640         PR libgomp/33275
19641         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19642         Make x and y integers rather than (implicit) reals.  Add private (j)
19643         clause to the last omp parallel.
19645 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
19647         * configure: Regenerate following changes to ../config/tls.m4.
19649 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
19651         * testsuite/libgomp.fortran/stack.f90: New test.
19653 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
19655         * config/mingw32/proc.c: New file.
19657 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
19659         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19660         (main): Use __get_cpuid to get i386 target fetaures.
19661         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19662         (main): Use __get_cpuid to get x86_64 target fetaures.
19664 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
19666         PR target/32765
19667         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19668         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19670 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
19672         PR fortran/32550
19673         * testsuite/libgomp.fortran/pr32550.f90: New test.
19674         * testsuite/libgomp.fortran/crayptr2.f90: New test.
19676 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19678         * aclocal.m4: Regenerated.
19680 2007-07-05  Tobias Burnus  <burnus@net-b.de>
19682         PR fortran/32359
19683         * testsuite/libgomp.fortran/pr32359.f90: New.
19685 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
19687         PR libgomp/32468
19688         * sections.c (GOMP_parallel_sections_start): Only decrease
19689         number of threads to COUNT if dyn_var is true.
19690         * testsuite/libgomp.c/pr32468.c: New test.
19692 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19694         PR libgomp/26308
19695         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19697 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
19699         PR middle-end/32362
19700         * testsuite/libgomp.c/pr32362-1.c: New test.
19701         * testsuite/libgomp.c/pr32362-2.c: New test.
19702         * testsuite/libgomp.c/pr32362-3.c: New test.
19704 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
19706         * team.c (gomp_team_start): Fix setting up thread_attr
19707         stack size.
19709 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
19711         * configure: Regenerate.
19713 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
19715         * Makefile.in: Regenerate.
19716         * configure: Regenerate.
19717         * aclocal.m4: Regenerate.
19718         * testsuite/Makefile.in: Regenerate.
19720 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
19722         * config/linux/proc.c: New file.
19724         PR libgomp/28482
19725         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19727 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
19729         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19731 2007-04-16  Matthias Klose  <doko@debian.org>
19733         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19734         flags if not building with -m64.
19735         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19736         flag for i?86-*-* targets, if current target matches -m64.
19738 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19740         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19741         * Makefile.in: Regenerate.
19743 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19745         PR testsuite/31369
19746         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19747         ld_library_path.
19748         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19750 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19752         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19753         decls.
19754         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19755         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19756         (parse_affinity): New function.
19757         (initialize_env): Call it and gomp_init_affinity.
19758         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19759         create new pthread_attr_t and call gomp_init_thread_affinity
19760         on it for each thread before passing the attribute to pthread_create.
19761         * config/linux/affinity.c: New file.
19762         * config/posix/affinity.c: New file.
19763         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19764         * configure: Rebuilt.
19765         * config.h.in: Rebuilt.
19766         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19767         * Makefile.in: Rebuilt.
19769 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19771         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19772         *-*-darwin*.
19773         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19774         and use it if found.
19776 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19778         * testsuite/config/default.exp: New file.
19779         * testsuite/lib/libgomp.exp: New file.
19780         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19781         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19782         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19783         (libgomp_load): Remove.
19784         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19785         always_ld_library_path, not ld_library_path.  Set additional_flags
19786         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19787         (target_compile): Do not call libgomp_init.  Append lang_library_path
19788         and lang_link_flags to options.
19789         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19790         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19791         here.
19792         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19793         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19794         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19795         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19796         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19797         CX8 flag.
19798         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19799         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19800         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19801         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19802         * testsuite/libgomp.c/atomic-10.c: Ditto.
19804 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19806         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19807         dg-final cleanup-modules line.
19808         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19809         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19810         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19811         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19812         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19813         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19814         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19816 2007-03-18  Andreas Schwab  <schwab@suse.de>
19818         * acinclude.m4: Adjust regular expression for ld version
19819         extraction.
19820         * configure: Regenerate.
19822 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19824         * Makefile.am: Add install-pdf target as copied from
19825         automake v1.10 rules.
19826         * Makefile.in: Regenerate
19828 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19830         PR libgomp/28486
19831         * configure: Regenerate.
19833         PR c++/30703
19834         * testsuite/libgomp.c++/pr30703.C: New test.
19836 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19838         Revert:
19839         2006-07-05  Eric Christopher  <echristo@apple.com>
19840         * configure.ac: Depend addition of -pthread on host OS.
19841         * configure: Regenerate.
19843 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19845         * libgomp.texi: Fix spacing after abbreviations.
19847 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19849         PR libgomp/30546
19850         * configure.ac: Add check for makeinfo
19851         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19852         if an appropriate version of makeinfo is found.
19853         * aclocal.m4: Regenerated.
19854         * configure: Regenerated.
19855         * Makefile.in: Regenerated.
19856         * testsuite/Makefile.in: Regenerated.
19858 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19860         PR libgomp/30540
19861         * libgomp.texi: More about implementation-dependent settings.
19863 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19865         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19867 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19869         PR middle-end/30494
19870         * testsuite/libgomp.c/pr30494.c: New test.
19872 2007-01-15  Tom Tromey  <tromey@redhat.com>
19874         * configure: Rebuilt.
19875         * configure.ac: Fixed comment.
19877 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19879         * libgomp.texi: Document implementation specific default values of
19880         environment variables.
19882 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19884         PR libgomp/28209
19885         * libgomp.texi: New file.
19886         * configure.ac: Add --enable-generated-files-in-srcdir option.
19887         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19888         files to srcdir.
19889         * Makefile.in: Regenerated.
19890         * config.h.in: Regenerated.
19891         * testsuite/Makefile.in: Regenerated.
19892         * NOTES: Removed.
19894 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19896         PR libgomp/29949
19897         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19899 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19901         * configure: Regenerate.
19903 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19905         PR libgomp/29947
19906         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19907         start if there shouldn't be any loop iterations.
19908         (gomp_loop_ordered_static_start): Remove start == end test.
19909         * testsuite/libgomp.c/pr29947-1.c: New test.
19910         * testsuite/libgomp.c/pr29947-2.c: New test.
19912 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19914         * configure.tgt: Force initial-exec TLS model on Linux only.
19916 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19918         * configure: Regenerated.
19920 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19922         * env.c (parse_schedule): Reject out of range values.
19923         (parse_unsigned_long): Reject out of range, negative or zero values.
19925 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19927         PR fortran/29629
19928         * testsuite/libgomp.fortran/pr29629.f90: New test.
19930 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19932         PR libgomp/29494
19933         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19934         * config/posix95: New directory.
19935         * config/posix95/omp-lock.h: New file.
19936         * config/posix95/lock.c: Likewise.
19938 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19940         * aclocal.m4: Regenerate.
19941         * configure: Regenerate.
19943 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19945         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19946         '<' to '<='.
19948 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19950         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19951         test.
19952         * configure: Regenerate.
19953         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19955 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19957         PR middle-end/25261
19958         PR middle-end/28790
19959         * testsuite/libgomp.c/nestedfn-4.c: New test.
19960         * testsuite/libgomp.c/nestedfn-5.c: New test.
19961         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19963         PR fortran/29097
19964         * testsuite/libgomp.fortran/condinc1.f: New test.
19965         * testsuite/libgomp.fortran/condinc2.f: New test.
19966         * testsuite/libgomp.fortran/condinc3.f90: New test.
19967         * testsuite/libgomp.fortran/condinc4.f90: New test.
19968         * testsuite/libgomp.fortran/condinc1.inc: New file.
19970 2006-09-18  Tom Tromey  <tromey@redhat.com>
19972         * configure: Rebuilt.
19974 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19976         PR c/28768
19977         PR preprocessor/14634
19978         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19979         to AC_DEFINE.
19980         * configure: Regenerate.
19982 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19984         * testsuite/libgomp.fortran/reduction3.f90: Change
19985         -2147483648 to -huge(i)-1 to avoid overflow.
19986         * testsuite/libgomp.fortran/reduction4.f90: Change
19987         Z'ffffffff' to not(0) to avoid overflow.
19989 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19991         PR libgomp/25938
19992         * Makefile.am (libsubincludedir): New.
19993         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19994         * Makefile.in: Regenerate.
19996 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19998         PR libgomp/28725
19999         * env.c: Include ctype.h.
20000         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
20001         leading and/or trailing whitespace and compare strings case
20002         insensitively.
20004 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
20006         PR fortran/28390
20007         * testsuite/libgomp.fortran/pr28390.f: New test.
20009 2006-07-05  Eric Christopher  <echristo@apple.com>
20011         * configure.ac: Depend addition of -pthread on host OS.
20012         * configure: Regenerate.
20014 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
20016         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
20017         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
20018         defined.
20020 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
20022         PR libgomp/26175
20023         PR libgomp/26477
20024         * configure.ac: If neither --enable-linux-futex nor
20025         --disable-linux-futex is passed, determine the default by checking
20026         for compiling and/or running against NPTL.  With --enable-linux-futex,
20027         check if SYS_gettid and SYS_futex are defined.
20028         * configure: Rebuilt.
20030 2006-06-14  Richard Henderson  <rth@redhat.com>
20032         PR libgomp/28008
20033         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
20034         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
20036 2006-06-09  Richard Henderson  <rth@redhat.com>
20038         * env.c (gomp_nthreads_var): Change to unsigned long.
20039         (gomp_run_sched_chunk): Likewise.
20040         (parse_unsigned_long): Rename from parse_num_threads and generalize.
20041         (initialize_env): Initialize gomp_thread_attr.
20042         * libgomp.h (gomp_nthreads_var): Update decl.
20043         (gomp_run_sched_chunk): Likewise.
20044         (gomp_thread_attr): Declare.
20045         * team.c (gomp_thread_attr): Export.
20046         (initialize_team): Don't initialize it.
20048 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
20050         PR fortran/27916
20051         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
20052         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
20054 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20056         * config/mingw32/time.c: New file.
20057         * configure.tgt: Use it.
20059 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
20061         * Makefile.am: Add install-html target. Add install-html to .PHONY
20062         * Makefile.in: Regenerate.
20064 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20066         PR libgomp/27612
20067         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
20068         * testsuite/libgomp.c/critical-1.c: Likewise.
20069         * testsuite/libgomp.c/loop-1.c: Likewise.
20070         * testsuite/libgomp.c/loop-2.c: Likewise.
20071         * testsuite/libgomp.c/single-1.c: Likewise.
20072         * testsuite/libgomp.c/ordered-1.c: Likewise.
20073         * testsuite/libgomp.c/ordered-2.c: Likewise.
20075 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
20077         PR middle-end/27416
20078         * libgomp.fortran/pr27416-1.f90: New test.
20080 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
20082         PR fortran/27395
20083         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
20084         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
20086 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
20088         PR c++/26943
20089         * testsuite/libgomp.c/pr26943-1.c: New test.
20090         * testsuite/libgomp.c/pr26943-2.c: New test.
20091         * testsuite/libgomp.c/pr26943-3.c: New test.
20092         * testsuite/libgomp.c/pr26943-4.c: New test.
20093         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20094         * testsuite/libgomp.c++/pr26943.C: New test.
20096 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
20098         PR middle-end/27337
20099         * testsuite/libgomp.c++/pr27337.C: New test.
20101 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
20103         PR c/26171
20104         * testsuite/libgomp.c/pr26171.c: New test.
20106 2006-04-25  Richard Henderson  <rth@redhat.com>
20108         PR libgomp/25865
20109         * configure.ac: Use GCC_CHECK_TLS.
20110         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
20111         * Makefile.in, aclocal.m4, configure: Regenerate.
20113 2006-04-10  Matthias Klose  <doko@debian.org>
20115         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
20116         directory names containing underscores.
20118 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
20120         PR c++/26691
20121         * testsuite/libgomp.c++/pr26691.C: New test.
20123 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
20125         * testsuite/libgomp.fortran/retval2.f90: New test.
20127 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
20129         * testsuite/libgomp.c++: New directory.
20131 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
20133         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20134         * config/posix/sem.c: Implement the above.
20136 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
20138         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20139         define HAVE_BROKEN_POSIX_SEMAPHORES.
20140         * configure: Rebuilt.
20141         * config.h.in: Rebuilt.
20143 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20145         PR bootstrap/26161
20146         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20147         for the other pthread check.
20148         * configure: Regenerate.
20149         * config.h.in: Regenerate.
20151 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
20153         PR libgomp/25938
20154         PR libgomp/25984
20155         * Makefile.am (fincludedir): New variable.
20156         (nodist_include_HEADERS): Remove Fortran files.
20157         (nodist_finclude_HEADERS): New variable.
20158         * Makefile.in: Regenerated.
20160 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
20162         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20163         Remove tests for returning assumed character length arrays.
20165 2006-02-12  Roger Sayle  <roger@eyesopen.com>
20166             John David Anglin  <dave@hiauly1.hia.nrc.ca>
20168         PR libgomp/25936
20169         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20171 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
20173         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20175 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
20177         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20178         part of LD_LIBRARY_PATH manually.
20180 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
20182         PR libgomp/25852
20183         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20184         libgomp_init.
20186 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
20188         PR libgomp/25884
20189         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20190         * configure.ac (PERL): Don't set.
20191         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20192         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20193         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20194         * omp.h.in: Wrap the new configure substitutions with @ characters.
20195         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20196         * aclocal.m4, configure, Makefile.in: Regenerate.
20197         * mkomp_h.pl: Delete.
20199 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
20201         PR libgomp/25259
20202         * configure.ac: Use GCC_HEADER_STDINT.
20203         * libgomp.h: Include gstdint.h.
20204         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20205         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20207 2006-01-24  Richard Henderson  <rth@redhat.com>
20209         PR libgomp/25942
20210         * configure.ac: Add AM_MAINTAINER_MODE.
20211         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20213 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
20215         * Makefile.in: Regenerate.
20216         * testsuite/Makefile.in: Regenerate.
20217         * aclocal.m4: Regenerate.
20219 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
20221         * config/posix/proc.c: Conditional include of sys/loadavg.h for
20222         Solaris.
20223         * configure.ac: Add check for loadavg.h.
20224         (link_gomp): Adjust comment.
20225         * configure: Regenerate.
20226         * config.h.in: Regenerate.
20228 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
20230         PR libgomp/25877
20231         * configure.ac: Remove check for alloca.h.
20232         * configure: Regenerate.
20233         * config.h.in: Regenerate.
20234         * libgomp.h: define gomp_alloca to be __builtin_alloca.
20235         * team.c: Remove use of alloca.h.
20236         Call gomp_alloca instead of alloca.
20238 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
20240         PR libgomp/25877
20241         * team.c: Add include of alloca.h.
20242         * configure.ac: Add check for alloca.h.
20243         * configure: Regenerate.
20244         * config.h.in: Regenerate.
20246 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
20248         PR fortran/25219
20249         * testsuite/libgomp.fortran/pr25219.f90: New test.
20251 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
20253         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20254         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20255         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20256         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20257         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20258         testsuite/libgomp.fortran/threadprivate1.f90,
20259         testsuite/libgomp.fortran/threadprivate2.f90,
20260         testsuite/libgomp.fortran/threadprivate3.f90,
20261         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20262         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20263         testsuite/libgomp.fortran/omp_parse3.f90: Change required
20264         effective-target to TLS runtime.
20266         * testsuite/libgomp.fortran/pr25162.f: Require
20267         effective-target TLS runtime.
20269 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
20271         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20272         * testsuite/libgomp.c/nestedfn-3.c: New test.
20274 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
20276         PR fortran/25162
20277         * testsuite/libgomp.fortran/pr25162.f: New test.
20279 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
20281         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20282         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20284 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
20286         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20287         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20288         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20289         single.c, team.c, work.c, config/linux/alpha/futex.h,
20290         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20291         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20292         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20293         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20294         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20295         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20296         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20297         FSF address.
20299 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20301         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20302         to nodist_noinst_HEADERS.
20303         * Makefile.in: Rebuilt.
20305         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20306         add integer count field.
20307         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20308         omp_nest_lock_t type change.
20309         (omp_init_nest_lock): Likewise.  Initialize count to 0.
20310         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20311         Increment count.
20312         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20313         Decrement count.
20314         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20315         Increment count if successful and return the new nesting level.
20316         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20317         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20318         * testsuite/libgomp.c/lib-1.c: New test.
20319         * testsuite/libgomp.fortran/lib1.f90: New test.
20320         * testsuite/libgomp.fortran/lib2.f: New test.
20321         * testsuite/libgomp.fortran/lib3.f: New test.
20323 2005-11-17  Richard Henderson  <rth@redhat.com>
20325         PR 24845
20326         * Makefile.am (nodist_toolexeclib_HEADERS): New.
20327         * configure.ac (link_gomp): New.  Substitute it.
20328         (AC_CONFIG_FILES): Add libgomp.spec.
20329         * libgomp.spec.in: New file.
20330         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20331         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20333 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20335         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20336         reduction(-:var) behaving the same as reduction(+:var).
20337         * testsuite/libgomp.c/reduction-4.c: New test.
20339 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
20341         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20342         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20343         testsuite/libgomp.c/copyin-3.c,
20344         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20345         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20346         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20347         testsuite/libgomp.c++/pr24455.C,
20348         testsuite/libgomp.fortran/threadprivate1.f90,
20349         testsuite/libgomp.fortran/threadprivate2.f90,
20350         testsuite/libgomp.fortran/threadprivate3.f90,
20351         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20352         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20353         testsuite/libgomp.fortran/omp_parse3.f90: Require
20354         effective-target TLS.
20356 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
20358         * HEADER: Remove.
20360 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
20362         PR libgomp/24797
20363         * team.c (initialize_team): Pass NULL rather than free as
20364         pthread_key_create destructor.  Initialize thread specific data
20365         pointer in initial thread to a static local variable rather than
20366         malloced memory.
20368 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
20370         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20371         its location to ld_library_path.
20373 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20375         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20377 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20379         * testsuite/libgomp.c: Rename from libgomp.dg.
20381 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
20383         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20384         threadprivate variable 'i'.
20386 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
20388         * config/linux/s390/futex.h: New file.
20389         * configure.tgt: Use it.
20391         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20392         before the parallel.
20394 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
20396         PR c++/24734
20397         * testsuite/libgomp.c++/master-1.C: New test.
20399 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20401         * testsuite/libgomp.dg/copyin-3.c: New test.
20403 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20405         * testsuite/libgomp.fortran/retval1.f90: New test.
20406         * testsuite/libgomp.fortran/vla7.f90: New test.
20408 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
20410         * testsuite/libgomp.fortran/vla2.f90: New test.
20411         * testsuite/libgomp.fortran/vla3.f90: New test.
20412         * testsuite/libgomp.fortran/vla4.f90: New test.
20413         * testsuite/libgomp.fortran/vla5.f90: New test.
20414         * testsuite/libgomp.fortran/vla6.f90: New test.
20416 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
20418         * config/linux/sparc/futex.h: New file.
20419         * configure.tgt: Use it.
20420         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20422         * critical.c: Include stdlib.h.
20423         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20424         ignoring return value.
20425         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20426         LIBGOMP_CHECK_SYNC_BUILTINS check.
20427         * configure: Rebuilt.
20429 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20431         * testsuite/libgomp.fortran/vla1.f90: New test.
20433 2005-10-31  Richard Henderson  <rth@redhat.com>
20435         * testsuite/libgomp.fortran/character2.f90: Fix race condition
20436         setting 's' in different threads.
20438 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20440         * libgomp.h (attribute_hidden, ialias): Define.
20441         * config/posix/proc.c (omp_get_num_procs): Add ialias.
20442         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20443         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20444         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20445         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20446         omp_test_lock, omp_test_nest_lock): Likewise.
20447         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20448         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20449         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20450         omp_test_lock, omp_test_nest_lock): Likewise.
20451         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20452         omp_get_dynamic, omp_get_nested): Likewise.
20453         * parallel.c (omp_get_num_threads, omp_get_max_threads,
20454         omp_get_thread_num, omp_in_parallel): Likewise.
20455         * fortran.c (ialias_redirect): Define.
20456         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20457         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20458         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20459         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20460         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20461         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20462         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20463         omp_get_wtime): Add ialias_redirect.
20465 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
20467         * fortran.c: Include stdlib.h.
20469 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
20471         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20472         * Makefile.in: Regenerated.
20474 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
20476         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20477         * libgomp_f.h.in (omp_check_defines): New function.
20478         * env.c: Include libgomp_f.h.
20479         (initialize_env): Call omp_check_defines.
20481         * testsuite/libgomp.dg/copyin-2.c: New test.
20482         * testsuite/libgomp.c++/copyin-2.C: New test.
20483         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20485         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20486         * testsuite/libgomp.fortran/sharing2.f90: New test.
20488         * testsuite/libgomp.dg/copyin-1.c: New test.
20489         * testsuite/libgomp.c++/copyin-1.C: New test.
20491 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
20493         * testsuite/libgomp.fortran/crayptr1.f90: New test.
20495         * testsuite/libgomp.fortran/workshare1.f90: New test.
20497         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20498         only test.
20499         * libgomp.fortran/sharing1.f90: New test.
20501 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
20503         PR c++/24502
20504         * testsuite/libgomp.c++/loop-7.C: New test.
20506         * testsuite/libgomp.dg/nestedfn-2.c: New test.
20508         * testsuite/libgomp.dg/nestedfn-1.c: New test.
20509         * testsuite/libgomp.fortran/reduction6.f90: New test.
20510         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20512 2005-10-23  Richard Henderson  <rth@redhat.com>
20514         * testsuite/libgomp.c++/ctor-1.C: New.
20515         * testsuite/libgomp.c++/ctor-2.C: New.
20516         * testsuite/libgomp.c++/ctor-3.C: New.
20517         * testsuite/libgomp.c++/ctor-4.C: New.
20518         * testsuite/libgomp.c++/ctor-5.C: New.
20519         * testsuite/libgomp.c++/ctor-6.C: New.
20520         * testsuite/libgomp.c++/ctor-7.C: New.
20521         * testsuite/libgomp.c++/ctor-8.C: New.
20522         * testsuite/libgomp.c++/ctor-9.C: New.
20524 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
20526         PR 24455
20527         * testsuite/libgomp.c++/pr24455-1.C: New test.
20528         * testsuite/libgomp.c++/pr24455.C: New test.
20529         * testsuite/libgomp.dg/pr24455-1.c: New test.
20530         * testsuite/libgomp.dg/pr24455.c: New test.
20532 2005-10-20  Richard Henderson  <rth@redhat.com>
20534         * testsuite/libgomp.c++/loop-6.C: New.
20535         * testsuite/libgomp.dg/loop-3.c: New.
20537 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
20539         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20540         explicitly private.
20541         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20542         explicitly shared.
20544 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
20546         * testsuite/libgomp.fortran/jacobi.f: New test.
20548 2005-10-19  Richard Henderson  <rth@redhat.com>
20550         * configure.tgt (i?86-linux): Default to with_arch instead of
20551         CFLAGS.  Add -mtune to match target_cpu.
20552         (x86_64-linux): Tune to i686.
20554         * fortran.c (omp_test_nest_lock_): Fix typo.
20556 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
20558         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20559         gomp_ordered_sync): Do nothing if team->nthreads == 1.
20560         * testsuite/libgomp.dg/ordered-3.c: New test.
20562         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20563         Remove volatile keyword.
20565         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20566         in COMMON block to avoid warnings on 64-bit targets.
20568 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
20570         * testsuite/libgomp.dg/shared-3.c: New test.
20572 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20574         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20575         * testsuite/libgomp.fortran/reduction5.f90: New test.
20577 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20579         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20580         dg-options.
20581         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
20582         flush loop now that __sync_synchronize has proper memory barrier.
20583         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20584         Add -ffixed-form to dg-options.
20586 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20588         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20589         from subdirectories.
20590         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20591         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20592         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20593         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20594         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20595         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20596         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20597         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20598         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20599         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20600         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20601         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20602         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20603         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20604         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20605         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20606         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20607         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20608         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20609         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20610         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20611         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20612         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20613         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20614         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20616 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
20618         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20619         lang_library_path exists.  Use find instead of glob to gather tests.
20620         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20622 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20624         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20625         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20626         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20627         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20628         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20629         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20630         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20631         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20632         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20633         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20634         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20635         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20636         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20638 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
20640         * testsuite/libgomp.dg/vla-1.c: New test.
20642         * testsuite/libgomp.fortran/reference2.f90: New test.
20644         * testsuite/libgomp.fortran/character2.f90: Remove explicit
20645         declaration of omp_get_thread_num.
20646         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
20647         use omp_lib.
20649         * testsuite/libgomp.fortran/reduction1.f90: New test.
20650         * testsuite/libgomp.fortran/reduction2.f90: New test.
20651         * testsuite/libgomp.fortran/reduction3.f90: New test.
20652         * testsuite/libgomp.fortran/reduction4.f90: New test.
20654 2005-10-13  Richard Henderson  <rth@redhat.com>
20656         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20657         * Makefile.in: Regenerate.
20658         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20659         * libgomp.h: Include bar.h.
20660         (struct gomp_barrier): Remove.
20661         (struct gomp_team): Add barrier.  Replace master_barrier with
20662         master_release.  Replace threads with ordered_release.
20663         (struct gomp_thread): Replace barrier with release.
20664         * ordered.c (gomp_ordered_first): Update for ordered_release change.
20665         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20666         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20667         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20668         (GOMP_single_copy_end): Likewise.
20669         * team.c (gomp_threads_dock): New.
20670         (gomp_barrier_init, gomp_barrier_destroy): Remove.
20671         (gomp_thread_start): Use gomp_barrier_wait.
20672         (new_team, free_team): Update for gomp_team changes.
20673         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20674         (gomp_team_end): Use gomp_barrier_wait.
20675         (initialize_team): Update for gomp_thread changes.
20676         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20677         (gomp_work_share_end_nowait): Use atomic ops when available.
20678         * config/linux/bar.c, config/linux/bar.h: New files.
20679         * config/posix/bar.c, config/posix/bar.h: New files.
20681 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
20683         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20684         * testsuite/libgomp.dg/single-2.c: New test.
20686         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20687         lang_link_flags): Unset, so that they aren't inherited from previously
20688         sourced *.exp.
20690         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20692 2005-10-12  Richard Henderson  <rth@redhat.com>
20694         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20695         (libgomp_init): Use lang_test_file, lang_library_path, and
20696         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
20698         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20699         (lang_test_file, lang_link_flags): New.
20700         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20702         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20703         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20704         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20705         testsuite/libgomp.c++/parallel-1.C,
20706         testsuite/libgomp.c++/reduction-1.C,
20707         testsuite/libgomp.c++/reduction-2.C,
20708         testsuite/libgomp.c++/reduction-3.C,
20709         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20710         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20711         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20712         New files, largely cribbed from the C testsuite.
20714 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
20716         * testsuite/libgomp.fortran/character1.f90: New test.
20717         * testsuite/libgomp.fortran/character2.f90: New test.
20719         * testsuite/libgomp.dg/nested-1.c: New test.
20720         * testsuite/libgomp.dg/nested-2.c: New test.
20721         * testsuite/libgomp.fortran/do1.f90: New test.
20722         * testsuite/libgomp.fortran/do2.f90: New test.
20724         * testsuite/libgomp.fortran/reference1.f90: New test.
20726 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
20728         * testsuite/libgomp.dg/reduction-1.c: New test.
20729         * testsuite/libgomp.dg/reduction-2.c: New test.
20730         * testsuite/libgomp.dg/reduction-3.c: New test.
20732 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20734         * testsuite/libgomp.dg/atomic-1.c: New test.
20735         * testsuite/libgomp.dg/atomic-2.c: New test.
20737 2005-10-09  Richard Henderson  <rth@redhat.com>
20739         * critical.c (atomic_lock): New.
20740         (initialize_critical): Initialize it.
20741         (GOMP_atomic_start, GOMP_atomic_end): New.
20742         * libgomp.map: Export them.
20743         * libgomp_g.h: Declare them.
20745         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20747 2005-10-02  Richard Henderson  <rth@redhat.com>
20749         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20750         to XCFLAGS instead of CFLAGS.
20752 2005-09-30  Richard Henderson  <rth@redhat.com>
20754         * configure.ac: Determine whether -pthread or -lpthread is needed.
20755         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20756         * Makefile.in, configure: Rebuild.
20758 2005-09-28  Richard Henderson  <rth@redhat.com>
20760         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20761         * testsuite/libgomp.dg/omp-single-3.c: New test.
20763 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20765         * testsuite/libgomp.dg/omp-single-2.c: New test.
20766         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20768 2005-09-27  Richard Henderson  <rth@redhat.com>
20770         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20771         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20773 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20775         * testsuite/libgomp.dg/omp-loop03.c: New test.
20777 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20779         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20781 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20783         * testsuite/libgomp.dg/omp-single-1.c: New test.
20784         * testsuite/libgomp.dg/shared-1.c: Return 0.
20785         Add prototype for abort.
20786         * testsuite/libgomp.dg/shared-2.c: Likewise.
20788 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20790         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20791         constructs.
20793 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20795         * testsuite/libgomp.dg/shared-1.c: New test.
20796         * testsuite/libgomp.dg/shared-2.c: New test.
20798 2005-09-24  Richard Henderson  <rth@redhat.com>
20800         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20802 2005-09-24  Richard Henderson  <rth@redhat.com>
20804         * iter.c (gomp_iter_static_next): Round up when computing number
20805         of iterations.  Don't bother distributing a remainder equally.
20807         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20808         Don't call srand.  Zero b before testing.
20809         (main): New.
20811 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20813         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20814         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20816 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20818         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20819         without !$omp end do, followed immediately by subroutine end.
20821 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20823         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20825 2005-09-22  Richard Henderson  <rth@redhat.com>
20827         * critical.c (GOMP_critical_name_start): Change argument to void**.
20828         Reuse the pointer space if the mutex fits.
20829         (GOMP_critical_name_end): Likewise.
20830         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20831         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20832         (GOMP_critical_name_end): Likewise.
20833         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20834         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20836 2005-09-20  Richard Henderson  <rth@redhat.com>
20838         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20839         (create_lock_lock): New.
20840         (initialize_critical): Initialize it.
20841         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20842         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20844 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20846         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20848 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20850         * testsuite/libgomp.dg/omp-loop01.c: New test.
20851         * testsuite/libgomp.dg/omp-loop02.c: New test.
20853 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20855         * configure.ac (AC_PROG_FC): Add.
20856         (USE_FORTRAN): New automake conditional.
20857         * configure: Rebuilt.
20858         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20859         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20860         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20861         Add rules to build them.
20862         * Makefile.in: Rebuilt.
20863         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20864         OMP_NEST_LOCK_KIND.
20865         * libgomp.map: Add Fortran wrappers.
20866         * libgomp_f.h.in: New file.
20867         * omp_lib.h.in: New file.
20868         * omp_lib.f90.in: New file.
20869         * fortran.c: New file.
20870         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20871         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20872         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20873         libgfortran has been built.
20874         * testsuite/libgomp.fortran/fortran.exp: New file.
20875         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20876         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20877         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20878         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20879         * testsuite/libgomp.fortran/omp_hello.f: New test.
20880         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20881         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20882         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20883         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20884         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20885         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20886         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20887         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20889 2005-08-30  Richard Henderson  <rth@redhat.com>
20891         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20892         function for when aliases are not usable.
20893         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20894         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20895         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20896         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20897         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20898         GOMP_loop_ordered_guided_next): Likewise.
20899         * ordered.c (GOMP_ordered_start): Likewise.
20901 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20903         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20904         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20905         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20906         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20907         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20908         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20909         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20910         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20911         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20913 2005-07-07  Eric Christopher  <echristo@redhat.com>
20914             Diego Novillo  <dnovillo@redhat.com>
20916         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20917         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20918         up code.
20919         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20920         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20921         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20922         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20923         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20924         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20925         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20927 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20929         * TOPLEVEL.patch: Remove.
20931 2005-05-16  Richard Henderson  <rth@redhat.com>
20933         * configure.ac: Test for clock_gettime.
20934         * config.h.in, configure: Rebuild.
20935         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20936         (omp_get_wtime): Use clock_gettime if available.
20937         (omp_get_wtick): Use clock_getres if available.
20939 2005-05-11  Richard Henderson  <rth@redhat.com>
20941         * config/linux/ia64/futex.h: New file.
20942         * configure.tgt: Use it.
20944         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20946 2005-05-07  Richard Henderson  <rth@redhat.com>
20948         * config/linux/powerpc/futex.h: New file.
20949         * configure.tgt: Use it.
20951         * config/linux/i486/futex.h: Merge ...
20952         * config/linux/x86_64/futex.h: ... into ...
20953         * config/linux/x86/futex.h: ... here.
20954         * configure.tgt: Update to match.
20956 2005-05-06  Richard Henderson  <rth@redhat.com>
20958         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20959         * config/linux/i486/futex.h: Likewise.
20960         * config/linux/x86_64/futex.h: Likewise.
20962         * config/linux/lock.c: New file.
20963         * config/linux/omp-lock.h: New file.
20965         * critical.c, env.h: Don't include omp.h
20966         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20967         * config/posix/time.c: Likewise.
20968         * config/posix/omp-lock.h: New file.
20969         * libgomp.h: Include omp-lock.h and omp.h.
20970         * Makefile.am (nodist_include_HEADERS): New.
20971         (omp.h): New rule.
20972         * configure.ac (PERL): New.
20973         * mkomp_h.pl: New file.
20974         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20975         with templates.
20976         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20978         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20979         build directory.  Re-add -march=i486 hack.
20981         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20982         (libgomp_link_flags): Remove.
20983         (libgomp_initialized): Remove.
20984         (libgomp_init): Don't protect from reinitialization.  Copy code
20985         from libstdc++ for getting the multilib set correctly.
20987 2005-05-05  Richard Henderson  <rth@redhat.com>
20989         * config/linux/alpha/futex.h: New file.
20990         * configure.tgt (alpha*-*-linux*): Use it.
20992         * config/posix/mutex.c: New file.
20993         * config/posix/sem.c: Use libgomp.h.
20995         * configure.tgt (x86_64-linux): Also test CC for -m32.
20996         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20998         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20999         after $gccpath.
21001         * Makefile.am (SUBDIRS): New.
21002         (libgomp_la_LDFLAGS): Add -lpthread.
21003         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
21004         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
21006         * libgomp_g.h: New file.
21007         * libgomp.h: Split out all public declarations to libgomp_g.h.
21008         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
21009         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
21010         * config/linux/sem.h: Likewise.
21011         * config/posix/sem.h: Likewise.
21013         * Makefile.am (AM_LDFLAGS): New.
21014         (libgomp_version_script): Split out from ...
21015         (libgomp_la_LDFLAGS): ... here.
21016         (libgomp_version_info): New.
21017         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
21018         (LIBGOMP_ENABLE): New.
21019         (LIBGOMP_CHECK_LINKER_FEATURES): New.
21020         (LIBGOMP_ENABLE_SYMVERS): New.
21021         * configure.ac (AC_INIT): Version 1.0.
21022         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
21023         (enable-linux-futex): Likewise.  Rename from enable-futex.
21024         (libtool_VERSION): New.
21025         (LIBGOMP_ENABLE_SYMVERS): Use it.
21026         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
21027         * Makefile.in, aclocal.m4, configure: Rebuild.
21029         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
21030         (gomp_mutex_unlock_slow): Fix typo.
21031         * config/linux/sem.c: Similarly.
21032         (gomp_sem_post_slow): Fix typo.
21033         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
21034         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
21035         [__PIC__] (sys_futex0): Don't use tmp output in asm.
21037         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
21038         (libgomp_la_LDFLAGS): Add top_srcdir to path.
21039         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
21040         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
21041         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
21042         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
21043         LDFLAGS.  Pull enable_futex check to top-level.
21044         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
21045         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
21047         First attempt at real configury.
21048         * Makefile, config.h: Remove file.
21049         * Makefile.am, Makefile.in: New file.
21050         * acinclude.m4 aclocal.m4: New file.
21051         * configure.ac, configure.tgt, configure: New file.
21053         * config/posix/lock.c: Rename from sys-lock.c.
21054         * config/posix/mutex.h: Rename from sys-mutex.h.
21055         * config/posix/sem.c: Rename from sys-sem.c.
21056         * config/posix/sem.h: Rename from sys-sem.h.
21057         * config/posix/proc.c: Rename from sys-proc.c.
21058         * config/posix/time.c: Rename from sys-proc.c.
21060         * config/linux/mutex.c: New file.
21061         * config/linux/mutex.h: New file.
21062         * config/linux/sem.c: New file.
21063         * config/linux/sem.h: New file.
21064         * config/linux/i486/futex.h: New file.
21065         * config/linux/x86_64/futex.h: New file.
21067 2005-05-04  Richard Henderson  <rth@redhat.com>
21069         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
21070         * libgomp.h: Declare them.
21071         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
21072         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
21074 2005-05-04  Richard Henderson  <rth@redhat.com>
21076         * libgomp-1 code drop
21078 2005-05-04  Richard Henderson  <rth@redhat.com>
21080         * iter.c (gomp_iter_static_next): Return tri-state on 0.
21081         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
21082         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
21083         (gomp_iter_static_next): Update.
21084         (gomp_ordered_static_next): Update.
21085         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
21086         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
21087         totally empty range.
21088         (gomp_loop_ordered_static_next): Refine test for calling
21089         gomp_ordered_static_next.
21090         * testsuite/ordered-1.c: Add case for more threads than iterations.
21092         * iter.c (gomp_iter_runtime_next_locked): Remove.
21093         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
21094         gomp_loop_guided_start, gomp_loop_ordered_static_start,
21095         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
21096         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
21097         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
21098         gomp_loop_ordered_guided_next): Downcase name, make static, add
21099         an external alias with the old name.
21100         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
21101         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
21102         switch and call one of the above static functions.
21103         * libgomp.h: Update.
21105         * work.c (gomp_work_share_start): Lock the mutex for !first too.
21106         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
21107         GOMP_loop_guided_start, GOMP_loop_runtime_start,
21108         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21109         GOMP_loop_ordered_guided_start): Update to match.
21110         * sections.c (GOMP_sections_start): Likewise.
21111         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
21113         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21114         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
21115         Use bounds check instead of modulus.
21116         (gomp_ordered_sync): Split out of GOMP_ordered_start.
21117         (gomp_ordered_last): Don't sync with ordered_owner here.
21118         (gomp_ordered_next): Likewise.
21119         (gomp_ordered_static_loop_next): Likewise.
21120         * loop.c, libgomp.h: Update to match.
21122         * libgomp.h (GOMP_barrier): Declare.
21124         * testsuite/barrier-1.c: New file.
21125         * testsuite/critical-1.c: New file.
21126         * testsuite/ordered-2.c: New file.
21127         * testsuite/ordered-1.c: New file.
21128         * testsuite/sections-1.c: New file.
21129         * testsuite/single-1.c: New file.
21130         * testsuite/Makefile (TESTS): Add them.
21132 2005-05-04  Richard Henderson  <rth@redhat.com>
21134         * libgomp.h (struct gomp_work_share): Add ordered_owner.
21135         * loop.c (GOMP_loop_static_start): If not the startup thread,
21136         acquire the mutex to wait for initialization complete.
21137         (GOMP_loop_ordered_static_start): Likewise.
21138         (GOMP_loop_ordered_runtime_start): Likewise.
21139         (GOMP_loop_ordered_static_first): Remove.
21140         (GOMP_loop_ordered_dynamic_first): Remove.
21141         (GOMP_loop_ordered_guided_first): Remove.
21142         (GOMP_loop_ordered_runtime_first): Remove.
21143         * ordered.c (gomp_ordered_loop_first): Post to own release when
21144         we're the first thread.
21145         (gomp_ordered_loop_last): Wait on release if not owner.
21146         (gomp_ordered_loop_next): Likewise.
21147         (gomp_ordered_static_loop_init): New.
21148         (gomp_ordered_static_loop_next): Use ordered_owner.
21149         (GOMP_ordered_start): Likewise.
21150         * work.c (gomp_new_work_share): Initialize ordered_owner.
21152 2005-05-03  Richard Henderson  <rth@redhat.com>
21154         * Makefile (OPT): New.
21155         (CFLAGS): Use it.
21157         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21158         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21159         * libgomp.h, libgomp.map, NOTES: Update to match.
21161         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21162         Add initialized and thr members.
21163         (gomp_thread_start): Pause when initially spawned to wait for
21164         the whole team to be created.
21165         (gomp_team_start): Release team members at the end.
21167         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
21168         (f_foo_1): Use GOMP_loop_end.
21169         (f_foo_2): Use GOMP_loop_end_nowait.
21171         * testsuite/loop-2.c: New file.
21172         * testsuite/Makefile (TESTS): Add it.
21174 2005-05-03  Richard Henderson  <rth@redhat.com>
21176         * iter.c (gomp_iter_static_next): Fix overflow check typo.
21177         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21178         * team.c (new_team): Initialize oldest_live_gen to 1 if no
21179         initial work_share.
21181         * testsuite/Makefile: New file.
21182         * testsuite/loop-1.c: New file.
21184 2005-05-03  Richard Henderson  <rth@redhat.com>
21186         Initial implementation and checkin.
21188 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21190 Copying and distribution of this file, with or without modification,
21191 are permitted in any medium without royalty provided the copyright
21192 notice and this notice are preserved.