Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blobc96847488d289c69a0c97e32bb4591c52401e3a8
1 2024-04-05  Thomas Schwinge  <tschwinge@baylibre.com>
3         * testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.
5 2024-04-05  Jakub Jelinek  <jakub@redhat.com>
7         PR c++/114572
8         * testsuite/libgomp.c++/pr114572.C: New test.
10 2024-04-04  Tobias Burnus  <tburnus@baylibre.com>
12         * libgomp.texi (TR12): Honor post-TR12 directive name change; add
13         item about curly braces/BLOCK permitted in canonical loop nests.
15 2024-04-02  Jakub Jelinek  <jakub@redhat.com>
17         * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
18         with.
19         (omp_target_associate_ptr): Fix duplicated words; either either ->
20         either.
21         (omp_init_allocator): Fix duplicated words; be be -> be.
22         (omp_realloc): Fix duplicated words; is is -> is.
23         (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
24         * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
25         to to -> to.
27 2024-03-25  Richard Biener  <rguenther@suse.de>
29         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
30         (gcn_gfx1103_s): New.
31         (isa_hsa_name): Handle gfx1036.
32         (isa_code): Likewise.
33         (max_isa_vgprs): Likewise.
35 2024-03-22  Kwok Cheung Yeung  <kcyeung@baylibre.com>
37         * config/accel/target-indirect.c: Include string.h and hashtab.h.
38         Remove include of splay-tree.h.  Update comments.
39         (splay_tree_prefix, splay_tree_c): Delete.
40         (struct indirect_map_t): New.
41         (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
42         (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
43         (USE_SPLAY_TREE_LOOKUP): Rename to...
44         (USE_HASHTAB_LOOKUP): ..this.
45         (indirect_map, indirect_array): Delete.
46         (indirect_htab): New.
47         (build_indirect_map): Remove locking.  Build indirect map using
48         hashtab.
49         (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
50         address.
51         (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
52         * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
53         from first thread of first team only.
54         * config/nvptx/team.c (gomp_nvptx_main): Likewise.
55         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
56         Add missing break statements.
57         * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
58         xfail.
60 2024-03-22  Andrew Stubbs  <ams@baylibre.com>
62         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
63         (gcn_gfx1103_s): New.
64         (isa_hsa_name): Handle gfx1103.
65         (isa_code): Likewise.
66         (max_isa_vgprs): Likewise.
68 2024-03-14  Thomas Schwinge  <tschwinge@baylibre.com>
70         * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
71         initialization, copy, check.
73 2024-03-13  Tobias Burnus  <tburnus@baylibre.com>
75         PR fortran/114283
76         * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
78 2024-03-12  Tobias Burnus  <tburnus@baylibre.com>
80         * libgomp.texi (Device Memory Routines): Swap item order to match
81         the order of the '@node's of the '@subsection's.
83 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
85         * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
86         'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
87         (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
88         message.
90 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
92         * plugin/plugin-nvptx.c (nvptx_get_num_devices):
93         'cuDeviceGetCount' failure is fatal.
95 2024-03-08  Thomas Schwinge  <tschwinge@baylibre.com>
97         * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
98         for missing symbols.
99         * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
101 2024-03-06  John David Anglin  <danglin@gcc.gnu.org>
103         Revert:
104         2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
106         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
107         on 32-bit hppa.
108         * testsuite/libgomp.c/omp-loop03.c: Likewise.
110 2024-03-04  Jakub Jelinek  <jakub@redhat.com>
112         PR libgomp/114216
113         * target.c (gomp_target_rev): Change host_fn type and corresponding
114         cast from void (*)() to void (*) (void *).
116 2024-03-01  Jakub Jelinek  <jakub@redhat.com>
117             Tobias Burnus  <tburnus@baylibre.com>
119         PR c++/110347
120         * testsuite/libgomp.c++/target-lambda-3.C: Moved from
121         gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
122         * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
123         also work without offloading.
124         * testsuite/libgomp.c++/firstprivate-1.C: New test.
125         * testsuite/libgomp.c++/firstprivate-2.C: New test.
126         * testsuite/libgomp.c++/private-1.C: New test.
127         * testsuite/libgomp.c++/private-2.C: New test.
128         * testsuite/libgomp.c++/target-lambda-4.C: New test.
129         * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
131 2024-02-27  Tobias Burnus  <tburnus@baylibre.com>
133         * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
134         routines that simply map to their C counterpart.
135         * openacc.f90 (openacc): Add them.
136         * openacc_lib.h: Likewise.
137         * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
138         * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
139         * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
140         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
141         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
142         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
144 2024-02-21  Tobias Burnus  <tburnus@baylibre.com>
146         * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
147         'arch' value for nvptx.
149 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
151         * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
152         implemented.
154 2024-02-15  Kwok Cheung Yeung  <kcyeung@baylibre.com>
156         * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
157         * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
158         * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
160 2024-02-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
162         PR testsuite/113448
163         * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
164         Call abort.
165         * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
166         Likewise.
168 2024-02-11  John David Anglin  <danglin@gcc.gnu.org>
170         PR libgomp/113843
171         * configure.tgt (hppa*-*-linux*): Define config_path.
173 2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
175         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
176         on 32-bit hppa.
177         * testsuite/libgomp.c/omp-loop03.c: Likewise.
179 2024-01-29  Tobias Burnus  <tburnus@baylibre.com>
181         * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
182         function not gfx90a for gfx1100/gfx1030 context selector.
184 2024-01-26  Richard Biener  <rguenther@suse.de>
186         * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
187         agents with unsupported ISA.
189 2024-01-26  Richard Biener  <rguenther@suse.de>
191         * plugin/plugin-gcn.c
192         (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
193         (isa_code): Return that instead of -1.
194         (GOMP_OFFLOAD_init_device): Adjust.
196 2024-01-26  Tobias Burnus  <tburnus@baylibre.com>
198         * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
199         for gfx1030 and gfx1100.
200         * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
201         * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
203 2024-01-26  Andrew Stubbs  <ams@baylibre.com>
205         * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
206         (omp_get_wtime): Add RDNA3-compatible variant.
207         * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
209 2024-01-24  Tobias Burnus  <tburnus@baylibre.com>
210             Sandra Loosemore  <sandra@codesourcery.com>
212         * libgomp.texi (Runtime Library Routines): Document
213         omp_pause_resource, omp_pause_resource_all and
214         omp_target_memcpy{,_rect}{,_async}.
216 2024-01-22  Tobias Burnus  <tburnus@baylibre.com>
218         * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
219         support is no longer enabled by default.
220         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
222 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
224         * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
225         timeout by 2 on hppa*-*-*.
227 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
229         * testsuite/libgomp.c/simd-math-1.c: Don't run on
230         hppa*-*-hpux*.
232 2024-01-17  Jakub Jelinek  <jakub@redhat.com>
234         PR middle-end/113409
235         * testsuite/libgomp.c/bitint-1.c: New test.
237 2024-01-11  Julian Brown  <julian@codesourcery.com>
239         * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
240         * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
241         * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
243 2024-01-10  Jakub Jelinek  <jakub@redhat.com>
245         PR libgomp/113192
246         * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
247         instead of \$(abs_top_srcdir)/testsuite/flock.
248         * configure: Regenerated.
250 2024-01-09  Julian Brown  <julian@codesourcery.com>
252         * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
253         now work.
254         * testsuite/libgomp.c++/baseptrs-6.C: New test.
255         * testsuite/libgomp.c++/ind-base-1.C: New test.
256         * testsuite/libgomp.c++/ind-base-2.C: New test.
257         * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
258         * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
259         * testsuite/libgomp.c++/map-comma-1.C: New test.
260         * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
261         * testsuite/libgomp.c++/struct-ref-1.C: New test.
262         * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
263         * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
264         * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
266 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
268         PR libgomp/113192
269         * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
270         rather than $srcdir/testsuite/flock.
271         * configure: Regenerated.
273 2024-01-08  Thomas Schwinge  <thomas@codesourcery.com>
275         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
276         'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
278 2024-01-08  Julian Brown  <julian@codesourcery.com>
280         * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
281         hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
282         hsa_amd_memory_async_copy_rect_fn function pointers.
283         (init_hsa_runtime_functions): Add above functions, with
284         DLSYM_OPT_FN.
285         (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
287 2024-01-08  Tobias Burnus  <tobias@codesourcery.com>
289         * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
290         (gcn_isa_name_len): Fix length.
291         (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
293 2024-01-06  Tobias Burnus  <tobias@codesourcery.com>
295         * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
296         (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
297         omp_target_is_accessible.
298         (Environment Display Routine): Uncomment and add
299         omp_display_env description.
300         (OMP_DISPLAY_ENV): Update wording, add 'see also'.
302 2024-01-06  Mark Wielaard  <mark@klomp.org>
304         * configure: Regenerate.
306 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
308         * libgomp.texi: Bump @copying's copyright year.
310 2023-12-21  Julian Brown  <julian@codesourcery.com>
312         * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
314 2023-12-20  Julian Brown  <julian@codesourcery.com>
316         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
317         avoid out-of-bounds array checks in CUDA runtime.
318         (GOMP_OFFLOAD_memcpy3d): Likewise.
319         * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
321 2023-12-18  Jakub Jelinek  <jakub@redhat.com>
323         * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
324         drop because of that unneeded target selector from other directives
325         and remove the aarch64 specific ones.
327 2023-12-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
329         * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
330         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
332 2023-12-15  Thomas Schwinge  <thomas@codesourcery.com>
334         * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
335         'dg-output's to 'target offload_device_nonshared_as'.
337 2023-12-15  Julian Brown  <julian@codesourcery.com>
339         * oacc-mem.c (find_group_last, goacc_enter_data_internal,
340         goacc_exit_data_internal, GOACC_enter_exit_data): Add
341         GOMP_MAP_STRUCT_UNORD support.
342         * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
343         Detect incorrect use of variable indexing of arrays of structs.
344         (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
345         GOMP_MAP_STRUCT_UNORD support.
346         * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
347         * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
348         * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
349         * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
351 2023-12-13  Julian Brown  <julian@codesourcery.com>
353         * testsuite/libgomp.fortran/map-subarray.f90: New test.
354         * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
355         * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
356         * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
357         * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
358         * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
359         * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
360         * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
361         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
362         descriptor-mapping changes.  Remove XFAIL.
364 2023-12-13  Julian Brown  <julian@codesourcery.com>
366         * target.c (gomp_map_pointer): Modify zero-length array section
367         pointer handling.
368         (gomp_attach_pointer): Likewise.
369         (gomp_map_fields_existing): Use gomp_map_0len_lookup.
370         (gomp_attach_pointer): Allow attaching null pointers (or Fortran
371         "unassociated" pointers).
372         (gomp_map_vars_internal): Handle zero-sized struct members.  Add
373         diagnostic for unmapped struct pointer members.
374         * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
375         * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
376         * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
377         * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
378         * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
379         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
380         "free".
381         * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
382         * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
383         * testsuite/libgomp.c++/class-array-1.C: New test.
384         * testsuite/libgomp.c++/baseptrs-3.C: New test.
385         * testsuite/libgomp.c++/baseptrs-4.C: New test.
386         * testsuite/libgomp.c++/baseptrs-5.C: New test.
387         * testsuite/libgomp.c++/baseptrs-8.C: New test.
388         * testsuite/libgomp.c++/baseptrs-9.C: New test.
389         * testsuite/libgomp.c++/ref-mapping-1.C: New test.
390         * testsuite/libgomp.c++/target-48.C: New test.
391         * testsuite/libgomp.c++/target-49.C: New test.
392         * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
393         * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
394         semantics.
395         * testsuite/libgomp.c++/target-this-3.C: Likewise.
396         * testsuite/libgomp.c++/target-this-4.C: Likewise.
397         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
398         * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
400 2023-12-13  Thomas Schwinge  <thomas@codesourcery.com>
402         * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
403         vs. '%ld' format string mismatch.
405 2023-12-13  Andrew Stubbs  <ams@codesourcery.com>
406             Thomas Schwinge  <thomas@codesourcery.com>
408         * allocator.c (MEMSPACE_ALLOC): Add PIN.
409         (MEMSPACE_CALLOC): Add PIN.
410         (MEMSPACE_REALLOC): Add PIN.
411         (MEMSPACE_FREE): Add PIN.
412         (MEMSPACE_VALIDATE): Add PIN.
413         (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
414         (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
415         (omp_aligned_calloc): Likewise.
416         (omp_realloc): Likewise.
417         (omp_free): Likewise.
418         * config/linux/allocator.c: New file.
419         * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
420         (MEMSPACE_CALLOC): Add PIN.
421         (MEMSPACE_REALLOC): Add PIN.
422         (MEMSPACE_FREE): Add PIN.
423         (MEMSPACE_VALIDATE): Add PIN.
424         * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
425         (MEMSPACE_CALLOC): Add PIN.
426         (MEMSPACE_REALLOC): Add PIN.
427         (MEMSPACE_FREE): Add PIN.
428         * libgomp.texi: Switch pinned trait to supported.
429         (MEMSPACE_VALIDATE): Add PIN.
430         * testsuite/libgomp.c/alloc-pinned-1.c: New test.
431         * testsuite/libgomp.c/alloc-pinned-2.c: New test.
432         * testsuite/libgomp.c/alloc-pinned-3.c: New test.
433         * testsuite/libgomp.c/alloc-pinned-4.c: New test.
435 2023-12-11  Lipeng Zhu  <lipeng.zhu@intel.com>
437         * testsuite/libgomp.fortran/rwlock_1.f90: New file.
438         * testsuite/libgomp.fortran/rwlock_2.f90: New file.
439         * testsuite/libgomp.fortran/rwlock_3.f90: New file.
441 2023-12-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
443         * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
444         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
446 2023-12-11  Tobias Burnus  <tobias@codesourcery.com>
448         * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
450 2023-12-08  Tobias Burnus  <tobias@codesourcery.com>
452         * allocator.c (struct fort_alloc_splay_tree_key_s,
453         fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
454         * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
455         * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
456         GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
457         (GOMP_5.1.1): ... here.
458         * libgomp.texi (Impl. Status, Memory management): Update for
459         allocators/allocate directives.
460         * splay-tree.c: Handle splay_tree_static define to declare all
461         functions as static.
462         (splay_tree_lookup_node): New.
463         * splay-tree.h: Handle splay_tree_decl_only define.
464         (splay_tree_lookup_node): New prototype.
465         * target.c: Define splay_tree_static for 'reverse'.
466         * testsuite/libgomp.fortran/allocators-1.f90: New test.
467         * testsuite/libgomp.fortran/allocators-2.f90: New test.
468         * testsuite/libgomp.fortran/allocators-3.f90: New test.
469         * testsuite/libgomp.fortran/allocators-4.f90: New test.
470         * testsuite/libgomp.fortran/allocators-5.f90: New test.
472 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
474         * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
475         (TEAM_ARENA_FREE): Likewise.
476         (TEAM_ARENA_END): Likewise.
477         (GCN_LOWLAT_HEAP): New.
478         * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
479         (__gcn_lowlat_init): New prototype.
480         (gomp_gcn_enter_kernel): Initialize the low-latency heap.
481         * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
482         (TEAM_ARENA_FREE): Likewise.
483         (TEAM_ARENA_END): Likewise.
484         * plugin/plugin-gcn.c (lowlat_size): New variable.
485         (print_kernel_dispatch): Label the group_segment_size purpose.
486         (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
487         (create_kernel_dispatch): Pass low-latency head allocation to kernel.
488         (run_kernel): Use shadow; don't assume values.
489         * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
490         * config/gcn/allocator.c: New file.
491         * libgomp.texi: Document low-latency implementation details.
493 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
495         * allocator.c (MEMSPACE_VALIDATE): New macro.
496         (omp_init_allocator): Use MEMSPACE_VALIDATE.
497         (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
498         (omp_aligned_calloc): Likewise.
499         (omp_realloc): Likewise.
500         * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
501         (MEMSPACE_VALIDATE): New macro.
502         (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
503         * libgomp.texi: Document low-latency implementation details.
504         * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
505         * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
506         * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
507         * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
508         * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
509         * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
510         * testsuite/libgomp.c/omp_alloc-traits.c: New test.
512 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
513             Kwok Cheung Yeung   <kcy@codesourcery.com>
514             Thomas Schwinge  <thomas@codesourcery.com>
516         * allocator.c (MEMSPACE_ALLOC): New macro.
517         (MEMSPACE_CALLOC): New macro.
518         (MEMSPACE_REALLOC): New macro.
519         (MEMSPACE_FREE): New macro.
520         (predefined_alloc_mapping): New array.  Add _Static_assert to match.
521         (ARRAY_SIZE): New macro.
522         (omp_aligned_alloc): Use MEMSPACE_ALLOC.
523         Implement fall-backs for predefined allocators.  Simplify existing
524         fall-backs.
525         (omp_free): Use MEMSPACE_FREE.
526         (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
527         predefined allocators.  Simplify existing fall-backs.
528         (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
529         Implement fall-backs for predefined allocators.  Simplify existing
530         fall-backs.
531         * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
532         (__nvptx_lowlat_init): New prototype.
533         (gomp_nvptx_main): Call __nvptx_lowlat_init.
534         * libgomp.texi: Update memory space table.
535         * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
536         (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
537         (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
538         * basic-allocator.c: New file.
539         * config/nvptx/allocator.c: New file.
540         * testsuite/libgomp.c/omp_alloc-1.c: New test.
541         * testsuite/libgomp.c/omp_alloc-2.c: New test.
542         * testsuite/libgomp.c/omp_alloc-3.c: New test.
543         * testsuite/libgomp.c/omp_alloc-4.c: New test.
544         * testsuite/libgomp.c/omp_alloc-5.c: New test.
545         * testsuite/libgomp.c/omp_alloc-6.c: New test.
547 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
549         * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
550         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
551         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
552         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
553         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
554         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
555         * testsuite/libgomp.c/declare-variant-4.h: Likewise.
556         * testsuite/libgomp.c/declare-variant-4.c: New.
558 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
560         * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
561         into 'dg-do link'.
562         * testsuite/libgomp.c/declare-variant-3.c: New.
563         * testsuite/libgomp.c/declare-variant-3.h: Extend.
565 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
567         * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
568         'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
569         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
570         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
571         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
572         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
573         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
574         * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
575         'scan-offload-tree-dump' to
576         'only_for_offload_target amdgcn-amdhsa'.
577         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
578         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
579         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
580         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
581         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
583 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
585         * testsuite/libgomp.c/declare-variant-3-sm30.c:
586         'dg-additional-options -foffload=nvptx-none'.
587         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
588         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
589         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
590         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
591         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
593 2023-11-29  Thomas Schwinge  <thomas@codesourcery.com>
595         * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
596         'scan-offload-ipa-dump's to
597         'only_for_offload_target amdgcn-amdhsa'.
598         * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
599         * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
601 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
603         * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
604         is now supported.
606 2023-11-22  Thomas Schwinge  <thomas@codesourcery.com>
608         * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
609         (f75, f80, f): Add '__attribute__ ((noipa))'.
610         * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
611         (gfx908, gfx90a, f): Likewise.
613 2023-11-15  Andrew Stubbs  <ams@codesourcery.com>
614             Andrew Jenner   <andrew@codesourcery.com>
616         * plugin/plugin-gcn.c (max_isa_vgprs): New.
617         (run_kernel): CDNA2 devices have more VGPRs.
619 2023-11-10  Tobias Burnus  <tobias@codesourcery.com>
621         * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
622         renamed section from TR11.
624 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
626         * config/linux/target-indirect.c: Move to...
627         * target-indirect.c: ...here.
629 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
631         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
632         * Makefile.in: Regenerate.
633         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
634         (GOMP_OFFLOAD_load_image): Add extra argument.
635         * libgomp.h (struct indirect_splay_tree_key_s): New.
636         (indirect_splay_tree_node, indirect_splay_tree,
637         indirect_splay_tree_key): New.
638         (indirect_splay_compare): New.
639         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
640         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
641         calls in target region and on indirect clause.
642         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
643         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
644         * oacc-host.c (host_load_image): Add extra argument.
645         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
646         enough, read host indirect functions table and pass to
647         load_image_func.
648         * config/accel/target-indirect.c: New.
649         * config/linux/target-indirect.c: New.
650         * config/gcn/team.c (build_indirect_map): Add prototype.
651         (gomp_gcn_enter_kernel): Initialize support for indirect
652         function calls on GCN target.
653         * config/nvptx/team.c (build_indirect_map): Add prototype.
654         (gomp_nvptx_main): Initialize support for indirect function
655         calls on NVPTX target.
656         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
657         indirect functions count.
658         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
659         is high enough, build address translation table and copy it to target
660         memory.
661         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
662         functions count.
663         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
664         is high enough, Build address translation table and copy it to target
665         memory.
666         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
667         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
668         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
670 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
672         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
673         supported also in C.
675 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
677         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
678         'acc_map_data' variant.
680 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
682         * oacc-parallel.c (GOACC_data_start): Handle
683         'GOACC_FLAG_LOCAL_DEVICE'.
684         (GOACC_parallel_keyed): Simplify accordingly.
685         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
687 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
689         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
690         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
691         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
692         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
693         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
695 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
697         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
698         GOACC_FLAG_LOCAL_DEVICE case.
699         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
701 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
703         * Makefile.am: Handle Darwin rpaths.
704         * Makefile.in: Regenerate.
705         * configure: Regenerate.
706         * configure.ac: Handle Darwin rpaths
708 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
710         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
711         (isa_hsa_name): Recognise gfx1030.
712         (isa_code): Likewise.
713         * team.c (defined): Remove s_endpgm.
715 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
717         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
718         _OPENMP >= 201811.
720 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
722         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
723         improve wording especially for Fortran; mention -fopenmp-simd.
724         (Enabling OpenACC): Minor cleanup; remove conditional compilation
725         sentinel.
727 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
729         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
730         Actually document what the function does.
731         (GCC_ACC_NOTIFY): Remove unused env var.
733 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
735         * libgomp.texi: Replace most future tense by present tense.
737 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
739         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
740         dg-additional-options "-fdump-tree-gimple"; fix scan.
742 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
744         * libgomp.texi: Fix some typos.
745         (Memory Management Routines): Document remaining 5.x routines.
746         (Memory allocation): Make clear when the section applies.
748 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
750         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
751         supports the allocate directive for stack variables.
752         * testsuite/libgomp.fortran/allocate-5.f90: New test.
753         * testsuite/libgomp.fortran/allocate-6.f90: New test.
754         * testsuite/libgomp.fortran/allocate-7.f90: New test.
755         * testsuite/libgomp.fortran/allocate-8.f90: New test.
757 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
759         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
760         OMP_TARGET_OFFLOAD.
761         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
762         clarify MANDATORY behavior.
764 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
766         * env.c (initialize_env): Use do_adjust_default_spincount.
767         * config/linux/x86/spincount.h: New file.
769 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
771         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
773 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
775         * libgomp.texi (Device Memory Routines): New.
777 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
779         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
780         and that other target archs have no 'arch'/'isa' traits implemented.
782 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
784         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
785         implemented for C only.
786         * testsuite/libgomp.c/allocate-4.c: New test.
787         * testsuite/libgomp.c/allocate-5.c: New test.
788         * testsuite/libgomp.c/allocate-6.c: New test.
790 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
792         PR c++/111392
793         * libgomp.texi: Mark decl attribute was added to the C++ attribute
794         syntax as implemented.
796 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
798         PR libgomp/111413
799         * env.c (initialize_env): Don't dereference environ if it is NULL.
800         Reindent.
802 2023-09-18  Richard Biener  <rguenther@suse.de>
804         PR tree-optimization/111294
805         * team.c (gomp_team_start): Assert alloca size to avoid false
806         positive alloc-size diagnostic.
808 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
809             Chung-Lin Tang  <cltang@codesourcery.com>
811         PR testsuite/91884
812         PR testsuite/109951
813         * configure.ac: Revert earlier changes, instead
814         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
815         * Makefile.in: Regenerate.
816         * configure: Likewise.
817         * testsuite/Makefile.in: Likewise.
818         * testsuite/lib/libgomp.exp (libgomp_init): Remove
819         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
820         If '--with-build-sysroot=[...]' was specified, use it for
821         build-tree testing.
822         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
823         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
824         (SYSROOT_CFLAGS_FOR_TARGET): Set.
825         * testsuite/libgomp.c++/c++.exp (lang_source_re)
826         (lang_include_flags): Set for build-tree testing.
827         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
828         (lang_include_flags): Likewise.
830 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
832         * libgomp.texi (Memory Management Routines): New; add documentation for
833         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
834         omp_get_default_allocator.
835         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
837 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
839         * target.c (gomp_unload_device): Remove tailing whitespace.
841 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
842             Thomas Schwinge  <thomas@codesourcery.com>
844         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
846 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
848         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
850 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
852         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
853         * testsuite/libgomp.fortran/imperfect1.f90: New.
854         * testsuite/libgomp.fortran/imperfect2.f90: New.
855         * testsuite/libgomp.fortran/imperfect3.f90: New.
856         * testsuite/libgomp.fortran/imperfect4.f90: New.
857         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
858         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
859         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
860         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
862 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
864         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
865         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
866         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
867         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
868         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
869         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
870         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
871         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
872         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
873         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
875 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
877         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
878         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
879         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
880         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
881         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
882         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
883         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
884         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
885         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
886         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
887         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
888         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
889         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
891 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
893         * testsuite/lib/libgomp.exp: Add effective target.
894         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
895         functions.
897 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
899         * libgomp.texi (OpenMP 5.2 status): Add depobj with
900         destroy-var argument as 'N'. Mark defaultmap with
901         'all' category as 'Y'.
903 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
905         PR middle-end/111017
906         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
908 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
910         PR libgomp/111024
911         * allocator.c (gomp_init_libnuma): Call numa_available; if
912         not available or not returning 0, disable libnuma usage.
914 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
916         * configure: Regenerate.
918 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
920         * configure: Regenerate.
922 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
924         * configure: Regenerate.
926 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
928         * configure: Regenerate.
930 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
932         * configure: Regenerate.
934 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
936         * configure: Regenerate.
938 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
940         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
941         GOMP_OFFLOAD_CAP_SHARED_MEM.
942         (omp_target_memcpy_rect_copy): Likewise for lock condition.
943         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
944         memcpy3d/memcpy2d.
945         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
946         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
947         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
949 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
951         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
952         GOMP_OFFLOAD_memcpy3d): New prototypes.
953         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
954         and memcpy3d_func.
955         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
956         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
957         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
958         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
959         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
960         GOMP_OFFLOAD_memcpy3d): New.
961         * target.c (omp_target_memcpy_rect_worker):
962         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
963         Permit all device-to-device copyies; invoke new plugins for
964         2D and 3D copying when available.
965         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
966         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
967         * testsuite/libgomp.fortran/target-12.f90: Likewise.
968         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
970 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
972         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
973         (Tasking Routines): Document omp_in_explicit_task.
974         (Implementation-defined ICV Initialization): Use @ref not @code.
976 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
978         * libgomp.texi (OpenMP Runtime Library Routines):
979         Split long list by adding sections and moving routines there.
980         (OMP_ALLOCATORS): Fix typo.
982 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
984         PR fortran/107424
985         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
986         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
987         commented tests.
988         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
989         test file; tests are in non-rectangular-loop-1.f90.
990         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
991         testcase to use a non-constant step to retain the 'sorry' test.
992         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
994 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
995             Chung-Lin Tang  <cltang@codesourcery.com>
997         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
998         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
1000 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
1002         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
1003         the traits. Add crossref to 'Memory allocation'.
1004         (Memory allocation): Refer to OMP_ALLOCATOR for the available
1005         traits and allocators/mem spaces; document the default value
1006         for the pool_size trait.
1008 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
1010         * allocator.c (omp_init_allocator): Check whether symbol from
1011         dlopened libnuma is available before using libnuma for
1012         allocations.
1014 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
1016         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
1017         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
1018         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
1020 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
1022         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
1023         'Memory allocation' section which contains the full status.
1024         (TR11): Remove differently worded duplicated entry.
1026 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
1028         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
1029         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
1030         add GOMP_MEMKIND_LIBNUMA.
1031         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
1032         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
1033         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1034         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
1035         needed.
1036         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
1037         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
1038         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
1039         updated for libnuma usage.
1040         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
1041         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
1043 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
1045         * allocator.c (omp_init_allocator): Use malloc for
1046         omp_high_bw_mem_space when the memkind lib is unavailable
1047         instead of returning omp_null_allocator.
1048         * libgomp.texi (OpenMP 5.0): Fix typo.
1049         (Memory allocation with libmemkind): Document implementation
1050         in more detail.
1052 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
1054         * libgomp.texi: Use @var for ICV vars.
1055         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
1056         document which ICV is set and which scope the ICV has; extend/cleanup
1057         some @ref.
1058         (Implementation-defined ICV Initialization): New.
1059         (nvptx): Document the implementation-defined used per-warp stack size.
1061 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
1063         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
1064         error.
1066 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
1068         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
1069         as expected dg-output.
1071 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
1073         PR middle-end/110270
1074         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
1075         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
1076         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
1077         * testsuite/libgomp.c/target-19.c: Update expected value.
1078         * testsuite/libgomp.c++/target-18.C: Likewise.
1079         * testsuite/libgomp.c++/target-19.C: Likewise.
1080         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
1081         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
1082         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
1084 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
1086         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
1087         gomp_init_targets_once was called before using default-device-var.
1088         * testsuite/libgomp.c/target-55.c: New test.
1089         * testsuite/libgomp.c/target-55a.c: New test.
1091 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
1093         * env.c (gomp_def_allocator_envvar): New var.
1094         (parse_allocator): Handle OpenMP 5.1 syntax.
1095         (cleanup_env): New.
1096         (omp_display_env): Output gomp_def_allocator_envvar
1097         for an allocator with traits.
1098         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
1099         OMP_DISPLAY_AFFINITY): New.
1100         * testsuite/libgomp.c/allocator-1.c: New test.
1101         * testsuite/libgomp.c/allocator-2.c: New test.
1102         * testsuite/libgomp.c/allocator-3.c: New test.
1103         * testsuite/libgomp.c/allocator-4.c: New test.
1104         * testsuite/libgomp.c/allocator-5.c: New test.
1105         * testsuite/libgomp.c/allocator-6.c: New test.
1107 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1109         * target.c (resolve_device): Align a
1110         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1111         * testsuite/libgomp.c/target-51.c: Adjust.
1113 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1115         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1116         set.
1117         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1118         Likewise.
1119         * testsuite/libgomp.c/simd-math-1.c: Remove
1120         '-foffload-options=-lm'.
1121         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1122         Likewise.
1123         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1124         Likewise.
1126 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1128         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1129         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1130         Likewise.
1132 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
1134         * testsuite/libgomp.c/target-51.c: Fix typo.
1136 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
1138         * env.c (gomp_default_icv_values): Init default_device_var to
1139         an nonconforming value - INT_MIN.
1140         (initialize_env): After env-var parsing, set default_device_var to
1141         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1142         (omp_display_env): If default_device_var is INT_MIN, call
1143         gomp_init_targets_once.
1144         * icv-device.c (omp_get_default_device): Likewise.
1145         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1146         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1147         * target.c (resolve_device): Improve error message device-num < 0
1148         with 'mandatory' and no no-host devices available.
1149         (gomp_target_init): Set default-device-var if INT_MIN.
1150         * testsuite/libgomp.c/target-48.c: New test.
1151         * testsuite/libgomp.c/target-49.c: New test.
1152         * testsuite/libgomp.c/target-50.c: New test.
1153         * testsuite/libgomp.c/target-50a.c: New test.
1154         * testsuite/libgomp.c/target-51.c: New test.
1155         * testsuite/libgomp.c/target-52.c: New test.
1156         * testsuite/libgomp.c/target-53.c: New test.
1157         * testsuite/libgomp.c/target-54.c: New test.
1159 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
1161         PR libgomp/109837
1162         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1163         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1165 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
1167         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1168         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1169         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1170         error message.
1171         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1172         changed error message.
1173         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1174         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1175         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1176         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1177         extend testcase to check that data is copied when needed.
1178         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1179         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1181 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
1182             Tobias Burnus  <tobias@codesourcery.com>
1184         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1185         also for non-offload_device targets; check that it runs
1186         successfully for those and for all until a checkpoint for all
1187         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1188         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1189         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1190         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1191         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1192         add missing vars to map clause.
1194 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
1196         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1197         unified_address requirement as supported.
1198         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1199         'unified_address' from the not-supported requirements.
1201 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
1202             Tobias Burnus  <tobias@codesourcery.com>
1204         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1205         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1206         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1207         modifier.
1208         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1209         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1210         Emit runtime error if memory region not present.
1211         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1212         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1213         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1214         * testsuite/libgomp.fortran/target-present-1.f90: New test.
1215         * testsuite/libgomp.fortran/target-present-2.f90: New test.
1216         * testsuite/libgomp.fortran/target-present-3.f90: New test.
1218 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1220         PR testsuite/66005
1221         * testsuite/lib/libgomp.exp: 'flock' through stdout.
1222         * testsuite/flock: New.
1223         * configure.ac (FLOCK): Point to that if no 'flock' available, but
1224         'perl' is.
1225         * configure: Regenerate.
1227 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1229         * configure.ac (PERL): Remove.
1230         * configure: Regenerate.
1231         * Makefile.in: Likewise.
1232         * testsuite/Makefile.in: Likewise.
1234 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
1236         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1238 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
1240         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1242 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
1244         PR libgomp/109875
1245         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1246         * config/nvptx/target.c (GOMP_teams4): Likewise.
1247         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1248         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1249         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1250         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1252 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
1254         PR libgomp/109904
1255         * configure.ac (link_gomp): Include also $DL_LIBS.
1256         * configure: Regenerated.
1258 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
1260         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1261         'target exit data'.
1262         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1263         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1264         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1265         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1267 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1269         PR testsuite/66005
1270         * configure.ac: Look for 'flock'.
1271         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1272         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1273         * testsuite/lib/libgomp.exp: ... but here, instead.
1274         (libgomp_load): Override for parallel testing.
1275         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1276         * configure: Regenerate.
1277         * Makefile.in: Regenerate.
1278         * testsuite/Makefile.in: Regenerate.
1280 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1281             Thomas Schwinge  <thomas@codesourcery.com>
1283         PR testsuite/66005
1284         * testsuite/Makefile.am (PWD_COMMAND): New variable.
1285         (%/site.exp): New target.
1286         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1287         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1288         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1289         (check_p_subdirs)
1290         (check_DEJAGNU_libgomp_targets): New variables.
1291         ($(check_DEJAGNU_libgomp_targets)): New target.
1292         ($(check_DEJAGNU_libgomp_targets)): New dependency.
1293         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1294         * testsuite/Makefile.in: Regenerate.
1295         * testsuite/lib/libgomp.exp: For parallel testing,
1296         'load_file ../libgomp-test-support.exp'.
1298 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1300         PR testsuite/91884
1301         * configure.ac: 'AC_SUBST(CXX)'.
1302         * configure: Regenerate.
1303         * Makefile.in: Likewise.
1304         * testsuite/Makefile.in: Likewise.
1305         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1306         (GFORTRAN_UNDER_TEST): Set.
1307         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1308         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1309         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1310         * testsuite/libgomp.fortran/fortran.exp: Use
1311         'GFORTRAN_UNDER_TEST'.
1312         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1314 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1316         PR testsuite/91884
1317         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1318         specify compiler.
1319         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1320         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1321         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1322         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1323         Likewise.
1324         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1325         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1326         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1327         Likewise.
1329 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
1331         PR libstdc++/109816
1332         * testsuite/libgomp.c++/target-map-class-1.C: New test.
1333         * testsuite/libgomp.c++/target-map-class-2.C: New test.
1335 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1337         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1338         'lang_library_path' into a list of 'lang_library_paths'.
1339         * testsuite/libgomp.c++/c++.exp: Adjust.
1340         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1341         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
1342         libquadmath, too.
1343         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1345 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1347         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1348         at 'lang_test_file_found'.
1349         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1350         'return' early if not able to test.  Simplify 'ld_library_path' setup.
1351         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1352         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1353         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1355 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1357         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1358         first.
1359         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1360         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1361         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1363 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1365         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1366         * testsuite/libgomp.c/c.exp: Likewise.
1367         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1368         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1369         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1370         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1371         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1373 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1375         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1376         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1377         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1378         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1379         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1380         'lang_test_file'.
1381         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1382         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1383         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1384         'lang_test_file_found' instead of 'lang_test_file'.
1386 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1388         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1389         set.
1390         * testsuite/libgomp.c++/c++.exp: Likewise.
1391         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1393 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1395         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1396         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1398 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1400         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1401         of 'libstdcxx_includes'.
1402         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1404 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1406         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1407         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1408         * libgomp.h (gomp_target_rev): Adjust.
1409         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1410         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1411         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1412         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1413         (rev_off_host_to_dev_cpy): Remove.
1414         (GOMP_OFFLOAD_run): Adjust.
1416 2023-05-04  Julian Brown  <julian@codesourcery.com>
1418         PR fortran/109622
1419         * testsuite/libgomp.fortran/pr109622.f90: Move test...
1420         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1421         vector length warning.
1422         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1423         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
1424         missing copyin/copyout variable. Ignore vector length warnings.
1425         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1426         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
1427         vector length warnings.
1428         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1430 2023-04-28  Julian Brown  <julian@codesourcery.com>
1432         PR fortran/109622
1433         * testsuite/libgomp.fortran/pr109622.f90: New test.
1434         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1435         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1437 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
1439         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1440         * testsuite/libgomp.c/scan-23.c: New test.
1441         * testsuite/libgomp.fortran/scan-2.f90: New test.
1443 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1445         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1446         weak_undefined options.
1448 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
1450         * libgomp.texi (Offload-Target Specifics): Grammar fix.
1452 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
1454         PR fortran/104949
1455         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1456         caveat/safeguard.
1458 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1460         PR libgomp/90596
1461         * target.c (gomp_map_vars_internal): Allow for
1462         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1463         * oacc-parallel.c (GOACC_parallel_keyed): Pass
1464         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1465         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1466         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1467         Adjust, simplify.
1468         (gomp_offload_free): Remove.
1469         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1470         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1471         (cuda_free_argmem): Remove.
1472         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1473         Adjust.
1475 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1477         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1478         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1479         data.
1481 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1483         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1484         'GOMP_MAP_IF_PRESENT'.
1485         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1486         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1487         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1488         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1489         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1490         testing.
1491         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1493 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1495         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1496         shortcut.
1498 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1500         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1501         another aspect of OpenACC 'async' semantics.
1503 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1505         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1506         position.
1507         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1508         Verify 'acc_ev_alloc', 'acc_ev_free'.
1510 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
1512         PR libgomp/109062
1513         * env.c (wait_policy): Initialize to -1.
1514         (initialize_icvs): Initialize icvs->wait_policy to -1.
1515         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1517 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
1519         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1521 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1522             Paul-Antoine Arras  <pa@codesourcery.com>
1524         * testsuite/libgomp.c/simd-math-1.c: New testcase.
1526 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
1528         PR middle-end/108546
1529         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1530         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1532 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1534         * testsuite/libgomp.fortran/alloc-10.f90: Use
1535         '-Wno-complain-wrong-lang'.
1536         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1537         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1538         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1539         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1540         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1541         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1542         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1543         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1544         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1545         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1546         Likewise.
1547         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1548         Likewise.
1549         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1550         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1551         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1552         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1553         'dg-prune-output'.
1555 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1557         * libgomp.texi: Fix typos - theads -> threads.
1559 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1561         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1562         comment typo and improve its wording.
1564 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1566         * target.c (gomp_target_rev): Dereference ptr
1567         to get device address.
1568         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1569         for unallocated allocatable.
1571 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1573         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1574         kind check.
1575         (GOMP_target_enter_exit_data): If the next map item is
1576         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1577         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1579 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
1581         PR fortran/107424
1582         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1583         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1584         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1585         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1586         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1587         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1589 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
1591         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1592         offloading compilation.
1594 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1596         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1597         freeing not allocated memory.
1598         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1600 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1602         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1603         reverse offload.
1604         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1605         reverse-offload requirement.
1607 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
1609         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1610         (DEFAULT_TEAM_ARENA_SIZE): New define.
1611         (struct heap): Move to this file.
1612         (struct kernargs_abi): Likewise.
1613         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1614         the kernargs.
1615         * libgomp.h: Include libgomp-gcn.h.
1616         (TEAM_ARENA_SIZE): Remove.
1617         (team_malloc): Update the error message.
1618         * plugin/plugin-gcn.c (struct kernargs): Move common content to
1619         struct kernargs_abi.
1620         (struct agent_info): Rename team arenas to ephemeral memories.
1621         (struct team_arena_list): Rename ....
1622         (struct ephemeral_memories_list): to this.
1623         (struct heap): Delete.
1624         (team_arena_size): New variable.
1625         (stack_size): New variable.
1626         (print_kernel_dispatch): Update debug messages.
1627         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1628         Read GCN_STACK_SIZE.
1629         (get_team_arena): Rename ...
1630         (configure_ephemeral_memories): ... to this, and set up stacks.
1631         (release_team_arena): Rename ...
1632         (release_ephemeral_memories): ... to this.
1633         (destroy_team_arenas): Rename ...
1634         (destroy_ephemeral_memories): ... to this.
1635         (create_kernel_dispatch): Add num_threads parameter.
1636         Adjust for kernargs_abi refactor and ephemeral memories.
1637         (release_kernel_dispatch): Adjust for ephemeral memories.
1638         (run_kernel): Pass thread-count to create_kernel_dispatch.
1639         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1640         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1642 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
1644         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1646 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1648         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1649         usage, remove unused -fdump-tree-original.
1650         * testsuite/libgomp.fortran/allocate-4.f90: New.
1652 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1654         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1655         (GCN): Add item about 'omp requires'.
1656         (nvptx): Likewise; add item about reverse offload.
1658 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
1660         PR fortran/108558
1661         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1663 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
1665         * libgomp.texi (OpenMP 5.0): Set non-rectangular
1666         loop nest back to 'P' as Fortran support is incomplete.
1668 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
1670         PR middle-end/108459
1671         * testsuite/libgomp.c/pr108459.c: New test.
1673 2023-01-17  Martin Liska  <mliska@suse.cz>
1675         * Makefile.in: Regenerate.
1676         * configure: Regenerate.
1678 2023-01-07  LIU Hao  <lh_mouse@126.com>
1680         PR middle-end/108300
1681         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1682         <windows.h>.
1684 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
1686         PR c++/108286
1687         * testsuite/libgomp.c++/pr108286.C: New test.
1689 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
1691         * libgomp.texi: Bump @copying's copyright year.
1693 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
1695         PR target/99555
1696         * config/nvptx/bar.c (generation_to_barrier): Remove.
1697         (futex_wait,futex_wake,do_spin,do_wait): Remove.
1698         (GOMP_WAIT_H): Remove.
1699         (#include "../linux/bar.c"): Remove.
1700         (gomp_barrier_wait_end): New function.
1701         (gomp_barrier_wait): Likewise.
1702         (gomp_barrier_wait_last): Likewise.
1703         (gomp_team_barrier_wait_end): Likewise.
1704         (gomp_team_barrier_wait): Likewise.
1705         (gomp_team_barrier_wait_final): Likewise.
1706         (gomp_team_barrier_wait_cancel_end): Likewise.
1707         (gomp_team_barrier_wait_cancel): Likewise.
1708         (gomp_team_barrier_cancel): Likewise.
1709         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1710         (gomp_barrier_init): Remove init of waiters, lock fields.
1711         (gomp_team_barrier_wake): Remove prototype, add new static inline
1712         function.
1714 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1716         PR c++/108180
1717         * testsuite/libgomp.c++/pr108180.C: New test.
1719 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1721         PR libfortran/108056
1722         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1723         accidentally added file.
1725 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1727         PR libfortran/108056
1728         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1730 2022-12-14  Julian Brown  <julian@codesourcery.com>
1732         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1733         test.
1735 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1737         * libgomp.h (struct target_mem_desc): Predeclare; move
1738         below after 'reverse_splay_tree_node' and add rev_array
1739         member.
1740         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1741         (reverse_splay_tree_node, reverse_splay_tree,
1742         reverse_splay_tree_key): New typedef.
1743         (struct gomp_device_descr): Add mem_map_rev member.
1744         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1745         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1746         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1747         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1748         splay_tree_callback but returning int not void.
1749         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1750         taking splay_tree_callback_stop as argument.
1751         * splay-tree.c (splay_tree_foreach_internal_lazy,
1752         splay_tree_foreach_lazy): New; but early exit if callback returns
1753         nonzero.
1754         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1755         (gomp_map_lookup_rev): New.
1756         (gomp_load_image_to_device): Handle reverse-offload function
1757         lookup table.
1758         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1759         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1760         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1761         gomp_map_cdata_lookup): New auxiliary structs and functions for
1762         gomp_target_rev.
1763         (gomp_target_rev): Implement reverse offloading and its mapping.
1764         (gomp_target_init): Init current_device.mem_map_rev.root.
1765         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1766         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1767         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1768         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1769         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1770         mapping of on-device allocated variables.
1772 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1774         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1775         item about 'align'; mark clause as 'Y' and directive as 'N'.
1776         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1777         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1779 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1781         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1782         allow processing of device-specific values.
1783         (omp_set_teams_thread_limit): Likewise.
1784         (ialias): Likewise.
1785         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1786         (omp_set_teams_thread_limit): Likewise.
1787         (ialias): Likewise.
1788         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1789         (ialias): Likewise.
1790         (omp_set_teams_thread_limit): Likewise.
1791         * icv.c (omp_set_teams_thread_limit): Removed.
1792         (omp_get_teams_thread_limit): Likewise.
1793         (ialias): Likewise.
1794         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1795         to the limitation of the number of teams.
1796         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1797         the number of teams by twice the number of compute units.
1798         (parse_target_attributes): Limit the number of teams on gcn offload
1799         devices.
1800         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1801         handling.
1802         (gomp_load_image_to_device): Added a size check for the ICVs struct
1803         variable.
1804         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1805         copy back the ICV values from device to host.
1806         (GOMP_target_ext): Update the number of teams and threads in the kernel
1807         args also considering device-specific values.
1808         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1809         of OMP_TEAMS_THREAD_LIMIT from the environment.
1810         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1811         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1812         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1813         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1814         * testsuite/libgomp.fortran/icv-5.f90: New test.
1815         * testsuite/libgomp.fortran/icv-6.f90: New test.
1817 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1819         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1820         (TR11): Add missing '@tab N @tab'.
1822 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1824         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1826 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1828         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1829         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1830         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1831         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1832         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1833         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1834         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1836 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1838         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1840 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1842         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1843         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1844         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1845         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1847 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1849         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1850         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1851         as valid and the code having no reverse-offload code.
1852         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1854 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1856         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1857         and status for Technical Report (TR) 11.
1859 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1861         * config/gcn/libgomp-gcn.h (struct output):
1862         Remove 'msg_u64' from the union, change
1863         value_u64[2] to value_u64[6].
1864         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1865         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1866         Likewise.
1868 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1870         * config/gcn/libgomp-gcn.h: New file; contains
1871         struct output, declared previously in plugin-gcn.c.
1872         * config/gcn/target.c: Include it.
1873         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1874         (GOMP_target_ext): Handle reverse offload.
1875         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1876         (struct kernargs): Replace struct def by the one
1877         from libgomp-gcn.h for output_data.
1878         (process_reverse_offload): New.
1879         (console_output): Call it.
1881 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1882             Andrew Stubbs  <ams@codesourcery.com>
1884         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1885         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1887 2022-11-14  Martin Liska  <mliska@suse.cz>
1889         Revert:
1890         2022-11-14  Martin Liska  <mliska@suse.cz>
1892         * doc/amd-radeon-gcn.rst: New file.
1893         * doc/conf.py: New file.
1894         * doc/copyright.rst: New file.
1895         * doc/cuda-streams-usage.rst: New file.
1896         * doc/enabling-openacc.rst: New file.
1897         * doc/enabling-openmp.rst: New file.
1898         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1899         * doc/first-invocation-openacc-library-api.rst: New file.
1900         * doc/funding.rst: New file.
1901         * doc/general-public-license-3.rst: New file.
1902         * doc/gnu-free-documentation-license.rst: New file.
1903         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1904         * doc/index.rst: New file.
1905         * doc/indices-and-tables.rst: New file.
1906         * doc/introduction.rst: New file.
1907         * doc/memory-allocation-with-libmemkind.rst: New file.
1908         * doc/nvptx.rst: New file.
1909         * doc/offload-target-specifics.rst: New file.
1910         * doc/openacc-environment-variables.rst: New file.
1911         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1912         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1913         * doc/openacc-environment-variables/accproflib.rst: New file.
1914         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1915         * doc/openacc-introduction.rst: New file.
1916         * doc/openacc-library-and-environment-variables.rst: New file.
1917         * doc/openacc-library-interoperability.rst: New file.
1918         * doc/openacc-profiling-interface.rst: New file.
1919         * doc/openacc-runtime-library-routines.rst: New file.
1920         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1921         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1922         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1923         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1924         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1925         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1926         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1927         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1928         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1929         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1930         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1931         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1932         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1933         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1934         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1935         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1936         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1937         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1938         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1939         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1940         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1941         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1942         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1943         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1944         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1945         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1946         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1947         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1948         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1949         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1950         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1951         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1952         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1953         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1954         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1955         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1956         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1957         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1958         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1959         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1960         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1961         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1962         * doc/openmp-context-selectors.rst: New file.
1963         * doc/openmp-environment-variables.rst: New file.
1964         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1965         * doc/openmp-environment-variables/gompdebug.rst: New file.
1966         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1967         * doc/openmp-environment-variables/gompspincount.rst: New file.
1968         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1969         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1970         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1971         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1972         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1973         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1974         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1975         * doc/openmp-environment-variables/ompnested.rst: New file.
1976         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1977         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1978         * doc/openmp-environment-variables/ompplaces.rst: New file.
1979         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1980         * doc/openmp-environment-variables/ompschedule.rst: New file.
1981         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1982         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1983         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1984         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1985         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1986         * doc/openmp-implementation-specifics.rst: New file.
1987         * doc/openmp-implementation-status.rst: New file.
1988         * doc/openmp-implementation-status/openmp-45.rst: New file.
1989         * doc/openmp-implementation-status/openmp-50.rst: New file.
1990         * doc/openmp-implementation-status/openmp-51.rst: New file.
1991         * doc/openmp-implementation-status/openmp-52.rst: New file.
1992         * doc/openmp-runtime-library-routines.rst: New file.
1993         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1994         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1995         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1996         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1997         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1998         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1999         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2000         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2001         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2002         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2003         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2004         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2005         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2006         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2007         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2008         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2009         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2010         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2011         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2012         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2013         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2014         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2015         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2016         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2017         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2018         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2019         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2020         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2021         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2022         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2023         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2024         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2025         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2026         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2027         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2028         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2029         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2030         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2031         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2032         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2033         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2034         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2035         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2036         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2037         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2038         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2039         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2040         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2041         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2042         * doc/reporting-bugs.rst: New file.
2043         * doc/the-libgomp-abi.rst: New file.
2044         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2045         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2046         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2047         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2048         New file.
2049         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2050         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2051         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2052         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2053         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2054         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2055         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2056         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2057         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2058         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2059         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2061 2022-11-14  Martin Liska  <mliska@suse.cz>
2063         Revert:
2064         2022-11-14  Martin Liska  <mliska@suse.cz>
2066         * Makefile.in: Support Sphinx based documentation.
2068 2022-11-14  Martin Liska  <mliska@suse.cz>
2070         Revert:
2071         2022-11-14  Martin Liska  <mliska@suse.cz>
2073         * libgomp.texi: Removed.
2075 2022-11-14  Martin Liska  <mliska@suse.cz>
2077         Revert:
2078         2022-11-14  Martin Liska  <mliska@suse.cz>
2080         * Makefile.in: Support --with-sphinx-build.
2081         * configure.ac: Likewise..
2082         * configure: Regenerate.
2084 2022-11-14  Martin Liska  <mliska@suse.cz>
2086         Revert:
2087         2022-11-09  Martin Liska  <mliska@suse.cz>
2089         * Makefile.in: Build info pages conditionally.
2091 2022-11-14  Martin Liska  <mliska@suse.cz>
2093         Revert:
2094         2022-11-14  Martin Liska  <mliska@suse.cz>
2096         * doc/amd-radeon-gcn.rst:
2097         Add trailing newline.
2098         * doc/copyright.rst:
2099         Add trailing newline.
2100         * doc/cuda-streams-usage.rst:
2101         Add trailing newline.
2102         * doc/enabling-openacc.rst:
2103         Add trailing newline.
2104         * doc/enabling-openmp.rst:
2105         Add trailing newline.
2106         * doc/first-invocation-nvidia-cublas-library-api.rst:
2107         Add trailing newline.
2108         * doc/first-invocation-openacc-library-api.rst:
2109         Add trailing newline.
2110         * doc/funding.rst:
2111         Add trailing newline.
2112         * doc/general-public-license-3.rst:
2113         Add trailing newline.
2114         * doc/gnu-free-documentation-license.rst:
2115         Add trailing newline.
2116         * doc/implementation-status-and-implementation-defined-behavior.rst:
2117         Add trailing newline.
2118         * doc/index.rst:
2119         Add trailing newline.
2120         * doc/indices-and-tables.rst:
2121         Add trailing newline.
2122         * doc/introduction.rst:
2123         Add trailing newline.
2124         * doc/memory-allocation-with-libmemkind.rst:
2125         Add trailing newline.
2126         * doc/nvptx.rst:
2127         Add trailing newline.
2128         * doc/offload-target-specifics.rst:
2129         Add trailing newline.
2130         * doc/openacc-environment-variables.rst:
2131         Add trailing newline.
2132         * doc/openacc-environment-variables/accdevicenum.rst:
2133         Add trailing newline.
2134         * doc/openacc-environment-variables/accdevicetype.rst:
2135         Add trailing newline.
2136         * doc/openacc-environment-variables/accproflib.rst:
2137         Add trailing newline.
2138         * doc/openacc-environment-variables/gccaccnotify.rst:
2139         Add trailing newline.
2140         * doc/openacc-introduction.rst:
2141         Add trailing newline.
2142         * doc/openacc-library-and-environment-variables.rst:
2143         Add trailing newline.
2144         * doc/openacc-library-interoperability.rst:
2145         Add trailing newline.
2146         * doc/openacc-profiling-interface.rst:
2147         Add trailing newline.
2148         * doc/openacc-runtime-library-routines.rst:
2149         Add trailing newline.
2150         * doc/openacc-runtime-library-routines/accasynctest.rst:
2151         Add trailing newline.
2152         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2153         Add trailing newline.
2154         * doc/openacc-runtime-library-routines/accattach.rst:
2155         Add trailing newline.
2156         * doc/openacc-runtime-library-routines/acccopyin.rst:
2157         Add trailing newline.
2158         * doc/openacc-runtime-library-routines/acccopyout.rst:
2159         Add trailing newline.
2160         * doc/openacc-runtime-library-routines/acccreate.rst:
2161         Add trailing newline.
2162         * doc/openacc-runtime-library-routines/accdelete.rst:
2163         Add trailing newline.
2164         * doc/openacc-runtime-library-routines/accdetach.rst:
2165         Add trailing newline.
2166         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2167         Add trailing newline.
2168         * doc/openacc-runtime-library-routines/accfree.rst:
2169         Add trailing newline.
2170         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2171         Add trailing newline.
2172         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2173         Add trailing newline.
2174         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2175         Add trailing newline.
2176         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2177         Add trailing newline.
2178         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2179         Add trailing newline.
2180         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2181         Add trailing newline.
2182         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2183         Add trailing newline.
2184         * doc/openacc-runtime-library-routines/acchostptr.rst:
2185         Add trailing newline.
2186         * doc/openacc-runtime-library-routines/accinit.rst:
2187         Add trailing newline.
2188         * doc/openacc-runtime-library-routines/accispresent.rst:
2189         Add trailing newline.
2190         * doc/openacc-runtime-library-routines/accmalloc.rst:
2191         Add trailing newline.
2192         * doc/openacc-runtime-library-routines/accmapdata.rst:
2193         Add trailing newline.
2194         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2195         Add trailing newline.
2196         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2197         Add trailing newline.
2198         * doc/openacc-runtime-library-routines/accondevice.rst:
2199         Add trailing newline.
2200         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2201         Add trailing newline.
2202         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2203         Add trailing newline.
2204         * doc/openacc-runtime-library-routines/accproflookup.rst:
2205         Add trailing newline.
2206         * doc/openacc-runtime-library-routines/accprofregister.rst:
2207         Add trailing newline.
2208         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2209         Add trailing newline.
2210         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2211         Add trailing newline.
2212         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2213         Add trailing newline.
2214         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2215         Add trailing newline.
2216         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2217         Add trailing newline.
2218         * doc/openacc-runtime-library-routines/accshutdown.rst:
2219         Add trailing newline.
2220         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2221         Add trailing newline.
2222         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2223         Add trailing newline.
2224         * doc/openacc-runtime-library-routines/accupdateself.rst:
2225         Add trailing newline.
2226         * doc/openacc-runtime-library-routines/accwait.rst:
2227         Add trailing newline.
2228         * doc/openacc-runtime-library-routines/accwaitall.rst:
2229         Add trailing newline.
2230         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2231         Add trailing newline.
2232         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2233         Add trailing newline.
2234         * doc/openmp-context-selectors.rst:
2235         Add trailing newline.
2236         * doc/openmp-environment-variables.rst:
2237         Add trailing newline.
2238         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2239         Add trailing newline.
2240         * doc/openmp-environment-variables/gompdebug.rst:
2241         Add trailing newline.
2242         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2243         Add trailing newline.
2244         * doc/openmp-environment-variables/gompspincount.rst:
2245         Add trailing newline.
2246         * doc/openmp-environment-variables/gompstacksize.rst:
2247         Add trailing newline.
2248         * doc/openmp-environment-variables/ompcancellation.rst:
2249         Add trailing newline.
2250         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2251         Add trailing newline.
2252         * doc/openmp-environment-variables/ompdisplayenv.rst:
2253         Add trailing newline.
2254         * doc/openmp-environment-variables/ompdynamic.rst:
2255         Add trailing newline.
2256         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2257         Add trailing newline.
2258         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2259         Add trailing newline.
2260         * doc/openmp-environment-variables/ompnested.rst:
2261         Add trailing newline.
2262         * doc/openmp-environment-variables/ompnumteams.rst:
2263         Add trailing newline.
2264         * doc/openmp-environment-variables/ompnumthreads.rst:
2265         Add trailing newline.
2266         * doc/openmp-environment-variables/ompplaces.rst:
2267         Add trailing newline.
2268         * doc/openmp-environment-variables/ompprocbind.rst:
2269         Add trailing newline.
2270         * doc/openmp-environment-variables/ompschedule.rst:
2271         Add trailing newline.
2272         * doc/openmp-environment-variables/ompstacksize.rst:
2273         Add trailing newline.
2274         * doc/openmp-environment-variables/omptargetoffload.rst:
2275         Add trailing newline.
2276         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2277         Add trailing newline.
2278         * doc/openmp-environment-variables/ompthreadlimit.rst:
2279         Add trailing newline.
2280         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2281         Add trailing newline.
2282         * doc/openmp-implementation-specifics.rst:
2283         Add trailing newline.
2284         * doc/openmp-implementation-status.rst:
2285         Add trailing newline.
2286         * doc/openmp-implementation-status/openmp-45.rst:
2287         Add trailing newline.
2288         * doc/openmp-implementation-status/openmp-50.rst:
2289         Add trailing newline.
2290         * doc/openmp-implementation-status/openmp-51.rst:
2291         Add trailing newline.
2292         * doc/openmp-implementation-status/openmp-52.rst:
2293         Add trailing newline.
2294         * doc/openmp-runtime-library-routines.rst:
2295         Add trailing newline.
2296         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2297         Add trailing newline.
2298         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2299         Add trailing newline.
2300         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2301         Add trailing newline.
2302         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2303         Add trailing newline.
2304         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2305         Add trailing newline.
2306         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2307         Add trailing newline.
2308         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2309         Add trailing newline.
2310         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2311         Add trailing newline.
2312         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2313         Add trailing newline.
2314         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2315         Add trailing newline.
2316         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2317         Add trailing newline.
2318         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2319         Add trailing newline.
2320         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2321         Add trailing newline.
2322         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2323         Add trailing newline.
2324         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2325         Add trailing newline.
2326         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2327         Add trailing newline.
2328         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2329         Add trailing newline.
2330         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2331         Add trailing newline.
2332         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2333         Add trailing newline.
2334         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2335         Add trailing newline.
2336         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2337         Add trailing newline.
2338         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2339         Add trailing newline.
2340         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2341         Add trailing newline.
2342         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2343         Add trailing newline.
2344         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2345         Add trailing newline.
2346         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2347         Add trailing newline.
2348         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2349         Add trailing newline.
2350         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2351         Add trailing newline.
2352         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2353         Add trailing newline.
2354         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2355         Add trailing newline.
2356         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2357         Add trailing newline.
2358         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2359         Add trailing newline.
2360         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2361         Add trailing newline.
2362         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2363         Add trailing newline.
2364         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2365         Add trailing newline.
2366         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2367         Add trailing newline.
2368         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2369         Add trailing newline.
2370         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2371         Add trailing newline.
2372         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2373         Add trailing newline.
2374         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2375         Add trailing newline.
2376         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2377         Add trailing newline.
2378         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2379         Add trailing newline.
2380         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2381         Add trailing newline.
2382         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2383         Add trailing newline.
2384         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2385         Add trailing newline.
2386         * doc/openmp-runtime-library-routines/omptestlock.rst:
2387         Add trailing newline.
2388         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2389         Add trailing newline.
2390         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2391         Add trailing newline.
2392         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2393         Add trailing newline.
2394         * doc/reporting-bugs.rst:
2395         Add trailing newline.
2396         * doc/the-libgomp-abi.rst:
2397         Add trailing newline.
2398         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2399         Add trailing newline.
2400         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2401         Add trailing newline.
2402         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2403         Add trailing newline.
2404         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2405         Add trailing newline.
2406         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2407         Add trailing newline.
2408         * doc/the-libgomp-abi/implementing-for-construct.rst:
2409         Add trailing newline.
2410         * doc/the-libgomp-abi/implementing-master-construct.rst:
2411         Add trailing newline.
2412         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2413         Add trailing newline.
2414         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2415         Add trailing newline.
2416         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2417         Add trailing newline.
2418         * doc/the-libgomp-abi/implementing-private-clause.rst:
2419         Add trailing newline.
2420         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2421         Add trailing newline.
2422         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2423         Add trailing newline.
2424         * doc/the-libgomp-abi/implementing-single-construct.rst:
2425         Add trailing newline.
2426         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2427         Add trailing newline.
2429 2022-11-14  Martin Liska  <mliska@suse.cz>
2431         Revert:
2432         2022-11-09  Martin Liska  <mliska@suse.cz>
2434         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2436 2022-11-14  Martin Liska  <mliska@suse.cz>
2438         Revert:
2439         2022-11-14  Martin Liska  <mliska@suse.cz>
2441         * doc/conf.py: Add newline at last line.
2443 2022-11-14  Martin Liska  <mliska@suse.cz>
2445         Revert:
2446         2022-11-14  Martin Liska  <mliska@suse.cz>
2448         PR other/107620
2449         * configure: Regenerate.
2450         * configure.ac: Always set sphinx-build.
2452 2022-11-13  Martin Liska  <mliska@suse.cz>
2454         PR other/107620
2455         * configure: Regenerate.
2456         * configure.ac: Always set sphinx-build.
2458 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
2460         PR libgomp/107641
2461         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2462         unsigned long.  Change type of upper from unsigned to unsigned long.
2464 2022-11-10  Martin Liska  <mliska@suse.cz>
2466         * doc/conf.py: Add newline at last line.
2468 2022-11-09  Martin Liska  <mliska@suse.cz>
2470         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2472 2022-11-09  Martin Liska  <mliska@suse.cz>
2474         * doc/amd-radeon-gcn.rst:
2475         Add trailing newline.
2476         * doc/copyright.rst:
2477         Add trailing newline.
2478         * doc/cuda-streams-usage.rst:
2479         Add trailing newline.
2480         * doc/enabling-openacc.rst:
2481         Add trailing newline.
2482         * doc/enabling-openmp.rst:
2483         Add trailing newline.
2484         * doc/first-invocation-nvidia-cublas-library-api.rst:
2485         Add trailing newline.
2486         * doc/first-invocation-openacc-library-api.rst:
2487         Add trailing newline.
2488         * doc/funding.rst:
2489         Add trailing newline.
2490         * doc/general-public-license-3.rst:
2491         Add trailing newline.
2492         * doc/gnu-free-documentation-license.rst:
2493         Add trailing newline.
2494         * doc/implementation-status-and-implementation-defined-behavior.rst:
2495         Add trailing newline.
2496         * doc/index.rst:
2497         Add trailing newline.
2498         * doc/indices-and-tables.rst:
2499         Add trailing newline.
2500         * doc/introduction.rst:
2501         Add trailing newline.
2502         * doc/memory-allocation-with-libmemkind.rst:
2503         Add trailing newline.
2504         * doc/nvptx.rst:
2505         Add trailing newline.
2506         * doc/offload-target-specifics.rst:
2507         Add trailing newline.
2508         * doc/openacc-environment-variables.rst:
2509         Add trailing newline.
2510         * doc/openacc-environment-variables/accdevicenum.rst:
2511         Add trailing newline.
2512         * doc/openacc-environment-variables/accdevicetype.rst:
2513         Add trailing newline.
2514         * doc/openacc-environment-variables/accproflib.rst:
2515         Add trailing newline.
2516         * doc/openacc-environment-variables/gccaccnotify.rst:
2517         Add trailing newline.
2518         * doc/openacc-introduction.rst:
2519         Add trailing newline.
2520         * doc/openacc-library-and-environment-variables.rst:
2521         Add trailing newline.
2522         * doc/openacc-library-interoperability.rst:
2523         Add trailing newline.
2524         * doc/openacc-profiling-interface.rst:
2525         Add trailing newline.
2526         * doc/openacc-runtime-library-routines.rst:
2527         Add trailing newline.
2528         * doc/openacc-runtime-library-routines/accasynctest.rst:
2529         Add trailing newline.
2530         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2531         Add trailing newline.
2532         * doc/openacc-runtime-library-routines/accattach.rst:
2533         Add trailing newline.
2534         * doc/openacc-runtime-library-routines/acccopyin.rst:
2535         Add trailing newline.
2536         * doc/openacc-runtime-library-routines/acccopyout.rst:
2537         Add trailing newline.
2538         * doc/openacc-runtime-library-routines/acccreate.rst:
2539         Add trailing newline.
2540         * doc/openacc-runtime-library-routines/accdelete.rst:
2541         Add trailing newline.
2542         * doc/openacc-runtime-library-routines/accdetach.rst:
2543         Add trailing newline.
2544         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2545         Add trailing newline.
2546         * doc/openacc-runtime-library-routines/accfree.rst:
2547         Add trailing newline.
2548         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2549         Add trailing newline.
2550         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2551         Add trailing newline.
2552         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2553         Add trailing newline.
2554         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2555         Add trailing newline.
2556         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2557         Add trailing newline.
2558         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2559         Add trailing newline.
2560         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2561         Add trailing newline.
2562         * doc/openacc-runtime-library-routines/acchostptr.rst:
2563         Add trailing newline.
2564         * doc/openacc-runtime-library-routines/accinit.rst:
2565         Add trailing newline.
2566         * doc/openacc-runtime-library-routines/accispresent.rst:
2567         Add trailing newline.
2568         * doc/openacc-runtime-library-routines/accmalloc.rst:
2569         Add trailing newline.
2570         * doc/openacc-runtime-library-routines/accmapdata.rst:
2571         Add trailing newline.
2572         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2573         Add trailing newline.
2574         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2575         Add trailing newline.
2576         * doc/openacc-runtime-library-routines/accondevice.rst:
2577         Add trailing newline.
2578         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2579         Add trailing newline.
2580         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2581         Add trailing newline.
2582         * doc/openacc-runtime-library-routines/accproflookup.rst:
2583         Add trailing newline.
2584         * doc/openacc-runtime-library-routines/accprofregister.rst:
2585         Add trailing newline.
2586         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2587         Add trailing newline.
2588         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2589         Add trailing newline.
2590         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2591         Add trailing newline.
2592         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2593         Add trailing newline.
2594         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2595         Add trailing newline.
2596         * doc/openacc-runtime-library-routines/accshutdown.rst:
2597         Add trailing newline.
2598         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2599         Add trailing newline.
2600         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2601         Add trailing newline.
2602         * doc/openacc-runtime-library-routines/accupdateself.rst:
2603         Add trailing newline.
2604         * doc/openacc-runtime-library-routines/accwait.rst:
2605         Add trailing newline.
2606         * doc/openacc-runtime-library-routines/accwaitall.rst:
2607         Add trailing newline.
2608         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2609         Add trailing newline.
2610         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2611         Add trailing newline.
2612         * doc/openmp-context-selectors.rst:
2613         Add trailing newline.
2614         * doc/openmp-environment-variables.rst:
2615         Add trailing newline.
2616         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2617         Add trailing newline.
2618         * doc/openmp-environment-variables/gompdebug.rst:
2619         Add trailing newline.
2620         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2621         Add trailing newline.
2622         * doc/openmp-environment-variables/gompspincount.rst:
2623         Add trailing newline.
2624         * doc/openmp-environment-variables/gompstacksize.rst:
2625         Add trailing newline.
2626         * doc/openmp-environment-variables/ompcancellation.rst:
2627         Add trailing newline.
2628         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2629         Add trailing newline.
2630         * doc/openmp-environment-variables/ompdisplayenv.rst:
2631         Add trailing newline.
2632         * doc/openmp-environment-variables/ompdynamic.rst:
2633         Add trailing newline.
2634         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2635         Add trailing newline.
2636         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2637         Add trailing newline.
2638         * doc/openmp-environment-variables/ompnested.rst:
2639         Add trailing newline.
2640         * doc/openmp-environment-variables/ompnumteams.rst:
2641         Add trailing newline.
2642         * doc/openmp-environment-variables/ompnumthreads.rst:
2643         Add trailing newline.
2644         * doc/openmp-environment-variables/ompplaces.rst:
2645         Add trailing newline.
2646         * doc/openmp-environment-variables/ompprocbind.rst:
2647         Add trailing newline.
2648         * doc/openmp-environment-variables/ompschedule.rst:
2649         Add trailing newline.
2650         * doc/openmp-environment-variables/ompstacksize.rst:
2651         Add trailing newline.
2652         * doc/openmp-environment-variables/omptargetoffload.rst:
2653         Add trailing newline.
2654         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2655         Add trailing newline.
2656         * doc/openmp-environment-variables/ompthreadlimit.rst:
2657         Add trailing newline.
2658         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2659         Add trailing newline.
2660         * doc/openmp-implementation-specifics.rst:
2661         Add trailing newline.
2662         * doc/openmp-implementation-status.rst:
2663         Add trailing newline.
2664         * doc/openmp-implementation-status/openmp-45.rst:
2665         Add trailing newline.
2666         * doc/openmp-implementation-status/openmp-50.rst:
2667         Add trailing newline.
2668         * doc/openmp-implementation-status/openmp-51.rst:
2669         Add trailing newline.
2670         * doc/openmp-implementation-status/openmp-52.rst:
2671         Add trailing newline.
2672         * doc/openmp-runtime-library-routines.rst:
2673         Add trailing newline.
2674         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2675         Add trailing newline.
2676         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2677         Add trailing newline.
2678         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2679         Add trailing newline.
2680         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2681         Add trailing newline.
2682         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2683         Add trailing newline.
2684         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2685         Add trailing newline.
2686         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2687         Add trailing newline.
2688         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2689         Add trailing newline.
2690         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2691         Add trailing newline.
2692         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2693         Add trailing newline.
2694         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2695         Add trailing newline.
2696         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2697         Add trailing newline.
2698         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2699         Add trailing newline.
2700         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2701         Add trailing newline.
2702         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2703         Add trailing newline.
2704         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2705         Add trailing newline.
2706         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2707         Add trailing newline.
2708         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2709         Add trailing newline.
2710         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2711         Add trailing newline.
2712         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2713         Add trailing newline.
2714         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2715         Add trailing newline.
2716         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2717         Add trailing newline.
2718         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2719         Add trailing newline.
2720         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2721         Add trailing newline.
2722         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2723         Add trailing newline.
2724         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2725         Add trailing newline.
2726         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2727         Add trailing newline.
2728         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2729         Add trailing newline.
2730         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2731         Add trailing newline.
2732         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2733         Add trailing newline.
2734         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2735         Add trailing newline.
2736         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2737         Add trailing newline.
2738         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2739         Add trailing newline.
2740         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2741         Add trailing newline.
2742         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2743         Add trailing newline.
2744         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2745         Add trailing newline.
2746         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2747         Add trailing newline.
2748         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2749         Add trailing newline.
2750         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2751         Add trailing newline.
2752         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2753         Add trailing newline.
2754         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2755         Add trailing newline.
2756         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2757         Add trailing newline.
2758         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2759         Add trailing newline.
2760         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2761         Add trailing newline.
2762         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2763         Add trailing newline.
2764         * doc/openmp-runtime-library-routines/omptestlock.rst:
2765         Add trailing newline.
2766         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2767         Add trailing newline.
2768         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2769         Add trailing newline.
2770         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2771         Add trailing newline.
2772         * doc/reporting-bugs.rst:
2773         Add trailing newline.
2774         * doc/the-libgomp-abi.rst:
2775         Add trailing newline.
2776         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2777         Add trailing newline.
2778         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2779         Add trailing newline.
2780         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2781         Add trailing newline.
2782         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2783         Add trailing newline.
2784         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2785         Add trailing newline.
2786         * doc/the-libgomp-abi/implementing-for-construct.rst:
2787         Add trailing newline.
2788         * doc/the-libgomp-abi/implementing-master-construct.rst:
2789         Add trailing newline.
2790         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2791         Add trailing newline.
2792         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2793         Add trailing newline.
2794         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2795         Add trailing newline.
2796         * doc/the-libgomp-abi/implementing-private-clause.rst:
2797         Add trailing newline.
2798         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2799         Add trailing newline.
2800         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2801         Add trailing newline.
2802         * doc/the-libgomp-abi/implementing-single-construct.rst:
2803         Add trailing newline.
2804         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2805         Add trailing newline.
2807 2022-11-09  Martin Liska  <mliska@suse.cz>
2809         * Makefile.in: Build info pages conditionally.
2811 2022-11-09  Martin Liska  <mliska@suse.cz>
2813         * Makefile.in: Support --with-sphinx-build.
2814         * configure.ac: Likewise..
2815         * configure: Regenerate.
2817 2022-11-09  Martin Liska  <mliska@suse.cz>
2819         * libgomp.texi: Removed.
2821 2022-11-09  Martin Liska  <mliska@suse.cz>
2823         * Makefile.in: Support Sphinx based documentation.
2825 2022-11-09  Martin Liska  <mliska@suse.cz>
2827         * doc/amd-radeon-gcn.rst: New file.
2828         * doc/conf.py: New file.
2829         * doc/copyright.rst: New file.
2830         * doc/cuda-streams-usage.rst: New file.
2831         * doc/enabling-openacc.rst: New file.
2832         * doc/enabling-openmp.rst: New file.
2833         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2834         * doc/first-invocation-openacc-library-api.rst: New file.
2835         * doc/funding.rst: New file.
2836         * doc/general-public-license-3.rst: New file.
2837         * doc/gnu-free-documentation-license.rst: New file.
2838         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2839         * doc/index.rst: New file.
2840         * doc/indices-and-tables.rst: New file.
2841         * doc/introduction.rst: New file.
2842         * doc/memory-allocation-with-libmemkind.rst: New file.
2843         * doc/nvptx.rst: New file.
2844         * doc/offload-target-specifics.rst: New file.
2845         * doc/openacc-environment-variables.rst: New file.
2846         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2847         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2848         * doc/openacc-environment-variables/accproflib.rst: New file.
2849         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2850         * doc/openacc-introduction.rst: New file.
2851         * doc/openacc-library-and-environment-variables.rst: New file.
2852         * doc/openacc-library-interoperability.rst: New file.
2853         * doc/openacc-profiling-interface.rst: New file.
2854         * doc/openacc-runtime-library-routines.rst: New file.
2855         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2856         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2857         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2858         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2859         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2860         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2861         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2862         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2863         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2864         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2865         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2866         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2867         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2868         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2869         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2870         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2871         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2872         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2873         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2874         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2875         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2876         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2877         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2878         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2879         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2880         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2881         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2882         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2883         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2884         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2885         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2886         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2887         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2888         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2889         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2890         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2891         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2892         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2893         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2894         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2895         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2896         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2897         * doc/openmp-context-selectors.rst: New file.
2898         * doc/openmp-environment-variables.rst: New file.
2899         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2900         * doc/openmp-environment-variables/gompdebug.rst: New file.
2901         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2902         * doc/openmp-environment-variables/gompspincount.rst: New file.
2903         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2904         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2905         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2906         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2907         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2908         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2909         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2910         * doc/openmp-environment-variables/ompnested.rst: New file.
2911         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2912         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2913         * doc/openmp-environment-variables/ompplaces.rst: New file.
2914         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2915         * doc/openmp-environment-variables/ompschedule.rst: New file.
2916         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2917         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2918         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2919         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2920         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2921         * doc/openmp-implementation-specifics.rst: New file.
2922         * doc/openmp-implementation-status.rst: New file.
2923         * doc/openmp-implementation-status/openmp-45.rst: New file.
2924         * doc/openmp-implementation-status/openmp-50.rst: New file.
2925         * doc/openmp-implementation-status/openmp-51.rst: New file.
2926         * doc/openmp-implementation-status/openmp-52.rst: New file.
2927         * doc/openmp-runtime-library-routines.rst: New file.
2928         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2929         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2930         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2931         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2932         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2933         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2934         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2935         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2936         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2937         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2938         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2939         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2940         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2941         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2942         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2943         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2944         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2945         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2946         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2947         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2948         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2949         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2950         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2951         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2952         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2953         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2954         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2955         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2956         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2957         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2958         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2959         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2960         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2961         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2962         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2963         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2964         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2965         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2966         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2967         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2968         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2969         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2970         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2971         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2972         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2973         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2974         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2975         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2976         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2977         * doc/reporting-bugs.rst: New file.
2978         * doc/the-libgomp-abi.rst: New file.
2979         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2980         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2981         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2982         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2983         New file.
2984         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2985         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2986         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2987         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2988         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2989         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2990         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2991         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2992         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2993         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2994         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2996 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2998         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2999         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
3000         documentation.
3001         * plugin/configfrag.ac <enable_offload_targets>
3002         [*-intelmic-* | *-intelmicemul-*]: Remove.
3003         * configure: Regenerate.
3004         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
3005         handling.
3006         (offload_target_to_openacc_device_type)
3007         [$offload_target = *-intelmic*]: Remove.
3008         (check_effective_target_offload_device_intel_mic)
3009         (check_effective_target_offload_device_any_intel_mic): Remove.
3010         * testsuite/libgomp.c-c++-common/on_device_arch.h
3011         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
3012         (any_device_arch_intel_mic): Remove.
3013         * testsuite/libgomp.c-c++-common/target-45.c: Remove
3014         'offload_device_any_intel_mic' XFAIL.
3015         * testsuite/libgomp.fortran/target10.f90: Likewise.
3017 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
3019         * testsuite/libgomp.fortran/target-11.f90: New test.
3020         * testsuite/libgomp.fortran/target-13.f90: New test.
3022 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3024         PR libgomp/106643
3025         PR fortran/96668
3026         * oacc-mem.c (goacc_enter_data_internal): Support
3027         OpenACC 'declare create' with Fortran allocatable arrays, part II.
3028         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3029         Adjust.
3030         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
3032 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3034         PR libgomp/106643
3035         * oacc-mem.c (goacc_enter_data_internal): Support
3036         OpenACC 'declare create' with Fortran allocatable arrays, part I.
3037         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
3038         New.
3039         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3040         New.
3042 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3044         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
3045         New.
3047 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
3049         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
3050         New.
3052 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
3053             Thomas Schwinge  <thomas@codesourcery.com>
3055         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
3057 2022-10-28  Julian Brown  <julian@codesourcery.com>
3058             Thomas Schwinge  <thomas@codesourcery.com>
3060         PR middle-end/90115
3061         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
3062         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3063         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3064         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3065         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3067 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
3069         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
3070         'ptx_dev->rev_data'.
3072 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
3074         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
3075         'static' for this variable.
3076         * config/nvptx/libgomp-nvptx.h: New file.
3077         * config/nvptx/target.c: Include it.
3078         (GOMP_ADDITIONAL_ICVS): Declare extern var.
3079         (GOMP_REV_OFFLOAD_VAR): Declare var.
3080         (GOMP_target_ext): Handle reverse offload.
3081         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
3082         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
3083         * target.c (gomp_target_rev): ... this new stub function.
3084         * libgomp.h (gomp_target_rev): Declare.
3085         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
3086         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
3087         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
3088         (struct ptx_device): Add rev_data member.
3089         (nvptx_open_device): Remove async_engines query, last used in
3090         r10-304-g1f4c5b9b; add unified-address assert check.
3091         (GOMP_OFFLOAD_get_num_devices): Claim unified address
3092         support.
3093         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
3094         offload functions exist. Make offload var available
3095         on host and device.
3096         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
3097         (GOMP_OFFLOAD_run): Handle reverse offload.
3099 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
3101         PR tree-optimization/107195
3102         PR target/107344
3103         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3104         regions checking.
3106 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
3108         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3109         New.
3110         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3111         on_device_arch_gcn): New.
3112         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3113         requires-4.c but using heap-allocated memory.
3115 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
3117         PR target/105421
3118         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3120 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
3122         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3123         '-foffload-options' syntax.
3125 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
3127         * testsuite/libgomp.fortran/task-7.f90: New test.
3128         * testsuite/libgomp.fortran/task-8.f90: New test.
3129         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3130         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3131         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3132         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3133         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3135 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3137         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3138         in deprecation bullet.
3140 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3142         * omp.h.in (omp_in_explicit_task): Declare.
3143         * omp_lib.h.in (omp_in_explicit_task): Likewise.
3144         * omp_lib.f90.in (omp_in_explicit_task): New interface.
3145         * libgomp.map (OMP_5.2): New symbol version, export
3146         omp_in_explicit_task and omp_in_explicit_task_.
3147         * task.c (omp_in_explicit_task): New function.
3148         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3149         (omp_in_explicit_task_): New function.
3150         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3151         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3152         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3153         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3155 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
3157         * task.c (gomp_create_artificial_team): Fix up handling of invocations
3158         from within explicit task.
3159         * target.c (GOMP_target_ext): Likewise.
3160         * testsuite/libgomp.c/task-7.c: New test.
3161         * testsuite/libgomp.c/task-8.c: New test.
3162         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3163         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3165 2022-10-12  Martin Liska  <mliska@suse.cz>
3167         * configure: Regenerate.
3169 2022-10-11  Olivier Hainque  <hainque@adacore.com>
3170             Olivier Hainque  <hainque@adacore.com>
3172         * configure: Regenerate.
3174 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
3176         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3178 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
3180         * libgomp.texi (Support begin/end declare target syntax in C/C++):
3181         Mark as implemented.
3183 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
3185         PR fortran/105318
3186         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3188 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
3190         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3191         for C/C++. Remove duplicated 'begin declare target' entry.
3193 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
3195         PR c/106981
3196         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3198 2022-09-14  Julian Brown  <julian@codesourcery.com>
3200         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3201         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3202         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3203         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3204         test to here, make "run" test.
3206 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
3208         PR libgomp/106906
3209         * env.c (get_icv_member_addr): Cast false to void * before assigning
3210         it to icv_addr[1], and comment the whole assignment out.
3212 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
3214         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3215         (nvptx): ... here.
3217 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3219         * libgomp.texi (Offload-Target Specifics: nvptx): Document
3220         that reverse offload requires >= -march=sm_35.
3221         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3222         with -misa=sm_35.
3223         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3224         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3225         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3226         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3227         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3229 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3231         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3232         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3234 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
3236         PR libgomp/106894
3237         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3238         (main): Avoid tests for which corresponding non-_ALL suffixed variable
3239         is in the environment, or for OMP_NUM_TEAMS on the device
3240         OMP_NUM_TEAMS_DEV_?.
3242 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
3244         * env.c (initialize_env): Include libiberty environ.h.
3246 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3248         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3249         function address table '$offload_func_table' if rev_fn_table
3250         is not NULL.
3252 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3254         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3255         .offload_func_table to populate rev_fn_table when requested.
3257 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3259         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3260         'uint64_t **rev_fn_table' argument.
3261         * oacc-host.c (host_load_image): Likewise.
3262         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3263         currently unused.
3264         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3265         * target.c (gomp_load_image_to_device): Update call but pass
3266         NULL for now.
3268 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
3270         PR libgomp/106894
3271         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3272         char * for dest[1] initialization from params[1].  Formatting fixes.
3274 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3276         PR fortran/106670
3277         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3279 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3281         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3282         section; move OpenMP Context Selectors from ...
3283         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3284         'nvptx' sections.
3286 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
3288         * config/gcn/icv-device.c (omp_get_default_device): Return device-
3289         specific ICV.
3290         (omp_get_max_teams): Added for GCN devices.
3291         (omp_set_num_teams): Likewise.
3292         (ialias): Likewise.
3293         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3294         specific ICV.
3295         (omp_get_max_teams): Added for NVPTX devices.
3296         (omp_set_num_teams): Likewise.
3297         (ialias): Likewise.
3298         * env.c (struct gomp_icv_list): New struct to store entries of initial
3299         ICV values.
3300         (struct gomp_offload_icv_list): New struct to store entries of device-
3301         specific ICV values that are copied to the device and back.
3302         (struct gomp_default_icv_values): New struct to store default values of
3303         ICVs according to the OpenMP standard.
3304         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3305         (print_env_var_error): Function that prints an error for invalid values
3306         for ICVs.
3307         (parse_unsigned_long_1): Removed getenv.  Generalized.
3308         (parse_unsigned_long): Likewise.
3309         (parse_int_1): Likewise.
3310         (parse_int): Likewise.
3311         (parse_int_secure): Likewise.
3312         (parse_unsigned_long_list): Likewise.
3313         (parse_target_offload): Likewise.
3314         (parse_bind_var): Likewise.
3315         (parse_stacksize): Likewise.
3316         (parse_boolean): Likewise.
3317         (parse_wait_policy): Likewise.
3318         (parse_allocator): Likewise.
3319         (omp_display_env): Extended to output different variants of environment
3320         variables.
3321         (print_schedule): New helper function for omp_display_env which prints
3322         the values of run_sched_var.
3323         (print_proc_bind): New helper function for omp_display_env which prints
3324         the values of proc_bind_var.
3325         (enum gomp_parse_type): Collection of types used for parsing environment
3326         variables.
3327         (ENTRY): Preprocess string lengths of environment variables.
3328         (OMP_VAR_CNT): Preprocess table size.
3329         (OMP_HOST_VAR_CNT): Likewise.
3330         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3331         number.
3332         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3333         (gomp_set_icv_flag): Sets a flag for a particular ICV.
3334         (print_device_specific_icvs): New helper function for omp_display_env to
3335         print device specific ICV values.
3336         (get_device_num): New helper function for parse_device_specific.
3337         Extracts the device number from an environment variable name.
3338         (get_icv_member_addr): Gets the memory address for a particular member
3339         of an ICV struct.
3340         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3341         (initialize_icvs): New function to initialize a gomp_initial_icvs
3342         struct.
3343         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3344         (startswith): Checks if a string starts with a given prefix.
3345         (initialize_env): Extended to parse the new syntax of environment
3346         variables.
3347         * icv-device.c (omp_get_max_teams): Added.
3348         (ialias): Likewise.
3349         (omp_set_num_teams): Likewise.
3350         * icv.c (omp_set_num_teams): Moved to icv-device.c.
3351         (omp_get_max_teams): Likewise.
3352         (ialias): Likewise.
3353         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3354         (GOMP_ADDITIONAL_ICVS): New target-side struct that
3355         holds the designated ICVs of the target device.
3356         * libgomp.h (enum gomp_icvs): Collection of ICVs.
3357         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3358         no suffix.
3359         (enum gomp_env_suffix): Collection of possible suffixes of environment
3360         variables.
3361         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3362         initial values.
3363         (struct gomp_default_icv):New struct to hold ICVs for which we need
3364         to store initial values.
3365         (struct gomp_icv_list): Definition of a linked list that is used for
3366         storing ICVs for the devices and also for _DEV, _ALL, and without
3367         suffix.
3368         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3369         a device.
3370         (struct gomp_offload_icv_list): Definition of a linked list that holds
3371         device-specific ICVs that are copied to devices.
3372         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3373         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3374         * libgomp.texi: Updated.
3375         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3376         further ICVs from the offload image.
3377         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3378         * target.c (gomp_get_offload_icv_item): Get a list item of
3379         gomp_offload_icv_list.
3380         (get_gomp_offload_icvs): New. Returns the ICV values
3381         depending on the device num and the variable hierarchy.
3382         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3383         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3384         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3385         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3386         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3387         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3388         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3390 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
3392         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3393         fully supported.
3394         * testsuite/libgomp.c/doacross-4.c: New test.
3395         * testsuite/libgomp.c/doacross-5.c: New test.
3396         * testsuite/libgomp.c/doacross-6.c: New test.
3397         * testsuite/libgomp.c/doacross-7.c: New test.
3399 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
3401         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3403 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
3405         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3406         refer to 'requires'.
3407         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3408         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3409         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3410         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3412 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3414         PR middle-end/106548
3415         * testsuite/libgomp.c/linear-2.c: New test.
3417 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3419         * splay-tree.h: Fix splay_* macro unsetting if
3420         splay_tree_prefix is defined.
3422 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
3424         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3426 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
3428         PR middle-end/106449
3429         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3431 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
3433         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3435 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
3437         PR middle-end/101551
3438         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3439         'offloading_enabled' diagnostics issue.
3441 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
3443         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3444         '_Pragma' diagnostics verification.
3446 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
3448         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3449         improved warning locations.
3450         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3452 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3454         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3455         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3456         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3457         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3458         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3460 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3462         * target.c (GOMP_offload_register, GOMP_offload_unregister):
3463         Denote as legacy entry points.
3464         * testsuite/lib/libgomp.exp
3465         (check_effective_target_offload_target_any): New proc.
3466         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3467         'offload_target_any'.
3468         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3469         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3470         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3472 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3474         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3475         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3477 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3479         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3481 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
3483         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3484         'data'.
3485         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
3487 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3488             Jakub Jelinek  <jakub@redhat.com>
3490         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3492 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3493             Chung-Lin Tang  <cltang@codesourcery.com>
3494             Thomas Schwinge  <thomas@codesourcery.com>
3496         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3497         omp_requires_mask arg.
3498         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3499         return -1 when device available but omp_requires_mask != 0.
3500         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3501         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3502         Update call.
3503         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3504         goacc_attach_host_thread_to_device, acc_get_num_devices,
3505         acc_set_device_num, get_property_any): Likewise.
3506         * target.c (omp_requires_mask): New global var.
3507         (gomp_requires_to_name): New.
3508         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3509         (gomp_target_init): Handle omp_requires_mask.
3510         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3511         (OpenMP 5.1): Add a missed item.
3512         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3513         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3514         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3515         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3516         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3517         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3518         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3519         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3520         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3521         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3522         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3523         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3524         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3525         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3526         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3527         * testsuite/libgomp.fortran/requires-1.f90: New test.
3529 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
3531         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3532         with fromto as implemented.
3534 2022-06-28  Martin Liska  <mliska@suse.cz>
3536         * acinclude.m4: Fix typo in mold linker detection.
3537         * Makefile.in: Regenerate.
3538         * configure: Regenerate.
3540 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
3541             Paul Iannetta  <piannetta@kalrayinc.com>
3543         PR libgomp/106045
3544         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3546 2022-06-17  Martin Liska  <mliska@suse.cz>
3548         * libgomp.texi: Add table header for new features of
3549         OpenMP 5.2.
3551 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
3553         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3554         q to ddress of an automatic variable.  Use -5 instead of -1 in
3555         omp_get_mapped_ptr call.  Add test with omp_initial_device.
3556         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3557         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
3558         Renumber stop arguments afterwards.
3560 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
3562         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3563         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3564         parameters.
3565         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3566         * target.c (resolve_device): Add remapped argument, handle
3567         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3568         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3569         if remapped, otherwise treat omp_initial_device that way.  For
3570         omp_invalid_device, always emit gomp_fatal, even when
3571         OMP_TARGET_OFFLOAD isn't mandatory.
3572         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3573         GOMP_target_update, GOMP_target_update_ext,
3574         GOMP_target_enter_exit_data): Pass true as remapped argument to
3575         resolve_device.
3576         (omp_target_alloc, omp_target_free, omp_target_is_present,
3577         omp_target_memcpy_check, omp_target_associate_ptr,
3578         omp_target_disassociate_ptr, omp_get_mapped_ptr,
3579         omp_target_is_accessible): Pass false as remapped argument to
3580         resolve_device.  Treat omp_initial_device the same as
3581         gomp_get_num_devices ().  Don't bypass resolve_device calls if
3582         device_num is negative.
3583         (omp_pause_resource): Treat omp_initial_device the same as
3584         gomp_get_num_devices ().  Call resolve_device.
3585         * icv-device.c (omp_set_default_device): Always set to device_num
3586         even when it is negative.
3587         * libgomp.texi: Document that Conforming device numbers,
3588         omp_initial_device and omp_invalid_device is implemented.
3589         * testsuite/libgomp.c/target-41.c (main): Add test with
3590         omp_initial_device.
3591         * testsuite/libgomp.c/target-45.c: New test.
3592         * testsuite/libgomp.c/target-46.c: New test.
3593         * testsuite/libgomp.c/target-47.c: New test.
3594         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3595         test with omp_initial_device.  Use -5 instead of -1 for negative value
3596         test.
3597         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3598         Likewise.  Reorder stop numbers.
3600 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
3602         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3603         rather than "libmemkind.so".
3605 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3607         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3608         * plugin/configfrag.ac (--with-cuda-driver)
3609         (--with-cuda-driver-include, --with-cuda-driver-lib)
3610         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3611         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3612         Remove.
3613         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3614         (cuda_driver_lib): Remove.
3615         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3616         * Makefile.in: Regenerate.
3617         * configure: Likewise.
3618         * testsuite/Makefile.in: Likewise.
3620 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3622         * config/linux/allocator.c: Fix up #include directive.
3624 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3626         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3627         (enum gomp_memkind_kind): New type.
3628         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3629         is defined.
3630         (struct gomp_memkind_data): New type.
3631         (memkind_data, memkind_data_once): New variables.
3632         (gomp_init_memkind, gomp_get_memkind): New functions.
3633         (omp_init_allocator): Initialize data.memkind, don't fail for
3634         omp_high_bw_mem_space if libmemkind supports it.
3635         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3636         memkind support of LIBGOMP_USE_MEMKIND is defined.
3637         * config/linux/allocator.c: New file.
3639 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
3641         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3642         * testsuite/libgomp.fortran/scope-2.f90: New test.
3644 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
3646         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3648 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
3650         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3651         scope construct with allocate clause.
3652         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3653         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3655 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
3657         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3658         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3659         explicit 'to' and 'enter' clause.
3660         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3662 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
3664         PR libgomp/105745
3665         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3666         defined(HAVE__ALIGNED_MALLOC) case.
3667         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3668         handling as last option before fallback instead of first.
3669         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3670         _aligned_free.
3672 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
3674         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3675         clauses to enter.
3676         * testsuite/libgomp.c/target-41.c: Likewise.
3678 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
3680         * libgomp.texi (Other new OpenMP 5.1 features): Add
3681         'begin declare target'.
3682         (Other new OpenMP 5.2 features): New.
3684 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
3686         * task.c (gomp_task_run_post_handle_dependers): If empty_task
3687         is the last task taskwait depend depends on, wake it up.
3688         Similarly if it is the last child of a taskgroup, use atomic
3689         store instead of decrement and awak taskgroup wait if any.
3690         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3692 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
3694         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3695         EF_AMDGPU_MACH_AMDGCN_GFX90a.
3696         (gcn_gfx90a_s): New.
3697         (isa_hsa_name): Support gfx90a.
3698         (isa_code): Likewise.
3700 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
3702         PR c/105378
3703         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3704         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3706 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3708         PR c/105378
3709         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3710         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3711         * task.c (empty_task): New function.
3712         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3713         (gomp_task_run_post_handle_depend): Declare.
3714         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3715         for.
3716         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3717         (GOMP_taskwait_depend_nowait): New function.
3718         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3720 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3722         PR fortran/104949
3723         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3724         Support attach for GOMP_MAP_FIRSTPRIVATE.
3725         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3726         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3727         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3729 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3731         * libgomp.map: Added omp_target_memcpy_async and
3732         omp_target_memcpy_rect_async.
3733         * libgomp.texi: Both functions are now supported.
3734         * omp.h.in: Added omp_target_memcpy_async and
3735         omp_target_memcpy_rect_async.
3736         * omp_lib.f90.in: Added interfaces for both new functions.
3737         * omp_lib.h.in: Likewise.
3738         * target.c (ialias_redirect): Added for GOMP_task.
3739         (omp_target_memcpy): Restructured into check and copy part.
3740         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3741         omp_target_memcpy_async that checks requirements.
3742         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3743         omp_target_memcpy_async that performs the memcpy.
3744         (omp_target_memcpy_async_helper): New helper function that is used in
3745         omp_target_memcpy_async for the asynchronous task.
3746         (omp_target_memcpy_async): Added.
3747         (omp_target_memcpy_rect): Restructured into check and copy part.
3748         (omp_target_memcpy_rect_check): New helper function for
3749         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3750         requirements.
3751         (omp_target_memcpy_rect_copy): New helper function for
3752         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3753         the memcpy.
3754         (omp_target_memcpy_rect_async_helper): New helper function that is used
3755         in omp_target_memcpy_rect_async for the asynchronous task.
3756         (omp_target_memcpy_rect_async): Added.
3757         * task.c (ialias): Added for GOMP_task.
3758         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3759         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3760         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3761         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3762         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3763         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3764         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3765         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3767 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3769         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3770         (OpenMP Context Selectors): Add missing comma.
3771         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3772         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3773         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3774         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3776 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3778         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3779         comment for omp_display_env feature.
3781 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3783         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3784         to document OpenMP context selectors.
3786 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3788         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3789         from bool to unsigned char.
3790         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3791         Ignore dependencies where
3792         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3793         rather than just task->depend[i].is_in && ent->is_in.  Remember
3794         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3795         conditional.
3796         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3797         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3798         rather than just elem.is_in && ent->is_in.
3799         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3800         inoutset depend-kind.
3801         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3802         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3803         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3805 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3807         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3809 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3811         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3812         * testsuite/libgomp.fortran/depend-5.f90: New test.
3813         * testsuite/libgomp.fortran/depend-6.f90: New test.
3814         * testsuite/libgomp.fortran/depend-7.f90: New test.
3816 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3818         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3819         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3820         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3822 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3824         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3826 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3828         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3830 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3832         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3833         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3834         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3835         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3836         * Makefile.in: Regenerate.
3838 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3840         * Makefile.am (libgomp_la_LIBADD): Initialize.
3841         * plugin/configfrag.ac (DL_LIBS): New.
3842         (PLUGIN_GCN_LIBS): Remove.
3843         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3844         * plugin/Makefrag.am (libgomp_la_LIBADD)
3845         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3846         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3847         * Makefile.in: Regenerate.
3848         * config.h.in: Likewise.
3849         * configure: Likewise.
3850         * testsuite/Makefile.in: Likewise.
3852 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3854         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3855         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3856         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3857         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3858         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3859         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3860         * Makefile.in: Regenerate.
3861         * config.h.in: Likewise.
3862         * configure: Likewise.
3864 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3866         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3867         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3868         * Makefile.in: Regenerate.
3869         * config.h.in: Likewise.
3870         * configure: Likewise.
3871         * testsuite/Makefile.in: Likewise.
3873 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3875         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3876         * task.c (gomp_init_task): Initialize depend_all_memory.
3877         (gomp_task_handle_depend): Handle omp_all_memory.
3878         (gomp_task_run_post_handle_depend_hash): Clear
3879         parent->depend_all_memory if equal to current task.
3880         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3881         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3882         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3883         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3885 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3887         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3888         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3889         * Makefile.in: Regenerate.
3890         * configure: Likewise.
3891         * testsuite/Makefile.in: Likewise.
3893 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3895         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3896         consider 'PLUGIN_GCN_CPPFLAGS'.
3897         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3898         'PLUGIN_GCN_LDFLAGS'.
3899         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3900         Remove.
3901         * Makefile.in: Regenerate.
3902         * configure: Likewise.
3903         * testsuite/Makefile.in: Likewise.
3905 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3907         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3908         (HSA_RUNTIME_LDFLAGS): Remove.
3909         * configure: Regenerate.
3911 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3913         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3914         'append always_ld_library_path ":$hsa_runtime_lib"'.
3915         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3917 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3919         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3920         multi-device testing.
3922 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3924         * libgomp.map: Added omp_target_is_accessible.
3925         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3926         * omp.h.in: Added omp_target_is_accessible.
3927         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3928         * omp_lib.h.in: Likewise.
3929         * target.c (omp_target_is_accessible): Added implementation of
3930         omp_target_is_accessible.
3931         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3932         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3934 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3936         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3938 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3940         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3942 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3944         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3946 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3948         * libgomp.map: Added omp_get_mapped_ptr.
3949         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3950         * omp.h.in: Added omp_get_mapped_ptr.
3951         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3952         * omp_lib.h.in: Likewise.
3953         * target.c (omp_get_mapped_ptr): Added implementation of
3954         omp_get_mapped_ptr.
3955         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3956         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3957         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3958         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3959         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3960         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3961         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3962         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3964 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3966         PR fortran/104717
3967         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3968         privatization scanning.  For GCN offloading compilation, raise
3969         '-mgang-private-size'.
3971 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3973         PR libgomp/105358
3974         * work.c (gomp_init_work_share): Don't mask of adjustment for
3975         dynamic long long realignment if struct gomp_work_share has smaller
3976         alignof than long long.
3977         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3978         struct gomp_work_share has smaller alignof than long long or if
3979         sizeof (struct gomp_work_share) is smaller than
3980         INLINE_ORDERED_TEAM_IDS_OFF.
3981         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3982         * sections.c (GOMP_sections2_start): Likewise.
3984 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3985             Thomas Schwinge  <thomas@codesourcery.com>
3987         PR fortran/104717
3988         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3990 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3992         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3994 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3996         * plugin/cuda/cuda.h: Remove file.
3997         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3998         "cuda/cuda.h" instead of <cuda.h>.
3999         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
4000         'PLUGIN_NVPTX_CPPFLAGS'.
4001         * configure: Regenerate.
4003 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
4005         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
4007 2022-04-04  Tom de Vries  <tdevries@suse.de>
4009         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
4010         on_device_arch_nvptx instead of offload_target_nvptx.
4011         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4013 2022-04-01  Tom de Vries  <tdevries@suse.de>
4015         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
4016         and use REC_DEPTH.
4017         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4019 2022-04-01  Tom de Vries  <tdevries@suse.de>
4021         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
4022         num_workers check.
4024 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
4025             Lulu Cheng  <chenglulu@loongson.cn>
4027         * configure.tgt: Add LoongArch triplet.
4029 2022-03-28  Tom de Vries  <tdevries@suse.de>
4031         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
4032         instead of /libexec/.
4033         * configure: Regenerate.
4035 2022-03-25  Tom de Vries  <tdevries@suse.de>
4037         PR libgomp/105042
4038         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
4039         execution time.
4040         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
4041         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
4043 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
4045         PR middle-end/104285
4046         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
4047         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
4048         * testsuite/libgomp.c++/target-same-name-2.C: New test.
4049         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
4050         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
4051         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
4053 2022-03-22  Tom de Vries  <tdevries@suse.de>
4055         PR target/104916
4056         PR target/104783
4057         * testsuite/libgomp.c/pr104783-2.c: New test.
4059 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
4061         PR fortran/103039
4062         * testsuite/libgomp.fortran/associate4.f90: New test.
4064 2022-03-18  Tom de Vries  <tdevries@suse.de>
4066         PR target/104952
4067         * testsuite/libgomp.c/pr104952-1.c: New test.
4068         * testsuite/libgomp.c/pr104952-2.c: New test.
4070 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
4072         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
4073         variable next to pl variable.
4075 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
4077         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4078         Enhance.
4079         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4080         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4082 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
4084         PR middle-end/90115
4085         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
4086         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4088 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
4090         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
4091         omp_set_max_active_levels.
4092         * testsuite/libgomp.fortran/icv-8.f90: New test.
4094 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
4096         PR testsuite/102841
4097         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
4099 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
4101         * libgomp.texi: Fix typo.
4103 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4105         PR middle-end/100280
4106         PR middle-end/104892
4107         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4108         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4109         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4110         Likewise.
4111         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4112         Likewise.
4113         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4114         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4115         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4116         Likewise.
4118 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4120         PR middle-end/104892
4121         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4122         to PR104892.
4123         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4124         enable '--param=openacc-kernels=decompose' and adjust.
4125         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4126         Likewise.
4127         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4128         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4129         Likewise.
4131 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4133         PR middle-end/90115
4134         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4135         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4136         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4137         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4139 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
4141         PR middle-end/100280
4142         PR middle-end/104086
4143         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4144         Merge this...
4145         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4146         ..., and this...
4147         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4148         this, and adjust.
4149         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4150         Extend.
4152 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4154         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4155         trait.  Test last index in w and v array.  Remove redundant
4156         assignment to V(1).  Move alignment checks at the end of
4157         parallel region.
4159 2022-03-10  Tom de Vries  <tdevries@suse.de>
4161         * testsuite/libgomp.c/pr104783.c: New test.
4163 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4165         PR middle-end/90115
4166         PR middle-end/102330
4167         PR middle-end/104774
4168         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4169         Enhance.
4170         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4171         Adjust.
4172         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4173         Likewise.
4174         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4175         Likewise.
4176         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4177         Likewise.
4178         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4179         Likewise.
4180         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4181         Likewise.
4182         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4183         Likewise.
4184         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4185         Likewise.
4186         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4187         Likewise.
4188         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4189         Likewise.
4190         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4191         Likewise.
4192         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4193         Likewise.
4194         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4195         Likewise.
4196         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4197         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4198         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4200 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4202         PR middle-end/90115
4203         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4204         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4205         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4206         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4208 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4210         PR testsuite/104791
4211         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4212         expected diagnostics.
4214 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4216         PR middle-end/104784
4217         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4218         Test with '--param=openacc-kernels=decompose'.
4219         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4220         Likewise.
4221         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4222         Likewise.
4223         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4224         Likewise.
4225         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4226         Likewise.
4227         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4228         Likewise.
4229         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4230         Likewise.
4231         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4232         Likewise.
4233         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4234         Likewise.
4235         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4236         Likewise.
4237         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4238         Likewise.
4239         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4240         Likewise.
4241         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4242         Likewise.
4243         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4244         Likewise.
4245         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4246         Likewise.
4247         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4248         Likewise.
4249         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4250         Likewise.
4251         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4252         Likewise.
4253         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4254         Likewise.
4255         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4256         Likewise.
4257         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4258         Likewise.
4259         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4260         Likewise.
4261         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4262         Likewise.
4263         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4264         Likewise.
4265         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4266         Likewise.
4267         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4268         Likewise.
4269         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4270         Likewise.
4271         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4272         Likewise.
4273         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4274         Likewise.
4275         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4276         Likewise.
4277         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4278         Likewise.
4279         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4280         Likewise.
4281         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4282         Likewise.
4284 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4286         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4287         Test '-fopt-info-omp-all'.
4288         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4289         Likewise.
4290         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4291         Likewise.
4292         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4293         Likewise.
4294         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4295         Likewise.
4296         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4297         Likewise.
4298         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4299         Likewise.
4300         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4301         Likewise.
4302         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4303         Likewise.
4304         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4305         Likewise.
4306         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4307         Likewise.
4308         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4309         Likewise.
4310         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4311         Likewise.
4312         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4313         Likewise.
4314         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4315         Likewise.
4316         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4317         Likewise.
4318         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4319         Likewise.
4320         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4321         Likewise.
4322         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4323         Likewise.
4324         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4325         Likewise.
4326         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4327         Likewise.
4328         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4329         Likewise.
4330         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4331         Likewise.
4332         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4333         Likewise.
4334         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4335         Likewise.
4336         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4337         Likewise.
4338         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4339         Likewise.
4340         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4341         Likewise.
4342         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4343         Likewise.
4344         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4345         Likewise.
4346         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4347         Likewise.
4348         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4349         Likewise.
4350         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4351         Likewise.
4353 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4355         PR middle-end/100280
4356         PR middle-end/104132
4357         PR middle-end/104133
4358         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4359         Extend.
4361 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4363         PR middle-end/100280
4364         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4365         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4366         Likewise.
4368 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4370         PR middle-end/100280
4371         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4372         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4373         Likewise.
4375 2022-02-28  Tom de Vries  <tdevries@suse.de>
4377         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4378         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4379         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4380         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4381         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4382         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4384 2022-02-24  Tom de Vries  <tdevries@suse.de>
4386         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4387         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4388         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4389         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4390         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4391         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4392         * testsuite/libgomp.c/declare-variant-3.h: New header file.
4394 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
4396         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4397         gang-redundant execution.
4399 2022-02-22  Tom de Vries  <tdevries@suse.de>
4401         PR target/99555
4402         * config/nvptx/bar.c (generation_to_barrier): New function, copied
4403         from config/rtems/bar.c.
4404         (futex_wait, futex_wake): New function.
4405         (do_spin, do_wait): New function, copied from config/linux/wait.h.
4406         (gomp_barrier_wait_end, gomp_barrier_wait_last)
4407         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4408         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4409         and replace with include of config/linux/bar.c.
4410         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4411         (gomp_barrier_init): Init new fields.
4412         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4413         workarounds.
4414         * testsuite/libgomp.c/pr99555-1.c: Same.
4415         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4417 2022-02-22  Tom de Vries  <tdevries@suse.de>
4419         PR testsuite/104146
4420         * testsuite/libgomp.c++/pr96390.C: Add additional-option
4421         -foffload=-Wa,--verify for nvptx.
4422         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4424 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
4426         * testsuite/libgomp.fortran/depend-4.f90: New test.
4428 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
4430         PR c++/102204
4431         * testsuite/libgomp.c++/target-virtual-1.C: New test.
4433 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
4435         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4436         * target.c (copy_firstprivate_data): Copy only if host address is not
4437         NULL.
4438         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4439         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4440         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4441         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4442         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4443         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4444         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4445         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4446         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4447         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4449 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
4451         PR libgomp/104385
4452         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4453         clear task->parent.
4454         * testsuite/libgomp.c/pr104385.c: New test.
4456 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4458         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4459         STOP of previous commit.
4461 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4463         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4464         from is_64bit_aligned_.
4465         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4466         and use it, more implicit none, remove unused argument.
4468 2022-02-03  David Seifert  <soap@gentoo.org>
4469             Jakub Jelinek  <jakub@redhat.com>
4471         * configure.ac: Support --disable-werror.
4472         * configure: Regenerate.
4474 2022-02-01  Tom de Vries  <tdevries@suse.de>
4476         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4477         PR83812 workaround.
4478         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4479         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4481 2022-02-01  Tom de Vries  <tdevries@suse.de>
4483         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4484         num_workers for nvidia accelerator to fix libgomp error 'insufficient
4485         resources'.
4486         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4487         Same.
4488         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4490 2022-02-01  Tom de Vries  <tdevries@suse.de>
4492         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4493         recursion depth.
4494         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4496 2022-01-31  Martin Liska  <mliska@suse.cz>
4498         * acinclude.m4: Detect *_ld_is_mold and use it.
4499         * configure: Regenerate.
4501 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
4503         * libgomp.texi (OpenMP 5.0): Update implementation status.
4505 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
4507         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4508         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4509         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4510         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4511         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4512         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4513         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4514         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4515         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4516         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4517         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4518         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4519         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4520         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4521         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4523 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
4525         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4526         "static") to make the device num available in the offload image.
4528 2022-01-19  Martin Liska  <mliska@suse.cz>
4529             Thomas Schwinge  <thomas@codesourcery.com>
4531         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4532         patterns.
4533         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4534         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4535         Likewise.
4536         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4537         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4538         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4539         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4540         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4541         Likewise.
4542         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4543         Likewise.
4544         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4545         Likewise.
4546         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4547         Likewise.
4548         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4549         Likewise.
4550         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4551         Likewise.
4552         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4553         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4554         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4556 2022-01-18  Martin Liska  <mliska@suse.cz>
4558         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4559         in dg-warning.
4560         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4561         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: 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: Likewise.
4567         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4568         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4569         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4570         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4571         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4572         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4573         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4574         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4576 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
4578         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4579         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4580         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4582 2022-01-17  Julian Brown  <julian@codesourcery.com>
4583             Thomas Schwinge  <thomas@codesourcery.com>
4585         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4586         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4587         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4589 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
4590             Andrew Stubbs   <ams@codesourcery.com>
4592         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4593         the number of teams and threads if necessary.
4594         (gcn_exec): Automatically set the number of gangs and workers if
4595         necessary.
4597 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4599         * testsuite/libgomp.fortran/allocate-1.c: New test.
4600         * testsuite/libgomp.fortran/allocate-1.f90: New test.
4601         * libgomp.texi: Remove string that says that allocate clause
4602         support is for C/C++ only.
4604 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4606         * testsuite/libgomp.c-c++-common/on_device_arch.h
4607         (any_device_arch, any_device_arch_intel_mic): New.
4608         * testsuite/lib/libgomp.exp
4609         (check_effective_target_offload_device_any_intel_mic): New.
4610         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4611         * testsuite/libgomp.fortran/target10.f90: Likewise.
4613 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4615         PR tree-optimization/102192
4616         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4617         '-Wuninitialized' diagnostics.
4619 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4621         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4622         current '-Wuninitialized' diagnostics.
4623         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4624         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4625         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4626         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4627         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4628         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4629         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4630         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4631         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4632         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4633         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4634         Likewise.
4636 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4638         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4639         for 'offload_device_intel_mic'.
4641 2022-01-13  Julian Brown  <julian@codesourcery.com>
4642             Thomas Schwinge  <thomas@codesourcery.com>
4644         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4645         offloading execution XFAIL.
4647 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4649         PR middle-end/100280
4650         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4651         Update.
4652         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4653         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4654         Likewise.
4656 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4658         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4659         Enhance.
4660         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4661         Likewise.
4662         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4663         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4664         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4665         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4666         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4667         Likewise.
4668         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4669         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4670         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4671         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4673 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
4675         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4676         * testsuite/libgomp.fortran/target10.f90: Likewise.
4678 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
4680         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4681         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4682         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4684 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
4686         * libgomp.texi: Bump @copying's copyright year.
4688 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
4690         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4691         * testsuite/libgomp.fortran/atomic-19.f90: New test.
4693 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
4695         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4696         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4697         table, not individual symbols.
4699 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
4701         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4702         "target offload_device_nonshared_as"
4703         * testsuite/libgomp.c++/target-this-3.C: Likewise.
4704         * testsuite/libgomp.c++/target-this-4.C: Likewise.
4706 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4708         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4709         not overwritten during cross-host/device copying.
4710         (gomp_update): Likewise.
4711         (gomp_exit_data): Likewise.
4712         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4713         * testsuite/libgomp.c++/target-12.C: Likewise.
4714         * testsuite/libgomp.c++/target-15.C: Likewise.
4715         * testsuite/libgomp.c++/target-16.C: Likewise.
4716         * testsuite/libgomp.c++/target-17.C: Likewise.
4717         * testsuite/libgomp.c++/target-21.C: Likewise.
4718         * testsuite/libgomp.c++/target-23.C: Likewise.
4719         * testsuite/libgomp.c/target-23.c: Likewise.
4720         * testsuite/libgomp.c/target-29.c: Likewise.
4721         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4723 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4725         PR middle-end/92120
4726         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4727         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4728         (goacc_enter_data_internal): Likewise.
4729         * target.c (gomp_map_vars_existing): Update assert condition to
4730         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4731         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4732         parameter, add support for mapping a pointer with NULL target.
4733         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4734         parameter, add support for attaching a pointer with NULL target.
4735         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4736         gomp_attach_pointer, add handling for
4737         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4738         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4739         * testsuite/libgomp.c++/target-23.C: New testcase.
4740         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4741         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4742         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4743         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4744         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4745         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4746         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4748 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4750         * libgomp.texi (OpenMP 5.1): Update status.
4752 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4754         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4756 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4758         PR fortran/90030
4759         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4760         * testsuite/libgomp.fortran/pr90030.f90: New test.
4762 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4763             Thomas Schwinge  <thomas@codesourcery.com>
4765         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4766         temporary skip.
4768 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4769             Thomas Schwinge  <thomas@codesourcery.com>
4771         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4772         skip.
4774 2021-11-29  Richard Biener  <rguenther@suse.de>
4776         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4777         return.
4779 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4781         PR middle-end/103384
4782         * testsuite/libgomp.c/declare-variant-2.c: New test.
4784 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4786         * alloc.c (gomp_aligned_alloc): Fix typo.
4788 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4790         PR libgomp/102838
4791         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4792         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4793         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4794         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4795         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4796         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4797         gomp_aligned_alloc instead of team_malloc.
4799 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4801         PR libgomp/102838
4802         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4803         memalign over posix_memalign over aligned_alloc over fallback
4804         with malloc instead of aligned_alloc over _aligned_alloc over
4805         posix_memalign over memalign over fallback with malloc.  For
4806         aligned_alloc, round up size up to multiple of al.
4808 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4810         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4811         construct as implemented.
4813 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4815         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4817 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4819         * task.c (gomp_create_target_task): Copy args array as well.
4820         * target.c (gomp_target_fallback): Add args argument.
4821         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4822         (GOMP_target): Adjust gomp_target_fallback caller.
4823         (GOMP_target_ext): Likewise.
4824         (gomp_target_task_fn): Likewise.
4825         * config/nvptx/team.c (gomp_nvptx_main): Set
4826         gomp_global_icv.thread_limit_var.
4827         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4829 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4831         * config/nvptx/team.c (__gomp_team_num): Define as
4832         __attribute__((shared)) var.
4833         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4834         * config/nvptx/target.c (__gomp_team_num): Declare as
4835         extern __attribute__((shared)) var.
4836         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4837         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4838         is bigger than num_blocks, use num_teams_lower teams and arrange for
4839         bumping of __gomp_team_num if !first and returning false once we run
4840         out of teams.
4841         * config/nvptx/teams.c (__gomp_team_num): Declare as
4842         extern __attribute__((shared)) var.
4843         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4845 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4847         * testsuite/libgomp.c/teams-5.c: New test.
4849 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4851         PR target/103201
4852         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4853         to ...
4854         * config/gcn/teams.c: ... here.  New file.
4856 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4858         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4859         implicit map handling to allow a "superset" existing map as valid case.
4860         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4861         (get_implicit): New function to extract implicit status.
4862         (gomp_map_fields_existing): Adjust arguments in calls to
4863         gomp_map_vars_existing, and add uses of get_implicit.
4864         (gomp_map_vars_internal): Likewise.
4865         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4867 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4869         * libgomp_g.h (GOMP_teams4): Declare.
4870         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4871         * target.c (GOMP_teams4): New function.
4872         * config/nvptx/target.c (GOMP_teams): Remove.
4873         (GOMP_teams4): New function.
4874         * config/gcn/target.c (GOMP_teams): Remove.
4875         (GOMP_teams4): New function.
4876         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4877         teams instead of <= 2.
4878         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4880 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4882         * testsuite/libgomp.fortran/teams-1.f90: New test.
4884 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4886         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4887         * team.c (struct gomp_thread_start_data): Likewise.
4888         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4889         (gomp_team_start): Initialize start_data->num_teams and
4890         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4891         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4892         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4893         instead of gomp_num_teams and gomp_team_num.
4894         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4895         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4896         * testsuite/libgomp.c/teams-4.c: New test.
4898 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4900         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4902 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4904         * env.c (parse_gomp_openacc_dim): Restore parsing.
4906 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4908         PR middle-end/102972
4909         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4910         parallel construct.
4911         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4912         * testsuite/libgomp.c/target-3.c: Likewise.
4913         * testsuite/libgomp.c/target-5.c: Likewise.
4914         * testsuite/libgomp.c/target-6.c: Likewise.
4915         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4916         * testsuite/libgomp.c/teams-1.c: Likewise.
4917         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4918         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4919         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4920         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4921         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4922         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4923         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4925 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4927         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4928         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4930 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4932         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4933         aren't implemented for Fortran yet.
4935 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4937         * testsuite/libgomp.c/loop-26.c: New test.
4938         * testsuite/libgomp.c/loop-27.c: New test.
4940 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4942         PR testsuite/102910
4943         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4944         instead of #include <alloca.h> + alloca.
4946 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4948         * libgomp.texi (Support of strictly structured blocks in Fortran):
4949         Adjust to 'Y'.
4950         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4952 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4954         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4955         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4957 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4959         PR libgomp/102838
4960         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4961         (struct gomp_work_share): Only use aligned(64) attribute if
4962         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4963         add padding before lock to ensure lock is at offset 64 bytes
4964         into the structure.
4965         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4966         New poor man's static assertions.
4967         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4968         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4970 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4971             Richard Biener  <rguenther@suse.de>
4973         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4975 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4977         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4978         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4980 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4982         PR fortran/102086
4983         PR fortran/92189
4984         PR fortran/92621
4985         PR fortran/101308
4986         PR fortran/101309
4987         PR fortran/101635
4988         PR fortran/92482
4989         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4991 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4993         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4994         type from char [50] to const char *.
4995         (places_array): Add a testcase for simplified syntax place followed
4996         by length or length and stride.
4998 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5000         * env.c (parse_one_place): Handle non-negative-number the same
5001         as { non-negative-number }.  Reject even !number:1 and
5002         !number:1:stride or !place:1 or !place:1:stride instead of just
5003         length other than 1.
5004         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
5005         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
5006         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
5007         as implemented.
5008         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
5009         simplified syntax.
5011 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5013         * env.c (parse_schedule): For strtoul or strtoull calls which don't
5014         clearly reject return value 0 as invalid handle the case where end
5015         pointer is the same as first argument as invalid.
5016         (parse_unsigned_long_1): Likewise.
5017         (parse_one_place): Likewise.
5018         (parse_places_var): Likewise.
5019         (parse_stacksize): Likewise.
5020         (parse_spincount): Likewise.
5021         (parse_affinity): Likewise.
5022         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
5023         Make code valid C89.
5024         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
5025         For strtoul calls which don't clearly reject return value 0 as
5026         invalid handle the case where end pointer is the same as first
5027         argument as invalid.
5028         (gomp_affinity_init_level_1): Likewise.
5029         (gomp_affinity_init_numa_domains): Likewise.
5030         * config/rtems/proc.c (parse_thread_pools): Likewise.
5032 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5034         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
5035         after creating count places clean up and return immediately.
5036         * testsuite/libgomp.c/places-6.c: New test.
5037         * testsuite/libgomp.c/places-7.c: New test.
5038         * testsuite/libgomp.c/places-8.c: New test.
5039         * testsuite/libgomp.c/places-9.c: New test.
5040         * testsuite/libgomp.c/places-10.c: New test.
5042 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5044         * env.c (parse_places_var): Handle numa_domains as level 5.
5045         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
5046         function.
5047         (gomp_affinity_init_level): Use it instead of
5048         gomp_affinity_init_level_1 for level == 5.
5049         * testsuite/libgomp.c/places-5.c: New test.
5051 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
5053         * env.c (parse_places_var): Handle ll_caches as level 4.
5054         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
5055         function.
5056         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
5057         last level cache.
5058         (gomp_affinity_init_level): Likewise.
5059         * testsuite/libgomp.c/places-1.c: New test.
5060         * testsuite/libgomp.c/places-2.c: New test.
5061         * testsuite/libgomp.c/places-3.c: New test.
5062         * testsuite/libgomp.c/places-4.c: New test.
5064 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5066         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
5067         directive.
5069 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
5071         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
5073 2021-10-12  Julian Brown  <julian@codesourcery.com>
5075         * target.c (gomp_copy_host2dev): Release device lock on cbuf
5076         error path.
5078 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
5080         * testsuite/libgomp.fortran/icv-3.f90: New.
5081         * testsuite/libgomp.fortran/icv-4.f90: New.
5083 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5085         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
5086         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
5087         OMP_TEAMS_THREAD_LIMIT): Document.
5089 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5091         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
5092         to avoid makeinfo warnings.
5094 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5096         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
5097         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
5099 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5101         PR libgomp/102628
5102         PR libgomp/102668
5103         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5104         allocation sizes from 420 to 320 and from 768 to 568.
5105         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5106         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5107         for cr from 16 to 4.
5109 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
5111         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5112         * testsuite/libgomp.c/scan-12.c: Likewise.
5113         * testsuite/libgomp.c/scan-13.c: Likewise.
5114         * testsuite/libgomp.c/scan-14.c: Likewise.
5115         * testsuite/libgomp.c/scan-15.c: Likewise.
5116         * testsuite/libgomp.c/scan-16.c: Likewise.
5117         * testsuite/libgomp.c/scan-17.c: Likewise.
5118         * testsuite/libgomp.c/scan-18.c: Likewise.
5119         * testsuite/libgomp.c/scan-19.c: Likewise.
5120         * testsuite/libgomp.c/scan-20.c: Likewise.
5121         * testsuite/libgomp.c/scan-21.c: Likewise.
5122         * testsuite/libgomp.c/scan-22.c: Likewise.
5123         * testsuite/libgomp.c++/scan-9.C: Likewise.
5124         * testsuite/libgomp.c++/scan-10.C: Likewise.
5125         * testsuite/libgomp.c++/scan-11.C: Likewise.
5126         * testsuite/libgomp.c++/scan-12.C: Likewise.
5127         * testsuite/libgomp.c++/scan-13.C: Likewise.
5128         * testsuite/libgomp.c++/scan-14.C: Likewise.
5129         * testsuite/libgomp.c++/scan-15.C: Likewise.
5130         * testsuite/libgomp.c++/scan-16.C: Likewise.
5132 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
5134         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5136 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
5138         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5139         omp_atv_serialized.
5140         * omp.h.in: Add deprecated flag for omp_atv_sequential.
5141         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5142         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5143         * testsuite/libgomp.fortran/alloc-12.f90: New test.
5145 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
5147         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5148         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5149         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5150         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5151         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5152         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5153         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5154         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5155         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5156         omp_set_teams_thread_limit{,_,_8_}.
5157         * icv.c (omp_set_num_teams, omp_get_max_teams,
5158         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5159         functions.
5160         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5161         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5162         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5163         vars.
5164         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5165         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
5166         is not specified, use gomp_nteams_var.
5167         * fortran.c (omp_set_num_teams, omp_get_max_teams,
5168         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5169         ialias_redirect.
5170         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5171         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5172         omp_get_teams_thread_limit_): New functions.
5174 2021-10-09  liuhongt  <hongtao.liu@intel.com>
5176         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5177         * testsuite/libgomp.c++/scan-11.C: Ditto.
5178         * testsuite/libgomp.c++/scan-12.C: Ditto.
5179         * testsuite/libgomp.c++/scan-13.C: Ditto.
5180         * testsuite/libgomp.c++/scan-14.C: Ditto.
5181         * testsuite/libgomp.c++/scan-15.C: Ditto.
5182         * testsuite/libgomp.c++/scan-16.C: Ditto.
5183         * testsuite/libgomp.c++/scan-9.C: Ditto.
5184         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5185         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5186         * testsuite/libgomp.c/scan-11.c: Ditto.
5187         * testsuite/libgomp.c/scan-12.c: Ditto.
5188         * testsuite/libgomp.c/scan-13.c: Ditto.
5189         * testsuite/libgomp.c/scan-14.c: Ditto.
5190         * testsuite/libgomp.c/scan-15.c: Ditto.
5191         * testsuite/libgomp.c/scan-16.c: Ditto.
5192         * testsuite/libgomp.c/scan-17.c: Ditto.
5193         * testsuite/libgomp.c/scan-18.c: Ditto.
5194         * testsuite/libgomp.c/scan-19.c: Ditto.
5195         * testsuite/libgomp.c/scan-20.c: Ditto.
5196         * testsuite/libgomp.c/scan-21.c: Ditto.
5197         * testsuite/libgomp.c/scan-22.c: Ditto.
5199 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
5201         * libgomp.texi (OpenMP 5.1): Mention implemented support for
5202         structured block sequences in C/C++.  Mention support for
5203         unconstrained/reproducible modifiers on order clause.
5204         Mention partial (C/C++ only) support of extentensions to atomics
5205         construct.  Mention partial (C/C++ on clause only) support of
5206         align/allocator modifiers on allocate clause.
5208 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
5210         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5211         based on libgomp.c-c++-common/order-reproducible-1.c.
5212         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5213         * testsuite/libgomp.fortran/my-usleep.c: New test.
5215 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
5217         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5218         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5219         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5220         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5221         based on libgomp.c-c++-common/alloc-9.c.
5223 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5225         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5226         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5228 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5230         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5231         ialias_redirect.
5232         * env.c (handle_omp_display_env): Use ialias_call.
5233         * icv-device.c: Move ialias right below each function.
5234         (omp_get_device_num): Use ialias_call.
5235         * fortran.c (omp_fulfill_event): Add ialias_redirect.
5236         * icv.c (omp_get_active_level): Add ialias_redirect.
5238 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5240         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5241         __alloc_align__ (1) attribute.
5242         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5244 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5246         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5247         for -fintrinsic-modules-path= warning of the C compiler.
5248         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5249         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5251 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5253         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5254         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5255         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5256         omp_realloc): Add.
5257         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5258         omp_realloc): Add.
5259         * testsuite/libgomp.fortran/alloc-10.f90: New test.
5260         * testsuite/libgomp.fortran/alloc-6.f90: New test.
5261         * testsuite/libgomp.fortran/alloc-7.c: New test.
5262         * testsuite/libgomp.fortran/alloc-7.f90: New test.
5263         * testsuite/libgomp.fortran/alloc-8.f90: New test.
5264         * testsuite/libgomp.fortran/alloc-9.f90: New test.
5266 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
5268         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5269         omp_realloc): New prototypes.
5270         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5271         attribute.
5272         * allocator.c: Include string.h.
5273         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
5274         variable and use it instead of alignment so that when retrying the old
5275         alignment is used again.  Don't retry if new alignment is the same
5276         as old alignment, unless allocator had pool size.
5277         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5278         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5279         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5280         omp_aligned_calloc and omp_realloc.
5281         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5282         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5283         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5284         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5285         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5286         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5288 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
5290         PR libgomp/96661
5291         * configure.ac: Only check for int-type = 2*size_t support when
5292         building with Fortran support.
5293         * configure: Regenerate.
5295 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
5297         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5298         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5300 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5302         * team.c: Initialize start_data.
5303         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5304         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5306 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5308         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5309         dg-message back to dg-note.
5311 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5313         PR fortran/94070
5314         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5315         expected dg-note output.
5317 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
5319         PR fortran/55534
5320         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5321         r12-3722 by removing -Wno-missing-include-dirs.
5322         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5324 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
5326         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5327         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5329 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
5331         PR fortran/55534
5332         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5333         to ALWAYS_CFLAGS.
5334         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5336 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
5338         * testsuite/libgomp.c++/default-1.C: New test.
5339         * testsuite/libgomp.c-c++-common/default-1.c: New test.
5340         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5341         to default clause in C and C++" as implemented.
5343 2021-09-17  Julian Brown  <julian@codesourcery.com>
5345         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5347 2021-09-17  Julian Brown  <julian@codesourcery.com>
5349         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5351 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5353         * libgomp.texi (OpenMP 5.1): Spelling fix,
5354         declare variante -> declare variant.
5356 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5358         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5359         Use /* */ comments instead of //.
5360         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5361         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5362         * testsuite/libgomp.c++/atomic-16.C: New test.
5363         * testsuite/libgomp.c++/atomic-17.C: New test.
5365 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
5367         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5368         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5369         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5371 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5373         * libgomp.texi (OpenMP Implementation Status): Extend
5374         OpenMP 5.0 section.
5375         (OpenACC Profiling Interface): Fix typo.
5377 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5379         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5380         not to 4.5; link to new section.
5381         (OpenMP Implementation Status): New.
5383 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
5385         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5387 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
5389         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5390         dg-output.
5391         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5393 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5394             Jakub Jelinek  <jakub@redhat.com>
5396         * testsuite/libgomp.c/address-space-1.c: New file.
5398 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5400         * testsuite/lib/libgomp.exp
5401         (check_effective_target_offload_target_intelmic): Remove 'proc'.
5402         (check_effective_target_offload_device_intel_mic): New 'proc'.
5403         * testsuite/libgomp.c-c++-common/on_device_arch.h
5404         (device_arch_intel_mic, on_device_arch_intel_mic): New.
5405         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5406         'dg-xfail-run-if'.
5407         * testsuite/libgomp.fortran/target10.f90: Likewise.
5409 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
5411         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5412         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5413         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5414         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5416 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5418         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5419         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5420         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5422 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
5424         * config/nvptx/error.c (fwrite, exit): Override, too.
5425         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5426         of offloading testing.
5427         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5429 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
5431         * testsuite/libgomp.fortran/error-1.f90: New test.
5433 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
5435         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5436         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5437         * error.c (GOMP_warning, GOMP_error): New functions.
5438         * testsuite/libgomp.c-c++-common/error-1.c: New test.
5440 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
5442         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5443         omp_target_free. omp_target_is_present, omp_target_memcpy,
5444         omp_target_memcpy_rect, omp_target_associate_ptr,
5445         omp_target_disassociate_ptr): Add interface.
5446         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5447         omp_target_free. omp_target_is_present, omp_target_memcpy,
5448         omp_target_memcpy_rect, omp_target_associate_ptr,
5449         omp_target_disassociate_ptr): Add interface.
5450         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5451         interface block for omp_alloc + omp_free.
5452         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5453         * testsuite/libgomp.fortran/refcount-1.f90: New test.
5454         * testsuite/libgomp.fortran/target-12.f90: New test.
5456 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
5458         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5460 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
5462         * testsuite/libgomp.fortran/scope-1.f90: New test.
5463         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5465 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
5467         * Makefile.am (libgomp_la_SOURCES): Add scope.c
5468         * Makefile.in: Regenerated.
5469         * libgomp_g.h (GOMP_scope_start): Declare.
5470         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5471         * scope.c: New file.
5472         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5473         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5475 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
5477         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5478         '?:' issues.
5480 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
5482         * testsuite/libgomp.fortran/masked-1.f90: New test.
5484 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
5486         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5488 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
5490         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5492 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
5494         * env.c (parse_bind_var): Accept 'primary' as alias for
5495         'master'.
5496         (omp_display_env): Add TODO comment to
5497         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5498         * libgomp.texi: Change 'master thread' to 'primary thread'
5499         in line with OpenMP 5.1.
5500         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5501         omp_proc_bind_master is an alias of it.
5502         (OMP_PROC_BIND): Mention 'PRIMARY'.
5503         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5504         (omp_proc_bind_primary): Add.
5505         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5506         * omp_lib.f90.in (omp_proc_bind_primary): Add.
5507         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5508         * omp_lib.h.in (omp_proc_bind_primary): Add.
5509         * testsuite/libgomp.c/affinity-1.c: Check that
5510         'primary' works and is identical to 'master'.
5512 2021-08-09  Julian Brown  <julian@codesourcery.com>
5513             Kwok Cheung Yeung  <kcy@codesourcery.com>
5514             Thomas Schwinge  <thomas@codesourcery.com>
5516         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5517         16.
5518         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5519         [acc_device_radeon]: Update.
5520         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5521         [ACC_DEVICE_TYPE_radeon]: Likewise.
5522         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5523         [acc_device_radeon]: Likewise.
5524         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5525         [ACC_DEVICE_TYPE_radeon]: Likewise.
5526         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5527         'openacc_radeon_accel_selected' and '-O0'.
5528         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5530 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
5532         * icv-device.c (omp_get_device_num): New API function, host side.
5533         * fortran.c (omp_get_device_num_): New interface function.
5534         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5535         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5536         omp_get_device_num_.
5537         * libgomp.texi (omp_get_device_num): Add documentation for new API
5538         function.
5539         * omp.h.in (omp_get_device_num): Add declaration.
5540         * omp_lib.f90.in (omp_get_device_num): Likewise.
5541         * omp_lib.h.in (omp_get_device_num): Likewise.
5542         * target.c (gomp_load_image_to_device): If additional entry for device
5543         number exists at end of returned entries from 'load_image_func' hook,
5544         copy the assigned device number over to the device variable.
5545         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5546         (omp_get_device_num): New API function, device side.
5547         * plugin/plugin-gcn.c ("symcat.h"): Add include.
5548         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5549         at end of returned 'target_table' entries.
5550         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5551         (omp_get_device_num): New API function, device side.
5552         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5553         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5554         at end of returned 'target_table' entries.
5555         * testsuite/lib/libgomp.exp
5556         (check_effective_target_offload_target_intelmic): New function for
5557         testing for intelmic offloading.
5558         * testsuite/libgomp.c-c++-common/target-45.c: New test.
5559         * testsuite/libgomp.fortran/target10.f90: New test.
5561 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
5562             Ulrich Drepper  <drepper@redhat.com>
5564         * fortran.c (omp_display_env_, omp_display_env_8_): Only
5565         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5567 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
5568             Julian Brown  <julian@codesourcery.com>
5569             Kwok Cheung Yeung  <kcy@codesourcery.com>
5571         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5572         's%oaccdevlow%oaccloops%g'.
5573         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5574         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5575         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5576         Likewise.
5577         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5578         Likewise.
5579         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5580         Likewise.
5581         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5582         Likewise.
5583         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5584         Likewise.
5585         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5586         Likewise.
5587         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5588         Likewise.
5589         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5590         Likewise.
5591         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5593 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
5595         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5596         threader.
5597         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5599 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
5601         * env.c (wait_policy, stacksize): New static variables,
5602         move out of handle_omp_display_env.
5603         (omp_display_env): New function.  The meat of the old
5604         handle_omp_display_env function.
5605         (handle_omp_display_env): Change to not take parameters
5606         and instead use the global variables.  Only perform
5607         parsing, defer to omp_display_env for the implementation.
5608         (initialize_env): Remove local variables wait_policy and
5609         stacksize.  Don't pass parameters to handle_omp_display_env.
5610         * fortran.c: Add ialias_redirect for omp_display_env.
5611         (omp_display_env_, omp_display_env_8_): New functions.
5612         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
5613         omp_display_env_, and omp_display_env_8_.
5614         * omp.h.in: Declare omp_display_env.
5615         * omp_lib.f90.in: Likewise.
5616         * omp_lib.h.in: Likewise.
5618 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5619             Julian Brown  <julian@codesourcery.com>
5621         * target.c (gomp_coalesce_buf_add): Update comment.
5622         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5623         'aq && cbuf'.
5624         (gomp_map_vars_internal): Only 'if (!aq)', do
5625         'gomp_coalesce_buf_add'.
5626         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5627         XFAIL.
5629 2021-07-27  Julian Brown  <julian@codesourcery.com>
5630             Thomas Schwinge  <thomas@codesourcery.com>
5632         * libgomp.h (gomp_copy_host2dev): Update prototype.
5633         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5634         argument to gomp_copy_host2dev (false).
5635         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5636         (copy_data): Don't free src.
5637         (queue_push_copy): Remove free_src handling.
5638         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5639         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5640         snapshotting.
5641         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5642         queue_push_copy.
5643         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5644         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
5645         data when true, and set up deferred freeing of temporary buffer.
5646         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5647         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5648         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5649         calls to gomp_copy_host2dev with appropriate ephemeral argument.
5650         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5651         XFAIL.
5653 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5654             Tom de Vries  <tom@codesourcery.com>
5656         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5657         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5659 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5661         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5662         sequencing of 'async' data copying vs. profiling events.
5663         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5664         Likewise.
5666 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5667             Julian Brown  <julian@codesourcery.com>
5669         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5670         'async'/'wait' issue.
5671         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5672         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5673         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5675 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
5676             Joseph Myers  <joseph@codesourcery.com>
5677             Cesar Philippidis  <cesar@codesourcery.com>
5679         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5680         file.
5681         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5682         Likewise.
5683         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5684         Likewise.
5685         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5687 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
5689         PR target/101484
5690         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5691         '-Wno-error=array-bounds'.
5692         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5693         * libgomp.h [__AMDGCN__]: Likewise.
5695 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
5697         PR target/101484
5698         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5699         * libgomp.h [__AMDGCN__]: Likewise.
5701 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
5702             Florian Weimer  <fweimer@redhat.com>
5704         * config/linux/sem.h: Don't include limits.h.
5705         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5706         * config/linux/affinity.c: Include limits.h.
5708 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5710         PR middle-end/94366
5711         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5713 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5715         PR other/67300
5716         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5717         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5718         avoid disabling other offload targets.
5719         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5720         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5721         * testsuite/libgomp.c/target-44.c: Likewise.
5723 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5725         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5726         target has shared memory and disable some scalar pointer/allocatable
5727         checks if not as firstprivate does not work.
5729 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5731         PR testsuite/101114
5732         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5733         Add "target offload_device_nonshared_as" condition for enabling test.
5735 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5737         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5738         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5739         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5740         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5742 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5744         PR middle-end/101167
5745         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5747 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5749         * hashtab.h (htab_clear): New function with initialization code
5750         factored out from...
5751         (htab_create): ...here, adjust to use htab_clear function.
5752         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5753         special refcount values, add comments.
5754         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5755         (REFCOUNT_LINK): Likewise.
5756         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5757         element siblings.
5758         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5759         sibling maps.
5760         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5761         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5762         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5763         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5764         (struct splay_tree_key_s): Add structelem_refcount and
5765         structelem_refcount_ptr fields into a union with dynamic_refcount.
5766         Add comments.
5767         (gomp_map_vars): Delete declaration.
5768         (gomp_map_vars_async): Likewise.
5769         (gomp_unmap_vars): Likewise.
5770         (gomp_unmap_vars_async): Likewise.
5771         (goacc_map_vars): New declaration.
5772         (goacc_unmap_vars): Likewise.
5773         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5774         (goacc_enter_datum): Likewise.
5775         (goacc_enter_data_internal): Likewise.
5776         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5777         and goacc_unmap_vars.
5778         (GOACC_data_start): Adjust to use goacc_map_vars.
5779         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5780         * target.c (hash_entry_type): New typedef.
5781         (htab_alloc): New function hook for hashtab.h.
5782         (htab_free): Likewise.
5783         (htab_hash): Likewise.
5784         (htab_eq): Likewise.
5785         (hashtab.h): Add file include.
5786         (gomp_increment_refcount): New function.
5787         (gomp_decrement_refcount): Likewise.
5788         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5789         gomp_increment_refcount.
5790         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5791         to gomp_map_vars_existing.
5792         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5793         variable to guard OpenMP specific paths, adjust calls to
5794         gomp_map_vars_existing, add structure element sibling splay_tree_key
5795         sequence creation code, adjust Fortran map case to avoid increment
5796         under OpenMP.
5797         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5798         local refcount_set if caller passed in NULL, adjust call to
5799         gomp_map_vars_internal.
5800         (gomp_map_vars_async): Adjust and rename into...
5801         (goacc_map_vars): ...this new function, adjust call to
5802         gomp_map_vars_internal.
5803         (gomp_remove_splay_tree_key): New function with code factored out from
5804         gomp_remove_var_internal.
5805         (gomp_remove_var_internal): Add code to handle removing multiple
5806         splay_tree_key sequence for structure elements, adjust code to use
5807         gomp_remove_splay_tree_key for splay-tree key removal.
5808         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5809         gomp_decrement_refcount.
5810         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5811         local refcount_set if caller passed in NULL, adjust call to
5812         gomp_unmap_vars_internal.
5813         (gomp_unmap_vars_async): Adjust and rename into...
5814         (goacc_unmap_vars): ...this new function, adjust call to
5815         gomp_unmap_vars_internal.
5816         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5817         gomp_unmap_vars.
5818         (GOMP_target_ext): Likewise.
5819         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5820         (GOMP_target_data): Likewise.
5821         (GOMP_target_data_ext): Likewise.
5822         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5823         (gomp_exit_data): Add refcount_set parameter, adjust to use
5824         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5825         after main loop.
5826         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5827         gomp_map_vars and gomp_exit_data.
5828         (gomp_target_task_fn): Likewise.
5829         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5830         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5831         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5832         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5833         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5834         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5836 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5838         PR fortran/92568
5839         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5841 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5842             Thomas Schwinge  <thomas@codesourcery.com>
5844         * libgomp.map (GOACC_2.0.2): New symbol version.
5845         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5846         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5848 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5849             Andrew Stubbs  <ams@codesourcery.com>
5851         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5852         extracted from...
5853         (GOACC_enter_exit_data): ... here.
5854         (GOACC_declare): Use it.
5856 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5858         * oacc-parallel.c (GOACC_declare): Move...
5859         * oacc-mem.c: ... here.
5860         * libgomp_g.h: Adjust.
5862 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5863             Thomas Schwinge  <thomas@codesourcery.com>
5865         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5866         handling.
5868 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5870         PR tree-optimization/100981
5871         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5872         dsdotr and dsdoti to 0.
5874 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5876         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5877         if atomic compare-and-swap is supported on 'int'.
5879 2021-06-09  Richard Biener  <rguenther@suse.de>
5881         PR tree-optimization/100981
5882         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5884 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5886         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5887         unconditionally.
5888         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5889         Update.
5890         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5891         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5893 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5895         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5896         '-DACC_MEM_SHARED=0'.
5897         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5898         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5899         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5900         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5901         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5902         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5903         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5904         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5905         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5906         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5907         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5908         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5909         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5910         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5911         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5912         'acc_device_radeon' testing.
5913         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5914         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5915         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5916         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5917         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5918         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5919         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5920         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5921         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5922         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5923         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5924         for non-'openacc_nvidia_accel_selected'.
5925         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5926         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5927         all implement this checking".
5928         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5929         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5930         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5931         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5932         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5934 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5936         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5937         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5939 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5941         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5942         for 'acc_device_radeon'.
5944 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5946         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5947         for non-'acc_device_nvidia'.
5949 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5951         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5952         'acc_device_radeon' testing.
5953         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5954         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5955         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5957 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5959         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5960         require 'openacc_nvidia_accel_selected'.  Fix up for
5961         'ACC_DEVICE_TYPE_radeon'.
5963 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5965         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5966         'openacc_nvidia_accel_selected'.
5967         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5969 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5971         * testsuite/lib/libgomp.exp
5972         (check_effective_target_openacc_radeon_accel_selected):
5973         Streamline.
5975 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5977         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5978         PR80547 workaround.
5980 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5982         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5983         <acc_device_nvidia>: Update comment.
5985 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5987         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5989 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5991         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5992         check_effective_target_openacc_cublas,
5993         check_effective_target_openacc_cudart): New.
5994         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5995         target openacc_cublas.
5996         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5997         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5998         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5999         target openacc_cuda.
6000         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6001         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6002         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6003         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6004         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6005         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6006         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6007         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6008         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
6009         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6010         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6011         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6012         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6013         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6014         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6015         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6016         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
6017         targets openacc_cublas and openacc_cudart.
6018         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6019         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6020         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6021         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6022         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
6023         Require effective target openacc_cudart.
6024         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
6025         for effective target openacc_cuda and add && defined USE_CUDA_H to
6026         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
6027         effective target.
6029 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
6031         PR libgomp/100573
6032         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
6033         GOMP_target_end_data, GOMP_target_update_ext,
6034         GOMP_target_enter_exit_data): New dummy entrypoints.
6035         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
6036         GOMP_target_end_data, GOMP_target_update_ext,
6037         GOMP_target_enter_exit_data): Likewise.
6038         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
6039         OMPFROM, OMPTO): Define.
6040         (main): Remove #pragma omp target teams around all the tests.
6041         * testsuite/libgomp.c-c++-common/target-41.c: New test.
6042         * testsuite/libgomp.c-c++-common/target-42.c: New test.
6044 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
6046         PR middle-end/99928
6047         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
6049 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
6051         PR fortran/86470
6052         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
6053         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
6054         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
6056 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
6058         PR testsuite/90115
6059         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
6060         uninteresting/varying diagnostics.
6062 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6064         PR middle-end/90115
6065         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
6066         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6068 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6070         PR middle-end/90115
6071         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
6072         file.
6073         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6074         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
6075         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6076         Likewise.
6077         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6078         Likewise.
6079         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6080         Likewise.
6081         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6082         Likewise.
6083         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6084         Likewise.
6085         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6086         Likewise.
6087         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6088         Likewise.
6089         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6090         Likewise.
6091         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6092         Likewise.
6093         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6094         Likewise.
6095         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6096         Likewise.
6097         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6098         Likewise.
6099         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6100         Likewise.
6101         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6102         Likewise.
6103         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6104         Likewise.
6105         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6106         Likewise.
6107         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6108         Likewise.
6109         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6110         Likewise.
6111         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6112         Likewise.
6113         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6114         Likewise.
6115         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6116         Likewise.
6117         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6118         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6119         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6120         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6121         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6122         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6123         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6124         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6125         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6126         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6127         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6128         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6129         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6130         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6131         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6132         Likewise.
6133         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6134         Likewise.
6135         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6136         Likewise.
6137         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6138         Likewise.
6139         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6140         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6141         Likewise.
6142         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6143         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6144         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6145         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6146         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6147         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6148         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6149         Likewise.
6150         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6151         Likewise.
6152         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6153         Likewise.
6154         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6155         Likewise.
6156         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6157         Likewise.
6158         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6159         Likewise.
6160         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6161         Likewise.
6162         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6163         Likewise.
6164         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6165         Likewise.
6166         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6167         Likewise.
6168         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6169         Likewise.
6170         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6171         Likewise.
6172         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6173         Likewise.
6174         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6175         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6176         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6177         Likewise.
6178         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6179         Likewise.
6180         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6181         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6182         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6184 2021-05-21  Julian Brown  <julian@codesourcery.com>
6185             Chung-Lin Tang  <cltang@codesourcery.com>
6186             Thomas Schwinge  <thomas@codesourcery.com>
6188         PR middle-end/90115
6189         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6190         test.
6191         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6192         Likewise.
6193         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6194         Likewise.
6196 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6198         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6199         for nvptx offloading.
6201 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
6203         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6205 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
6207         PR target/83812
6208         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6210 2021-05-19  Julian Brown  <julian@codesourcery.com>
6212         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6214 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6216         * testsuite/lib/libgomp.exp
6217         (check_effective_target_offload_target_nvptx): Don't shadow global
6218         'offload_targets' variable.
6220 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6222         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6223         '-latomic' to nvptx offloading compilation.
6224         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6226 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6228         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6229         offloading compilation.
6231 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
6233         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6234         if new tasks generated.
6235         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6237 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
6239         * testsuite/libgomp.fortran/parallel-master.f90: New test.
6241 2021-05-13  Martin Liska  <mliska@suse.cz>
6243         PR testsuite/100569
6244         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6245         * testsuite/libgomp.c/pr46032-2.c: Likewise.
6246         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6247         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6249 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6251         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6252         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6254 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6256         PR middle-end/100471
6257         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6258         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6259         reduction pointer.
6260         * testsuite/libgomp.c/task-reduction-4.c: New test.
6262 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6263             Tom de Vries  <tdevries@suse.de>
6265         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6266         complex/floating-point || + && reduction with 'omp target'.
6267         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6269 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6271         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6272         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6273         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6274         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6276 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6278         PR testsuite/100397
6279         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6280         declaration to scope of non-'depend'-guarded assignment to avoid races.
6282 2021-05-03  Tom de Vries  <tdevries@suse.de>
6284         PR target/100321
6285         * testsuite/libgomp.c/target-44.c: New test.
6287 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
6289         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6291 2021-04-29  Tom de Vries  <tdevries@suse.de>
6293         * testsuite/libgomp.c/pr81778.c: New test.
6295 2021-04-29  Tom de Vries  <tdevries@suse.de>
6297         PR target/100232
6298         * testsuite/libgomp.c/target-43.c: New file.
6300 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
6301             Tobias Burnus  <tobias@codesourcery.com>
6303         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6304         * target.c (gomp_load_plugin_for_device): If set and if a plugin
6305         can't be dlopened, silently assume it has no devices.
6306         * Makefile.in: Regenerate.
6307         * config.h.in: Regenerate.
6308         * configure: Regenerate.
6310 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6312         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6313         Use [Ww]arning in dg-bogus as FE diagnostic and default
6314         diagnostic differ and the result depends on ENABLE_OFFLOAD.
6315         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6316         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6317         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6319 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6321         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6322         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6323         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6324         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6325         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6327 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6328             Nathan Sidwell  <nathan@codesourcery.com>
6329             Tom de Vries  <vries@codesourcery.com>
6330             Julian Brown  <julian@codesourcery.com>
6331             Kwok Cheung Yeung  <kcy@codesourcery.com>
6333         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6334         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6335         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6336         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6337         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6338         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6339         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6340         Likewise.
6341         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6342         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6343         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6344         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6345         Likewise.
6346         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6347         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6348         Likewise.
6349         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6350         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6351         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6352         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6353         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6354         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6355         Likewise.
6356         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6357         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6358         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6359         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6360         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6361         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6362         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6363         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6364         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6365         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6366         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6368 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6370         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6371         compile with '-w'.
6372         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6373         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6374         Likewise.
6375         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6376         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6377         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6378         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6379         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6380         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6381         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6383 2021-04-22  Richard Biener  <rguenther@suse.de>
6385         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6386         only on nvptx-none.
6388 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6390         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6391         omp_depend_kind instead of defining it as 16.
6393 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6395         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6396         New, based on check_effective_target_offload_target_nvptx.
6397         (check_effective_target_offload_target_nvptx): Call it.
6398         (check_effective_target_offload_target_amdgcn): New.
6399         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6400         Require target offload_target_nvptx || offload_target_amdgcn.
6401         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6402         * testsuite/libgomp.c/pr86416-1.c: Likewise.
6403         * testsuite/libgomp.c/pr86416-2.c: Likewise.
6405 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6407         * testsuite/libgomp.fortran/depobj-1.f90: New test.
6409 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6411         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6412         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6413         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6414         Likewise.
6415         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6416         Likewise.
6417         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6419 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6421         PR target/99555
6422         * testsuite/lib/libgomp.exp
6423         (check_effective_target_offload_device_nvptx): New.
6424         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6425         resolved, make sure that we exit quickly, with error status,
6426         XFAILed.
6427         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6428         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6430 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
6432         PR testsuite/100071
6433         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6434         cp = omp_alloc with cp, p arguments instead of cq, q and call
6435         c_f_pointer after last cq = omp_alloc with cq, q.
6437 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6439         PR middle-end/98088
6440         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6441         for loop with GT/GE condition.
6442         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6444 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
6446         PR middle-end/84991
6447         PR middle-end/84992
6448         PR middle-end/90779
6449         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6451 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
6453         PR libgomp/99984
6454         * team.c (gomp_thread_start): Call pthread_setspecific for
6455         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6456         has been initialized to avoid false positive warning.
6458 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
6460         PR target/99555
6461         * testsuite/lib/on_device_arch.c: Move to ...
6462         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6463         * testsuite/libgomp.fortran/on_device_arch.c: New file;
6464         #include on_device_arch.h.
6465         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6466         on_device_arch.h instead of using dg-additional-source.
6467         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6468         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6469         on_device_arch.c without relative paths.
6471 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6473         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6474         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6475         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6476         * config.h.in: Regenerate.
6477         * configure: Likewise.
6479 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6481         PR target/99555
6482         * testsuite/lib/on_device_arch.c: New file.
6483         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6484         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6485         skip for nvptx offloading, with error status.
6486         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6488 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6490         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6491         OpenACC 'serial' construct diagnostic for nvptx offloading.
6493 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
6495         PR c++/99509
6496         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6498 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
6500         PR fortran/98858
6501         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6503 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
6505         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6506         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6507         checking of -m32 or -mx32 options on the command line.
6508         * config.h.in: Regenerated.
6509         * configure: Regenerated.
6511 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
6513         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6514         support from the target.
6516 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6517             Jakub Jelinek  <jakub@redhat.com>
6519         PR libgomp/98738
6520         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6521         (struct gomp_task): Replace detach and completion_sem fields with
6522         union containing completion_sem and detach_team.  Add deferred_p
6523         field.
6524         (struct gomp_team): Remove task_detach_queue.
6525         * task.c: Include assert.h.
6526         (gomp_init_task): Initialize deferred_p and completion_sem fields.
6527         Rearrange initialization order of fields.
6528         (task_fulfilled_p): Delete.
6529         (GOMP_task): Use address of task as the event handle.  Remove
6530         initialization of detach field.  Initialize deferred_p field.
6531         Use automatic local for completion_sem.  Initialize detach_team field
6532         for deferred tasks.
6533         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6534         Set kind of suspended detach task to GOMP_TASK_DETACHED and
6535         decrement task_running_count.  Move finish_cancelled block out of
6536         else branch.  Relocate call to gomp_team_barrier_done.
6537         (GOMP_taskwait): Handle tasks with completion events that have not
6538         been fulfilled.
6539         (GOMP_taskgroup_end): Likewise.
6540         (omp_fulfill_event): Use address of task as event handle.  Post to
6541         completion_sem for undeferred tasks.  Clear detach_team if task
6542         has not finished.  For finished tasks, handle post-execution tasks,
6543         call gomp_team_barrier_wake if necessary, and free task.
6544         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6545         (free_team): Remove free of task_detach_queue.
6546         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6547         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6548         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6549         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6550         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6551         Change data-sharing of detach events on enclosing parallel to private.
6552         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
6553         taskwait directive.
6554         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6555         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6556         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6557         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6558         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6559         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6560         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6561         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6562         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6563         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6564         Change data-sharing of detach events on enclosing parallel to private.
6565         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
6566         taskwait directive.
6567         * testsuite/libgomp.fortran/task-detach-7.f90: New.
6568         * testsuite/libgomp.fortran/task-detach-8.f90: New.
6569         * testsuite/libgomp.fortran/task-detach-9.f90: New.
6570         * testsuite/libgomp.fortran/task-detach-10.f90: New.
6571         * testsuite/libgomp.fortran/task-detach-11.f90: New.
6573 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
6575         PR fortran/99171
6576         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6578 2021-02-17  Julian Brown  <julian@codesourcery.com>
6580         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6581         expected errors.
6583 2021-02-17  Julian Brown  <julian@codesourcery.com>
6585         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6586         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6588 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6590         * config/linux/x86/futex.h (__futex_wait):
6591         Revert output type back to long.
6592         (__futex_wake): Ditto.
6593         (futex_wait): Update for revert.
6594         (futex_wake): Ditto.
6596 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6598         * config/linux/x86/futex.h (__futex_wait): New static inline
6599         wrapper function.  Correct output type to int and
6600         timeout type to void *.
6601         (__futex_wake): New static inline wrapper function.
6602         Correct output type to int.
6603         (futex_wait): Use __futex_wait.
6604         (futex_wake): Use __futex_wake.
6606 2021-02-10  Julian Brown  <julian@codesourcery.com>
6608         PR fortran/98979
6609         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6610         errors.
6612 2021-02-04  Julian Brown  <julian@codesourcery.com>
6614         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6616 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
6618         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6619         EF_AMDGPU_MACH_AMDGCN_GFX908.
6620         (gcn_gfx908_s): New constant string.
6621         (isa_hsa_name): Add gfx908.
6622         (isa_code): Add gfx908.
6624 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6626         * libgomp.texi (omp_fulfill_event): New entry.
6628 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
6630         * task.c (GOMP_task): Rename priority argument to priority_arg,
6631         add priority automatic variable and modify that variable.  Instead of
6632         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6633         check flags for that bit.
6635 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
6637         PR fortran/98476
6638         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6640 2021-01-18  Andreas Schwab  <schwab@suse.de>
6642         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6644 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6646         * config/rtems/sem.h (gomp_sem_getcount): New function.
6648 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
6650         * config/linux/sem.h (gomp_sem_getcount): New function.
6651         * config/posix/sem.h (gomp_sem_getcount): New function.
6652         * config/posix/sem.c (gomp_sem_getcount): New function.
6653         * config/accel/sem.h (gomp_sem_getcount): New function.
6654         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6655         (omp_fulfill_event): Likewise.
6657 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
6659         * fortran.c (omp_fulfill_event_): New.
6660         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6661         (struct gomp_team): Add task_detach_queue and task_detach_count
6662         fields.
6663         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6664         * libgomp_g.h (GOMP_task): Add extra argument.
6665         * omp.h.in (enum omp_event_handle_t): New.
6666         (omp_fulfill_event): New.
6667         * omp_lib.f90.in (omp_event_handle_kind): New.
6668         (omp_fulfill_event): New.
6669         * omp_lib.h.in (omp_event_handle_kind): New.
6670         (omp_fulfill_event): Declare.
6671         * priority_queue.c (priority_tree_find): New.
6672         (priority_list_find): New.
6673         (priority_queue_find): New.
6674         * priority_queue.h (priority_queue_predicate): New.
6675         (priority_queue_find): New.
6676         * task.c (gomp_init_task): Initialize detach field.
6677         (task_fulfilled_p): New.
6678         (GOMP_task): Add detach argument.  Ignore detach argument if
6679         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
6680         field.  Copy address of completion_sem into detach argument and
6681         into the start of the data record.  Wait for detach event if task
6682         not deferred.
6683         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6684         Remove completed tasks and requeue dependent tasks.
6685         (omp_fulfill_event): New.
6686         * team.c (gomp_new_team): Initialize task_detach_queue and
6687         task_detach_count fields.
6688         (free_team): Free task_detach_queue field.
6689         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6690         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6691         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6692         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6693         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6694         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6695         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6696         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6697         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6698         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6699         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6700         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6702 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
6704         PR target/70454
6705         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6706         be added through preprocessor check on
6707         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6709 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6711         PR libgomp/65099
6712         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6713         configurations.
6714         * configure: Regenerate.
6715         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6716         check.
6718 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6720         * configure: Re-generate.
6722 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6724         * configure: Re-generate.
6726 2021-01-05  Julian Brown  <julian@codesourcery.com>
6728         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6729         (struct ptx_device): Add omp_stacks struct.
6730         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6731         (nvptx_close_device): Free cached stacks block and mutex.
6732         (nvptx_stacks_free): New function.
6733         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6734         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6735         (nvptx_stacks_alloc): Rename to...
6736         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6737         size or smaller is required.
6738         (nvptx_stacks_free): Remove.
6739         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6740         during kernel execution.
6742 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6744         * libgomp.texi: Bump @copying's copyright year.
6746 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6748         * libgomp.texi (Top): Avoid bad "up" link.
6750 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6752         * testsuite/libgomp.c/task-6.c: New test.
6754 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6756         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6757         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6759 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6761         * testsuite/libgomp.fortran/scan-1.f90: New test.
6763 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6765         PR target/97865
6766         * configure: Regenerate.
6768 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6770         * configure: Regenerate.
6772 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6774         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6775         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6777 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6779         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6780         expected results.
6782 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6784         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6785         (reserved): Delete unused define.
6787 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6789         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6790         Tcl 8.5-specific behavior.
6791         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6793 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6795         * env.c (gomp_global_icv): Remove nest_var field.  Add
6796         max_active_levels_var field.
6797         (gomp_max_active_levels_var): Remove.
6798         (parse_boolean): Return true on success.
6799         (handle_omp_display_env): Express OMP_NESTED in terms of
6800         max_active_levels_var.  Change format specifier for
6801         max_active_levels_var.
6802         (initialize_env): Set max_active_levels_var from
6803         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6804         OMP_PROC_BIND.
6805         * icv.c (omp_set_nested): Express in terms of
6806         max_active_levels_var.
6807         (omp_get_nested): Likewise.
6808         (omp_set_max_active_levels): Use max_active_levels_var field instead
6809         of gomp_max_active_levels_var.
6810         (omp_get_max_active_levels): Likewise.
6811         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6812         max_active_levels_var field.
6813         (gomp_supported_active_levels): Set to UCHAR_MAX.
6814         (gomp_max_active_levels_var): Delete.
6815         * libgomp.texi (omp_get_nested): Update documentation.
6816         (omp_set_nested): Likewise.
6817         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6818         (OMP_NESTED): Likewise.
6819         (OMP_NUM_THREADS): Likewise.
6820         (OMP_PROC_BIND): Likewise.
6821         * parallel.c (gomp_resolve_num_threads): Replace reference
6822         to nest_var with max_active_levels_var.  Use max_active_levels_var
6823         field instead of gomp_max_active_levels_var.
6825 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6827         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6828         nvptx_usleep; use also for device={arch(gcn)}.
6830 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6832         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6833         (foo): Add tests for non-VLA private and firstprivate clauses on
6834         omp task.
6835         (bar): Likewise.  Remove taking of address from private/firstprivate
6836         variables.
6837         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6838         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6839         and for non-VLA private and firstprivate clauses on omp task.
6840         (bar): Removed.
6841         (main): Adjust foo caller.  Don't call bar.
6843 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6844             Thomas Schwinge  <thomas@codesourcery.com>
6846         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6847         New.
6848         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6849         Likewise.
6850         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6851         Likewise.
6852         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6853         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6855 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6856             Thomas Schwinge  <thomas@codesourcery.com>
6858         PR fortran/94358
6859         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6861 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6863         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6864         for array reductions.
6865         (main): Adjust foo callers.
6867 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6869         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6870         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6871         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6872         * allocator.c (omp_aligned_alloc): New for now static function,
6873         add alignment argument and handle it.
6874         (omp_alloc): Reimplement using omp_aligned_alloc.
6875         (GOMP_alloc, GOMP_free): New functions.
6876         (omp_free): Add ialias.
6877         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6878         * testsuite/libgomp.c++/allocate-1.C: New test.
6880 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6882         PR fortran/97782
6883         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6885 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6887         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6888         usable.
6889         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6890         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6891         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6892         (goacc_enter_data_internal): Likewise.
6893         * target.c (gomp_map_vars_internal):
6894         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6895         of gomp_attach_pointer for OpenMP cases.
6896         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6897         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6898         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6900 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6901             Kwok Cheung Yeung  <kcy@codesourcery.com>
6903         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6904         * Makefile.in: Regenerate.
6905         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6906         pragmas to ignore -Wdeprecated-declarations warnings.
6907         * icv.c: Likewise.
6908         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6909         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6910         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6911         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6912         deprecated.
6913         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6914         to test options.
6915         * testsuite/libgomp.c/affinity-1.c: Likewise.
6916         * testsuite/libgomp.c/affinity-2.c: Likewise.
6917         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6918         * testsuite/libgomp.c/lib-1.c: Likewise.
6919         * testsuite/libgomp.c/nested-1.c: Likewise.
6920         * testsuite/libgomp.c/nested-2.c: Likewise.
6921         * testsuite/libgomp.c/nested-3.c: Likewise.
6922         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6923         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6924         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6925         * testsuite/libgomp.c/pr35549.c: Likewise.
6926         * testsuite/libgomp.c/pr42942.c: Likewise.
6927         * testsuite/libgomp.c/pr61200.c: Likewise.
6928         * testsuite/libgomp.c/sort-1.c: Likewise.
6929         * testsuite/libgomp.c/target-5.c: Likewise.
6930         * testsuite/libgomp.c/target-6.c: Likewise.
6931         * testsuite/libgomp.c/teams-1.c: Likewise.
6932         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6933         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6934         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6935         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6936         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6937         * testsuite/libgomp.fortran/lib2.f: Likewise.
6938         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6939         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6941 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6943         PR target/85486
6944         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6945         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6946         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6948 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6950         PR testsuite/80219
6951         PR testsuite/85303
6952         * testsuite/lib/libgomp.exp (libgomp_init): Set
6953         'gcc_warning_prefix', 'gcc_error_prefix'.
6955 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6957         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6958         even in field_tgt_clear initializer.
6960 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6962         * testsuite/libgomp.c/target-42.c: New test.
6964 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6965             Tom de Vries  <tdevries@suse.de>
6967         PR testsuite/81690
6968         * testsuite/libgomp.c/usleep.h: New file.
6969         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6970         (main): Use tgt_usleep instead of usleep.
6971         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6972         (main): Use tgt_usleep instead of usleep.
6974 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6976         PR lto/96680
6977         * testsuite/libgomp.c/declare-variant-1.c: New test.
6979 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6981         * testsuite/libgomp.c/target-41.c: New test.
6983 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6985         * icv.c (omp_get_initial_device): Remove including corresponding
6986         ialias.
6987         * icv-device.c (omp_get_initial_device): New function.  Return
6988         gomp_get_num_devices ().  Add ialias.
6989         * target.c (resolve_device): Don't fail with
6990         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6991         gomp_get_num_devices ().
6992         (omp_target_alloc, omp_target_free, omp_target_is_present,
6993         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6994         omp_target_disassociate_ptr, omp_pause_resource): Use
6995         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6996         first use in the functions, in uses dominated by the
6997         gomp_get_num_devices call use num_devices_openmp instead.
6998         * libgomp.texi (omp_get_initial_device): Document.
6999         * config/gcn/icv-device.c (omp_get_initial_device): New function.
7000         Add ialias.
7001         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
7002         * testsuite/libgomp.c/target-40.c: New test.
7004 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
7006         * env.c (parse_target_offload): Change new_offload var type to int,
7007         preinitialize to -1, remove found var and test new_offload != -1
7008         instead of found.
7010 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
7012         * target.c (gomp_target_init): Inside of the function, use automatic
7013         variables corresponding to num_devices, num_devices_openmp and devices
7014         global variables and update the globals only at the end of the
7015         function.
7017 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
7019         * env.c (gomp_target_offload_var): New.
7020         (parse_target_offload): New.
7021         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
7022         (initialize_env): Parse OMP_TARGET_OFFLOAD.
7023         * libgomp.h (gomp_target_offload_t): New.
7024         (gomp_target_offload_var): New.
7025         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
7026         * target.c (resolve_device): Generate error if device not found and
7027         offloading is mandatory.
7028         (gomp_target_fallback): Generate error if offloading is mandatory.
7029         (GOMP_target): Add argument in call to gomp_target_fallback.
7030         (GOMP_target_ext): Likewise.
7031         (gomp_target_data_fallback): Generate error if offloading is mandatory.
7032         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
7033         (GOMP_target_data_ext): Likewise.
7034         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
7035         (gomp_target_init): Return early if offloading is disabled.
7037 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
7039         * libgomp.texi (omp_get_max_active_levels): Modify description.
7040         (omp_get_supported_active_levels): Make descriptions consistent.
7042 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
7044         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
7046 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7048         * env.c (gomp_max_active_levels_var): Initialize to
7049         gomp_supported_active_levels.
7050         (initialize_env): Limit gomp_max_active_levels_var to be at most
7051         equal to gomp_supported_active_levels.
7052         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
7053         (omp_get_supported_active_levels_): New.
7054         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
7055         to at most equal to gomp_supported_active_levels.
7056         (omp_get_supported_active_levels): New.
7057         * libgomp.h (gomp_supported_active_levels): New.
7058         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
7059         omp_get_supported_active_levels_.
7060         * libgomp.texi (omp_get_supported_active_levels): New.
7061         (omp_set_max_active_levels): Update.  Add reference to
7062         omp_get_supported_active_levels.
7063         * omp.h.in (omp_get_supported_active_levels): New.
7064         * omp_lib.f90.in (omp_get_supported_active_levels): New.
7065         * omp_lib.h.in (omp_get_supported_active_levels): New.
7066         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
7067         against omp_get_supported_active_levels.
7068         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
7070 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
7072         * config/t-aix: Delete and recreate libgomp before creating
7073         FAT library.
7075 2020-10-08  Tom de Vries  <tdevries@suse.de>
7077         PR libgomp/81802
7078         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
7079         dimensions.
7081 2020-10-06  Tom de Vries  <tdevries@suse.de>
7083         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
7085 2020-10-06  Tom de Vries  <tdevries@suse.de>
7087         PR middle-end/90861
7088         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
7090 2020-10-05  Tom de Vries  <tdevries@suse.de>
7092         PR fortran/95654
7093         * testsuite/libgomp.fortran/pr95654.f90: New test.
7095 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
7097         * Makefile.in: Regenerate with automake 1.15.1.
7098         * aclocal.m4: Likewise.
7099         * configure: Likewise.
7100         * testsuite/Makefile.in: Likewise.
7102 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
7104         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7105         and amdgcn targets.
7107 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
7109         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7111 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
7113         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7114         total number of threads is one.
7115         (gomp_team_barrier_wake): Likewise.
7116         (gomp_team_barrier_wait_end): Likewise.
7117         (gomp_team_barrier_wait_cancel_end): Likewise.
7118         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7119         (gomp_team_barrier_wake): Likewise.
7120         (gomp_team_barrier_wait_end): Likewise.
7121         (gomp_team_barrier_wait_cancel_end): Likewise.
7122         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7124 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
7126         PR middle-end/96390
7127         * testsuite/libgomp.c++/pr96390.C: New test.
7128         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7130 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
7132         * config/t-aix: Use $(AR) without -X32_64.
7134 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
7136         * testsuite/libgomp.c/loop-25.c: New test.
7138 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
7140         PR fortran/95654
7141         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7143 2020-09-22  Tom de Vries  <tdevries@suse.de>
7145         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7146         fails.
7148 2020-09-16  Nathan Sidwell  <nathan@acm.org>
7150         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7152 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
7154         PR fortran/96668
7155         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7157 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
7159         PR fortran/96668
7160         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7161         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7162         (gomp_map_vars_existing): Update call to it.
7163         (gomp_map_fields_existing): Likewise
7164         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7165         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7166         remapped.
7167         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7168         GOMP_MAP_POINTER.
7169         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7170         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7172 2020-09-14  Tom de Vries  <tdevries@suse.de>
7174         * config/nvptx/atomic.c: New file.  Add
7175         __sync_val_compare_and_swap_16.
7176         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7177         target offload_target_nvptx.
7179 2020-09-08  Julian Brown  <julian@codesourcery.com>
7181         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7182         iteration-ordering assumptions.
7184 2020-09-08  Julian Brown  <julian@codesourcery.com>
7186         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7187         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7189 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
7191         * plugin/plugin-nvptx.c (nvptx_free):
7192         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7193         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7194         comments.
7196 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
7198         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7200 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7202         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7204 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
7206         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7207         * testsuite/libgomp.c/loop-23.c (main): Likewise.
7208         * testsuite/libgomp.c/loop-24.c: New test.
7210 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
7211             Tobias Burnus  <tobias@codesourcery.com>
7213         PR fortran/93553
7214         * testsuite/libgomp.fortran/pr93553.f90: New test.
7216 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7218         * testsuite/libgomp.c/loop-22.c: New test.
7219         * testsuite/libgomp.c/loop-23.c: New test.
7221 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7223         PR middle-end/96459
7224         * testsuite/libgomp.c/teams-3.c: New test.
7225         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7226         if not defined yet.
7227         (N(test)): Use it before all N(f*) calls.
7228         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7229         (main): Don't call all test_* functions from within
7230         #pragma omp teams reduction(|:err), call them directly.
7232 2020-08-04  Tom de Vries  <tdevries@suse.de>
7234         PR target/96428
7235         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7236         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7238 2020-08-03  Julian Brown  <julian@codesourcery.com>
7239             Thomas Schwinge  <thomas@codesourcery.com>
7241         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7242         shared-memory devices.  Extend with further checking.
7244 2020-08-03  Martin Jambor  <mjambor@suse.cz>
7246         * plugin/Makefrag.am: Remove configuration of HSA plugin.
7247         * aclocal.m4: Regenerated.
7248         * Makefile.in: Regenerated.
7249         * config.h.in: Regenerated.
7250         * configure: Regenerated.
7251         * plugin/configfrag.ac: Likewise.
7252         * plugin/hsa_ext_finalize.h: Removed.
7253         * plugin/plugin-hsa.c: Likewise.
7254         * testsuite/Makefile.in: Regenerated.
7255         * testsuite/lib/libgomp.exp
7256         (offload_target_to_openacc_device_type): Remove hsa case.
7257         (check_effective_target_hsa_offloading_selected_nocache): Removed
7258         (check_effective_target_hsa_offloading_selected): Likewise.
7259         (libgomp_init): Do not add -Wno-hsa to additional_flags.
7260         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7261         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7262         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7263         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7264         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7265         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7266         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7267         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7268         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7269         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7270         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7271         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7272         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7273         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7274         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7275         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7276         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7277         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7278         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7279         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7280         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7281         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7282         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7283         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7285 2020-07-27  Julian Brown  <julian@codesourcery.com>
7286             Thomas Schwinge  <thomas@codesourcery.com>
7288         * libgomp.h (struct target_var_desc): Rename do_detach field to
7289         is_attach.
7290         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
7291         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7292         (goacc_enter_data_internal): Don't affect reference counts
7293         for attach mappings.
7294         (goacc_exit_data_internal): Don't affect reference counts for detach
7295         mappings.
7296         * target.c (gomp_map_vars_existing): Don't affect reference counts for
7297         attach mappings.
7298         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7299         mark attach mappings.
7300         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7301         reference count for attach mappings.
7302         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7303         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7304         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7305         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7306         test as shouldfail.
7307         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7308         gracefully in no-finalize mode.
7309         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7311 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
7313         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7314         use.
7315         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7316         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7318 2020-07-23  Julian Brown  <julian@codesourcery.com>
7319             Thomas Schwinge  <thomas@codesourcery.com>
7321         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7322         finalization for detach operation.
7323         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7324         New test.
7326 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
7328         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7329         * libgomp_f.h.in (omp_check_defines): Check whether
7330         sizeof of determined Fortran kind and C typedef match.
7331         * omp_lib.f90.in: Add omp_depened_kind.
7332         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7333         * configure: Regenerate.
7334         * Makefile.in: Regenerate.
7335         * testsuite/Makefile.in: Regenerate.
7337 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7339         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7340         gcc/testsuite/c-c++-common/gomp/.
7341         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7342         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7343         from gcc/testsuite/gfortran.dg/gomp/.
7344         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7346 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7348         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7349         * omp_lib.h.in: Likewise.
7351 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
7353         PR target/95620
7354         * testsuite/libgomp.c/pr95620.c: New test.
7356 2020-07-16  Julian Brown  <julian@codesourcery.com>
7357             Thomas Schwinge  <thomas@codesourcery.com>
7359         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7360         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7362 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7364         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7365         avoid conversion on 32bit systems from 32bit to 64bit due
7366         to -fdefault-integer-8.
7368 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7370         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7371         variables; add character(kind=4) tests; update TODO comment.
7373 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7375         * allocator.c: Add ialias for omp_init_allocator and
7376         omp_destroy_allocator.
7377         * configure.ac: Set INTPTR_T_KIND.
7378         * configure: Regenerate.
7379         * Makefile.in: Regenerate.
7380         * testsuite/Makefile.in: Regenerate.
7381         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7382         omp_set_default_allocator_, omp_get_default_allocator_): New
7383         functions and ialias_redirect.
7384         * icv.c: Add ialias for omp_set_default_allocator and
7385         omp_get_default_allocator.
7386         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7387         omp_destroy_allocator_, omp_set_default_allocator_ and
7388         omp_get_default_allocator_.
7389         * omp_lib.f90.in: Add allocator traits parameters, declare
7390         allocator routines and add related kind parameters.
7391         * omp_lib.h.in: Likewise.
7392         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7393         * testsuite/libgomp.fortran/alloc-1.F90: New test.
7394         * testsuite/libgomp.fortran/alloc-2.F90: New test.
7395         * testsuite/libgomp.fortran/alloc-3.F: New test.
7396         * testsuite/libgomp.fortran/alloc-4.f90: New test.
7397         * testsuite/libgomp.fortran/alloc-5.f90: New test.
7399 2020-07-14  Tom de Vries  <tom@codesourcery.com>
7400             Cesar Philippidis  <cesar@codesourcery.com>
7401             Thomas Schwinge  <thomas@codesourcery.com>
7402             Kwok Cheung Yeung  <kcy@codesourcery.com>
7404         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7405         New variable.
7406         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
7407         acc_init_state to initializing at the start, and to initialized at the
7408         end.
7409         (self_initializing_p): New function.
7410         (acc_get_device_type): Return acc_device_none if called by thread that
7411         is currently executing acc_init_1.
7412         * libgomp.texi (acc_get_device_type): Update documentation.
7413         (Implementation Status and Implementation-Defined Behavior): Likewise.
7414         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7416 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
7418         * config/t-aix: Set BITS from compiler cpp macro.
7420 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7422         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7424 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7426         PR fortran/67311
7427         * testsuite/libgomp.fortran/target-map-1.f90: New test.
7429 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
7431         * testsuite/libgomp.c/loop-21.c: New test.
7433 2020-07-13  Julian Brown  <julian@codesourcery.com>
7434             Thomas Schwinge  <thomas@codesourcery.com>
7436         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7438 2020-07-10  Julian Brown  <julian@codesourcery.com>
7439             Thomas Schwinge  <thomas@codesourcery.com>
7441         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7442         dynamic_refcount.
7443         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7444         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7445         dynamic_refcount.
7446         (acc_unmap_data): Update comment.
7447         (goacc_map_var_existing, goacc_enter_datum): Adjust for
7448         dynamic_refcount semantics.
7449         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7450         Adjust for dynamic_refcount semantics.
7451         (goacc_enter_data_internal): Implement "present" case of dynamic
7452         memory-map handling here.  Update "non-present" case for
7453         dynamic_refcount semantics.
7454         (goacc_exit_data_internal): Use goacc_exit_datum_1.
7455         * target.c (gomp_map_vars_internal): Remove
7456         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
7457         handling.
7458         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7459         (gomp_load_image_to_device): Substitute dynamic_refcount for
7460         virtual_refcount.
7461         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7462         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7463         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7464         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7465         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7466         trace output.
7467         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7468         trace output.
7469         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7470         test.
7471         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7472         Remove stale comment.
7473         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7474         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7475         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7476         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7477         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7478         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7480 2020-07-10  Julian Brown  <julian@codesourcery.com>
7481             Thomas Schwinge  <thomas@codesourcery.com>
7483         * oacc-mem.c (goacc_map_var_existing): New function.
7484         (goacc_enter_datum): Use above function.
7485         (goacc_exit_datum_1): New function.
7486         (goacc_exit_datum): Use above function.
7488 2020-07-09  Julian Brown  <julian@codesourcery.com>
7489             Thomas Schwinge  <thomas@codesourcery.com>
7491         PR middle-end/95270
7492         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7493         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7495 2020-07-09  Julian Brown  <julian@codesourcery.com>
7497         * oacc-mem.c (find_group_last): Group data-movement clauses
7498         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7499         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
7501 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7503         * testsuite/libgomp.c/loop-19.c: New test.
7504         * testsuite/libgomp.c/loop-20.c: New test.
7506 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7508         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7509         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
7510         it.  Remove __omp_alloctrait_value_max__.
7511         * allocator.c (omp_init_allocator): Handle omp_atv_default for
7512         omp_atk_alignment and omp_atk_pool_size.
7514 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7516         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7517         behavior for 'GOMP_MAP_FORCE_FROM'.
7518         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7520 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7522         * oacc-mem.c (goacc_exit_data_internal): Remove
7523         'GOMP_MAP_ALWAYS_FROM' handling.
7525 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7527         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7528         'scan-assembler' with 'scan-offload-rtl'.
7529         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7530         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7531         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7532         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7534 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7536         * target.c (gomp_map_vars_existing): Assert 'kind !=
7537         GOMP_MAP_ATTACH'.
7538         (gomp_map_vars_internal): Clean up.
7540 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
7542         * testsuite/libgomp.c/loop-17.c: New test.
7543         * testsuite/libgomp.c/loop-18.c: New test.
7545 2020-06-26  Marek Polacek  <polacek@redhat.com>
7547         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7549 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
7551         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7552         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7554 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
7556         * Makefile.am: Use -include.
7557         * Makefile.in: Regenerate.
7559 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
7561         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7562         * Makefile.in: Regenerate
7563         * configure.ac (tmake_file): Substitute.
7564         * configure: Regenerate.
7565         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7566         * config/t-aix: New file.
7568 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
7570         PR lto/94848
7571         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7572         'dg-do run'.
7574 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
7576         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7577         variant for HSA_RUNTIME_LIB name.
7578         (find_executable_symbol_1): Delete.
7579         (find_executable_symbol): Delete.
7580         (init_kernel_properties): Add ".kd" suffix to symbol names.
7581         (find_load_offset): Delete.
7582         (create_and_finalize_hsa_program): Remove relocation handling.
7584 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
7586         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7588 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
7590         PR lto/94848
7591         PR middle-end/95551
7592         * testsuite/libgomp.fortran/target-var.f90: New test.
7594 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7595             Julian Brown  <julian@codesourcery.com>
7597         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7598         special handling.
7600 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7601             Julian Brown  <julian@codesourcery.com>
7603         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7604         Simplify.
7606 2020-06-05  Julian Brown  <julian@codesourcery.com>
7608         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7609         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7611 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7613         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7614         Evaluate 'copyfrom' individually for each entry.
7615         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7617 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7619         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7620         Evaluate 'finalize' individually for each entry.
7621         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7622         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7623         file.
7625 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7627         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7628         usage.
7629         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7631 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7632             Julian Brown  <julian@codesourcery.com>
7634         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7635         checking.
7636         (acc_unmap_data, goacc_exit_data_internal): Restore
7637         'is_tgt_unmapped' checking.
7638         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7639         file.
7640         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7641         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7642         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7643         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7644         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7645         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7647 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7648             Julian Brown  <julian@codesourcery.com>
7650         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7652 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7654         PR libgomp/92854
7655         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7657 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7659         PR libgomp/92854
7660         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7661         more.
7663 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7664             Julian Brown  <julian@codesourcery.com>
7666         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7667         'gomp_map_vars'.
7668         (acc_map_data): Clean up accordingly.
7670 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7672         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7673         of over-eager 'finalize' clause.
7674         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7675         file.
7676         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7677         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7678         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7679         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7680         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7681         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7682         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7683         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7685 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7687         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7689 2020-06-04  Julian Brown  <julian@codesourcery.com>
7691         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7692         error path.
7693         (goacc_detach_internal): Likewise.
7695 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7697         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7698         the checkpoint.
7699         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7700         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7701         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7702         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7703         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7705 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7707         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7708         defined.
7710 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7712         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7714 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7716         * allocator.c (omp_alloc): For size == 0, return NULL early.
7718 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7720         PR bootstrap/95413
7721         * configure: Regenerated.
7723 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7725         PR libfortran/95191
7726         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7728 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7730         * omp.h.in (omp_uintptr_t): New typedef.
7731         (__GOMP_UINTPTR_T_ENUM): Define.
7732         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7733         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7734         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7735         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7736         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7737         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7738         (gomp_def_allocator): Declare.
7739         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7740         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7741         omp_alloc and omp_free.
7742         * team.c (gomp_team_start): Copy over ts.def_allocator.
7743         * env.c (gomp_def_allocator): New variable.
7744         (parse_wait_policy): Adjust function comment.
7745         (parse_allocator): New function.
7746         (handle_omp_display_env): Print OMP_ALLOCATOR.
7747         (initialize_env): Call parse_allocator.
7748         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7749         * allocator.c: New file.
7750         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7751         functions.
7752         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7753         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7754         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7755         * Makefile.in: Regenerated.
7757 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7759         PR bootstrap/95147
7760         * configure: Regenerated.
7762 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7764         PR libfortran/95119
7765         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7767 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7769         * configure: Regenerated.
7771 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7773         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7775 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7777         PR fortran/94690
7778         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7779         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7780         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7781         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7782         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7783         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7784         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7786 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7788         * testsuite/libgomp.c/target-39.c: New test.
7790 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7792         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7793         * openacc.f90 (acc_device_current): Likewise.
7794         * openacc.h (acc_device_current): Likewise.
7795         * openacc_lib.h (acc_device_current): Likewise.
7797         PR target/94282
7798         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7799         'dg-allow-blank-lines-in-output'.
7801         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7802         * testsuite/lib/libgomp.exp
7803         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7804         'radeon'.  Adjust all users.
7805         (check_effective_target_openacc_amdgcn_accel_present): Rename
7806         to...
7807         (check_effective_target_openacc_radeon_accel_present): ... this.
7808         Adjust all users.
7809         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7810         (check_effective_target_openacc_radeon_accel_selected): ... this.
7811         Adjust all users.
7813         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7814         'dg-do run'.
7816 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7818         PR other/94629
7820         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7821         hsa_iterate_agents.
7822         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7823         hsa_agent_iterate_regions.
7825 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7827         PR middle-end/94635
7828         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7829         run'.
7831 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7833         PR middle-end/94120
7834         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7835         test case.
7837 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7839         PR middle-end/94635
7840         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7842 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7844         PR libgomp/92843
7845         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7846         Rename to...
7847         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7848         ... this.
7849         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7850         Rename to...
7851         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7852         ... this.
7853         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7854         Rename to...
7855         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7856         ... this.
7857         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7858         Rename to...
7859         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7860         ... this.
7861         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7862         Rename to...
7863         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7864         ... this.
7865         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7866         Rename to...
7867         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7868         ... this.
7869         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7870         Rename to...
7871         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7872         ... this.
7873         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7874         Rename to...
7875         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7876         ... this.
7877         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7878         Rename to...
7879         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7880         ... this.
7881         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7882         Rename to...
7883         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7884         ... this.
7885         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7886         Rename to...
7887         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7888         ... this.
7889         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7890         Rename to...
7891         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7892         ... this.
7893         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7894         Rename to...
7895         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7896         ... this.
7897         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7898         Rename to...
7899         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7900         ... this.
7901         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7902         Rename to...
7903         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7904         ... this.
7905         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7906         Rename to...
7907         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7908         ... this.
7910 2020-04-10  Julian Brown  <julian@codesourcery.com>
7911             Thomas Schwinge  <thomas@codesourcery.com>
7913         PR libgomp/92843
7914         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7915         New file.
7916         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7917         Likewise.
7918         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7919         Likewise.
7920         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7921         Likewise.
7922         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7923         Likewise.
7924         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7925         Likewise.
7926         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7927         Likewise.
7928         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7929         Likewise.
7930         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7931         Likewise.
7932         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7933         Likewise.
7934         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7935         Likewise.
7936         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7937         Likewise.
7938         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7939         Likewise.
7940         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7941         Likewise.
7942         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7943         Likewise.
7944         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7945         Likewise.
7947 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7949         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7950         run'.
7952 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7954         PR middle-end/94120
7955         * libgomp.oacc-c++/declare-pr94120.C: New.
7957 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7959         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7960         files.
7961         * configure: Regenerate.
7962         * testsuite/libgomp-site-extra.exp.in: New file.
7963         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7964         variable.
7965         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7966         variable.
7967         * testsuite/Makefile.in: Regenerate.
7969 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7971         PR tree-optimization/89713
7972         PR c/94392
7973         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7974         'bar.sync'.
7975         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7977 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7979         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7980         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7982 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7984         PR libgomp/81689
7985         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7987 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7989         PR libgomp/94251
7990         * target.c (gomp_load_image_to_device): Fix link
7991         variable handling.
7993 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7995         PR c++/93931
7996         * testsuite/libgomp.c++/pr93931.C: New test.
7998 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
8000         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
8001         dg-allow-blank-lines-in-output.
8003 2020-03-18  Julian Brown <julian@codesourcery.com>
8004             Tobias Burnus  <tobias@codesourcery.com>
8006         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
8007         it work concurrently.
8009 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
8011         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
8012         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
8013         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
8015 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
8017         PR middle-end/93566
8018         * testsuite/libgomp.c/pr93566.c: New test.
8020 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
8022         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
8023         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
8024         integer(acc_device_property) for the type of the return value of
8025         acc_get_property.
8027 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
8029         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
8030         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
8031         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
8032         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
8033         (acc_set_device_num): Fix Fortran argument name, use same name for C.
8034         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
8035         corrections; add note about the previous interface and named constant.
8036         (OpenACC library and environment variables): Fix two typos.
8037         * openacc.f90: Use for all procedures the argument names from the spec
8038         as for â€¦_h they are user visible.
8039         (openacc_kinds): Rename acc_device_property to
8040         acc_device_property_kinds and change value to int32 ; and update users.
8041         Re-add acc_device_property for for backward compatibility.
8042         (acc_get_property_string_h): Clean up as acc_device_property_kind
8043         changed.
8044         (acc_get_property_h): Likewise and return c_size_t instead of
8045         acc_device_property.
8046         (openacc): Also export acc_device_property_kinds.
8047         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
8048         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
8049         handling; check against /= 0 instead of == 1 to match C.
8050         * openacc_lib.h: Use for all procedures the argument names from the spec
8051         as for â€¦_h they are user visible. Place !GCC$ into the first column to
8052         be active also for fixed-form souce form.
8053         (acc_device_current, acc_device_property_kind, acc_device_property,
8054         acc_property_memory, acc_property_free_memory, acc_property_name,
8055         acc_property_vendor, acc_property_driver): New named constants.
8056         (acc_get_property, acc_get_property_string): New generic interface.
8058 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
8060         PR libgomp/93481
8061         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
8062         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
8063         optional.
8064         (gomp_target_task_fn): Assert "devicep->async_run_func".
8065         (clear_unsupported_flags): New function to remove unsupported flags
8066         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
8067         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
8068         * testsuite/libgomp.c/target-33.c:
8069         Remove xfail for offload_target_nvptx.
8070         * testsuite/libgomp.c/target-34.c: Likewise.
8072 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
8074         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
8075         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
8076         * testsuite/libgomp.c/target-34.c: Likewise.
8077         * testsuite/libgomp.c/target-link-1.c: Add xfail for
8078         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
8080 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
8082         * testsuite/libgomp.c/target-38.c: New test.
8084 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
8086         PR libgomp/93515
8087         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
8089 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
8091         * testsuite/lib/libgomp.exp
8092         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
8093         and not as 'source' argument to libgomp_target_compile.
8095 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
8097         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
8098         (gcn_gfx801_s): Remove.
8099         (isa_hsa_name): Remove gfx801.
8100         (isa_gcc_name): Remove gfx801/carizzo.
8101         (isa_code): Remove gfx801.
8103 2020-02-03  Julian Brown  <julian@codesourcery.com>
8104             Tobias Burnus  <tobias@codesourcery.com>
8106         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8107         and *_finalize variants; document acc_attach and acc_detach; update
8108         references from OpenACC 2.0 to 2.6.
8109         * openacc.f90 (openacc_version): Update to 201711.
8110         * openacc_lib.h (openacc_version): Update to 201711.
8111         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8112         openacc_version to 201711.
8113         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8115 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
8117         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8118         and vgpr_count fields.
8119         (struct kernel_info): Add a field for a hsa_kernel_description.
8120         (run_kernel): Reduce the number of threads/workers if the requested
8121         number would require too many VGPRs.
8122         (init_basic_kernel_info): Initialize description field with
8123         the hsa_kernel_description entry for the kernel.
8125 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
8127         PR bootstrap/93409
8128         * plugin/configfrag.ac (enable_offload_targets): Skip
8129         HSA and GCN plugin besides -m32 also for -mx32.
8130         * configure: Regenerate.
8132 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
8134         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8136 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
8138         * plugin-gcn.c (struct agent_info): Add fields "name" and
8139         "vendor_name" ...
8140         (GOMP_OFFLOAD_init_device): ... and init from here.
8141         (struct hsa_context_info): Add field "driver_version_s" ...
8142         (init_hsa_contest): ... and init from here.
8143         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8144         implementation.
8145         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8146         Enable test execution for amdgcn and host offloading targets.
8147         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8148         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8149         (expect_device_properties): Split function into ...
8150         (expect_device_string_properties): ... this new function ...
8151         (expect_device_memory): ... and this new function.
8152         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8153         Add test.
8155 2020-01-28  Julian Brown  <julian@codesourcery.com>
8157         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8158         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8159         component/non-component variable refs in a single directive.
8160         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8162 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
8164         * configure.ac: Handle `--with-toolexeclibdir='.
8165         * Makefile.in: Regenerate.
8166         * aclocal.m4: Regenerate.
8167         * configure: Regenerate.
8168         * testsuite/Makefile.in: Regenerate.
8170 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
8172         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8173         (expect_device_properties): Remove "expected_free_mem" argument,
8174         change "expected_total_mem" argument type to size_t;
8175         change types of acc_get_property results to size_t,
8176         adapt format strings.
8177         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8178         Use %zu instead of %zd to print size_t values.
8179         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8180         rename to ...
8181         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8182         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8183         rename to ...
8184         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8186 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
8188         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8189         the device id.
8191 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
8193         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8194         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8195         Adjust test dimensions for amdgcn.
8196         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8197         gang/worker/vector expectations dynamically.
8198         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8199         (main): Likewise.
8200         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8201         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8202         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8203         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8204         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8205         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8206         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8207         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8208         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8209         (acc_gang): Recognise acc_device_radeon.
8210         (acc_worker): Likewise.
8211         (acc_vector): Likewise.
8212         (main): Set expectations for amdgcn.
8213         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8214         (main): Adjust gang/worker/vector expectations dynamically.
8215         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8216         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8217         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8218         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8219         for amdgcn.
8221 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
8223         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8224         acc_device_radeon.
8225         (openacc): Likewise.
8226         * openacc.f90 (openacc_kinds): Likewise.
8227         (openacc): Likewise.
8228         * openacc.h (acc_device_t): Likewise.
8229         * openacc_lib.h: Likewise.
8230         * testsuite/lib/libgomp.exp
8231         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8232         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8233         (cb_compute_construct_end): Likewise.
8234         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8235         (cb_enqueue_launch_start): Likewise.
8236         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8237         (cb_enter_data_end): Likewise.
8238         (cb_exit_data_start): Likewise.
8239         (cb_exit_data_end): Likewise.
8240         (cb_compute_construct_end): Likewise.
8241         (cb_enqueue_launch_start): Likewise.
8242         (cb_enqueue_launch_end): Likewise.
8243         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8244         (main): Likewise.
8246 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8248         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
8249         to use this instead of 'enum gomp_device_property'.
8250         (GOMP_OFFLOAD_get_property): Rename to...
8251         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
8252         * libgomp.h (struct gomp_device_descr): Move
8253         'GOMP_OFFLOAD_openacc_get_property'...
8254         (struct acc_dispatch_t): ... here.  Adjust all users.
8255         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8257         * target.c (gomp_map_vars_internal)
8258         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8259         paths.
8261 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
8263         PR libgomp/93219
8264         * libgomp.h (gomp_print_string): Change return type from void to int.
8265         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
8266         not all characters have been written.
8268 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
8270         * libgomp.texi: Fix typos, use https.
8272 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
8274         * testsuite/libgomp.fortran/optional-map.f90: Add test for
8275         unallocated/disassociated actual arguments to nonallocatable/nonpointer
8276         dummy arguments; those are/shall be regarded as absent arguments.
8277         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8278         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8280 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
8282         Update copyright years.
8284         * libgomp.texi: Bump @copying's copyright year.
8286 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
8288         PR libgomp/93065
8289         * oacc-init.c (goacc_runtime_deinitialize): New function.
8291 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
8293         PR bootstrap/93074
8294         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8295         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
8297 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
8298             Frederik Harwath  <frederik@codesourcery.com>
8299             Thomas Schwinge  <tschwinge@codesourcery.com>
8301         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8302         * libgomp-plugin.h (gomp_device_property_value): New union.
8303         (gomp_device_property_value): New prototype.
8304         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8305         constant.
8306         (acc_device_property_t): New enum.
8307         (acc_get_property, acc_get_property_string): New prototypes.
8308         * oacc-init.c (acc_get_device_type): Also assert that result
8309         is not `acc_device_current'.
8310         (get_property_any, acc_get_property, acc_get_property_string):
8311         New functions.
8312         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8313         `acc_property_memory', `acc_property_free_memory',
8314         `acc_property_name', `acc_property_vendor' and
8315         `acc_property_driver' constants.  Add `acc_device_property' data
8316         type.
8317         (openacc_internal): Add `acc_get_property' and
8318         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
8319         `acc_get_property_string_h', `acc_get_property_l' and
8320         `acc_get_property_string_l'.
8321         * oacc-host.c (host_get_property): New function.
8322         (host_dispatch): Wire it.
8323         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8324         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8325         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8326         * libgomp.texi (OpenACC Runtime Library Routines): Add
8327         `acc_get_property'.
8328         (acc_get_property): New node.
8329         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8330         function (stub).
8331         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8332         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8333         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8334         calls.
8335         (GOMP_OFFLOAD_get_property): New function.
8336         (struct ptx_device): Add new field "name".
8337         (cuda_driver_version_s): Add new static variable ...
8338         (nvptx_init): ... and init from here.
8340         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8341         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8342         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8343         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8344         with test helper functions.
8346         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8348 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
8350         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8351         variable.
8353 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
8355         * target.c (gomp_map_vars_internal): Restore 'omp declare target
8356         link' handling.
8358 2019-12-19  Julian Brown  <julian@codesourcery.com>
8360         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8361         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8362         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8364 2019-12-19  Julian Brown  <julian@codesourcery.com>
8365             Cesar Philippidis  <cesar@codesourcery.com>
8367         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8368         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8369         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8370         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8371         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8372         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8373         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8374         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8375         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8376         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8377         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8378         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8379         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8381 2019-12-19  Julian Brown  <julian@codesourcery.com>
8383         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8384         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8385         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8386         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8387         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8388         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8389         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8390         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8391         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8392         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8393         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8394         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8396 2019-12-19  Julian Brown  <julian@codesourcery.com>
8398         * libgomp.h (struct target_var_desc): Add do_detach flag.
8399         * oacc-init.c (acc_shutdown_1): Free aux block if present.
8400         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8401         struct components.  Tidy up and add some new checks.
8402         (goacc_enter_data_internal): Update call to find_group_last.
8403         (goacc_exit_data_internal): Support detach operations and
8404         GOMP_MAP_STRUCT.
8405         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8406         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
8407         attach/detach in enter/exit data detection code.
8408         * target.c (gomp_map_vars_existing): Initialise do_detach field of
8409         tgt_var_desc.
8410         (gomp_map_vars_internal): Support attach.
8411         (gomp_unmap_vars_internal): Support detach.
8413 2019-12-19  Julian Brown  <julian@codesourcery.com>
8414             Thomas Schwinge  <thomas@codesourcery.com>
8416         * libgomp.h (struct splay_tree_aux): Add attach_count field.
8417         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8418         * libgomp.map (OACC_2.6): New section. Add acc_attach,
8419         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8420         acc_detach_finalize_async.
8421         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8422         acc_detach, acc_detach_async, acc_detach_finalize,
8423         acc_detach_finalize_async): New functions.
8424         * openacc.h (acc_attach, acc_attach_async, acc_detach,
8425         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8426         prototypes.
8427         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8428         (gomp_remove_var_internal): Free attachment counts if present.
8429         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8430         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8432 2019-12-19  Julian Brown  <julian@codesourcery.com>
8433             Cesar Philippidis  <cesar@codesourcery.com>
8435         * libgomp.h (gomp_map_val): Add prototype.
8436         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8437         open-coding device-address calculation.
8438         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8439         non-present case.
8441 2019-12-19  Julian Brown  <julian@codesourcery.com>
8443         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8444         field for virtual_refcount.
8445         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8446         (gomp_free_memmap): Remove prototype.
8447         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8448         instead of calling gomp_free_memmap.
8449         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8450         dynamic_refcount.
8451         (acc_unmap_data): Open code instead of forcing target_mem_desc's
8452         to_free field to NULL then calling gomp_unmap_vars.  Handle
8453         REFCOUNT_INFINITY on target blocks.
8454         (goacc_enter_data): Rename to...
8455         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
8456         handling for mapping groups.  Use virtual_refcount instead of
8457         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8458         map_map_vars_async call.  Re-do lookup for target pointer return value.
8459         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8460         renamed goacc_enter_datum function.
8461         (goacc_exit_data): Rename to...
8462         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
8463         (acc_delete, acc_delete_async, acc_delete_finalize,
8464         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8465         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8466         goacc_exit_datum function.
8467         (gomp_acc_remove_pointer, find_pointer): Remove functions.
8468         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8469         New functions.
8470         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8471         goacc_exit_data_internal helper functions.
8472         * target.c (gomp_map_vars_internal): Handle
8473         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
8474         semantics.
8475         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8476         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8477         virtual_refcount field instead of dynamic_refcount.
8478         (gomp_free_memmap): Remove function.
8479         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8480         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8481         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8483 2019-12-19  Julian Brown  <julian@codesourcery.com>
8484             Thomas Schwinge  <thomas@codesourcery.com>
8486         * libgomp.h (struct splay_tree_aux): New.
8487         (struct splay_tree_key_s): Replace link_key field with aux pointer.
8488         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8489         to aux struct.
8490         (gomp_remove_var_internal): Free aux block if present.
8491         (gomp_load_image_to_device): Zero-initialise aux field instead of
8492         link_key field.
8493         (omp_target_associate_pointer): Zero-initialise aux field.
8495 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
8497         PR middle-end/86416
8498         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8499         q or none.
8500         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8501         L or none.
8503 2019-12-19  Julian Brown  <julian@codesourcery.com>
8504             Maciej W. Rozycki  <macro@codesourcery.com>
8505             Tobias Burnus  <tobias@codesourcery.com>
8506             Thomas Schwinge  <thomas@codesourcery.com>
8508         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8509         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8510         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8511         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8512         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8513         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8514         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8515         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8516         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8518 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
8520         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8521         called...
8522         (goacc_insert_pointer): ... from here, "present" case.
8523         (goacc_insert_pointer): Inline function into...
8524         (GOACC_enter_exit_data): ... here, and simplify.
8526         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8527         called...
8528         (goacc_insert_pointer): ... from here, "not present" case.
8530         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
8531         all users.
8533         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8534         'goacc_enter_data', 'goacc_exit_data'.
8536         * oacc-mem.c (delete_copyout): Refactor into...
8537         (goacc_exit_data): ... this.  Adjust all users.
8539         * oacc-mem.c (present_create_copy): Refactor into...
8540         (goacc_enter_data): ... this.  Adjust all users.
8542         * target.c (gomp_unmap_vars_internal): Add a safeguard to
8543         'gomp_remove_var'.
8545         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8546         like 'GOMP_MAP_FROM'.
8548         PR libgomp/92726
8549         PR libgomp/92970
8550         PR libgomp/92984
8551         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8552         fails.
8553         (GOACC_enter_exit_data): Simplify accordingly.
8554         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8555         subsuming...
8556         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8557         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8558         file.
8559         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8560         subsuming...
8561         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8562         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8563         file.
8564         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8565         subsuming...
8566         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8568         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8569         'finalize' handling.
8571         PR libgomp/92848
8572         * oacc-mem.c (acc_map_data, present_create_copy)
8573         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8574         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8575         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8576         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8577         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8578         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8579         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8580         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8581         Remove "XFAIL"s.
8583         * target.c (gomp_unmap_tgt): Make it 'static'.
8584         * libgomp.h (gomp_unmap_tgt): Remove.
8586 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
8588         PR middle-end/86416
8589         * testsuite/libgomp.c/pr86416-1.c: New.
8590         * testsuite/libgomp.c/pr86416-2.c: New.
8592 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
8594         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8595         all symbols as public except for the 'use â€¦, only' imported symbol,
8596         which is private.
8597         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8598         all symbols from module openacc_kinds as PUBLIC
8599         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8600         fix comment typo.
8601         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8603 2019-12-13  Julian Brown  <julian@codesourcery.com>
8605         PR libgomp/92881
8607         * libgomp.h (gomp_remove_var_async): Add prototype.
8608         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8609         gomp_remove_var.
8610         * target.c (gomp_unref_tgt): Change return type to bool, indicating
8611         whether target_mem_desc was unmapped.
8612         (gomp_unref_tgt_void): New.
8613         (gomp_remove_var): Reimplement in terms of...
8614         (gomp_remove_var_internal): ...this new helper function.
8615         (gomp_remove_var_async): New, implemented using above helper function.
8616         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8617         gomp_unref_tgt.
8619 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
8621         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8622         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8623         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8624         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8625         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8626         Likewise.
8627         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8628         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8630 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
8632         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8633         as public except for the 'use â€¦, only' imported symbol, which is
8634         private.
8635         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8636         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8637         attributes for acc_copyout_finalize and acc_delete_finalize.
8639 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
8641         PR fortran/92899
8642         * testsuite/libgomp.fortran/atomic1.f90: New test.
8644 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8646         PR libgomp/92843
8647         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8648         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
8649         assertions.
8650         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8651         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8652         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8653         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8654         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8656         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8657         * oacc-mem.c: ... here.
8658         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8659         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8660         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8661         Remove.
8662         * libgomp_g.h: Update.
8664         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8665         * oacc-async.c: ... here.
8666         * oacc-int.h (goacc_wait): Declare.
8667         * libgomp_g.h: Update
8669         PR libgomp/92854
8670         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8671         New file.
8672         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8673         Likewise.
8674         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8675         Likewise.
8676         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8677         Likewise.
8678         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8679         Likewise.
8680         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8681         Likewise.
8683 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8684             Julian Brown  <julian@codesourcery.com>
8686         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8687         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8689 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8691         * omp_lib.h.in: Fix spelling of function declaration
8692         omp_get_cancell(l)ation.
8693         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8694         Fix typos.
8695         * env.c: Fix comment typos.
8696         * oacc-host.c: Likewise.
8697         * ordered.c: Likewise.
8698         * task.c: Likewise.
8699         * team.c: Likewise.
8700         * config/gcn/task.c: Likewise.
8701         * config/gcn/team.c: Likewise.
8702         * config/nvptx/task.c: Likewise.
8703         * config/nvptx/team.c: Likewise.
8704         * plugin/plugin-gcn.c: Likewise.
8705         * testsuite/libgomp.fortran/jacobi.f: Likewise.
8706         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8707         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8709 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8711         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8712         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8713         unnecessary 'dg-additional-options "-w"'.
8715 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8716             Julian Brown  <julian@codesourcery.com>
8718         PR libgomp/92116
8719         PR libgomp/92877
8721         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8722         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8723         Adjust all users.
8724         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8725         Remove XFAIL.
8726         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8727         Likewise.
8728         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8730 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8732         PR libgomp/92503
8733         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8734         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8735         file.
8736         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8737         Likewise.
8738         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8739         Likewise.
8740         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8741         Likewise.
8742         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8743         Likewise.
8744         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8745         Likewise.
8746         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8747         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8748         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8749         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8750         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8751         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8752         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8753         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8754         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8755         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8757         PR libgomp/92840
8758         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8759         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8760         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8761         New file.
8762         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8763         Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8765         Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8767         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8769         PR libgomp/92511
8770         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8771         this file...
8772         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8773         this file...
8774         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8775         file...
8776         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8777         file...
8778         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8779         ... with their content moved into, and extended in this new file.
8780         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8781         New file.
8782         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8783         Likewise.
8784         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8785         Likewise.
8786         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8787         Likewise.
8789         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8791         PR libgomp/92854
8792         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8794         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8796         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8798 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8800         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8801         unique.
8802         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8803         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8804         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8805         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8806         Ditto.
8807         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8808         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8810 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8812         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8814 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8815             Kwok Cheung Yeung <kcy@codesourcery.com>
8817         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8818         if input it a NULL pointer.
8819         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8820         diagnostic of NULL pointer.
8821         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8822         * testsuite/libgomp.fortran/optional-map.f90: New.
8823         * testsuite/libgomp.fortran/use_device_addr-1.f90
8824         (test_dummy_opt_callee_1_absent): New.
8825         (test_dummy_opt_call_1): Call it.
8826         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8827         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8828         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8829         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8830         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8831         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8832         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8833         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8834         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8835         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8836         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8837         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8838         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8839         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8840         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8841         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8843 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8845         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8846         expect dg-output of 'Error termination.' for GCN.
8847         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8848         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8850 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8852         PR fortran/92756
8853         * testsuite/libgomp.fortran/teams1.f90: New test.
8854         * testsuite/libgomp.fortran/teams2.f90: New test.
8856 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8858         * oacc-init.c (acc_known_device_type): Add function.
8859         (unknown_device_type_error): Add function.
8860         (name_of_acc_device_t): Change to call unknown_device_type_error
8861         on unknown type.
8862         (resolve_device): Use acc_known_device_type.
8863         (acc_init): Fail if acc_device_t argument is not valid.
8864         (acc_shutdown): Likewise.
8865         (acc_get_num_devices): Likewise.
8866         (acc_set_device_type): Likewise.
8867         (acc_get_device_num): Likewise.
8868         (acc_set_device_num): Likewise.
8869         (acc_on_device): Add comment that argument validity is not checked.
8871 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8873         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8874         Recognize amdgcn.
8875         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8876         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8877         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8878         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8879         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8881 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8883         PR libgomp/91938
8884         * configure.tgt: Avoid IE tls on *-*-musl*.
8886 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8888         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8889         adding a common-block test case.
8891 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8893         PR c++/60228
8894         * testsuite/libgomp.c++/udr-20.C: New test.
8895         * testsuite/libgomp.c++/udr-21.C: New test.
8897 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8899         * testsuite/lib/libgomp.exp
8900         (check_effective_target_offload_target_nvptx): New proc.
8901         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8902         'dg-skip-if'.
8903         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8904         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8905         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8907 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8909         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8910         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8911         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8912         * testsuite/libgomp.c/private-1.c: Likewise.
8913         * testsuite/libgomp.c/task-1.c: Likewise.
8914         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8916 2019-11-20  Julian Brown  <julian@codesourcery.com>
8918         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8919         aq->mutex here.
8920         (queue_push_launch): Lock aq->mutex before calling
8921         wait_for_queue_nonfull.
8922         (queue_push_callback): Likewise.
8923         (queue_push_asyncwait): Likewise.
8924         (queue_push_placeholder): Likewise.
8926 2019-11-20  Julian Brown  <julian@codesourcery.com>
8928         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8929         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8930         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8931         return code.
8933 2019-11-20  Julian Brown  <julian@codesourcery.com>
8935         PR libgomp/92511
8937         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8938         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8939         in non-present/create case.
8940         (delete_copyout): Change error condition to fail only on copies outside
8941         of mapped block.  Adjust error message accordingly.
8942         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8943         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8944         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8945         message.
8946         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8947         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8948         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8950 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8952         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8953         libatomic in build-tree testing.
8955 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8957         * testsuite/Makefile.in: Regenerate.
8959 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8961         * testsuite/libgomp.c/target-print-1.c: New file.
8962         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8963         * testsuite/libgomp.oacc-c/print-1.c: New file.
8964         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8966 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8967             Kwok Cheung Yeung  <kcy@codesourcery.com>
8968             Julian Brown  <julian@codesourcery.com>
8969             Tom de Vries  <tom@codesourcery.com>
8971         * plugin/Makefrag.am: Add amdgcn plugin support.
8972         * plugin/configfrag.ac: Likewise.
8973         * plugin/plugin-gcn.c: New file.
8974         * configure: Regenerate.
8975         * Makefile.in: Regenerate.
8976         * testsuite/Makefile.in: Regenerate.
8978 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8980         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8981         and use team_malloc variants.
8982         (gomp_gcn_exit_kernel): Use team_free.
8983         * libgomp.h (TEAM_ARENA_SIZE): Define.
8984         (TEAM_ARENA_START): Define.
8985         (TEAM_ARENA_FREE): Define.
8986         (TEAM_ARENA_END): Define.
8987         (team_malloc): New function.
8988         (team_malloc_cleared): New function.
8989         (team_free): New function.
8990         * team.c (gomp_new_team): Initialize and use team_malloc.
8991         (free_team): Use team_free.
8992         (gomp_free_thread): Use team_free.
8993         (gomp_pause_host): Use team_free.
8994         * work.c (gomp_init_work_share): Use team_malloc.
8995         (gomp_fini_work_share): Use team_free.
8997 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8998             Kwok Cheung Yeung  <kcy@codesourcery.com>
8999             Julian Brown  <julian@codesourcery.com>
9000             Tom de Vries  <tom@codesourcery.com>
9002         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
9003         * Makefile.in: Regenerate.
9004         * config.h.in (PLUGIN_GCN): Add new undef.
9005         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
9006         * config/gcn/affinity-fmt.c: New file.
9007         * config/gcn/bar.c: New file.
9008         * config/gcn/bar.h: New file.
9009         * config/gcn/doacross.h: New file.
9010         * config/gcn/icv-device.c: New file.
9011         * config/gcn/oacc-target.c: New file.
9012         * config/gcn/simple-bar.h: New file.
9013         * config/gcn/target.c: New file.
9014         * config/gcn/task.c: New file.
9015         * config/gcn/team.c: New file.
9016         * config/gcn/time.c: New file.
9017         * configure.ac: Add amdgcn*-*-*.
9018         * configure: Regenerate.
9019         * configure.tgt: Add amdgcn*-*-*.
9020         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
9021         * libgomp.h (gcn_thrs): Add amdgcn variant.
9022         (set_gcn_thrs): Likewise.
9023         (gomp_thread): Likewise.
9024         * oacc-int.h (goacc_thread): Likewise.
9025         * oacc-target.c: New file.
9026         * openacc.f90 (acc_device_gcn): New parameter.
9027         * openacc.h (acc_device_t): Add acc_device_gcn.
9028         * team.c (gomp_free_pool_helper): Add amdgcn support.
9030 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9031             Julian Brown  <julian@codesourcery.com>
9033         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
9034         parameter.
9035         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
9036         queue constructor.
9037         * oacc-host.c (host_openacc_async_construct): Add device parameter.
9038         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
9039         device parameter.
9041 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
9043         * configure.tgt (nvptx*-*-*): Add "accel" directory.
9044         * config/nvptx/libgomp-plugin.c: Move ...
9045         * config/accel/libgomp-plugin.c: ... to here.
9046         * config/nvptx/lock.c: Move ...
9047         * config/accel/lock.c: ... to here.
9048         * config/nvptx/mutex.c: Move ...
9049         * config/accel/mutex.c: ... to here.
9050         * config/nvptx/mutex.h: Move ...
9051         * config/accel/mutex.h: ... to here.
9052         * config/nvptx/oacc-async.c: Move ...
9053         * config/accel/oacc-async.c: ... to here.
9054         * config/nvptx/oacc-cuda.c: Move ...
9055         * config/accel/oacc-cuda.c: ... to here.
9056         * config/nvptx/oacc-host.c: Move ...
9057         * config/accel/oacc-host.c: ... to here.
9058         * config/nvptx/oacc-init.c: Move ...
9059         * config/accel/oacc-init.c: ... to here.
9060         * config/nvptx/oacc-mem.c: Move ...
9061         * config/accel/oacc-mem.c: ... to here.
9062         * config/nvptx/oacc-plugin.c: Move ...
9063         * config/accel/oacc-plugin.c: ... to here.
9064         * config/nvptx/omp-lock.h: Move ...
9065         * config/accel/omp-lock.h: ... to here.
9066         * config/nvptx/openacc.f90: Move ...
9067         * config/accel/openacc.f90: ... to here.
9068         * config/nvptx/pool.h: Move ...
9069         * config/accel/pool.h: ... to here.
9070         * config/nvptx/proc.c: Move ...
9071         * config/accel/proc.c: ... to here.
9072         * config/nvptx/ptrlock.c: Move ...
9073         * config/accel/ptrlock.c: ... to here.
9074         * config/nvptx/ptrlock.h: Move ...
9075         * config/accel/ptrlock.h: ... to here.
9076         * config/nvptx/sem.c: Move ...
9077         * config/accel/sem.c: ... to here.
9078         * config/nvptx/sem.h: Move ...
9079         * config/accel/sem.h: ... to here.
9080         * config/nvptx/thread-stacksize.h: Move ...
9081         * config/accel/thread-stacksize.h: ... to here.
9083 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
9084             Tobias Burnus  <tobias@codesourcery.com>
9085             Frederik Harwath  <frederik@codesourcery.com>
9086             Thomas Schwinge  <thomas@codesourcery.com>
9088         libgomp/
9089         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
9090         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
9091         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
9093 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
9094             Kwok Cheung Yeung  <kcy@codesourcery.com>
9096         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
9097         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
9099 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
9101         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9103         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9104         run'.
9105         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9106         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9108 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9110         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9111         Add expected warnings about missing reduction clauses.
9112         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9113         Likewise.
9114         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9115         Likewise.
9116         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9117         Likewise.
9119 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
9121         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9122         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9123         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9124         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9125         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9126         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9128 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
9130         PR fortran/92305
9131         * testsuite/libgomp.fortran/allocatable2.f90: Use
9132         unique numbers with 'stop'.
9133         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9134         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9135         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9136         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9137         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9139 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
9141         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9142         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9143         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9144         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9145         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9146         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9148 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9150         * testsuite/libgomp.fortran/target9.f90: New.
9152 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9154         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9155         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9156         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9157         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9158         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9159         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9160         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9161         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9162         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9163         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9164         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9165         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9166         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9167         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9168         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9169         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9170         * testsuite/libgomp.fortran/associate1.f90: Ditto.
9171         * testsuite/libgomp.fortran/associate2.f90: Ditto.
9172         * testsuite/libgomp.fortran/associate3.f90: Ditto.
9173         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9174         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9175         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9176         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9177         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9178         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9179         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9180         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9181         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9182         * testsuite/libgomp.fortran/character1.f90: Ditto.
9183         * testsuite/libgomp.fortran/character2.f90: Ditto.
9184         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9185         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9186         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9187         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9188         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9189         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9190         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9191         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9192         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9193         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9194         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9195         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9196         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9197         * testsuite/libgomp.fortran/do1.f90: Ditto.
9198         * testsuite/libgomp.fortran/do2.f90: Ditto.
9199         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9200         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9201         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9202         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9203         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9204         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9205         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9206         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9207         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9208         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9209         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9210         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9211         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9212         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9213         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9214         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9215         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9216         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9217         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9218         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9219         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9220         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9221         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9222         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9223         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9224         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9225         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9226         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9227         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9228         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9229         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9230         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9231         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9232         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9233         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9234         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9235         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9236         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9237         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9238         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9239         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9240         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9241         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9242         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9243         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9244         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9245         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9246         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9247         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9248         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9249         * testsuite/libgomp.fortran/lib1.f90: Ditto.
9250         * testsuite/libgomp.fortran/lib4.f90: Ditto.
9251         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9252         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9253         * testsuite/libgomp.fortran/nested1.f90: Ditto.
9254         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9255         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9256         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9257         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9258         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9259         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9260         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9261         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9262         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9263         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9264         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9265         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9266         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9267         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9268         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9269         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9270         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9271         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9272         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9273         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9274         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9275         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9276         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9277         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9278         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9279         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9280         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9281         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9282         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9283         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9284         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9285         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9286         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9287         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9288         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9289         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9290         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9291         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9292         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9293         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9294         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9295         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9296         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9297         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9298         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9299         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9300         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9301         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9302         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9303         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9304         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9305         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9306         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9307         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9308         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9309         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9310         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9311         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9312         * testsuite/libgomp.fortran/reference1.f90: Ditto.
9313         * testsuite/libgomp.fortran/reference2.f90: Ditto.
9314         * testsuite/libgomp.fortran/retval1.f90: Ditto.
9315         * testsuite/libgomp.fortran/retval2.f90: Ditto.
9316         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9317         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9318         * testsuite/libgomp.fortran/simd1.f90: Ditto.
9319         * testsuite/libgomp.fortran/simd2.f90: Ditto.
9320         * testsuite/libgomp.fortran/simd3.f90: Ditto.
9321         * testsuite/libgomp.fortran/simd4.f90: Ditto.
9322         * testsuite/libgomp.fortran/simd5.f90: Ditto.
9323         * testsuite/libgomp.fortran/simd6.f90: Ditto.
9324         * testsuite/libgomp.fortran/simd7.f90: Ditto.
9325         * testsuite/libgomp.fortran/stack.f90: Ditto.
9326         * testsuite/libgomp.fortran/strassen.f90: Ditto.
9327         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9328         * testsuite/libgomp.fortran/tabs2.f: Ditto.
9329         * testsuite/libgomp.fortran/target1.f90: Ditto.
9330         * testsuite/libgomp.fortran/target2.f90: Ditto.
9331         * testsuite/libgomp.fortran/target3.f90: Ditto.
9332         * testsuite/libgomp.fortran/target4.f90: Ditto.
9333         * testsuite/libgomp.fortran/target5.f90: Ditto.
9334         * testsuite/libgomp.fortran/target6.f90: Ditto.
9335         * testsuite/libgomp.fortran/target7.f90: Ditto.
9336         * testsuite/libgomp.fortran/target8.f90: Ditto.
9337         * testsuite/libgomp.fortran/task1.f90: Ditto.
9338         * testsuite/libgomp.fortran/task2.f90: Ditto.
9339         * testsuite/libgomp.fortran/task3.f90: Ditto.
9340         * testsuite/libgomp.fortran/task4.f90: Ditto.
9341         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9342         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9343         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9344         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9345         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9346         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9347         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9348         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9349         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9350         * testsuite/libgomp.fortran/udr1.f90: Ditto.
9351         * testsuite/libgomp.fortran/udr10.f90: Ditto.
9352         * testsuite/libgomp.fortran/udr11.f90: Ditto.
9353         * testsuite/libgomp.fortran/udr12.f90: Ditto.
9354         * testsuite/libgomp.fortran/udr13.f90: Ditto.
9355         * testsuite/libgomp.fortran/udr14.f90: Ditto.
9356         * testsuite/libgomp.fortran/udr15.f90: Ditto.
9357         * testsuite/libgomp.fortran/udr2.f90: Ditto.
9358         * testsuite/libgomp.fortran/udr3.f90: Ditto.
9359         * testsuite/libgomp.fortran/udr4.f90: Ditto.
9360         * testsuite/libgomp.fortran/udr5.f90: Ditto.
9361         * testsuite/libgomp.fortran/udr6.f90: Ditto.
9362         * testsuite/libgomp.fortran/udr7.f90: Ditto.
9363         * testsuite/libgomp.fortran/udr8.f90: Ditto.
9364         * testsuite/libgomp.fortran/udr9.f90: Ditto.
9365         * testsuite/libgomp.fortran/vla1.f90: Ditto.
9366         * testsuite/libgomp.fortran/vla2.f90: Ditto.
9367         * testsuite/libgomp.fortran/vla3.f90: Ditto.
9368         * testsuite/libgomp.fortran/vla4.f90: Ditto.
9369         * testsuite/libgomp.fortran/vla5.f90: Ditto.
9370         * testsuite/libgomp.fortran/vla6.f90: Ditto.
9371         * testsuite/libgomp.fortran/vla7.f90: Ditto.
9372         * testsuite/libgomp.fortran/vla8.f90: Ditto.
9373         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9374         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9376 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9378         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9379         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9380         Ditto; add 'dg-do run' for torture testing.
9381         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
9382         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9383         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9384         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9385         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9386         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9387         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9388         * testsuite/libgomp.fortran/task2.f90: Ditto.
9389         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9390         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9391         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9392         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9393         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9394         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9396 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
9398         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9399         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9400         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9401         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9402         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9403         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9404         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9405         Use 'stop' not abort().
9406         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9407         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9408         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9409         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9410         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9411         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9412         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9413         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9414         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9415         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9416         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9417         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9418         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9419         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9420         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9421         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9422         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9423         Ditto.
9424         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9425         Ditto.
9426         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9427         Ditto.
9428         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9429         Ditto.
9430         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9431         Ditto.
9432         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9433         Ditto.
9434         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9435         Ditto.
9436         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9437         Ditto.
9438         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9439         Ditto.
9440         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9441         Ditto.
9442         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9443         Ditto.
9444         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9445         Ditto.
9446         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9447         Ditto.
9448         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9449         Ditto.
9450         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9451         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9452         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9453         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9454         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9455         Likewise and also add 'dg-do run'.
9456         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9457         Ditto.
9459 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
9460             Tobias Burnus  <tobias@codesourcery.com>
9462         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9463         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9464         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9466 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
9468         PR libgomp/92081
9469         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9470         than 0.
9472 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9474         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9475         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9477 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
9479         PR middle-end/92036
9480         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9481         file.
9483 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
9485         PR testsuite/91884
9486         * testsuite/libgomp.fortran/fortran.exp: Conditionally
9487         add -lquadmath.
9488         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9490 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
9492         PR libgomp/92028
9493         * target.c (gomp_map_vars_internal): Readd the previous
9494         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9495         though do that just in the !not_found_cnt case.
9497 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
9499         * gfortran.dg/gomp/target-simd.f90: New.
9501 2019-10-02  Julian Brown  <julian@codesourcery.com>
9502             Cesar Philippidis  <cesar@codesourcery.com>
9504         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9505         * target.c (FIELD_TGT_EMPTY): Define.
9506         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
9507         as switch instead of list of ifs.
9508         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9510 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
9512         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9513         include. Replace alloca () with __builtin_alloca ().
9514         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9516 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
9518         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9519         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9520         * oacc-parallel.c: Don't include "libgomp_g.h".
9521         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9522         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9523         * aclocal.m4: Regenerated.
9524         * config.h.in: Regenerated.
9525         * configure: Regenerated.
9526         * Makefile.in: Regenerated.
9528 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
9530         * libgomp_g.h: Include stdint.h instead of gstdint.h.
9532 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
9534         * configure: Regenerate.
9536 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
9538         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9539         string is initialized.
9541 2019-09-06  Florian Weimer  <fweimer@redhat.com>
9543         * configure: Regenerate.
9545 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
9547         PR other/79543
9548         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9549         scanning to conform to the GNU Coding Standards.
9550         * configure: Regenerate.
9552 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
9554         PR libgomp/91530
9555         * testsuite/libgomp.c/scan-21.c: New test.
9556         * testsuite/libgomp.c/scan-22.c: New test.
9558 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
9560         PR libgomp/91530
9561         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9562         targets.
9563         * testsuite/libgomp.c/scan-12.c: Likewise.
9564         * testsuite/libgomp.c/scan-13.c: Likewise.
9565         * testsuite/libgomp.c/scan-14.c: Likewise.
9566         * testsuite/libgomp.c/scan-15.c: Likewise.
9567         * testsuite/libgomp.c/scan-16.c: Likewise.
9568         * testsuite/libgomp.c/scan-17.c: Likewise.
9569         * testsuite/libgomp.c/scan-18.c: Likewise.
9570         * testsuite/libgomp.c/scan-19.c: Likewise.
9571         * testsuite/libgomp.c/scan-20.c: Likewise.
9572         * testsuite/libgomp.c++/scan-9.C: Likewise.
9573         * testsuite/libgomp.c++/scan-10.C: Likewise.
9574         * testsuite/libgomp.c++/scan-11.C: Likewise.
9575         * testsuite/libgomp.c++/scan-12.C: Likewise.
9576         * testsuite/libgomp.c++/scan-14.C: Likewise.
9577         * testsuite/libgomp.c++/scan-15.C: Likewise.
9578         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
9579         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9580         * testsuite/libgomp.c++/scan-16.C: Likewise.
9582 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
9584         PR fortran/91473
9585         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9586         -std=legacy so invalid code in the test case is accepted.
9588 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9590         PR fortran/91422
9591         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9592         dimension.
9594 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
9596         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9597         perform the lookup in the first loop only if !not_found_cnt, otherwise
9598         perform lookups for it in the second loop guarded with
9599         if (not_found_cnt || has_firstprivate).
9600         * testsuite/libgomp.c/target-37.c: New test.
9601         * testsuite/libgomp.c++/target-22.C: New test.
9603 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
9605         * testsuite/libgomp.c/target-18.c (struct S): New type.
9606         (foo): Use use_device_addr clause instead of use_device_ptr clause
9607         where required by OpenMP 5.0, add further tests for both use_device_ptr
9608         and use_device_addr clauses.
9609         * testsuite/libgomp.c++/target-9.C (struct S): New type.
9610         (foo): Use use_device_addr clause instead of use_device_ptr clause
9611         where required by OpenMP 5.0, add further tests for both use_device_ptr
9612         and use_device_addr clauses.  Add t and u arguments.
9613         (main): Adjust caller.
9615 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
9617         * testsuite/libgomp.c++/loop-13.C: New test.
9618         * testsuite/libgomp.c++/loop-14.C: New test.
9619         * testsuite/libgomp.c++/loop-15.C: New test.
9621 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9623         PR middle-end/91301
9624         * testsuite/libgomp.c++/for-27.C: New test.
9626 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
9628         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9629         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9631 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9633         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9635 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
9637         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9638         * testsuite/libgomp.c++/scan-16.C: Likewise.
9640 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
9642         * testsuite/libgomp.c/scan-19.c: New test.
9643         * testsuite/libgomp.c/scan-20.c: New test.
9645         * testsuite/libgomp.c/scan-11.c: New test.
9646         * testsuite/libgomp.c/scan-12.c: New test.
9647         * testsuite/libgomp.c/scan-13.c: New test.
9648         * testsuite/libgomp.c/scan-14.c: New test.
9649         * testsuite/libgomp.c/scan-15.c: New test.
9650         * testsuite/libgomp.c/scan-16.c: New test.
9651         * testsuite/libgomp.c/scan-17.c: New test.
9652         * testsuite/libgomp.c/scan-18.c: New test.
9653         * testsuite/libgomp.c++/scan-9.C: New test.
9654         * testsuite/libgomp.c++/scan-10.C: New test.
9655         * testsuite/libgomp.c++/scan-11.C: New test.
9656         * testsuite/libgomp.c++/scan-12.C: New test.
9657         * testsuite/libgomp.c++/scan-13.C: New test.
9658         * testsuite/libgomp.c++/scan-14.C: New test.
9659         * testsuite/libgomp.c++/scan-15.C: New test.
9660         * testsuite/libgomp.c++/scan-16.C: New test.
9662 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
9664         * testsuite/libgomp.c/scan-9.c: New test.
9665         * testsuite/libgomp.c/scan-10.c: New test.
9667 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
9669         * testsuite/libgomp.c++/scan-1.C: New test.
9670         * testsuite/libgomp.c++/scan-2.C: New test.
9671         * testsuite/libgomp.c++/scan-3.C: New test.
9672         * testsuite/libgomp.c++/scan-4.C: New test.
9673         * testsuite/libgomp.c++/scan-5.C: New test.
9674         * testsuite/libgomp.c++/scan-6.C: New test.
9675         * testsuite/libgomp.c++/scan-7.C: New test.
9676         * testsuite/libgomp.c++/scan-8.C: New test.
9677         * testsuite/libgomp.c/scan-1.c: New test.
9678         * testsuite/libgomp.c/scan-2.c: New test.
9679         * testsuite/libgomp.c/scan-3.c: New test.
9680         * testsuite/libgomp.c/scan-4.c: New test.
9681         * testsuite/libgomp.c/scan-5.c: New test.
9682         * testsuite/libgomp.c/scan-6.c: New test.
9683         * testsuite/libgomp.c/scan-7.c: New test.
9684         * testsuite/libgomp.c/scan-8.c: New test.
9686 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9688         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9689         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9690         Likewise.
9692         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9693         check.
9695 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
9697         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9698         file.
9700 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9702         PR fortran/90743
9703         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9704         case.
9705         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9706         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9707         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9708         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9710         PR testsuite/90861
9711         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9713         PR middle-end/90862
9714         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9716 2019-06-16  Tom de Vries  <tdevries@suse.de>
9718         PR tree-optimization/89376
9719         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9721 2019-06-15  Tom de Vries  <tdevries@suse.de>
9723         PR tree-optimization/89713
9724         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9725         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9727 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9729         PR middle-end/90779
9730         * testsuite/libgomp.c/pr90779.c: New test.
9731         * testsuite/libgomp.fortran/pr90779.f90: New test.
9733 2019-06-15  Tom de Vries  <tdevries@suse.de>
9735         PR tree-optimization/90009
9736         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9738 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9740         PR tree-optimization/89713
9741         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9743 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9745         PR target/90811
9746         * testsuite/libgomp.c/pr90811.c: New test.
9748 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9750         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9751         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9753 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9755         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9756         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9757         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9758         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9760 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9762         * configure.ac: Call AX_COUNT_CPUS.
9763         Substitute CPU_COUNT.
9764         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9765         count fallback.
9766         * aclocal.m4: Regenerate.
9767         * configure: Regenerate.
9768         * Makefile.in, testsuite/Makefile.in: Regenerate.
9770 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9772         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9773         to ...
9774         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9775         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9776         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9778 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9780         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9782         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9784         PR libgomp/90641
9785         * work.c (gomp_init_work_share): Instead of aligning final ordered
9786         value to multiples of long long alignment, align to that the
9787         first part (ordered team ids) and if inline_ordered_team_ids
9788         is not on a long long alignment boundary within the structure,
9789         use __alignof__ (long long) - 1 pad size always.
9790         * loop.c (GOMP_loop_start): Fix *mem computation if
9791         inline_ordered_team_ids is not aligned on long long alignment boundary
9792         within the structure.
9793         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9794         * sections.c (GOMP_sections2_start): Likewise.
9796 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9798         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9799         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9801         PR libgomp/90585
9802         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9803         HAVE_INTTYPES_H is defined.
9804         (print_uint64_t): New typedef.
9805         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9806         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9807         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9808         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9809         before casting to void *.
9810         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9811         * oacc-mem.c: Don't include config.h nor stdint.h.
9812         * target.c: Don't include config.h.
9813         * oacc-cuda.c: Likewise.
9814         * oacc-host.c: Don't include stdint.h.
9816 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9818         PR libgomp/90527
9819         * alloc.c (_GNU_SOURCE): Define.
9821 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9823         * acc_prof.h: New file.
9824         * oacc-profiling.c: Likewise.
9825         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9826         Add these, respectively.
9827         * Makefile.in: Regenerate.
9828         * env.c (initialize_env): Call goacc_profiling_initialize.
9829         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9830         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9831         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9832         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9833         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9834         acc_prof_register, acc_prof_unregister, and acc_register_library.
9835         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9836         GOMP_PLUGIN_goacc_thread.
9837         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9838         prof_callbacks_enabled members.
9839         (goacc_prof_enabled, goacc_profiling_initialize)
9840         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9841         (goacc_profiling_dispatch): Declare.
9842         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9843         (GOACC_PROFILING_SETUP_P): Define.
9844         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9845         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9846         OpenACC Profiling Interface.
9847         * oacc-cuda.c (acc_get_current_cuda_device)
9848         (acc_get_current_cuda_context, acc_get_cuda_stream)
9849         (acc_set_cuda_stream): Likewise.
9850         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9851         (acc_init, acc_set_device_type, acc_get_device_type)
9852         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9853         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9854         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9855         (acc_unmap_data, present_create_copy, delete_copyout)
9856         (update_dev_host): Likewise.
9857         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9858         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9859         Likewise.
9860         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9861         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9862         Likewise.
9863         * libgomp.texi: Update.
9864         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9865         file.
9866         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9867         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9868         Likewise.
9869         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9870         Likewise.
9871         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9872         Likewise.
9873         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9874         Likewise.
9876 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9878         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9879         (struct goacc_asyncqueue_list): Likewise.
9880         (goacc_aq): Likewise.
9881         (goacc_aq_list): Likewise.
9882         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9883         (GOMP_OFFLOAD_openacc_async_test): Remove.
9884         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9885         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9886         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9887         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9888         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9889         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9890         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9891         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9892         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9893         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9894         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9895         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9896         (GOMP_OFFLOAD_openacc_async_test): Declare.
9897         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9898         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9899         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9900         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9901         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9903         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9904         (gomp_acc_insert_pointer): Adjust declaration.
9905         (gomp_copy_host2dev): New declaration.
9906         (gomp_copy_dev2host): Likewise.
9907         (gomp_map_vars_async): Likewise.
9908         (gomp_unmap_tgt): Likewise.
9909         (gomp_unmap_vars_async): Likewise.
9910         (gomp_fini_device): Likewise.
9912         * oacc-async.c (get_goacc_thread): New function.
9913         (get_goacc_thread_device): New function.
9914         (lookup_goacc_asyncqueue): New function.
9915         (get_goacc_asyncqueue): New function.
9916         (acc_async_test): Adjust code to use new async design.
9917         (acc_async_test_all): Likewise.
9918         (acc_wait): Likewise.
9919         (acc_wait_async): Likewise.
9920         (acc_wait_all): Likewise.
9921         (acc_wait_all_async): Likewise.
9922         (goacc_async_free): New function.
9923         (goacc_init_asyncqueues): Likewise.
9924         (goacc_fini_asyncqueues): Likewise.
9925         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9926         design.
9927         (acc_set_cuda_stream): Likewise.
9928         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9929         (host_openacc_register_async_cleanup): Remove.
9930         (host_openacc_async_exec): New function.
9931         (host_openacc_async_test): Adjust parameters.
9932         (host_openacc_async_test_all): Remove.
9933         (host_openacc_async_wait): Remove.
9934         (host_openacc_async_wait_async): Remove.
9935         (host_openacc_async_wait_all): Remove.
9936         (host_openacc_async_wait_all_async): Remove.
9937         (host_openacc_async_set_async): Remove.
9938         (host_openacc_async_synchronize): New function.
9939         (host_openacc_async_serialize): New function.
9940         (host_openacc_async_host2dev): New function.
9941         (host_openacc_async_dev2host): New function.
9942         (host_openacc_async_queue_callback): New function.
9943         (host_openacc_async_construct): New function.
9944         (host_openacc_async_destruct): New function.
9945         (struct gomp_device_descr host_dispatch): Remove initialization of old
9946         interface, add initialization of new async sub-struct.
9947         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9948         (goacc_attach_host_thread_to_device): Remove old async code usage.
9949         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9950         (goacc_fini_asyncqueues): Likewise.
9951         (goacc_async_copyout_unmap_vars): Likewise.
9952         (goacc_async_free): Likewise.
9953         (get_goacc_asyncqueue): Likewise.
9954         (lookup_goacc_asyncqueue): Likewise.
9955         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9956         design.
9957         (present_create_copy): Adjust code to use new async design.
9958         (delete_copyout): Likewise.
9959         (update_dev_host): Likewise.
9960         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9961         async design.
9962         (gomp_acc_remove_pointer): Adjust code to use new async design.
9963         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9964         design.
9965         (GOACC_enter_exit_data): Likewise.
9966         (goacc_wait): Likewise.
9967         (GOACC_update): Likewise.
9968         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9969         when called, warn as obsolete in comment.
9970         * target.c (goacc_device_copy_async): New function.
9971         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9972         add goacc_device_copy_async case.
9973         (gomp_copy_dev2host): Likewise.
9974         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9975         (gomp_map_pointer): Likewise.
9976         (gomp_map_fields_existing): Likewise.
9977         (gomp_map_vars_internal): New always_inline function, renamed from
9978         gomp_map_vars.
9979         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9980         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9981         passing goacc_asyncqueue argument.
9982         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9983         (gomp_unref_tgt): New function.
9984         (gomp_unmap_vars_internal): New always_inline function, renamed from
9985         gomp_unmap_vars.
9986         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9987         (gomp_unmap_vars_async): Implement by calling
9988         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9989         (gomp_fini_device): New function.
9990         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9991         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9992         new async interface.
9993         (gomp_target_fini): Adjust code to call gomp_fini_device.
9995         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9996         (struct ptx_stream): Remove.
9997         (struct nvptx_thread): Remove current_stream field.
9998         (cuda_map_create): Remove.
9999         (cuda_map_destroy): Remove.
10000         (map_init): Remove.
10001         (map_fini): Remove.
10002         (map_pop): Remove.
10003         (map_push): Remove.
10004         (struct goacc_asyncqueue): Define.
10005         (struct nvptx_callback): Define.
10006         (struct ptx_free_block): Define.
10007         (struct ptx_device): Remove null_stream, active_streams, async_streams,
10008         stream_lock, and next fields.
10009         (enum ptx_event_type): Remove.
10010         (struct ptx_event): Remove.
10011         (ptx_event_lock): Remove.
10012         (ptx_events): Remove.
10013         (init_streams_for_device): Remove.
10014         (fini_streams_for_device): Remove.
10015         (select_stream_for_async): Remove.
10016         (nvptx_init): Remove ptx_events and ptx_event_lock references.
10017         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
10018         case.
10019         (nvptx_open_device): Add free_blocks initialization, remove
10020         init_streams_for_device call.
10021         (nvptx_close_device): Remove fini_streams_for_device call, add
10022         free_blocks destruct code.
10023         (event_gc): Remove.
10024         (event_add): Remove.
10025         (nvptx_exec): Adjust parameters and code.
10026         (nvptx_free): Likewise.
10027         (nvptx_host2dev): Remove.
10028         (nvptx_dev2host): Remove.
10029         (nvptx_set_async): Remove.
10030         (nvptx_async_test): Remove.
10031         (nvptx_async_test_all): Remove.
10032         (nvptx_wait): Remove.
10033         (nvptx_wait_async): Remove.
10034         (nvptx_wait_all): Remove.
10035         (nvptx_wait_all_async): Remove.
10036         (nvptx_get_cuda_stream): Remove.
10037         (nvptx_set_cuda_stream): Remove.
10038         (GOMP_OFFLOAD_alloc): Adjust code.
10039         (GOMP_OFFLOAD_free): Likewise.
10040         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10041         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
10042         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10043         (GOMP_OFFLOAD_openacc_async_wait): Remove.
10044         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10045         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10046         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10047         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10048         (cuda_free_argmem): New function.
10049         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
10050         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
10051         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
10052         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
10053         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
10054         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
10055         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
10056         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
10057         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
10058         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
10059         (cuda_callback_wrapper): New function.
10060         (cuda_memcpy_sanity_check): New function.
10061         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
10062         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
10063         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
10064         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
10066 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
10068         PR target/87835
10069         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
10071 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
10073         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
10075 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
10077         * team.c (gomp_team_start): Initialize pool->threads[0].
10079 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
10081         * testsuite/libgomp.oacc-c++/c++.exp: Specify
10082         "-foffload=$offload_target".
10083         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10084         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10085         * testsuite/lib/libgomp.exp
10086         (check_effective_target_openacc_nvidia_accel_configured): Remove,
10087         as (conceptually) merged into
10088         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
10089         users.
10091         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
10092         * testsuite/libgomp-test-support.exp.in: Adjust.
10093         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
10094         openacc_device_types_s.
10095         (offload_target_to_openacc_device_type): New proc.
10096         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
10097         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10098         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10099         * Makefile.in: Regenerate.
10100         * configure: Likewise.
10101         * testsuite/Makefile.in: Likewise.
10103         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10104         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10105         instead of OFFLOAD_TARGETS.
10106         * target.c (gomp_target_init): Adjust.
10107         * testsuite/libgomp-test-support.exp.in: Likewise.
10108         * testsuite/lib/libgomp.exp: Likewise.  Populate
10109         openacc_device_types_s instead of offload_targets_s_openacc.
10110         (check_effective_target_openacc_nvidia_accel_selected)
10111         (check_effective_target_openacc_host_selected): Adjust.
10112         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10113         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10114         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10115         * Makefile.in: Regenerate.
10116         * config.h.in: Likewise.
10117         * configure: Likewise.
10118         * testsuite/Makefile.in: Likewise.
10120         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10121         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
10122         "offloading: supported, but hardware not accessible".
10123         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10124         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10126 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
10128         PR c/87924
10129         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10130         goacc_wait().
10131         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10132         and related adjustment.
10134 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
10136         PR c++/88988
10137         * testsuite/libgomp.c++/pr88988.C: New test.
10139 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
10141         PR middle-end/89002
10142         * testsuite/libgomp.c/pr89002.c: New test.
10144 2019-01-28  Richard Biener  <rguenther@suse.de>
10146         PR testsuite/89064
10147         PR tree-optimization/86865
10148         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10150 2019-01-24  Tom de Vries  <tdevries@suse.de>
10152         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10153         once instantiated_devices drops to 0.
10155 2019-01-23  Tom de Vries  <tdevries@suse.de>
10157         PR target/PR88946
10158         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10159         cuMemFree.
10160         (nvptx_exec): Don't call map_push if mapnum == 0.
10161         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10163 2019-01-23  Tom de Vries  <tdevries@suse.de>
10165         PR target/88941
10166         PR target/88939
10167         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10168         (map_fini): Remove "assert (!s->map->active)".
10169         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10171 2019-01-23  Tom de Vries  <tdevries@suse.de>
10173         PR target/87835
10174         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10175         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10177 2019-01-15  Tom de Vries  <tdevries@suse.de>
10179         PR target/80547
10180         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10181         New test.
10183 2019-01-12  Tom de Vries  <tdevries@suse.de>
10185         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10186         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10187         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10188         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10190 2019-01-12  Tom de Vries  <tdevries@suse.de>
10192         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10194 2019-01-12  Tom de Vries  <tdevries@suse.de>
10196         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10197         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10198         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10200 2019-01-12  Tom de Vries  <tdevries@suse.de>
10202         PR target/85486
10203         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10204         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10206 2019-01-12  Tom de Vries  <tdevries@suse.de>
10208         PR target/85381
10209         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10210         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10212 2019-01-12  Tom de Vries  <tdevries@suse.de>
10214         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10215         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10216         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10218 2019-01-12  Tom de Vries  <tdevries@suse.de>
10220         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10221         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10222         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10224 2019-01-12  Tom de Vries  <tdevries@suse.de>
10226         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10227         resources diagnostic.
10229 2019-01-12  Tom de Vries  <tdevries@suse.de>
10231         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10232         vector length to be 128.
10233         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10234         length 2097152 to be reduced to 1024 instead of 32.
10236 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
10237             James Norris  <jnorris@codesourcery.com>
10239         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10240         Library Routines", and "Environment Variables".
10242 2019-01-11  Tom de Vries  <tdevries@suse.de>
10244         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10245         num_workers 16.
10247 2019-01-11  Tom de Vries  <tdevries@suse.de>
10249         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10250         -foffload=-w.
10251         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10252         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10253         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10254         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10256 2019-01-11  Tom de Vries  <tdevries@suse.de>
10258         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10259         test.
10261 2019-01-10  Nathan Sidwell  <nathan@acm.org>
10262             Julian Brown  <julian@codesourcery.com>
10264         PR lto/71959
10265         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10266         * testsuite/libgomp.oacc-c++/pr71959.C: New.
10268 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10270         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10271         and paste code.
10273 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10275         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
10276         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10277         write.
10279 2019-01-09  Tom de Vries  <tdevries@suse.de>
10281         PR target/88756
10282         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10283         #define instead of "const int".
10284         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10285         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10286         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10287         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10289 2019-01-09  Tom de Vries  <tdevries@suse.de>
10291         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10292         one worker.
10294 2019-01-07  Tom de Vries  <tdevries@suse.de>
10296         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10297         GOMP_OPENACC_DIM argument.
10299 2019-01-03  Tom de Vries  <tdevries@suse.de>
10301         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10302         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10304 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10306         Update copyright years.
10308 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10310         * libgomp.texi: Bump @copying's copyright year.
10312 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10314         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10315         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10316         (GOACC_declare): Redefine the "device" argument to "flags".
10318 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10319             Cesar Philippidis  <cesar@codesourcery.com>
10321         * target.c (struct gomp_coalesce_chunk): New structure.
10322         (struct gomp_coalesce_buf): Update the chunks member to use that
10323         type.  Adjust all users.
10325 2018-12-19  Tom de Vries  <tdevries@suse.de>
10327         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10328         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10329         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10331 2018-12-19  Tom de Vries  <tdevries@suse.de>
10333         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10334         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10335         gcc/testsuite/gcc.dg/goacc.
10336         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10338 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10339             Chung-Lin Tang  <cltang@codesourcery.com>
10341         * oacc-mem.c (acc_present_or_create): Remove definition and change
10342         to alias of acc_create.
10343         (acc_present_or_copyin): Remove definition and change to alias of
10344         acc_copyin.
10345         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10346         of acc_present_or_create.
10347         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10348         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10349         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10350         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10351         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10352         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10353         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10354         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10355         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10356         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10357         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10358         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10359         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10360         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10361         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10362         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10364 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10366         PR libgomp/88495
10367         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10368         "identical parameters".
10369         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10370         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10372         PR libgomp/88484
10373         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10374         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10376         PR libgomp/88407
10377         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10378         (nvptx_wait_async): Unseen async-argument is a no-op.
10379         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10380         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10381         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10382         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10383         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10384         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10385         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
10386         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10387         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
10389         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10390         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10392 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
10394         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10395         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10396         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10398 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10400         PR libgomp/88370
10401         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10402         (acc_set_cuda_stream): Clarify.
10403         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10404         "async_valid_p".
10405         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10406         acc_async_sync".
10407         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10408         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10409         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10410         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10412 2018-12-14  Tom de Vries  <tdevries@suse.de>
10414         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10415         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10416         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10417         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10418         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10420 2018-12-13  Tom de Vries  <tdevries@suse.de>
10422         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10423         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10424         * fortran.c (omp_display_affinity_): ... here.
10425         * libgomp.h (gomp_print_string): Declare.
10426         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
10427         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10428         write.
10430 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
10432         PR libgomp/88460
10433         * testsuite/libgomp.c++/for-24.C (results): Include it in
10434         omp declare target region.
10435         (main): Use map (always, tofrom: results) instead of
10436         map (tofrom: results).
10438 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
10440         PR fortran/88463
10441         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10442         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10444         * testsuite/libgomp.c-c++-common/for-16.c: New test.
10446 2018-12-12  Andreas Schwab  <schwab@suse.de>
10448         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10449         clobbered.
10451 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
10453         PR fortran/88411
10454         * testsuite/libgomp.fortran/async_io_8.f90: New test.
10456 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
10457             Jakub Jelinek  <jakub@redhat.com>
10459         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10460         devicep->host2dev_func.
10462 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
10464         PR libgomp/87995
10465         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10466         tls_runtime effective target.
10467         (t): New threadprivate variable.
10468         (main): Set t in threads which execute iterations of the worksharing
10469         loop.  Propagate that to the task after the loop and don't abort
10470         if the current taskgroup hasn't been cancelled.
10472 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
10474         * testsuite/libgomp.c/task-reduction-3.c: New test.
10476         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10478 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
10480         PR libgomp/88288
10481         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10482         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10484 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
10486         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10488 2018-10-19  Richard Biener  <rguenther@suse.de>
10490         PR tree-optimization/88182
10491         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10493 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
10495         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10496         (RUNTEST): Don't define.
10497         (RUNTESTDEFAULTFLAGS): Add.
10498         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10499         (distclean-am): Depend on distclean-DEJAGNU.
10500         (check-am): If -j% option is present in MFLAGS and if
10501         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10502         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10503         * testsuite/Makefile.in: Regenerated.
10505 2018-11-26  Richard Biener  <rguenther@suse.de>
10507         PR tree-optimization/88182
10508         * testsuite/libgomp.c++/pr88182.C: New testcase.
10510 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
10512         PR bootstrap/88106
10513         * config/mingw32/affinity-fmt.c: New file.
10515 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
10517         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10518         (gomp_display_affinity): Use __builtin_choose_expr to handle
10519         properly handle argument having integral, or pointer or some other
10520         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
10521         with uint64_t type instead of %llx and unsigned long long.
10523         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10524         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10526 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10528         * affinity.c: Include <string.h>, <stdio.h>.
10529         (gomp_display_affinity_place): Remove cpusetp.
10530         * teams.c: Include <limits.h>.
10532 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
10534         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10535         in_reduction clause for s[0].
10537         * affinity.c (gomp_display_affinity_place): New function.
10538         * affinity-fmt.c: New file.
10539         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10540         * config/linux/affinity.c (gomp_display_affinity_place): New function.
10541         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10542         Move these functions to ...
10543         * config/nvptx/teams.c: ... here.  New file.
10544         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10545         New functions.
10546         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10547         functions.
10548         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10549         and _aligned_malloc.
10550         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10551         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10552         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10553         gomp_affinity_format_len): New variables.
10554         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10555         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
10556         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10557         modifiers.  Display (non-default) chunk sizes.  Print
10558         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10559         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
10560         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10561         * fortran.c: Include stdio.h and string.h.
10562         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10563         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10564         (omp_set_affinity_format_, omp_get_affinity_format_,
10565         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10566         omp_pause_resource_all_): New functions.
10567         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10568         switch.
10569         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10570         functions to ...
10571         * teams.c: ... here.  New file.
10572         * libgomp_g.h: Include gstdint.h.
10573         (GOMP_loop_nonmonotonic_runtime_start,
10574         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10575         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10576         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10577         GOMP_parallel_loop_nonmonotonic_runtime,
10578         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10579         GOMP_loop_ull_nonmonotonic_runtime_start,
10580         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10581         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10582         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10583         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10584         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10585         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10586         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10587         GOMP_teams_reg): Declare.
10588         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10589         gomp_aligned_alloc uses fallback implementation.
10590         (gomp_aligned_alloc, gomp_aligned_free): Declare.
10591         (enum gomp_schedule_type): Add GFS_MONOTONIC.
10592         (struct gomp_doacross_work_share): Add extra field.
10593         (struct gomp_work_share): Add task_reductions field.
10594         (struct gomp_taskgroup): Add workshare and reductions fields.
10595         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10596         (gomp_thread_handle): New typedef.
10597         (gomp_display_affinity_place, gomp_set_affinity_format,
10598         gomp_display_string, gomp_display_affinity,
10599         gomp_display_affinity_thread): Declare.
10600         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10601         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10602         gomp_workshare_task_reduction_register): Declare.
10603         (gomp_team_start): Add taskgroup argument.
10604         (gomp_pause_host): Declare.
10605         (gomp_init_work_share, gomp_work_share_start): Change bool argument
10606         to size_t.
10607         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10608         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10609         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10610         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10611         GOMP_loop_ull_doacross_start,
10612         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10613         GOMP_loop_maybe_nonmonotonic_runtime_next,
10614         GOMP_loop_maybe_nonmonotonic_runtime_start,
10615         GOMP_loop_nonmonotonic_runtime_next,
10616         GOMP_loop_nonmonotonic_runtime_start,
10617         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10618         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10619         GOMP_loop_ull_nonmonotonic_runtime_next,
10620         GOMP_loop_ull_nonmonotonic_runtime_start,
10621         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10622         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10623         GOMP_taskgroup_reduction_register,
10624         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10625         GOMP_teams_reg and GOMP_taskwait_depend.
10626         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10627         omp_{capture,display}_affinity{,_}, and
10628         omp_[gs]et_affinity_format{,_}.
10629         * loop.c: Include string.h.
10630         (GOMP_loop_runtime_next): Add ialias.
10631         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10632         (gomp_loop_static_start, gomp_loop_dynamic_start,
10633         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10634         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10635         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10636         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10637         or gomp_doacross_init callers.
10638         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10639         GOMP_loop_doacross_start): New functions.
10640         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10641         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10642         Mask off GFS_MONOTONIC bit.
10643         (GOMP_loop_maybe_nonmonotonic_runtime_next,
10644         GOMP_loop_maybe_nonmonotonic_runtime_start,
10645         GOMP_loop_nonmonotonic_runtime_next,
10646         GOMP_loop_nonmonotonic_runtime_start,
10647         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10648         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10649         functions.
10650         (gomp_parallel_loop_start): Pass NULL as taskgroup to
10651         gomp_team_start.
10652         * loop_ull.c: Include string.h.
10653         (GOMP_loop_ull_runtime_next): Add ialias.
10654         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10655         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10656         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10657         gomp_loop_ull_ordered_dynamic_start,
10658         gomp_loop_ull_ordered_guided_start,
10659         gomp_loop_ull_doacross_static_start,
10660         gomp_loop_ull_doacross_dynamic_start,
10661         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10662         and gomp_doacross_ull_init callers.
10663         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10664         GOMP_loop_ull_doacross_start): New functions.
10665         (GOMP_loop_ull_runtime_start,
10666         GOMP_loop_ull_ordered_runtime_start,
10667         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10668         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10669         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10670         GOMP_loop_ull_nonmonotonic_runtime_next,
10671         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10672         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10673         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10674         (omp_pause_resource_t, omp_depend_t): New typedefs.
10675         (enum omp_lock_hint_t): Renamed to ...
10676         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
10677         enumerators using numbers and omp_lock_hint_* as their aliases.
10678         (omp_lock_hint_t): New typedef.  Rename to ...
10679         (omp_sync_hint_t): ... this.
10680         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10681         omp_sync_hint_t instead of omp_lock_hint_t.
10682         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10683         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10684         Declare.
10685         (omp_target_is_present, omp_target_disassociate_ptr):
10686         Change first argument from void * to const void *.
10687         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10688         from void * to const void *.
10689         (omp_target_associate_ptr): Change first and second arguments from
10690         void * to const void *.
10691         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10692         omp_pause_hard): New parameters.
10693         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10694         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10695         New interfaces.
10696         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10697         omp_pause_hard): New parameters.
10698         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10699         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10700         New externals.
10701         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10702         EXTRA argument.  If not needed to prepare array, if extra is 0,
10703         clear ws->doacross, otherwise allocate just doacross structure and
10704         extra payload.  If array is needed, allocate also extra payload.
10705         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10706         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10707         doacross == NULL.
10708         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10709         gomp_team_start.
10710         (GOMP_parallel): Likewise.  Formatting fix.
10711         (GOMP_parallel_reductions): New function.
10712         (GOMP_cancellation_point): If taskgroup has workshare
10713         flag set, check cancelled of prev taskgroup if any.
10714         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10715         on prev taskgroup if any.
10716         * sections.c: Include string.h.
10717         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10718         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10719         (GOMP_sections2_start): New function.
10720         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10721         Pass NULL as taskgroup to gomp_team_start.
10722         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10723         gomp_work_share_start callers.
10724         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10725         If taskgroup has workshare flag set, check cancelled on prev
10726         taskgroup if any.  Guard all cancellation tests with
10727         gomp_cancel_var test.
10728         (omp_target_is_present, omp_target_disassociate_ptr):
10729         Change ptr argument from void * to const void *.
10730         (omp_target_memcpy): Change src argument from void * to const void *.
10731         (omp_target_memcpy_rect): Likewise.
10732         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10733         instead of char * where needed.
10734         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10735         from void * to const void *.
10736         (omp_pause_resource, omp_pause_resource_all): New functions.
10737         * task.c (gomp_task_handle_depend): Handle new depend array format
10738         in addition to the old.  Handle mutexinoutset kinds the same as
10739         inout for now, handle unspecified kinds.
10740         (gomp_create_target_task): If taskgroup has workshare flag set, check
10741         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10742         gomp_cancel_var test.  Handle new depend array format count in
10743         addition to the old.
10744         (GOMP_task): Likewise.  Adjust function comment.
10745         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10746         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10747         gomp_cancel_var test.
10748         (GOMP_taskwait_depend): New function.
10749         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10750         format in addition to the old.  Handle mutexinoutset kinds the same as
10751         inout for now, handle unspecified kinds.  Fix a function comment typo.
10752         (gomp_taskgroup_init): New function.
10753         (GOMP_taskgroup_start): Use it.
10754         (gomp_reduction_register, gomp_create_artificial_team,
10755         GOMP_taskgroup_reduction_register,
10756         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10757         gomp_parallel_reduction_register,
10758         gomp_workshare_task_reduction_register,
10759         gomp_workshare_taskgroup_start,
10760         GOMP_workshare_task_reduction_unregister): New functions.
10761         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10762         check cancelled on prev taskgroup if any.  Guard all cancellation
10763         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10764         by calling GOMP_taskgroup_reduction_register.
10765         * team.c (gomp_thread_attr): Remove comment.
10766         (struct gomp_thread_start_data): Add handle field.
10767         (gomp_thread_start): Call pthread_detach.
10768         (gomp_new_team): Adjust gomp_init_work_share caller.
10769         (gomp_free_pool_helper): Call pthread_detach.
10770         (gomp_team_start): Add taskgroup argument, initialize implicit
10771         tasks' taskgroup field to that.  Don't call
10772         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10773         (gomp_team_end): Determine nesting by thr->ts.level != 0
10774         rather than thr->ts.team != NULL.
10775         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10776         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10777         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10778         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10779         if more than 1 allocate also extra payload at the end of array.  Never
10780         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10781         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10782         return true instead of ws.
10783         * Makefile.in: Regenerated.
10784         * configure: Regenerated.
10785         * config.h.in: Regenerated.
10786         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10787         in some cases.
10788         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10789         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10790         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10791         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10792         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10793         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10794         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10795         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10796         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10797         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10798         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10799         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10800         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10801         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10802         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10803         define a different N(test), don't define N(f0) to N(f14), but instead
10804         define N(f20) to N(f34) using != comparisons.
10805         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10806         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10807         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10808         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10809         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10810         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10811         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10812         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10813         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10814         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10815         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10816         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10817         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10818         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10819         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10820         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10821         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10822         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10823         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10824         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10825         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10826         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10827         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10828         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10829         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10830         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10831         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10832         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10833         * testsuite/libgomp.c++/depend-1.C: New test.
10834         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10835         * testsuite/libgomp.c++/depobj-1.C: New test.
10836         * testsuite/libgomp.c++/for-16.C: New test.
10837         * testsuite/libgomp.c++/for-21.C: New test.
10838         * testsuite/libgomp.c++/for-22.C: New test.
10839         * testsuite/libgomp.c++/for-23.C: New test.
10840         * testsuite/libgomp.c++/for-24.C: New test.
10841         * testsuite/libgomp.c++/for-25.C: New test.
10842         * testsuite/libgomp.c++/for-26.C: New test.
10843         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10844         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10845         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10846         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10847         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10848         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10849         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10850         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10851         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10852         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10853         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10854         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10855         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10856         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10857         * testsuite/libgomp.c/task-reduction-1.c: New test.
10858         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10859         * testsuite/libgomp.c/task-reduction-2.c: New test.
10860         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10861         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10862         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10863         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10864         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10865         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10866         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10867         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10868         * testsuite/libgomp.c/teams-1.c: New test.
10869         * testsuite/libgomp.c/teams-2.c: New test.
10870         * testsuite/libgomp.c/thread-limit-4.c: New test.
10871         * testsuite/libgomp.c/thread-limit-5.c: New test.
10872         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10874 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10876         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10877         acc_memcpy_to/from_device functions, now with async parameter.
10878         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10879         (acc_memcpy_from_device): Likewise.
10880         (acc_memcpy_to_device_async): New API function.
10881         (acc_memcpy_from_device_async): Likewise.
10882         (present_create_copy): Add async parameter and async setting/unsetting.
10883         (acc_create): Adjust present_create_copy call.
10884         (acc_copyin): Likewise.
10885         (acc_present_or_create): Likewise.
10886         (acc_present_or_copyin): Likewise.
10887         (acc_create_async): New API function.
10888         (acc_copyin_async): New API function.
10889         (delete_copyout): Add async parameter and async setting/unsetting.
10890         (acc_delete): Adjust delete_copyout call.
10891         (acc_copyout): Likewise.
10892         (acc_delete_async): New API function.
10893         (acc_copyout_async): Likewise.
10894         (update_dev_host): Add async parameter and async setting/unsetting.
10895         (acc_update_device): Adjust update_dev_host call.
10896         (acc_update_self): Likewise.
10897         (acc_update_device_async): New API function.
10898         (acc_update_self_async): Likewise.
10899         * openacc.h (acc_copyin_async): Declare new API function.
10900         (acc_create_async): Likewise.
10901         (acc_copyout_async): Likewise.
10902         (acc_delete_async): Likewise.
10903         (acc_update_device_async): Likewise.
10904         (acc_update_self_async): Likewise.
10905         (acc_memcpy_to_device_async): Likewise.
10906         (acc_memcpy_from_device_async): Likewise.
10907         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10908         (acc_copyin_async_64_h): New subroutine.
10909         (acc_copyin_async_array_h): New subroutine.
10910         (acc_create_async_32_h): New subroutine.
10911         (acc_create_async_64_h): New subroutine.
10912         (acc_create_async_array_h): New subroutine.
10913         (acc_copyout_async_32_h): New subroutine.
10914         (acc_copyout_async_64_h): New subroutine.
10915         (acc_copyout_async_array_h): New subroutine.
10916         (acc_delete_async_32_h): New subroutine.
10917         (acc_delete_async_64_h): New subroutine.
10918         (acc_delete_async_array_h): New subroutine.
10919         (acc_update_device_async_32_h): New subroutine.
10920         (acc_update_device_async_64_h): New subroutine.
10921         (acc_update_device_async_array_h): New subroutine.
10922         (acc_update_self_async_32_h): New subroutine.
10923         (acc_update_self_async_64_h): New subroutine.
10924         (acc_update_self_async_array_h): New subroutine.
10925         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10926         (acc_copyin_async_64_h): New subroutine.
10927         (acc_copyin_async_array_h): New subroutine.
10928         (acc_create_async_32_h): New subroutine.
10929         (acc_create_async_64_h): New subroutine.
10930         (acc_create_async_array_h): New subroutine.
10931         (acc_copyout_async_32_h): New subroutine.
10932         (acc_copyout_async_64_h): New subroutine.
10933         (acc_copyout_async_array_h): New subroutine.
10934         (acc_delete_async_32_h): New subroutine.
10935         (acc_delete_async_64_h): New subroutine.
10936         (acc_delete_async_array_h): New subroutine.
10937         (acc_update_device_async_32_h): New subroutine.
10938         (acc_update_device_async_64_h): New subroutine.
10939         (acc_update_device_async_array_h): New subroutine.
10940         (acc_update_self_async_32_h): New subroutine.
10941         (acc_update_self_async_64_h): New subroutine.
10942         (acc_update_self_async_array_h): New subroutine.
10943         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10944         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10945         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10946         acc_memcpy_to_device_async*, acc_update_device_async*, and
10947         acc_update_self_async* entries.
10948         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10949         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10950         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10952 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10954         PR bootstrap/82856
10955         * Makefile.am: Include multilib.am
10956         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10957         (CLEANFILES): Remove libgomp.info.
10958         * configure.ac: Remove AC_PREREQ.
10959         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10960         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10961         Regenerate.
10963 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10964             Julian Brown  <julian@codesourcery.com>
10966         * testsuite/libgomp.oacc-c++/this.C: New.
10968 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10970         * plugin/plugin-nvptx.c (struct cuda_map): New.
10971         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10972         h_tail with (cuda_map *) map.
10973         (cuda_map_create): New function.
10974         (cuda_map_destroy): New function.
10975         (map_init): Update to use a linked list of cuda_map objects.
10976         (map_fini): Likewise.
10977         (map_pop): Likewise.
10978         (map_push): Likewise.  Return CUdeviceptr instead of void.
10979         (init_streams_for_device): Remove stales references to ptx_stream
10980         members.
10981         (select_stream_for_async): Likewise.
10982         (nvptx_exec): Update call to map_init.
10984 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10985             Julian Brown  <julian@codesourcery.com>
10987         PR middle-end/86336
10988         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10990 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10991         Thomas Koenig <tkoenig@gcc.gnu.org>
10993         PR fortran/25829
10994         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10995         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10996         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10997         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10998         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10999         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11000         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11002 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
11003             Tom de Vries  <tdevries@suse.de>
11005         PR target/85590
11006         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
11007         (cuOccupancyMaxPotentialBlockSize): Declare.
11008         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
11009         CUDA_ONE_CALL_MAYBE_NULL.
11010         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
11011         CUoccupancyB2DSize and declare
11012         cuOccupancyMaxPotentialBlockSize.
11013         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
11014         default num_gangs and num_workers when the driver supports it.
11016 2018-08-08  Tom de Vries  <tdevries@suse.de>
11018         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
11019         CUDA_ONE_CALL_MAYBE_NULL.
11020         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
11021         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
11022         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
11023         are not found.
11025 2018-08-08  Tom de Vries  <tdevries@suse.de>
11027         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
11028         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
11029         present.
11031 2018-08-08  Tom de Vries  <tdevries@suse.de>
11033         * plugin/plugin-nvptx.c
11034         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
11035         (nvptx_open_device): Use
11036         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
11038 2018-08-08  Tom de Vries  <tdevries@suse.de>
11040         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
11041         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
11043 2018-08-07  Tom de Vries  <tdevries@suse.de>
11045         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
11046         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
11047         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
11048         corresponding call in CUDA_ONE_CALL.  Add def/undef of
11049         CUDA_ONE_CALL_MAYBE_NULL.
11050         (CUDA_CALL_EXISTS): Define.
11052 2018-08-07  Tom de Vries  <tdevries@suse.de>
11054         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
11055         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
11056         corresponding undefs right after.
11058 2018-08-04  Tom de Vries  <tdevries@suse.de>
11060         * plugin/configfrag.ac: For --without-cuda-driver, set
11061         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
11062         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
11063         * configure: Regenerate.
11065 2018-08-02  Tom de Vries  <tdevries@suse.de>
11067         PR target/86660
11068         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
11069         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
11070         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11071         Same.
11072         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
11073         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
11074         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
11076 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
11077             Thomas Schwinge <thomas@codesourcery.com>
11079         * config/nvptx/oacc-parallel.c: Truncate.
11081 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
11082             James Norris <jnorris@codesourcery.com>
11084         * plugin/plugin-nvptx.c (struct map): Removed.
11085         (map_init, map_pop): Remove use of struct map.
11086         (map_push): Likewise and change argument list.
11087         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
11089 2018-08-01  Tom de Vries  <tdevries@suse.de>
11091         * plugin/cuda-lib.def: New file.  Factor out of ...
11092         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
11093         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
11094         using CUDA_CALLS.
11096 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11098         Revert 'AsyncI/O patch committed'.
11099         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
11100                 Thomas Koenig <tkoenig@gcc.gnu.org>
11102         PR fortran/25829
11103         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11104         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11105         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11106         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11107         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11108         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11109         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11111 2018-07-30  Tom de Vries  <tdevries@suse.de>
11113         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11114         (nvptx_exec): Ensure worker and vector default dims don't exceed
11115         targ_fn->max_threads_per_block.
11117 2018-07-30  Tom de Vries  <tdevries@suse.de>
11119         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11120         (nvptx_open_device): Init default_dims for device.
11121         (nvptx_exec): Use default_dims from device.
11123 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
11125         PR testsuite/86660
11126         * testsuite/libgomp.c++/for-15.C (results): Include it in
11127         omp declare target region.
11128         (main): Use map (always, tofrom: results) instead of
11129         map (tofrom: results).
11131         PR middle-end/86660
11132         * testsuite/libgomp.c/pr86660.c: New test.
11134 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
11135             Tom de Vries  <tdevries@suse.de>
11137         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11138         sufficient resources to launch a kernel, and give a hint on how to fix
11139         it.
11141 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
11142             Tom de Vries  <tdevries@suse.de>
11144         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11145         max_threads_per_block and max_threads_per_multiprocessor fields.
11146         (nvptx_open_device): Initialize new fields.
11147         (nvptx_exec): Use num_sms, and new fields.
11149 2018-07-26  Tom de Vries  <tdevries@suse.de>
11151         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11152         to correct locations.  Remove xfail.
11154 2018-07-26  Tom de Vries  <tdevries@suse.de>
11156         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11157         acc_wait.  Move acc_async_test calls to correct locations.  Remove
11158         xfail.
11160 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
11161         Thomas Koenig <tkoenig@gcc.gnu.org>
11163         PR fortran/25829
11164         * testsuite/libgomp.fortran/async_io_1.f90: New test.
11165         * testsuite/libgomp.fortran/async_io_2.f90: New test.
11166         * testsuite/libgomp.fortran/async_io_3.f90: New test.
11167         * testsuite/libgomp.fortran/async_io_4.f90: New test.
11168         * testsuite/libgomp.fortran/async_io_5.f90: New test.
11169         * testsuite/libgomp.fortran/async_io_6.f90: New test.
11170         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11172 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
11174         PR middle-end/86542
11175         * testsuite/libgomp.c++/pr86542.C: New test.
11177         PR middle-end/86539
11178         * testsuite/libgomp.c++/pr86539.C: New test.
11180 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
11182         PR c++/86443
11183         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11184         (results): Make sure the variable is not inside declare target region.
11185         (qux): Remove unused function.
11187 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
11189         PR c++/86443
11190         * testsuite/libgomp.c++/for-15.C: New test.
11192 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
11194         PR c++/86291
11195         * testsuite/libgomp.c++/pr86291.C: New test.
11197 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
11199         * libgomp.texi (Top): Move www.openmp.org to https.
11200         (Enabling OpenMP): Ditto.
11201         (omp_get_active_level): Ditto.
11202         (omp_get_ancestor_thread_num): Ditto.
11203         (omp_get_cancellation): Ditto.
11204         (omp_get_default_device): Ditto.
11205         (omp_get_dynamic): Ditto.
11206         (omp_get_level): Ditto.
11207         (omp_get_max_active_levels): Ditto.
11208         (omp_get_max_task_priority): Ditto.
11209         (omp_get_max_threads): Ditto.
11210         (omp_get_nested): Ditto.
11211         (omp_get_num_devices): Ditto.
11212         (omp_get_num_procs): Ditto.
11213         (omp_get_num_teams): Ditto.
11214         (omp_get_num_threads): Ditto.
11215         (omp_get_proc_bind): Ditto.
11216         (omp_get_schedule): Ditto.
11217         (omp_get_team_num): Ditto.
11218         (omp_get_team_size): Ditto.
11219         (omp_get_thread_limit): Ditto.
11220         (omp_get_thread_num): Ditto.
11221         (omp_in_parallel): Ditto.
11222         (omp_in_final): Ditto.
11223         (omp_is_initial_device): Ditto.
11224         (omp_set_default_device): Ditto.
11225         (omp_set_dynamic): Ditto.
11226         (omp_set_max_active_levels): Ditto.
11227         (omp_set_nested): Ditto.
11228         (omp_set_num_threads): Ditto.
11229         (omp_set_schedule): Ditto.
11230         (omp_init_lock): Ditto.
11231         (omp_set_lock): Ditto.
11232         (omp_test_lock): Ditto.
11233         (omp_unset_lock): Ditto.
11234         (omp_destroy_lock): Ditto.
11235         (omp_init_nest_lock): Ditto.
11236         (omp_set_nest_lock): Ditto.
11237         (omp_test_nest_lock): Ditto.
11238         (omp_unset_nest_lock): Ditto.
11239         (omp_destroy_nest_lock): Ditto.
11240         (omp_get_wtick): Ditto.
11241         (omp_get_wtime): Ditto.
11242         (OMP_CANCELLATION): Ditto.
11243         (OMP_DISPLAY_ENV): Ditto.
11244         (OMP_DEFAULT_DEVICE): Ditto.
11245         (OMP_DYNAMIC): Ditto.
11246         (OMP_MAX_ACTIVE_LEVELS): Ditto.
11247         (OMP_MAX_TASK_PRIORITY): Ditto.
11248         (OMP_NESTED): Ditto.
11249         (OMP_NUM_THREADS): Ditto.
11250         (OMP_PROC_BIND): Ditto.
11251         (OMP_PLACES): Ditto.
11252         (OMP_STACKSIZE): Ditto.
11253         (OMP_SCHEDULE): Ditto.
11254         (OMP_THREAD_LIMIT): Ditto.
11255         (OMP_WAIT_POLICY): Ditto.
11257 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
11258             James Norris  <jnorris@codesourcery.com>
11259             Julian Brown  <julian@codesourcery.com>
11260             Thomas Schwinge  <thomas@codesourcery.com>
11261             Tom de Vries  <tom@codesourcery.com>
11263         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11264         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11265         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11266         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11267         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11268         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11269         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11270         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11271         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11272         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11273         Likewise.
11274         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11275         Likewise.
11276         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11277         Likewise.
11278         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11279         Likewise.
11280         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11281         Likewise.
11282         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11283         Likewise.
11284         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11285         Likewise.
11286         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11287         Likewise.
11288         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11289         Likewise.
11290         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11291         Likewise.
11292         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11293         Likewise.
11294         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11295         Likewise.
11296         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11297         Likewise.
11298         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11299         Likewise.
11300         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11301         Likewise.
11302         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11303         Likewise.
11304         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11305         Likewise.
11306         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11307         Likewise.
11308         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11309         Likewise.
11310         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11311         Likewise.
11312         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11313         Likewise.
11314         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11315         Likewise.
11316         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11317         Likewise.
11318         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11319         Likewise.
11320         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11321         Likewise.
11322         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11323         Likewise.
11324         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11325         Likewise.
11326         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11327         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11328         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11329         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11330         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11331         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11332         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11333         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11334         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11335         Likewise.
11336         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11337         Likewise.
11338         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11339         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11340         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11341         Likewise.
11342         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11343         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11344         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11345         Likewise.
11346         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11347         Likewise.
11348         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11349         Likewise.
11350         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11351         Likewise.
11352         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11353         Likewise.
11354         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11355         Likewise.
11356         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11357         Likewise.
11358         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11359         Likewise.
11360         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11361         Likewise.
11362         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11363         Likewise.
11364         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11365         Likewise.
11366         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11367         Likewise.
11368         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11369         Likewise.
11370         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11371         Likewise.
11372         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11373         Likewise.
11374         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11375         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11376         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11377         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11378         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11379         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11380         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11382 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
11383             Thomas Schwinge <thomas@codesourcery.com>
11384             Cesar Philippidis  <cesar@codesourcery.com>
11386         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11387         (gomp_acc_remove_pointer): Update declaration.
11388         (gomp_acc_declare_allocate): Declare.
11389         (gomp_remove_var): Declare.
11390         * libgomp.map (OACC_2.5): Define.
11391         * oacc-mem.c (acc_map_data): Update refcount.
11392         (acc_unmap_data): Likewise.
11393         (present_create_copy): Likewise.
11394         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11395         (acc_copyin): Likewise.
11396         (FLAG_FINALIZE): Define.
11397         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11398         (acc_delete_finalize): New function.
11399         (acc_delete_finalize_async): New function.
11400         (acc_copyout_finalize): New function.
11401         (acc_copyout_finalize_async): New function.
11402         (gomp_acc_insert_pointer): Update refcounts.
11403         (gomp_acc_remove_pointer): Return if data is not present on the
11404         accelerator.
11405         * oacc-parallel.c (find_pset): Rename to find_pointer.
11406         (find_pointer): Add support for GOMP_MAP_POINTER.
11407         (handle_ftn_pointers): New function.
11408         (GOACC_parallel_keyed): Update refcounts of variables.
11409         (GOACC_enter_exit_data): Add support for finalized data mappings.
11410         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11411         of fortran arrays.
11412         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11413         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11414         for GOMP_MAP_FORCE_FROM.
11415         * openacc.f90 (module openacc_internal): Add
11416         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11417         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11418         acc_copyout_finalize and acc_delete_finalize.
11419         (acc_copyout_finalize_32_h): New subroutine.
11420         (acc_copyout_finalize_64_h): New subroutine.
11421         (acc_copyout_finalize_array_h): New subroutine.
11422         (acc_delete_finalize_32_h): New subroutine.
11423         (acc_delete_finalize_64_h): New subroutine.
11424         (acc_delete_finalize_array_h): New subroutine.
11425         * openacc.h (acc_copyout_finalize): Declare.
11426         (acc_copyout_finalize_async): Declare.
11427         (acc_delete_finalize): Declare.
11428         (acc_delete_finalize_async): Declare.
11429         * openacc_lib.h (acc_copyout_finalize): New interface.
11430         (acc_delete_finalize): New interface.
11431         * target.c (gomp_map_vars): Update dynamic_refcount.
11432         (gomp_remove_var): New function.
11433         (gomp_unmap_vars): Use it.
11434         (gomp_unload_image_from_device): Likewise.
11435         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11436         case to utilize OpenACC 2.5 data clause semantics.
11437         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11438         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11439         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11440         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11441         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11442         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11443         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11444         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11445         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11446         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11447         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11448         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11449         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11450         utilize OpenACC 2.5 data clause semantics.
11451         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11452         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11453         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11454         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11455         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11456         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11457         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11458         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11459         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11461 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
11463         PR fortran/85841
11464         PR testsuite/85865
11465         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11466         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11467         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11468         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11469         * testsuite/libgomp.fortran/task2.f90: Ditto.
11470         * testsuite/libgomp.fortran/vla1.f90: Ditto.
11471         * testsuite/libgomp.fortran/vla2.f90: Ditto.
11472         * testsuite/libgomp.fortran/vla3.f90: Ditto.
11473         * testsuite/libgomp.fortran/vla4.f90: Ditto.
11474         * testsuite/libgomp.fortran/vla5.f90: Ditto.
11475         * testsuite/libgomp.fortran/vla6.f90: Ditto.
11476         * testsuite/libgomp.fortran/vla8.f90: Ditto.
11477         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11478         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11480 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
11482         PR c++/85782
11483         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11485 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11487         PR libgomp/82901
11488         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11489         to GOACC_enter_exit_data.
11491 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11493         PR libgomp/83792
11494         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11495         (async_synchronous_p): New function.
11496         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11497         async_valid_p.
11498         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11499         async_valid_stream_id_p.
11500         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11501         * oacc-parallel.c (GOACC_parallel_keyed): Same.
11503 2018-05-07  Tom de Vries  <tom@codesourcery.com>
11505         PR testsuite/85677
11506         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11507         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11509 2018-05-03  Tom de Vries  <tom@codesourcery.com>
11511         PR testsuite/85106
11512         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11513         extra_tool_flags if it contains an -foffload=-fdump-* flag.
11514         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11515         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11517 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11519         PR libgomp/85411
11520         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11521         GOMP_OPENACC_DIM ...
11522         * env.c (parse_gomp_openacc_dim): ... here.  New function.
11523         (initialize_env): Call parse_gomp_openacc_dim.
11524         (goacc_default_dims): Define.
11525         * libgomp.h (goacc_default_dims): Declare.
11526         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11527         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11528         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11529         GOMP_PLUGIN_acc_default_dim.
11530         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11531         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11533 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11535         PR testsuite/83791
11536         * testsuite/libgomp.c++/udr-9.C: Update.
11537         * testsuite/libgomp.c++/atomic-16.C: Remove.
11538         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11539         * testsuite/libgomp.c++/loop-13.C: Remove.
11540         * testsuite/libgomp.c++/loop-14.C: Remove.
11541         * testsuite/libgomp.c++/loop-15.C: Remove.
11542         * testsuite/libgomp.c++/monotonic-1.C: Remove.
11543         * testsuite/libgomp.c++/monotonic-2.C: Remove.
11544         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11545         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11546         * testsuite/libgomp.c++/ordered-1.C: Remove.
11547         * testsuite/libgomp.c++/pr45784.C: Remove.
11548         * testsuite/libgomp.c++/pr64824.C: Remove.
11549         * testsuite/libgomp.c++/pr64868.C: Remove.
11550         * testsuite/libgomp.c++/pr66199-1.C: Remove.
11551         * testsuite/libgomp.c++/pr66199-2.C: Remove.
11552         * testsuite/libgomp.c++/pr66199-3.C: Remove.
11553         * testsuite/libgomp.c++/pr66199-4.C: Remove.
11554         * testsuite/libgomp.c++/pr66199-5.C: Remove.
11555         * testsuite/libgomp.c++/pr66199-6.C: Remove.
11556         * testsuite/libgomp.c++/pr66199-7.C: Remove.
11557         * testsuite/libgomp.c++/pr66199-8.C: Remove.
11558         * testsuite/libgomp.c++/pr66199-9.C: Remove.
11559         * testsuite/libgomp.c++/pr69389.C: Remove.
11560         * testsuite/libgomp.c++/simd10.C: Remove.
11561         * testsuite/libgomp.c++/simd11.C: Remove.
11562         * testsuite/libgomp.c++/simd12.C: Remove.
11563         * testsuite/libgomp.c++/simd13.C: Remove.
11564         * testsuite/libgomp.c++/target-1.C: Remove.
11565         * testsuite/libgomp.c++/target-3.C: Remove.
11566         * testsuite/libgomp.c++/target-4.C: Remove.
11567         * testsuite/libgomp.c++/target-5.C: Remove.
11568         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11569         * testsuite/libgomp.c++/taskloop-1.C: Remove.
11570         * testsuite/libgomp.c++/taskloop-2.C: Remove.
11571         * testsuite/libgomp.c++/taskloop-3.C: Remove.
11572         * testsuite/libgomp.c++/taskloop-4.C: Remove.
11573         * testsuite/libgomp.c++/udr-9.C: Remove.
11574         * testsuite/libgomp.c++/for-10.C: Remove.
11575         * testsuite/libgomp.c++/for-11.C: Remove.
11576         * testsuite/libgomp.c++/for-12.C: Remove.
11577         * testsuite/libgomp.c++/for-13.C: Remove.
11578         * testsuite/libgomp.c++/for-14.C: Remove.
11579         * testsuite/libgomp.c++/for-9.C: Remove.
11580         * testsuite/libgomp.c/atomic-18.c: Move ...
11581         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11582         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11583         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11584         * testsuite/libgomp.c/loop-13.c: Move ...
11585         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11586         * testsuite/libgomp.c/loop-14.c: Move ...
11587         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11588         * testsuite/libgomp.c/loop-15.c: Remove.
11589         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11590         * testsuite/libgomp.c/monotonic-1.c: Move ...
11591         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11592         * testsuite/libgomp.c/monotonic-2.c: Move ...
11593         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11594         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11595         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11596         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11597         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11598         * testsuite/libgomp.c/ordered-4.c: Move ...
11599         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11600         * testsuite/libgomp.c/pr45784.c: Move ...
11601         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11602         * testsuite/libgomp.c/pr64824.c: Move ...
11603         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11604         * testsuite/libgomp.c/pr64868.c: Move ...
11605         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11606         * testsuite/libgomp.c/pr66199-1.c: Move ...
11607         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11608         * testsuite/libgomp.c/pr66199-2.c: Move ...
11609         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11610         * testsuite/libgomp.c/pr66199-3.c: Move ...
11611         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11612         * testsuite/libgomp.c/pr66199-4.c: Move ...
11613         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11614         * testsuite/libgomp.c/pr66199-5.c: Move ...
11615         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11616         * testsuite/libgomp.c/pr66199-6.c: Move ...
11617         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11618         * testsuite/libgomp.c/pr66199-7.c: Move ...
11619         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11620         * testsuite/libgomp.c/pr66199-8.c: Move ...
11621         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11622         * testsuite/libgomp.c/pr66199-9.c: Move ...
11623         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11624         * testsuite/libgomp.c/pr69389.c: Move ...
11625         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11626         * testsuite/libgomp.c/simd-14.c: Move ...
11627         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11628         * testsuite/libgomp.c/simd-15.c: Move ...
11629         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11630         * testsuite/libgomp.c/simd-16.c: Move ...
11631         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11632         * testsuite/libgomp.c/simd-17.c: Move ...
11633         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11634         * testsuite/libgomp.c/target-1.c: Move ...
11635         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11636         * testsuite/libgomp.c/target-10.c: Move ...
11637         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11638         * testsuite/libgomp.c/target-13.c: Move ...
11639         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11640         * testsuite/libgomp.c/target-2.c: Move ...
11641         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11642         * testsuite/libgomp.c/taskgroup-1.c: Move ...
11643         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11644         * testsuite/libgomp.c/taskloop-1.c: Move ...
11645         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11646         * testsuite/libgomp.c/taskloop-2.c: Move ...
11647         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11648         * testsuite/libgomp.c/taskloop-3.c: Move ...
11649         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11650         * testsuite/libgomp.c/taskloop-4.c: Move ...
11651         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11652         * testsuite/libgomp.c/udr-1.c: Move ...
11653         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11654         * testsuite/libgomp.c/for-1.c: Move ...
11655         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11656         * testsuite/libgomp.c/for-1.h: Move ...
11657         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11658         * testsuite/libgomp.c/for-2.c: Move ...
11659         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11660         * testsuite/libgomp.c/for-2.h: Move ...
11661         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11662         * testsuite/libgomp.c/for-3.c: Move ...
11663         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11664         * testsuite/libgomp.c/for-4.c: Move ...
11665         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11666         * testsuite/libgomp.c/for-5.c: Move ...
11667         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11668         * testsuite/libgomp.c/for-6.c: Move ...
11669         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11671 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11673         PR libgomp/82428
11674         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11675         __builtin_goacc_parlevel_{id,size}.
11676         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11677         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11678         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11679         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11680         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11681         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11682         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11683         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11684         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11685         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11686         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11687         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11688         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11689         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11690         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11691         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11692         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11693         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11694         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11695         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11696         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11697         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11698         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11700 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11702         PR testsuite/85106
11703         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11705 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11707         PR testsuite/85106
11708         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11710 2018-04-29  Julian Brown  <julian@codesourcery.com>
11711             Tom de Vries  <tom@codesourcery.com>
11713         PR testsuite/85527
11714         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11715         arbitrary order for iterations of atomic subtract check.
11717 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11719         PR testsuite/85527
11720         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11721         atomic capture results obtained in parallel loop to an array, instead of
11722         to a scalar.
11724 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11726         PR libgomp/84020
11727         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11728         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11729         (process_GOMP_NVPTX_JIT): New function.
11730         (link_ptx): Use process_GOMP_NVPTX_JIT.
11732 2018-04-26  Richard Biener <rguenther@suse.de>
11733             Tom de Vries  <tom@codesourcery.com>
11735         PR lto/85422
11736         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11738 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11740         PR target/85519
11741         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11742         recursion depth from 25 to 23.
11743         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11745 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11747         * configure: Regenerated.
11749 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11750             Tom de Vries  <tom@codesourcery.com>
11752         PR target/85445
11753         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11755 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11757         PR libgomp/85463
11758         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11759         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11760         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11761         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11762         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11763         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11765         PR libfortran/85166
11766         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11767         abort".
11768         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11770 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11772         * configure: Regenerated.
11774 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11776         PR jit/85384
11777         * configure: Regenerate.
11779 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11780             Tom de Vries  <tom@codesourcery.com>
11782         PR middle-end/84955
11783         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11784         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11786 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11788         PR fortran/83064
11789         PR testsuite/85346
11790         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11791         test from gfortran.dg to here.
11793 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11795         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11796         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11798 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11800         PR middle-end/84955
11801         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11802         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11804 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11806         PR target/85204
11807         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11809 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11811         PR tree-optimization/85063
11812         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11813         * testsuite/libgomp.c/switch-conversion.c: New test.
11814         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11815         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11817 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11819         PR fortran/84381
11820         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11821         call abort by STOP n.
11822         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11823         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11824         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11825         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11826         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11827         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11828         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11829         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11830         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11831         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11832         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11833         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11834         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11835         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11836         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11837         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11838         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11839         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11840         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11841         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11842         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11843         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11844         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11845         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11846         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11847         * testsuite/libgomp.fortran/character1.f90: Likewise.
11848         * testsuite/libgomp.fortran/character2.f90: Likewise.
11849         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11850         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11851         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11852         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11853         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11854         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11855         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11856         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11857         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11858         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11859         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11860         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11861         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11862         * testsuite/libgomp.fortran/do1.f90: Likewise.
11863         * testsuite/libgomp.fortran/do2.f90: Likewise.
11864         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11865         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11866         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11867         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11868         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11869         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11870         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11871         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11872         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11873         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11874         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11875         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11876         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11877         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11878         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11879         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11880         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11881         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11882         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11883         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11884         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11885         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11886         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11887         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11888         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11889         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11890         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11891         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11892         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11893         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11894         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11895         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11896         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11897         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11898         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11899         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11900         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11901         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11902         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11903         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11904         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11905         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11906         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11907         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11908         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11909         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11910         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11911         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11912         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11913         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11914         * testsuite/libgomp.fortran/lib2.f: Likewise.
11915         * testsuite/libgomp.fortran/lib3.f: Likewise.
11916         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11917         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11918         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11919         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11920         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11921         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11922         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11923         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11924         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11925         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11926         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11927         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11928         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11929         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11930         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11931         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11932         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11933         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11934         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11935         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11936         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11937         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11938         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11939         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11940         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11941         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11942         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11943         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11944         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11945         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11946         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11947         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11948         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11949         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11950         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11951         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11952         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11953         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11954         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11955         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11956         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11957         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11958         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11959         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11960         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11961         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11962         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11963         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11964         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11965         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11966         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11967         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11968         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11969         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11970         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11971         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11972         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11973         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11974         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11975         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11976         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11977         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11978         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11979         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11980         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11981         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11982         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11983         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11984         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11985         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11986         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11987         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11988         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11989         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11990         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11991         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11992         * testsuite/libgomp.fortran/stack.f90: Likewise.
11993         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11994         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11995         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11996         * testsuite/libgomp.fortran/target1.f90: Likewise.
11997         * testsuite/libgomp.fortran/target2.f90: Likewise.
11998         * testsuite/libgomp.fortran/target3.f90: Likewise.
11999         * testsuite/libgomp.fortran/target4.f90: Likewise.
12000         * testsuite/libgomp.fortran/target5.f90: Likewise.
12001         * testsuite/libgomp.fortran/target6.f90: Likewise.
12002         * testsuite/libgomp.fortran/target7.f90: Likewise.
12003         * testsuite/libgomp.fortran/target8.f90: Likewise.
12004         * testsuite/libgomp.fortran/task1.f90: Likewise.
12005         * testsuite/libgomp.fortran/task2.f90: Likewise.
12006         * testsuite/libgomp.fortran/task3.f90: Likewise.
12007         * testsuite/libgomp.fortran/task4.f90: Likewise.
12008         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
12009         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
12010         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
12011         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
12012         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
12013         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12014         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12015         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12016         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
12017         * testsuite/libgomp.fortran/udr1.f90: Likewise.
12018         * testsuite/libgomp.fortran/udr10.f90: Likewise.
12019         * testsuite/libgomp.fortran/udr11.f90: Likewise.
12020         * testsuite/libgomp.fortran/udr12.f90: Likewise.
12021         * testsuite/libgomp.fortran/udr13.f90: Likewise.
12022         * testsuite/libgomp.fortran/udr14.f90: Likewise.
12023         * testsuite/libgomp.fortran/udr15.f90: Likewise.
12024         * testsuite/libgomp.fortran/udr2.f90: Likewise.
12025         * testsuite/libgomp.fortran/udr3.f90: Likewise.
12026         * testsuite/libgomp.fortran/udr4.f90: Likewise.
12027         * testsuite/libgomp.fortran/udr5.f90: Likewise.
12028         * testsuite/libgomp.fortran/udr6.f90: Likewise.
12029         * testsuite/libgomp.fortran/udr7.f90: Likewise.
12030         * testsuite/libgomp.fortran/udr8.f90: Likewise.
12031         * testsuite/libgomp.fortran/udr9.f90: Likewise.
12032         * testsuite/libgomp.fortran/vla1.f90: Likewise.
12033         * testsuite/libgomp.fortran/vla2.f90: Likewise.
12034         * testsuite/libgomp.fortran/vla3.f90: Likewise.
12035         * testsuite/libgomp.fortran/vla4.f90: Likewise.
12036         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12037         * testsuite/libgomp.fortran/vla6.f90: Likewise.
12038         * testsuite/libgomp.fortran/vla7.f90: Likewise.
12039         * testsuite/libgomp.fortran/vla8.f90: Likewise.
12040         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
12041         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
12042         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12043         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12044         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12045         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12046         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12047         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12048         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12049         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12050         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12051         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
12052         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12053         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
12054         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12055         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12056         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12057         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12058         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12059         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12060         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12061         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12062         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12063         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
12064         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
12065         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12066         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12067         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12068         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12069         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12070         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12071         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12072         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12073         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12074         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12075         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12076         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12077         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12078         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
12079         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12080         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
12081         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12082         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
12083         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
12084         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
12085         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
12086         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12087         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12088         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12089         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12090         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12091         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12092         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12093         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12094         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12095         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12096         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12097         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12098         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12099         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12100         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12101         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12102         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12103         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12104         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12105         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12106         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12107         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12108         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12109         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12110         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12111         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12112         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12113         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12114         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12115         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12116         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12117         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12118         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12119         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12120         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12121         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12122         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12123         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12124         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12125         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12126         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12127         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12128         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12129         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12130         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12131         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12132         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12133         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12135 2018-03-20  Richard Biener  <rguenther@suse.de>
12137         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12138         parallelizable loop.
12140 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12142         PR target/84148
12143         * configure: Regenerate.
12145 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
12147         PR fortran/84418
12148         * libgomp.fortran/pr84418-1.f90: New test.
12149         * libgomp.fortran/pr84418-2.f90: New test.
12151 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
12153         PR fortran/84313
12154         * testsuite/libgomp.fortran/threadprivate4.f90: Add
12155         -std=f2003 -fall-intrinsics into dg-additional-options.
12157 2018-02-08  Martin Jambor  <mjambor@suse.cz>
12159         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12160         clonable.
12162 2018-02-08  Martin Jambor  <mjambor@suse.cz>
12164         * testsuite/libgomp.hsa.c/staticvar.c: New test.
12166 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12168         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12169         [__cplusplus]: Declare extern "C".
12171 2018-02-07  Tom de Vries  <tom@codesourcery.com>
12173         PR libgomp/84217
12174         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12176 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
12177             Jakub Jelinek  <jakub@redhat.com>
12179         PR libgomp/84096
12180         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12181         instead of omp_lock_t.
12183 2018-01-25  Tom de Vries  <tom@codesourcery.com>
12185         PR target/84028
12186         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12188 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12190         PR target/83589
12191         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12193 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12195         PR target/81352
12196         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12198 2018-01-19  Tom de Vries  <tom@codesourcery.com>
12199             Cesar Philippidis  <cesar@codesourcery.com>
12201         PR target/83920
12202         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12203         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12205 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
12207         Update copyright years.
12209         * libgomp.texi: Bump @copying's copyright year.
12211 2017-12-30  Tom de Vries  <tom@codesourcery.com>
12213         PR libgomp/83046
12214         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12215         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12217 2017-12-27  Tom de Vries  <tom@codesourcery.com>
12219         PR c++/83046
12220         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12221         (test_nonstatic): Fix return type to workaround PR83046.
12223 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
12225         PR testsuite/83281
12226         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12227         j suffix instead of i.
12228         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12229         Likewise.
12231 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
12233         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12234         call to acc_wait (1).
12236 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
12238         PR fortran/81304
12239         * testsuite/libgomp.fortran/pr81304.f90: New test.
12241 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
12243         PR fortran/81841
12244         * libgomp.fortran/pr81841.f90: New test.
12246 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
12248         PR libgomp/83106
12249         * target.c (gomp_target_init): Compute lengths just once and
12250         use them in both malloc size and subsequent copying.
12252 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12254         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12255         * acinclude.m4: Add cet.m4.
12256         * configure: Regenerate.
12257         * Makefile.in: Likewise.
12258         * testsuite/Makefile.in: Likewise.
12260 2017-11-15  Tom de Vries  <tom@codesourcery.com>
12262         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12263         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
12264         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12265         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
12266         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12267         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
12269 2017-11-14  Tom de Vries  <tom@codesourcery.com>
12271         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12272         non-nvidia devices.
12274 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
12276         PR c++/82835
12277         * testsuite/libgomp.c++/pr82835.C: New test.
12279 2017-11-06  Martin Liska  <mliska@suse.cz>
12281         * testsuite/libgomp.c++/loop-2.C: Return a value
12282         for functions with non-void return type, or change type to void,
12283         or add -Wno-return-type for test.
12284         * testsuite/libgomp.c++/loop-4.C: Likewise.
12285         * testsuite/libgomp.c++/parallel-1.C: Likewise.
12286         * testsuite/libgomp.c++/shared-1.C: Likewise.
12287         * testsuite/libgomp.c++/single-1.C: Likewise.
12288         * testsuite/libgomp.c++/single-2.C: Likewise.
12290 2017-10-31  Tom de Vries  <tom@codesourcery.com>
12292         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12293         "do {} while (false)".
12294         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12295         after HSA_DEBUG call.
12297 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
12299         * target.c (struct gomp_coalesce_buf): New type.
12300         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12301         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12302         (gomp_copy_host2dev): Add CBUF argument, if copying into
12303         the cached ranges, memcpy into buffer instead of copying
12304         into device.
12305         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12306         Add CBUF argument, pass it through to other calls.
12307         (gomp_map_vars): Aggregate copies from host to device if small enough
12308         and with small enough gaps in between into memcpy into a buffer and
12309         fewer host to device copies from the buffer.
12310         (gomp_update): Adjust gomp_copy_host2dev caller.
12312 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
12314         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12315         run" directive.
12316         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12317         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12318         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12319         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12321 2017-10-16  Tom de Vries  <tom@codesourcery.com>
12323         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12324         openacc_nvidia_accel_selected.
12325         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12326         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12327         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12328         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12329         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12330         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12331         openacc_nvidia_accel_selected. Skip for shared memory device.
12332         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12333         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12335 2017-10-09  Martin Jambor  <mjambor@suse.cz>
12337         PR hsa/82416
12338         * testsuite/libgomp.hsa.c/pr82416.c: New test.
12340 2017-10-07  Tom de Vries  <tom@codesourcery.com>
12342         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12343         Remove acc_device_nvidia references.
12344         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12345         Same.
12347 2017-10-05  Tom de Vries  <tom@codesourcery.com>
12349         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12350         vector_length(32) clause from acc parallel directive.
12351         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12353 2017-10-04  Tom de Vries  <tom@codesourcery.com>
12355         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12356         (main): Reduce sum of arr elements.  Assert that hres is exactly
12357         representable in 32-bit floating point.
12358         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12359         (main): Reduce sum of arr elements.  Assert that hres and hmres are
12360         exactly representable in 32-bit floating point.
12361         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12363 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12365         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12366         setting.
12367         * testsuite/libgomp.c++/pr69393.C: Same.
12368         * testsuite/libgomp.c++/taskloop-1.C: Same.
12369         * testsuite/libgomp.c++/taskloop-3.C: Same.
12370         * testsuite/libgomp.c++/taskloop-4.C: Same.
12371         * testsuite/libgomp.c/for-4.c: Same.
12372         * testsuite/libgomp.c/pr66199-3.c: Same.
12373         * testsuite/libgomp.c/pr66199-4.c: Same.
12374         * testsuite/libgomp.c/pr66199-6.c: Same.
12375         * testsuite/libgomp.c/taskloop-1.c: Same.
12376         * testsuite/libgomp.c/taskloop-3.c: Same.
12377         * testsuite/libgomp.c/taskloop-4.c: Same.
12378         * testsuite/libgomp.fortran/aligned1.f03: Same.
12379         * testsuite/libgomp.fortran/condinc1.f: Same.
12380         * testsuite/libgomp.fortran/condinc3.f90: Same.
12381         * testsuite/libgomp.fortran/crayptr1.f90: Same.
12382         * testsuite/libgomp.fortran/crayptr2.f90: Same.
12383         * testsuite/libgomp.fortran/crayptr3.f90: Same.
12384         * testsuite/libgomp.fortran/omp_cond1.f: Same.
12385         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12386         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12387         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12388         * testsuite/libgomp.fortran/recursion1.f90: Same.
12389         * testsuite/libgomp.fortran/target2.f90: Same.
12390         * testsuite/libgomp.fortran/target5.f90: Same.
12391         * testsuite/libgomp.fortran/task3.f90: Same.
12393 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12395         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12396         vector_length(32) clause from acc parallel directive.
12397         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12399 2017-09-27  Tom de Vries  <tom@codesourcery.com>
12401         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12402         Remove acc_device_nvidia references.
12404 2017-09-16  Tom de Vries  <tom@codesourcery.com>
12406         PR c/81875
12407         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12409 2017-09-14  Tom de Vries  <tom@codesourcery.com>
12411         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12412         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12413         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12414         * testsuite/libgomp.c/c.exp: Include test-cases from
12415         libgomp.c-c++-common.
12416         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
12417         files.
12419 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
12421         PR c++/81314
12422         * testsuite/libgomp.c++/pr81314.C: New test.
12424 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
12426         * libgomp.texi (Top): www.openacc.org now uses https.
12427         (Enabling OpenACC): Ditto.
12428         (acc_get_num_devices): Ditto.
12429         (acc_set_device_type): Ditto.
12430         (acc_get_device_type): Ditto.
12431         (acc_set_device_num): Ditto.
12432         (acc_get_device_num): Ditto.
12433         (acc_async_test): Ditto.
12434         (acc_async_test_all): Ditto.
12435         (acc_wait): Ditto.
12436         (acc_wait_all): Ditto.
12437         (acc_wait_all_async): Ditto.
12438         (acc_wait_async): Ditto.
12439         (acc_init): Ditto.
12440         (acc_shutdown): Ditto.
12441         (acc_on_device): Ditto.
12442         (acc_malloc): Ditto.
12443         (acc_free): Ditto.
12444         (acc_copyin): Ditto.
12445         (acc_present_or_copyin): Ditto.
12446         (acc_create): Ditto.
12447         (acc_present_or_create): Ditto.
12448         (acc_copyout): Ditto.
12449         (acc_delete): Ditto.
12450         (acc_update_device): Ditto.
12451         (acc_update_self): Ditto.
12452         (acc_map_data): Ditto.
12453         (acc_unmap_data): Ditto.
12454         (acc_deviceptr): Ditto.
12455         (acc_hostptr): Ditto.
12456         (acc_is_present): Ditto.
12457         (acc_memcpy_to_device): Ditto.
12458         (acc_memcpy_from_device): Ditto.
12459         (acc_get_current_cuda_device): Ditto.
12460         (acc_get_current_cuda_context): Ditto.
12461         (acc_get_cuda_stream): Ditto.
12462         (acc_set_cuda_stream): Ditto.
12463         (ACC_DEVICE_TYPE): Ditto.
12464         (ACC_DEVICE_NUM): Ditto.
12465         (OpenACC Library Interoperability): Ditto.
12467 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
12469         PR c/81687
12470         * testsuite/libgomp.c/pr81687-1.c: New test.
12471         * testsuite/libgomp.c/pr81687-2.c: New test.
12473 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
12475         PR c/69389
12476         * testsuite/libgomp.c/pr69389.c: New test.
12477         * testsuite/libgomp.c++/pr69389.C: New test.
12479 2017-08-07  Tom de Vries  <tom@codesourcery.com>
12481         PR middle-end/78266
12482         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12483         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12485 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
12487         PR c/45784
12488         * testsuite/libgomp.c/pr45784.c: New test.
12489         * testsuite/libgomp.c++/pr45784.C: New test.
12491 2017-07-19  Tom de Vries  <tom@codesourcery.com>
12493         * testsuite/libgomp.oacc-c/vec.c: New test.
12495 2017-07-03  Tom de Vries  <tom@codesourcery.com>
12497         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12499 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12501         * plugin/plugin-nvptx.c (notify_var): New function.
12502         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12504 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12506         * env.c (parse_unsigned_long_1): Factor out of ...
12507         (parse_unsigned_long): ... here.
12508         (parse_int_1): Factor out of ...
12509         (parse_int): ... here.
12510         (parse_int_secure): New function.
12511         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12512         * secure_getenv.h: Factor out of ...
12513         * plugin/plugin-hsa.c: ... here.
12514         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12516 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
12518         PR c++/81130
12519         * testsuite/libgomp.c++/pr81130.C: New test.
12521 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12523         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12524         default args.
12525         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12526         dg-xfail-run-if default args.
12528 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12530         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12531         * testsuite/libgomp.c/pr39591-3.c: Likewise.
12533 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
12535         PR libgomp/80822
12536         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12537         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
12538         sibling lists, depending on level just pick up what CPUs to put
12539         together into a place vs. whether add multiple ordered places.
12541 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
12543         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12544         * libgomp.map (OACC_2.0.1): Add these.
12545         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12546         for "acc_wait", and "acc_wait_all", respectively.
12547         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12548         for "acc_wait", and "acc_wait_all", respectively.
12549         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12550         * libgomp.texi (acc_wait, acc_wait_all): Update.
12551         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12552         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12553         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12555         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12556         acc_present_or_copyin and acc_present_or_create procedures,
12557         respectively.
12558         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12559         generally different variants of OpenACC Runtime Library functions.
12560         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12562         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12563         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12565         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12566         of preprocessor definitions.
12567         * libgomp.h (strong_alias): Guard by "#ifdef
12568         HAVE_ATTRIBUTE_ALIAS".
12569         * oacc-mem.c: Provide "acc_pcreate" as alias for
12570         "acc_present_or_create", and "acc_pcopyin" as alias for
12571         "acc_present_or_copyin".
12572         * libgomp.map: New version "OACC_2.0.1".
12573         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12574         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12575         its content into...
12576         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12577         Extend testing.
12579         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12580         when disabling nvptx offloading.
12582 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
12584         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12585         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12586         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12588         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12589         * testsuite/lib/libgomp.exp
12590         (check_effective_target_openacc_nvidia_accel_configured): New
12591         proc.
12592         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12593         (check_effective_target_c++): New procs.
12594         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12595         (check_effective_target_c++): Likewise.
12597 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
12599         PR middle-end/80809
12600         * testsuite/libgomp.c/pr80809-2.c: New test.
12601         * testsuite/libgomp.c/pr80809-3.c: New test.
12603         PR middle-end/80809
12604         * testsuite/libgomp.c/pr80809-1.c: New test.
12606         PR middle-end/80853
12607         * testsuite/libgomp.c/pr80853.c: New test.
12609 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
12611         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12612         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12613         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12614         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12615         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12617         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12618         Debug output for failure.
12620 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12622         * testsuite/lib/libgomp.exp: Load scanlang.exp.
12624 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
12626         PR bootstrap/80531
12627         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12628         bootstrap compare failures.
12630 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
12632         * testsuite/libgomp.c/target-36.c: New testcase.
12634 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
12636         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12637         instead of char.
12639 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
12641         PR libgomp/80394
12642         * testsuite/libgomp.c/pr80394.c: New test.
12644 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12646         PR libgomp/79876
12647         * config/posix/thread-stacksize.h: New file.
12648         * config/darwin/thread-stacksize.h: New file.
12649         * config/nvptx/thread-stacksize.h: New file.
12650         * env.c: Include thread-stacksize.h.
12651         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12652         instead of 0.  Call pthread_attr_setstacksize even if
12653         GOMP_DEFAULT_STACKSIZE is non-zero.
12655 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12657         * env.c (initialize_env): Initialize stacksize to 0.
12659 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
12661         PR c++/80029
12662         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12664 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
12666         PR c/79940
12667         * testsuite/libgomp.c/pr79940.c: New test.
12669 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12671         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12672         targets.
12673         Add __float128 options.
12675 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
12677         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12678         hppa*-*-* dg-skip-if directive.
12680 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
12682         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12683         dg-skip-if directive into a comment.
12685 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
12686             Chung-Lin Tang  <cltang@codesourcery.com>
12688         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12689         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12690         add additional case.
12691         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12692         "openacc_nvidia_accel_selected".
12693         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12694         Add num_workers(8) clause.
12696 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
12698         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12699         hppa*-*-*.
12700         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12701         include complex.h on hppa*-*-hpux*.
12702         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12704 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12706         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12708         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12709         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12710         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12711         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12712         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12713         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12714         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12715         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12716         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12717         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12719 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12721         * libgomp-plugin.h: #include <stdbool.h>.
12722         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12723         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12724         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12725         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12726         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12727         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12728         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12729         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12730         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12731         (GOMP_OFFLOAD_openacc_async_test)
12732         (GOMP_OFFLOAD_openacc_async_test_all)
12733         (GOMP_OFFLOAD_openacc_async_wait)
12734         (GOMP_OFFLOAD_openacc_async_wait_async)
12735         (GOMP_OFFLOAD_openacc_async_wait_all)
12736         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12737         (GOMP_OFFLOAD_openacc_async_set_async)
12738         (GOMP_OFFLOAD_openacc_create_thread_data)
12739         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12740         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12741         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12742         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12743         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12744         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12745         these.
12746         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12747         (GOMP_OFFLOAD_unload_image): Fix argument types.
12749 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12751         * testsuite/lib/libgomp.exp
12752         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12753         check_compile invocation.  Fix up removal of executable.  Drop
12754         bogus "2>&1" argument.
12756         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12757         directive.
12759 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12760             Martin Jambor  <mjambor@suse.cz>
12762         * plugin/hsa.h: Moved to top level include.
12763         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12765 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12767         PR other/79046
12768         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12769         of cat to get version from BASE-VER file.
12770         * testsuite/Makefile.in: Regenerated.
12772 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12774         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12775         for _WIN64.
12777 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12779         * plugin/hsa.h: Add GCC runtime library exception.
12780         * plugin/hsa_ext_finalize.h: Likewise.
12782         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12783         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12784         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12785         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12786         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12787         library to link ptx plugin against.
12788         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12789         (CUDA_CALLS): Define.
12790         (cuda_lib, cuda_lib_inited): New variables.
12791         (init_cuda_lib): New function.
12792         (CUDA_CALL_PREFIX): Define.
12793         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12794         (CUDA_CALL): Use FN instead of (FN).
12795         (CUDA_CALL_NOCHECK): Define.
12796         (cuda_error, fini_streams_for_device, select_stream_for_async,
12797         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12798         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12799         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12800         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12801         CUDA_CALL_NOCHECK.
12802         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12803         CUDA_CALL_NOCHECK.
12804         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12805         Use CUDA_CALL_NOCHECK.
12806         * plugin/cuda/cuda.h: New file.
12807         * config.h.in: Regenerated.
12808         * configure: Regenerated.
12810         PR other/79046
12811         * configure.ac: Add GCC_BASE_VER.
12812         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12813         get version from BASE-VER file.
12814         * testsuite/Makefile.in: Regenerated.
12815         * configure: Regenerated.
12816         * Makefile.in: Regenerated.
12818 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12820         PR libgomp/60670
12821         * Makefile.am: Make fincludedir multilib-aware.
12822         * Makefile.in: Regenerate.
12824 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12826         Update copyright years.
12828         * libgomp.texi: Bump @copying's copyright year.
12830 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12832         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12833         pthread_spinlock_t instead of gomp_mutex_t lock.
12834         (gomp_get_thread_pool): Likewise.
12835         (gomp_release_thread_pool): Likewise.
12836         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12837         Likewise.
12839 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12841         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12842         thread pool in case nthreads == 1.
12844 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12846         * config/nvptx/env.c: Delete.
12847         * icv.c: Move definitions of ICV variables back ...
12848         * env.c: ...here.  Do not compile environment-related functionality if
12849         LIBGOMP_OFFLOADED_ONLY is set.
12851 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12853         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12854         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12855         * configure: Regenerate.
12856         * config.h.in: Likewise.
12858 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12860         * Makefile.in: Regenerate with automake-1.11.6.
12861         * aclocal.m4: Likewise.
12862         * configure: Likewise.
12863         * testsuite/Makefile.in: Likewise.
12865 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12867         * config/nvptx/critical.c: Delete to use generic implementation.
12869 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12871         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12872         ../../affinity.c as fallback.
12873         * config/nvptx/affinity.c: Delete to use fallback implementation.
12875 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12876             Jakub Jelinek  <jakub@redhat.com>
12877             Dmitry Melnik  <dm@ispras.ru>
12879         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12880         * Makefile.in. Regenerate.
12881         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12882         (LIBGOMP_USE_PTHREADS): ...here; new define.
12883         * configure: Regenerate.
12884         * config.h.in: Likewise.
12885         * config/posix/affinity.c: Move to...
12886         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12887         interface by LIBGOMP_USE_PTHREADS. 
12888         * critical.c: Split out GOMP_atomic_{start,end} into...
12889         * atomic.c: ...here (new file).
12890         * env.c: Split out ICV definitions into...
12891         * icv.c: ...here (new file) and...
12892         * icv-device.c: ...here. New file.
12893         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12894         (gomp_destroy_lock_30): Ditto.
12895         (gomp_set_lock_30): Ditto.
12896         (gomp_unset_lock_30): Ditto.
12897         (gomp_test_lock_30): Ditto.
12898         (gomp_init_nest_lock_30): Ditto.
12899         (gomp_destroy_nest_lock_30): Ditto.
12900         (gomp_set_nest_lock_30): Ditto.
12901         (gomp_unset_nest_lock_30): Ditto.
12902         (gomp_test_nest_lock_30): Ditto.
12903         * lock.c: New.
12904         * config/nvptx/lock.c: New.
12905         * config/nvptx/bar.c: New.
12906         * config/nvptx/bar.h: New.
12907         * config/nvptx/doacross.h: New.
12908         * config/nvptx/error.c: New.
12909         * config/nvptx/icv-device.c: New.
12910         * config/nvptx/mutex.h: New.
12911         * config/nvptx/pool.h: New.
12912         * config/nvptx/proc.c: New.
12913         * config/nvptx/ptrlock.h: New.
12914         * config/nvptx/sem.h: New.
12915         * config/nvptx/simple-bar.h: New.
12916         * config/nvptx/target.c: New.
12917         * config/nvptx/task.c: New.
12918         * config/nvptx/team.c: New.
12919         * config/nvptx/time.c: New.
12920         * config/posix/simple-bar.h: New.
12921         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12922         (gomp_num_teams_var): Declare.
12923         (struct gomp_thread_pool): Change threads_dock member to
12924         gomp_simple_barrier_t.
12925         [__nvptx__] (gomp_thread): New implementation.
12926         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12927         (gomp_thread_destructor): Ditto.
12928         (gomp_init_thread_affinity): Ditto.
12929         * team.c: Guard uses of Pthreads-specific interfaces by
12930         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12931         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12932         * config/nvptx/alloc.c: Delete.
12933         * config/nvptx/barrier.c: Ditto.
12934         * config/nvptx/fortran.c: Ditto.
12935         * config/nvptx/iter.c: Ditto.
12936         * config/nvptx/iter_ull.c: Ditto.
12937         * config/nvptx/loop.c: Ditto.
12938         * config/nvptx/loop_ull.c: Ditto.
12939         * config/nvptx/ordered.c: Ditto.
12940         * config/nvptx/parallel.c: Ditto.
12941         * config/nvptx/priority_queue.c: Ditto.
12942         * config/nvptx/sections.c: Ditto.
12943         * config/nvptx/single.c: Ditto.
12944         * config/nvptx/splay-tree.c: Ditto.
12945         * config/nvptx/work.c: Ditto.
12946         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12947         -foffload=-lgfortran in addition to -lgfortran.
12948         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12949         * plugin/plugin-nvptx.c: Include <limits.h>.
12950         (struct targ_fn_descriptor): Add new fields.
12951         (struct ptx_device): Ditto.  Set them...
12952         (nvptx_open_device): ...here.
12953         (nvptx_adjust_launch_bounds): New.
12954         (nvptx_host2dev): Allow NULL 'nvthd'.
12955         (nvptx_dev2host): Ditto.
12956         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12957         (link_ptx): Adjust log sizes.
12958         (nvptx_host2dev): Allow NULL 'nvthd'.
12959         (nvptx_dev2host): Ditto.
12960         (nvptx_set_clocktick): New.  Use it...
12961         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12962         fields.
12963         (GOMP_OFFLOAD_dev2dev): New.
12964         (nvptx_adjust_launch_bounds): New.
12965         (nvptx_stacks_size): New.
12966         (nvptx_stacks_alloc): New.
12967         (nvptx_stacks_free): New.
12968         (GOMP_OFFLOAD_run): New.
12969         (GOMP_OFFLOAD_async_run): New (stub).
12971 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12973         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12974         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12975         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12977 2016-11-23  Martin Liska  <mliska@suse.cz>
12978             Martin Jambor  <mjambor@suse.cz>
12980         * plugin/hsa.h: New file.
12981         * plugin/hsa_ext_finalize.h: New file.
12982         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12983         header file unistd.h, and functions secure_getenv, __secure_getenv,
12984         getuid, geteuid, getgid and getegid.
12985         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12986         -D_GNU_SOURCE.
12987         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12988         Handle various cases of secure_getenv presence, add an implementation
12989         when we can test effective UID and GID.
12990         (struct hsa_runtime_fn_info): New structure.
12991         (hsa_runtime_fn_info hsa_fns): New variable.
12992         (hsa_runtime_lib): Likewise.
12993         (support_cpu_devices): Likewise.
12994         (init_enviroment_variables): Load newly introduced ENV
12995         variables.
12996         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12997         (hsa_fatal): Likewise.
12998         (DLSYM_FN): New macro.
12999         (init_hsa_runtime_functions): New function.
13000         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
13001         structure.  Depending on environment, also allow CPU devices.
13002         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
13003         (get_kernarg_memory_region): Likewise.
13004         (GOMP_OFFLOAD_init_device): Likewise.
13005         (destroy_hsa_program): Likewise.
13006         (init_basic_kernel_info): New function.
13007         (GOMP_OFFLOAD_load_image): Use it.
13008         (create_and_finalize_hsa_program): Call hsa run-time functions via
13009         hsa_fns structure.
13010         (create_single_kernel_dispatch): Likewise.
13011         (release_kernel_dispatch): Likewise.
13012         (init_single_kernel): Likewise.
13013         (parse_target_attributes): Allow up multiple HSA grid dimensions.
13014         (get_group_size): New function.
13015         (run_kernel): Likewise.
13016         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
13017         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
13018         structure.
13019         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
13020         * testsuite/libgomp-test-support.exp.in: Likewise.
13021         * Makefile.in: Regenerated.
13022         * aclocal.m4: Likewise.
13023         * config.h.in: Likewise.
13024         * configure: Likewise.
13025         * testsuite/Makefile.in: Likewise.
13027 2016-11-15  Martin Jambor  <mjambor@suse.cz>
13028             Alexander Monakov  <amonakov@ispras.ru>
13030         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
13031         mapping clauses to target constructs.
13032         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
13034 2016-11-15  Matthias Klose  <doko@ubuntu.com>
13036         * configure: Regenerate.
13038 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
13040         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
13041         * omp_lib.h.in (openmp_version): Likewise.
13042         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
13043         of 201307.
13044         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13046         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
13047         (fib_wrapper): Add map(from: x) clause.
13048         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
13049         (e_53_2): Likewise.
13050         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
13051         (accum): Add map(tmp) clause.
13052         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
13053         (accum): Add map(tofrom: tmp) clause.
13054         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
13055         (gramSchmidt): Likewise.
13056         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
13057         map(tofrom: sum) clause.
13058         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
13059         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
13060         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
13061         only allowed on the loop iterator.
13062         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
13063         * testsuite/libgomp.fortran/taskloop2.f90: New test.
13064         * testsuite/libgomp.fortran/taskloop4.f90: New test.
13065         * testsuite/libgomp.fortran/doacross1.f90: New test.
13066         * testsuite/libgomp.fortran/doacross3.f90: New test.
13067         * testsuite/libgomp.fortran/taskloop1.f90: New test.
13068         * testsuite/libgomp.fortran/taskloop3.f90: New test.
13069         * testsuite/libgomp.fortran/doacross2.f90: New test.
13070         * testsuite/libgomp.c/doacross-1.c (main): Add missing
13071         #pragma omp atomic read.
13072         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13073         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
13075 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
13076             Nathan Sidwell  <nathan@acm.org>
13078         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
13079         to determine default geometry.
13080         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
13081         dimension.
13083 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
13085         * hashtab.h: Use standard GPLv3 with runtime exception
13086         boilerplate.
13088 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
13090         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
13091         size when allocating new thread.
13093 2016-09-14  Marek Polacek  <polacek@redhat.com>
13095         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
13097 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
13099         PR fortran/71014
13100         * testsuite/libgomp.fortran/pr71014.f90: New test.
13102 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
13104         PR middle-end/70895
13105         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13106         firstprivate clauses.
13107         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13108         copy clauses.
13109         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13110         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13111         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13112         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13113         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13114         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13115         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13116         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13117         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13118         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13119         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13120         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13122 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
13124         PR fortran/70598
13125         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13127 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
13129         PR c++/58706
13130         * testsuite/libgomp.c++/pr58706.C: New test.
13132 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
13134         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13135         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13136         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13137         Likewise.
13138         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13139         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13140         Likewise.
13141         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13143         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13144         test, and don't hardcode -O0.
13146 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
13148         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13150 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
13152         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13153         test.
13155 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
13157         PR middle-end/71734
13158         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13159         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13161 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
13163         PR fortran/71717
13164         * testsuite/libgomp.fortran/associate3.f90: New test.
13166 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
13168         * testsuite/libgomp.c++/target-21.C: New test.
13170 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
13172         * testsuite/libgomp.c++/target-20.C: New test.
13174 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13175             Cesar Philippidis  <cesar@codesourcery.com>
13177         PR middle-end/71373
13178         * libgomp.oacc-c/nested-function-1.c: New file.
13179         * libgomp.oacc-c/nested-function-2.c: Likewise.
13180         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13181         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13182         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13184 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13186         PR c/71381
13187         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13188         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13189         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13191 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
13193         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13194         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13196 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
13198         PR c/70688
13199         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13201 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13203         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13204         instead of invalid schedule(static, 0).
13205         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13207 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13209         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13210         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13211         parameter, use to set async stream around call to gomp_unmap_vars,
13212         call gomp_unmap_vars() with 'do_copyfrom' set to true.
13213         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13214         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13215         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13216         (event_add): Add int parameter, initialize 'val' field when
13217         adding new ptx_event struct.
13218         (nvptx_evec): Adjust event_add() call arguments.
13219         (nvptx_host2dev): Likewise.
13220         (nvptx_dev2host): Likewise.
13221         (nvptx_wait_async): Likewise.
13222         (nvptx_wait_all_async): Likewise.
13223         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13224         pass to event_add() call.
13225         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13226         parameter.
13227         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13228         call openacc.register_async_cleanup_func() hook.
13229         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13230         * target.c (gomp_copy_from_async): Delete function.
13231         (gomp_map_vars): Remove async_refcount.
13232         (gomp_unmap_vars): Likewise.
13233         (gomp_load_image_to_device): Likewise.
13234         (omp_target_associate_ptr): Likewise.
13235         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13236         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13237         (gomp_copy_from_async): Remove.
13239 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13241         * target.c (gomp_device_copy): New function.
13242         (gomp_copy_host2dev): Likewise.
13243         (gomp_copy_dev2host): Likewise.
13244         (gomp_free_device_memory): Likewise.
13245         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13246         (gomp_map_pointer): Likewise.
13247         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13248         NULL value from alloc_func plugin hook.
13249         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13250         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13251         (gomp_unmap_vars): Likewise.
13252         (gomp_update): Adjust to call gomp_copy_dev2host and
13253         gomp_copy_host2dev functions.
13254         (gomp_unload_image_from_device): Handle false value from
13255         unload_image_func plugin hook.
13256         (gomp_init_device): Handle false value from init_device_func
13257         plugin hook.
13258         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13259         (omp_target_free): Adjust to call gomp_free_device_memory.
13260         (omp_target_memcpy): Handle return values from host2dev_func,
13261         dev2host_func, and dev2dev_func plugin hooks.
13262         (omp_target_memcpy_rect_worker): Likewise.
13263         (gomp_target_fini): Handle false value from fini_device_func
13264         plugin hook.
13265         * libgomp.h (struct gomp_device_descr): Adjust return type of
13266         init_device_func, fini_device_func, unload_image_func, free_func,
13267         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13268         * oacc-init.c (acc_shutdown_1): Handle false value from
13269         fini_device_func plugin hook.
13270         * oacc-host.c (host_init_device): Change return type to bool.
13271         (host_fini_device): Likewise.
13272         (host_unload_image): Likewise.
13273         (host_free): Likewise.
13274         (host_dev2host): Likewise.
13275         (host_host2dev): Likewise.
13276         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13277         (acc_memcpy_to_device): Likewise.
13278         (acc_memcpy_from_device): Likewise.
13279         (delete_copyout): Add libfnname parameter, handle free_func
13280         hook fatal error case.
13281         (acc_delete): Adjust delete_copyout call.
13282         (acc_copyout): Likewise.
13283         (update_dev_host): Move gomp_mutex_unlock to after
13284         host2dev/dev2host hook calls.
13286         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13287         to 'hsa_error_msg', for clarity.
13288         (hsa_fatal): Likewise.
13289         (hsa_error): New function.
13290         (init_hsa_context): Change return type to bool, adjust to return
13291         false on error.
13292         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13293         return value.
13294         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13295         return false on error.
13296         (get_agent_info): Adjust to return NULL on error.
13297         (destroy_hsa_program): Change return type to bool, adjust to
13298         return false on error.
13299         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13300         (destroy_module): Change return type to bool, adjust to
13301         return false on error.
13302         (GOMP_OFFLOAD_unload_image): Likewise.
13303         (GOMP_OFFLOAD_fini_device): Likewise.
13304         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13305         (GOMP_OFFLOAD_free): Change to return false when called.
13306         (GOMP_OFFLOAD_dev2host): Likewise.
13307         (GOMP_OFFLOAD_host2dev): Likewise.
13308         (GOMP_OFFLOAD_dev2dev): Likewise.
13310         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13311         (CUDA_CALL): Likewise.
13312         (CUDA_CALL_ASSERT): Likewise.
13313         (map_init): Change return type to bool, use CUDA_CALL* macros.
13314         (map_fini): Likewise.
13315         (init_streams_for_device): Change return type to bool, adjust
13316         call to map_init.
13317         (fini_streams_for_device): Change return type to bool, adjust
13318         call to map_fini.
13319         (select_stream_for_async): Release stream_lock before calls to
13320         GOMP_PLUGIN_fatal, adjust call to map_init.
13321         (nvptx_init): Use CUDA_CALL* macros.
13322         (nvptx_attach_host_thread_to_device): Change return type to bool,
13323         use CUDA_CALL* macros.
13324         (nvptx_open_device): Use CUDA_CALL* macros.
13325         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13326         macros.
13327         (nvptx_get_num_devices): Use CUDA_CALL* macros.
13328         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13329         (nvptx_exec): Use CUDA_CALL* macros.
13330         (nvptx_alloc): Use CUDA_CALL* macros.
13331         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13332         (nvptx_host2dev): Likewise.
13333         (nvptx_dev2host): Likewise.
13334         (nvptx_wait): Use CUDA_CALL* macros.
13335         (nvptx_wait_async): Likewise.
13336         (nvptx_wait_all): Likewise.
13337         (nvptx_wait_all_async): Likewise.
13338         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13339         use CUDA_CALL* macros, adjust call to map_fini.
13340         (GOMP_OFFLOAD_init_device): Change return type to bool,
13341         adjust code accordingly.
13342         (GOMP_OFFLOAD_fini_device): Likewise.
13343         (GOMP_OFFLOAD_load_image): Adjust calls to
13344         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13345         use CUDA_CALL* macros.
13346         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13347         return code.
13348         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13349         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13350         handle error return.
13351         (GOMP_OFFLOAD_dev2host): Likewise.
13352         (GOMP_OFFLOAD_host2dev): Likewise.
13353         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13354         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13356 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13358         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13359         (acc_free): Likewise.
13360         (acc_memcpy_to_device): Likewise.
13361         (acc_memcpy_from_device): Likewise.
13362         (acc_deviceptr): Likewise.
13363         (acc_hostptr): Likewise.
13364         (acc_is_present): Likewise.
13365         (acc_map_data): Likewise.
13366         (acc_unmap_data): Likewise.
13367         (present_create_copy): Likewise.
13368         (delete_copyout): Likewise.
13369         (update_dev_host): Likewise.
13370         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13371         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13372         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13373         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13374         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13375         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13376         it only runs on nvptx targets.
13377         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13378         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13379         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13380         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13381         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13382         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13383         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13384         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13385         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13386         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13387         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13388         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13389         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13390         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13391         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13392         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13393         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13394         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13395         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13396         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13397         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13398         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13399         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13401 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13403         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13405 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
13407         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13408         to gomp_init_targets_once.
13409         (acc_set_device_type): Remove !cached_base_dev condition on call to
13410         gomp_init_targets_once, move call to before acc_device_lock acquire,
13411         to avoid deadlock.
13412         (acc_get_device_num): Remove !cached_base_dev condition on call to
13413         gomp_init_targets_once.
13414         (acc_set_device_num): Likewise.
13416 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13418         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13420 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
13422         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13423         expected partitioning.
13425 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
13427         PR middle-end/70626
13428         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13429         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13430         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13432 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
13434         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13435         non-fatal.
13437 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
13439         PR middle-end/70680
13440         * testsuite/libgomp.c/pr70680-1.c: New test.
13441         * testsuite/libgomp.c/pr70680-2.c: New test.
13443 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13445         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13446         pass parameter variables to subroutines.
13448 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13450         PR middle-end/70643
13451         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13453 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
13455         PR testsuite/68242
13456         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13457         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13459 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
13461         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13462         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13463         GOACC_declare prototype.
13465         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13466         Merge this file, and...
13467         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13468         ... this file, and...
13469         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13470         ... this file, and...
13471         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13472         ... this file, and...
13473         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13474         ... this file, and...
13475         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13476         ... this file, and...
13477         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13478         ... this file, and...
13479         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13480         ... this file, and...
13481         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13482         ... this file, and...
13483         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13484         ... this file, and...
13485         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13486         ... this file, and...
13487         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13488         ... this file, and...
13489         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13490         ... this file into...
13491         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13492         file.
13494         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13495         Make failure observable.
13497 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
13499         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13500         field.
13501         * target.c (gomp_target_fallback_firstprivate,
13502         gomp_target_unshare_firstprivate): Removed.
13503         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13504         before waiting for dependencies.
13505         (gomp_target_task_fn): Don't copy firstprivate vars here.
13506         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13507         firstprivate_copies here.
13508         (gomp_create_target_task): Don't initialize firstprivate_copies field.
13509         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13510         explicit/implicit firstprivate.
13512 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
13514         PR lto/70289
13515         PR ipa/70348
13516         PR tree-optimization/70373
13517         PR middle-end/70533
13518         PR middle-end/70534
13519         PR middle-end/70535
13520         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13521         test.
13522         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13523         test.
13524         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13525         test.
13526         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13527         test.
13528         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13529         test.
13530         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13531         test.
13532         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13533         test.
13534         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13535         test.
13536         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13537         test.
13538         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13539         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13540         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13541         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13542         test.
13543         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13544         test.
13545         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13546         test.
13547         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13548         test.
13549         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13550         coverage.
13551         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13552         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13553         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13554         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13555         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13556         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13557         coverage.
13558         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13559         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13560         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13561         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13562         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13563         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13564         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13565         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13566         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13567         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13568         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13569         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13570         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13571         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13572         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13574 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
13575             James Norris  <jnorris@codesourcery.com>
13576             Nathan Sidwell  <nathan@codesourcery.com>
13577             Julian Brown  <julian@codesourcery.com>
13578             Cesar Philippidis  <cesar@codesourcery.com>
13579             Chung-Lin Tang  <cltang@codesourcery.com>
13580             Tom de Vries  <tom@codesourcery.com>
13582         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13583         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13584         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13585         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13586         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13587         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13588         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13589         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13590         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13591         XFAIL.
13592         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13593         Incorporate...
13594         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13595         file.
13596         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13597         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13598         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13599         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13600         Likewise.
13601         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13602         Likewise.
13603         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13604         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13605         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13606         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13607         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13608         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13609         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13610         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13611         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13612         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13613         Likewise.
13614         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13615         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13616         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13617         file...
13618         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13619         file into...
13620         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13621         file.  Update.
13622         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13623         file.
13624         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13625         Likewise.
13626         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13627         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13628         ... this new file.  Update.
13629         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13630         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13631         ... this new file.  Update.
13632         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13633         file.  Incorporate...
13634         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13635         file, and...
13636         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13637         file, and...
13638         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13639         file.
13640         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13642 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13644         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13645         set-torture-options.
13647 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
13649         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13650         gcc-dg-runtest.
13651         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13652         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13653         -fno-builtin-acc_on_device instead of -O0.
13654         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13655         -O0.
13656         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13657         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13658         Likewise.
13659         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13660         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13661         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13662         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13663         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13664         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13665         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13666         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13667         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13668         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13669         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13670         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13671         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13672         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13673         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13674         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13675         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13676         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13677         Don't specify -O2.
13678         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13679         Likewise.
13680         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13681         Likewise.
13683 2016-03-24  Martin Liska  <mliska@suse.cz>
13685         * plugin/plugin-hsa.c (packet_store_release): New function
13686         that is taken from the HSA runtime manual.
13687         (GOMP_OFFLOAD_run): Use the function.
13689 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13691         PR c++/70376
13692         * testsuite/libgomp.c++/pr70376.C: New test.
13694 2016-03-23  Tom de Vries  <tom@codesourcery.com>
13696         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13697         initialization of lresult and lvresult.
13698         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13700 2016-03-23  James Norris  <jnorris@codesourcery.com>
13701             Daichi Fukuoka <dc-fukuoka@sgi.com>
13703         PR libgomp/69414
13704         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13705         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13706         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13707         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13709 2016-03-23  Martin Liska  <mliska@suse.cz>
13711         PR hsa/70337
13712         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13713         argument just in case a dispatched kernel uses that argument.
13715 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13717         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13718         -ftree-parallelize-loops/-fopenacc changes.
13719         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13720         Likewise.
13721         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13722         Likewise.
13723         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13724         Likewise.
13725         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13726         Likewise.
13727         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13728         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13730 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13732         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13733         always_ld_library_path the path to libgcc_s.
13735 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13737         PR testsuite/70009
13738         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13740 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13742         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13743         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13744         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13745         Same.
13746         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13747         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13748         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13749         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13751 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13753         * testsuite/lib/libgomp.exp
13754         (check_effective_target_hsa_offloading_selected_nocache): New.
13755         (check_effective_target_hsa_offloading_selected): Likewise.
13756         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13757         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13758         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13759         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13760         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13761         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13762         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13763         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13764         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13765         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13766         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13767         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13768         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13769         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13770         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13771         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13772         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13774 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13776         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13777         non-shared memory accelerators.
13778         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13779         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13780         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13781         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13782         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13783         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13784         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13785         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13786         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13788 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13790         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13791         ALWAYS_CFLAGS.
13793 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13795         PR libgomp/69555
13796         * testsuite/libgomp.c++/pr69555-1.C: New test.
13797         * testsuite/libgomp.c++/pr69555-2.C: New test.
13799 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13800             Martin Jambor  <mjambor@suse.cz>
13802         * testsuite/lib/libgomp.exp
13803         (check_effective_target_offload_device_shared_as): New proc.
13804         * testsuite/libgomp.c++/declare_target-1.C: New test.
13806 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13808         PR driver/68463
13809         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13811 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13813         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13814         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13815         dims.
13816         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13817         -ftree-parallelize-loops/-fopenacc changes.
13818         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13819         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13820         Likewise.
13821         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13822         Likewise.
13823         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13824         Likewise.
13825         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13826         Likewise.
13827         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13828         Likewise.
13829         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13830         Likewise.
13831         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13832         Likewise.
13833         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13834         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13835         Likewise.
13836         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13837         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13838         Likewise.
13839         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13840         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13841         Likewise.
13843 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13845         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13847 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13849         PR driver/69805
13850         * testsuite/libgomp.c/pr69805.c: New test.
13852 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13854         PR lto/67709
13855         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13857 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13859         PR tree-optimization/69599
13860         * testsuite/libgomp.c/omp-nested-3.c: New test.
13861         * testsuite/libgomp.c/pr46032-2.c: New test.
13862         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13863         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13865 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13867         PR lto/69707
13868         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13870 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13872         * testsuite/libgomp.c/target-31.c: Fix testcase.
13874 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13876         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13877         clause.
13878         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13879         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13880         reduction and map clauses.
13881         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13883 2016-02-02  James Norris  <jnorris@codesourcery.com>
13885         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13887 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13889         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13890         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13892         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13893         cases.
13895         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13896         variables.
13897         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13898         (hsa_kmt_lib): Set variables.
13899         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13900         always_ld_library_path.
13901         * Makefile.in: Regenerate.
13902         * configure: Likewise.
13903         * testsuite/Makefile.in: Likewise.
13905         * plugin/configfrag.ac (offload_additional_options)
13906         (offload_additional_lib_paths): Don't amend for hsa offloading.
13907         * configure: Regenerate.
13909         * plugin/configfrag.ac: Don't configure for offloading target if
13910         we don't build the corresponding plugin.
13911         * configure: Regenerate.
13913 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13915         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13916         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13918 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13920         PR tree-optimization/69110
13921         * testsuite/libgomp.c/pr69110.c: New test.
13923 2016-01-25  Richard Biener  <rguenther@suse.de>
13925         PR lto/69393
13926         * testsuite/libgomp.c++/pr69393.C: New testcase.
13928 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13930         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13931         function wasn't mapped to the device with non-shared memory.
13933 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13935         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13937 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13938             Martin Liska  <mliska@suse.cz>
13940         * plugin/Makefrag.am: Add HSA plugin requirements.
13941         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13942         (HSA_RUNTIME_LIB): Likewise.
13943         (HSA_RUNTIME_CPPFLAGS): Likewise.
13944         (HSA_RUNTIME_INCLUDE): New substitution.
13945         (HSA_RUNTIME_LIB): Likewise.
13946         (HSA_RUNTIME_LDFLAGS): Likewise.
13947         (hsa-runtime): New configure option.
13948         (hsa-runtime-include): Likewise.
13949         (hsa-runtime-lib): Likewise.
13950         (PLUGIN_HSA): New substitution variable.
13951         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13952         configure options.
13953         (PLUGIN_HSA_CPPFLAGS): Likewise.
13954         (PLUGIN_HSA_LDFLAGS): Likewise.
13955         (PLUGIN_HSA_LIBS): Likewise.
13956         Check that we have access to HSA run-time.
13957         * libgomp-plugin.h (offload_target_type): New element
13958         OFFLOAD_TARGET_TYPE_HSA.
13959         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13960         args.
13961         (bool gomp_create_target_task): Updated.
13962         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13963         new field can_run_func.
13964         * libgomp_g.h (GOMP_target_ext): Update prototype.
13965         * oacc-host.c (host_run): Added a new parameter args.
13966         * target.c (calculate_firstprivate_requirements): New function.
13967         (copy_firstprivate_data): Likewise.
13968         (gomp_target_fallback_firstprivate): Use them.
13969         (gomp_target_unshare_firstprivate): New function.
13970         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13971         devices.
13972         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13973         pass any args to plugins.
13974         (GOMP_target_ext): Introduce device-specific argument parameter args.
13975         Allow host fallback if device shares memory.  Do not remap data if
13976         device has shared memory.
13977         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13978         like host fallback for mappings.
13979         (GOMP_target_data): Treat shared memory devices like host fallback.
13980         (GOMP_target_data_ext): Likewise.
13981         (GOMP_target_update): Likewise.
13982         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13983         gomp_create_target_task.
13984         (GOMP_target_enter_exit_data): Likewise.
13985         (omp_target_alloc): Treat shared memory devices like host fallback.
13986         (omp_target_free): Likewise.
13987         (omp_target_is_present): Likewise.
13988         (omp_target_memcpy): Likewise.
13989         (omp_target_memcpy_rect): Likewise.
13990         (omp_target_associate_ptr): Likewise.
13991         (gomp_load_plugin_for_device): Also load can_run.
13992         * task.c (GOMP_PLUGIN_target_task_completion): Free
13993         firstprivate_copies.
13994         (gomp_create_target_task): Accept new argument args and store it to
13995         ttask.
13996         * plugin/plugin-hsa.c: New file.
13998 2016-01-18  Tom de Vries  <tom@codesourcery.com>
14000         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
14001         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
14002         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
14003         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
14004         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
14005         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
14006         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
14007         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
14008         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
14009         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
14010         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
14011         Same.
14012         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
14013         Same.
14014         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
14015         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
14016         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
14017         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
14018         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
14019         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
14020         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
14021         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
14022         Same.
14023         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
14025 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
14027         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
14029 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
14031         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
14033 2016-01-12  James Norris  <jnorris@codesourcery.com>
14035         * libgomp.texi: Updates for OpenACC.
14037 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
14039         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
14041 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14043         PR fortran/66680
14044         * testsuite/libgomp.fortran/pr66680.f90: New test.
14046 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
14048         PR middle-end/68960
14049         * testsuite/libgomp.c/pr68960.c: New test.
14051 2016-01-06  Nathan Sidwell  <nathan@acm.org>
14053         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
14054         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
14056 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
14058         Update copyright years.
14060         * libgomp.texi: Bump @copying's copyright year.
14062 2015-12-31  Nathan Sidwell  <nathan@acm.org>
14064         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
14065         dg-additional-options syntax.
14066         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14067         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14068         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14069         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14070         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14071         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14072         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14073         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14074         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14075         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14076         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14077         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14078         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14079         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14080         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14081         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14082         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14083         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14085 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
14087         * libgomp.h (REFCOUNT_LINK): Define.
14088         (struct splay_tree_key_s): Add link_key.
14089         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
14090         Replace target address of the pointer with target address of newly
14091         mapped object in the splay tree.  Set link pointer on target to the
14092         device address of the mapped object.
14093         (gomp_unmap_vars): Restore target address of the pointer in the splay
14094         tree for REFCOUNT_LINK objects after unmapping.
14095         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
14096         declare target link" objects.
14097         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
14098         "omp declare target link" objects, which were mapped for the image.
14099         (gomp_exit_data): Restore target address of the pointer in the splay
14100         tree for REFCOUNT_LINK objects after unmapping.
14101         * testsuite/libgomp.c/target-link-1.c: New file.
14103 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
14105         * libgomp.h (gomp_device_state): New enum.
14106         (struct gomp_device_descr): Replace is_initialized with state.
14107         (gomp_fini_device): Remove declaration.
14108         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14109         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14110         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
14111         (acc_set_device_type): Use state instead of is_initialized.
14112         (acc_set_device_num): Likewise.
14113         * target.c (resolve_device): Use state instead of is_initialized.
14114         Do not initialize finalized device.
14115         (gomp_map_vars): Do nothing if device is finalized.
14116         (gomp_unmap_vars): Likewise.
14117         (gomp_update): Likewise.
14118         (GOMP_offload_register_ver): Use state instead of is_initialized.
14119         (GOMP_offload_unregister_ver): Likewise.
14120         (gomp_init_device): Likewise.
14121         (gomp_unload_device): Likewise.
14122         (gomp_fini_device): Remove.
14123         (gomp_get_target_fn_addr): Do nothing if device is finalized.
14124         (GOMP_target): Go to host fallback if device is finalized.
14125         (GOMP_target_ext): Likewise.
14126         (gomp_exit_data): Do nothing if device is finalized.
14127         (gomp_target_task_fn): Go to host fallback if device is finalized.
14128         (gomp_target_fini): New static function.
14129         (gomp_target_init): Use state instead of is_initialized.
14130         Call gomp_target_fini at exit.
14132 2015-12-09  Tom de Vries  <tom@codesourcery.com>
14134         PR tree-optimization/68716
14135         * testsuite/libgomp.c/omp-nested-2.c: New test.
14137 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
14139         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14140         target openacc_nvidia_accel_selected.
14141         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14142         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14143         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14144         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14146 2015-12-01  Julian Brown  <julian@codesourcery.com>
14147             James Norris  <James_Norris@mentor.com>
14149         * oacc-parallel.c (GOACC_host_data): New function.
14150         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14151         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14152         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14153         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14154         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14155         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14156         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14158 2015-11-30  James Norris  <jnorris@codesourcery.com>
14159             Cesar Philippidis  <cesar@codesourcery.com>
14161         libgomp/
14162         * libgomp.oacc-fortran/routine-5.f90: New test.
14163         * libgomp.oacc-fortran/routine-7.f90: New test.
14164         * libgomp.oacc-fortran/routine-9.f90: New test.
14166 2015-11-30  Tom de Vries  <tom@codesourcery.com>
14168         PR tree-optimization/46032
14169         * testsuite/libgomp.c/pr46032.c: New test.
14171 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
14173         PR libgomp/68579
14174         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14175         (gomp_create_target_task): Call it before freeing
14176         GOMP_TARGET_TASK_DATA tasks.
14178         PR c/63326
14179         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14180         in between case label and OpenMP standalone directives.
14181         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14183 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
14185         * configure: Regenerate.
14187 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
14189         * testsuite/libgomp.c/target-35.c: New test.
14191 2015-11-22  James Norris  <jnorris@codesourcery.com>
14192             Cesar Philippidis  <cesar@codesourcery.com>
14194         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14195         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14196         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14197         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14198         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14200 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
14202         PR middle-end/68221
14203         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14204         * testsuite/libgomp.c/reduction-12.c: Likewise.
14205         * testsuite/libgomp.c++/reduction-11.C: Likewise.
14206         * testsuite/libgomp.c++/reduction-12.C: Likewise.
14208 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
14210         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14211         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14212         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14213         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14214         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14215         and fix.
14216         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14217         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14219 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
14221         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14222         worker & gang cases.
14223         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14225 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
14227         * config/nvptx/priority_queue.c: New file.
14229 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14231         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14232         sections.
14234 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14235             Aldy Hernandez  <aldyh@redhat.com>
14236             Ilya Verbin  <ilya.verbin@intel.com>
14238         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14239         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14240         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14241         iterators or IV by chunk size.
14242         * parallel.c (gomp_resolve_num_threads): Don't assume that
14243         if thr->ts.team is non-NULL, then pool must be non-NULL.
14244         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14245         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14246         GOMP_PLUGIN_target_task_completion.
14247         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14248         * Makefile.in: Regenerate.
14249         * libgomp.h: Shuffle prototypes and forward definitions around so
14250         priority queues can be defined.
14251         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14252         (enum gomp_target_task_state): New enum.
14253         (struct gomp_target_task): Add state, tgt, task and team fields.
14254         (gomp_create_target_task): Change return type to bool, add
14255         state argument.
14256         (gomp_target_task_fn): Change return type to bool.
14257         (struct gomp_device_descr): Add async_run_func.
14258         (struct gomp_task): Remove children, next_child, prev_child,
14259         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14260         Add pnode field.
14261         (struct gomp_taskgroup): Remove children.
14262         Add taskgroup_queue.
14263         (struct gomp_team): Change task_queue type to a priority queue.
14264         (splay_compare): Define inline.
14265         (priority_queue_offset): New.
14266         (priority_node_to_task): New.
14267         (task_to_priority_node): New.
14268         * oacc-mem.c: Do not include splay-tree.h.
14269         * priority_queue.c: New file.
14270         * priority_queue.h: New file.
14271         * splay-tree.c: Do not include splay-tree.h.
14272         (splay_tree_foreach_internal): New.
14273         (splay_tree_foreach): New.
14274         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14275         (splay_tree_callback): Define typedef.
14276         * target.c (splay_compare): Move to libgomp.h.
14277         (GOMP_target): Don't adjust *thr in any way around running offloaded
14278         task.
14279         (GOMP_target_ext): Likewise.  Handle target nowait.
14280         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14281         return value from gomp_create_target_task, if false, fallthrough
14282         as if no dependencies exist.
14283         (gomp_target_task_fn): Change return type to bool, return true
14284         if the task should have another part scheduled later.  Handle
14285         target nowait.
14286         (gomp_load_plugin_for_device): Initialize async_run.
14287         * task.c (gomp_init_task): Initialize children_queue.
14288         (gomp_clear_parent_in_list): New.
14289         (gomp_clear_parent_in_tree): New.
14290         (gomp_clear_parent): Handle priorities.
14291         (GOMP_task): Likewise.
14292         (priority_queue_move_task_first,
14293         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14294         New functions.
14295         (gomp_create_target_task): Use priority queues.  Change return type
14296         to bool, add state argument, return false if for async
14297         {{enter,exit} data,update} constructs no dependencies need to be
14298         waited for, handle target nowait.  Set task->fn to NULL instead of
14299         gomp_target_task_fn.
14300         (verify_children_queue): Remove.
14301         (priority_list_upgrade_task): New.
14302         (priority_queue_upgrade_task): New.
14303         (verify_task_queue): Remove.
14304         (priority_list_downgrade_task): New.
14305         (priority_queue_downgrade_task): New.
14306         (gomp_task_run_pre): Use priority queues.
14307         Abstract code out to priority_queue_downgrade_task.
14308         (gomp_task_run_post_handle_dependers): Use priority queues.
14309         (gomp_task_run_post_remove_parent): Likewise.
14310         (gomp_task_run_post_remove_taskgroup): Likewise.
14311         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
14312         tasks specially.
14313         (GOMP_taskwait): Likewise.
14314         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
14315         priority-queue_upgrade_task.
14316         (GOMP_taskgroup_start): Use priority queues.
14317         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
14318         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
14319         barrier.
14320         * taskloop.c (GOMP_taskloop): Handle priorities.
14321         * team.c (gomp_new_team): Call priority_queue_init.
14322         (free_team): Call priority_queue_free.
14323         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14324         team created for target nowait in implicit parallel region.
14325         (gomp_team_start): For nested check, test thr->ts.level instead of
14326         thr->ts.team != NULL.
14327         * testsuite/libgomp.c/doacross-3.c: New test.
14328         * testsuite/libgomp.c/ordered-5.c: New test.
14329         * testsuite/libgomp.c/priority.c: New test.
14330         * testsuite/libgomp.c/target-31.c: New test.
14331         * testsuite/libgomp.c/target-32.c: New test.
14332         * testsuite/libgomp.c/target-33.c: New test.
14333         * testsuite/libgomp.c/target-34.c: New test.
14335 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14337         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14339         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14340         loop is sequential.
14342 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14344         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14345         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14347 2015-11-12  James Norris  <jnorris@codesourcery.com>
14348             Joseph Myers  <joseph@codesourcery.com>
14350         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14351         * oacc-parallel.c (GOACC_declare): New function.
14352         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14353         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14354         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14355         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14356         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14358 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
14360         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14362 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
14364         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14365         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14367 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14369         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14370         inadvertent commit.
14372 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14374         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14375         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14376         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14377         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14378         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14380 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
14382         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14383         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14385 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
14386             Ilya Verbin  <ilya.verbin@intel.com>
14388         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14389         GOMP_loop_nonmonotonic_dynamic_start,
14390         GOMP_loop_nonmonotonic_guided_next,
14391         GOMP_loop_nonmonotonic_guided_start,
14392         GOMP_loop_ull_nonmonotonic_dynamic_next,
14393         GOMP_loop_ull_nonmonotonic_dynamic_start,
14394         GOMP_loop_ull_nonmonotonic_guided_next,
14395         GOMP_loop_ull_nonmonotonic_guided_start,
14396         GOMP_parallel_loop_nonmonotonic_dynamic,
14397         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14398         (GOMP_target_41): Renamed to ...
14399         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14400         arguments.
14401         (GOMP_target_data_41): Renamed to ...
14402         (GOMP_target_data_ext): ... this.
14403         (GOMP_target_update_41): Renamed to ...
14404         (GOMP_target_update_ext): ... this.
14405         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14406         GOMP_target_data_ext and GOMP_target_update_ext instead of
14407         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14408         Export GOMP_loop_nonmonotonic_dynamic_next,
14409         GOMP_loop_nonmonotonic_dynamic_start,
14410         GOMP_loop_nonmonotonic_guided_next,
14411         GOMP_loop_nonmonotonic_guided_start,
14412         GOMP_loop_ull_nonmonotonic_dynamic_next,
14413         GOMP_loop_ull_nonmonotonic_dynamic_start,
14414         GOMP_loop_ull_nonmonotonic_guided_next,
14415         GOMP_loop_ull_nonmonotonic_guided_start,
14416         GOMP_parallel_loop_nonmonotonic_dynamic and
14417         GOMP_parallel_loop_nonmonotonic_guided.
14418         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14419         GOMP_parallel_loop_nonmonotonic_guided,
14420         GOMP_loop_nonmonotonic_dynamic_start,
14421         GOMP_loop_nonmonotonic_guided_start,
14422         GOMP_loop_nonmonotonic_dynamic_next,
14423         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14424         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14425         GOMP_loop_ull_nonmonotonic_guided_start,
14426         GOMP_loop_ull_nonmonotonic_dynamic_next,
14427         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14428         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14429         functions.
14430         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
14431         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14432         Use gomp_map_val function.
14433         (gomp_target_fallback_firstprivate): New static function.
14434         (GOMP_target_41): Renamed to ...
14435         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14436         arguments.  Move firstprivate fallback handling into a new
14437         function.
14438         (GOMP_target_data_41): Renamed to ...
14439         (GOMP_target_data_ext): ... this.
14440         (GOMP_target_update_41): Renamed to ...
14441         (GOMP_target_update_ext): ... this.
14442         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14443         gomp_map_0len_lookup instead of gomp_map_lookup.
14444         (omp_target_is_present): Use gomp_map_0len_lookup instead of
14445         gomp_map_lookup.
14446         * testsuite/libgomp.c/target-28.c: Likewise.
14447         * testsuite/libgomp.c/monotonic-1.c: New test.
14448         * testsuite/libgomp.c/monotonic-2.c: New test.
14449         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14450         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14451         * testsuite/libgomp.c/pr66199-5.c: New test.
14452         * testsuite/libgomp.c/pr66199-6.c: New test.
14453         * testsuite/libgomp.c/pr66199-7.c: New test.
14454         * testsuite/libgomp.c/pr66199-8.c: New test.
14455         * testsuite/libgomp.c/pr66199-9.c: New test.
14456         * testsuite/libgomp.c/reduction-11.c: New test.
14457         * testsuite/libgomp.c/reduction-12.c: New test.
14458         * testsuite/libgomp.c/reduction-13.c: New test.
14459         * testsuite/libgomp.c/reduction-14.c: New test.
14460         * testsuite/libgomp.c/reduction-15.c: New test.
14461         * testsuite/libgomp.c/target-12.c (main): Adjust for
14462         omp_target_is_present change for one-past-last element.
14463         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14464         the same var is both mapped and privatized.
14465         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14466         handling of zero-length array sections.
14467         * testsuite/libgomp.c/target-28.c: New test.
14468         * testsuite/libgomp.c/target-29.c: New test.
14469         * testsuite/libgomp.c/target-30.c: New test.
14470         * testsuite/libgomp.c/target-teams-1.c: New test.
14471         * testsuite/libgomp.c++/member-6.C: New test.
14472         * testsuite/libgomp.c++/member-7.C: New test.
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-3.C: New test.
14478         * testsuite/libgomp.c++/pr66199-4.C: New test.
14479         * testsuite/libgomp.c++/pr66199-5.C: New test.
14480         * testsuite/libgomp.c++/pr66199-6.C: New test.
14481         * testsuite/libgomp.c++/pr66199-7.C: New test.
14482         * testsuite/libgomp.c++/pr66199-8.C: New test.
14483         * testsuite/libgomp.c++/pr66199-9.C: New test.
14484         * testsuite/libgomp.c++/reduction-11.C: New test.
14485         * testsuite/libgomp.c++/reduction-12.C: New test.
14486         * testsuite/libgomp.c++/target-13.C: New test.
14487         * testsuite/libgomp.c++/target-14.C: New test.
14488         * testsuite/libgomp.c++/target-15.C: New test.
14489         * testsuite/libgomp.c++/target-16.C: New test.
14490         * testsuite/libgomp.c++/target-17.C: New test.
14491         * testsuite/libgomp.c++/target-18.C: New test.
14492         * testsuite/libgomp.c++/target-19.C: New test.
14494 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14496         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14497         and reduction copy.
14498         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14499         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14500         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14501         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14502         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14503         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14504         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14505         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14506         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14507         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14508         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14509         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14510         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14511         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14513 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14515         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14516         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14517         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14518         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14519         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14520         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14521         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14522         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14524 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
14526         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14527         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14528         (GOMP_OFFLOAD_openacc_parallel): Likewise.
14529         * oacc-host.c (host_openacc_exec): Likewise.
14530         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14532 2015-11-03  Julian Brown  <julian@codesourcery.com>
14533             Thomas Schwinge  <thomas@codesourcery.com>
14535         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14536         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14537         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14538         Likewise.
14539         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14540         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14542 2015-11-03  James Norris  <jnorris@codesourcery.com>
14544         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14545         file.
14546         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14547         Likewise.
14548         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14549         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14550         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14551         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14552         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14554 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
14556         * openacc.h (enum acc_device_t): Reformat. Ensure layout
14557         compatibility.
14558         (enum acc_async_t): Reformat.
14559         (acc_on_device): Declare compatible with builtin and provide C++
14560         wrapper.
14561         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14563 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
14564             Cesar Philippidis  <cesar@codesourcery.com>
14566         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14567         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14568         ... this.  Add a description of the test at the top of the file.
14569         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14570         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14571         ... this.  Add a description of the test at the top of the file.
14573 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
14575         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14576         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14577         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14578         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14579         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14580         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14582 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
14584         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14585         dimensions.
14587 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
14589         PR testsuite/68063
14590         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14592 2015-10-27  James Norris  <jnorris@codesourcery.com>
14594         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14595         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14597 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
14599         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14600         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14602         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14603         acc_device_nvidia usage.
14604         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14605         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14606         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14608         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14609         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14611         PR libgomp/66518
14612         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14614         PR libgomp/65437
14615         PR libgomp/66518
14616         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14617         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14619 2015-10-23  Tom de Vries  <tom@codesourcery.com>
14621         PR testsuite/68063
14622         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14624 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
14626         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14627         vector_length.
14628         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14630 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
14631             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
14633         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14634         to 0 when mapnum is 0.
14636 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14638         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14639         Cast to int from int32_t.
14641 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
14642             Aldy Hernandez  <aldyh@redhat.com>
14643             Ilya Verbin  <ilya.verbin@intel.com>
14645         * config/linux/affinity.c (omp_get_place_num_procs,
14646         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14647         * config/linux/doacross.h: New file.
14648         * config/posix/affinity.c (omp_get_place_num_procs,
14649         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14650         * config/posix/doacross.h: New file.
14651         * env.c: Include gomp-constants.h.
14652         (struct gomp_task_icv): Rename run_sched_modifier to
14653         run_sched_chunk_size.
14654         (gomp_max_task_priority_var): New variable.
14655         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14656         (handle_omp_display_env): Change _OPENMP value from 201307 to
14657         201511.  Print OMP_MAX_TASK_PRIORITY.
14658         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14659         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14660         chunk_size and run_sched_modifier to run_sched_chunk_size.
14661         (omp_get_max_task_priority, omp_get_initial_device,
14662         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14663         omp_get_partition_place_nums): New functions.
14664         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14665         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14666         to chunk_size.
14667         (omp_get_num_places_, omp_get_place_num_procs_,
14668         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14669         omp_get_place_proc_ids_8_, omp_get_place_num_,
14670         omp_get_partition_num_places_, omp_get_partition_place_nums_,
14671         omp_get_partition_place_nums_8_, omp_get_initial_device_,
14672         omp_get_max_task_priority_): New functions.
14673         * libgomp_g.h (GOMP_loop_doacross_static_start,
14674         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14675         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14676         GOMP_loop_ull_doacross_dynamic_start,
14677         GOMP_loop_ull_doacross_guided_start,
14678         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14679         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14680         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14681         GOMP_target_data_41, GOMP_target_update_41,
14682         GOMP_target_enter_exit_data): New prototypes.
14683         (GOMP_task): Add prototype argument.
14684         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14685         (struct gomp_doacross_work_share): New type.
14686         (struct gomp_work_share): Add doacross field.
14687         (struct gomp_task_icv): Rename run_sched_modifier to
14688         run_sched_chunk_size.
14689         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14690         GOMP_TASK_UNDEFERRED.  Add comments.
14691         (struct gomp_task_depend_entry): Add comments.
14692         (struct gomp_task): Likewise.
14693         (struct gomp_taskgroup): Likewise.
14694         (struct gomp_target_task): New type.
14695         (struct gomp_team): Add comment.
14696         (gomp_get_place_proc_ids_8, gomp_doacross_init,
14697         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14698         gomp_create_target_task, gomp_target_task_fn): New prototypes.
14699         (struct target_var_desc): New type.
14700         (struct target_mem_desc): Adjust comment.  Use struct
14701         target_var_desc instead of splay_tree_key for list.
14702         (REFCOUNT_INFINITY): Define.
14703         (struct splay_tree_key_s): Remove copy_from field.
14704         (struct gomp_device_descr): Add dev2dev_func field.
14705         (enum gomp_map_vars_kind): New enum.
14706         (gomp_map_vars): Add one argument.
14707         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14708         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14709         omp_get_place_num_procs, omp_get_place_num_procs_,
14710         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14711         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14712         omp_get_place_num_, omp_get_partition_num_places,
14713         omp_get_partition_num_places_, omp_get_partition_place_nums,
14714         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14715         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14716         omp_target_free, omp_target_is_present, omp_target_memcpy,
14717         omp_target_memcpy_rect, omp_target_associate_ptr and
14718         omp_target_disassociate_ptr.
14719         (GOMP_4.0.2): Renamed to ...
14720         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14721         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14722         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14723         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14724         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14725         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14726         GOMP_loop_ull_doacross_guided_start,
14727         GOMP_loop_ull_doacross_runtime_start,
14728         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14729         GOMP_doacross_ull_wait.
14730         * libgomp.texi: Document omp_get_max_task_priority.
14731         Rename modifier argument to chunk_size for omp_set_schedule and
14732         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14733         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14734         to run_sched_chunk_size renaming.
14735         (GOMP_loop_ordered_runtime_start): Likewise.
14736         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14737         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14738         GOMP_parallel_loop_runtime_start): New functions.
14739         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14740         to run_sched_chunk_size renaming.
14741         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14742         GOMP_loop_doacross_guided_start): New functions or aliases.
14743         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14744         run_sched_modifier to run_sched_chunk_size renaming.
14745         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14746         (gomp_loop_ull_doacross_static_start,
14747         gomp_loop_ull_doacross_dynamic_start,
14748         gomp_loop_ull_doacross_guided_start,
14749         GOMP_loop_ull_doacross_runtime_start): New functions.
14750         (GOMP_loop_ull_doacross_static_start,
14751         GOMP_loop_ull_doacross_dynamic_start,
14752         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14753         * oacc-mem.c (acc_map_data, present_create_copy,
14754         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14755         to gomp_map_vars.
14756         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14757         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14758         instead of false to gomp_map_vars.
14759         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14760         * omp.h.in (omp_lock_hint_t): New type.
14761         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14762         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14763         omp_get_place_num, omp_get_partition_num_places,
14764         omp_get_partition_place_nums, omp_get_initial_device,
14765         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14766         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14767         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14768         prototypes.
14769         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14770         (omp_lock_hint_none, omp_lock_hint_uncontended,
14771         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14772         omp_lock_hint_speculative): New parameters.
14773         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14774         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14775         omp_get_place_num, omp_get_partition_num_places,
14776         omp_get_partition_place_nums, omp_get_initial_device,
14777         omp_get_max_task_priority): New interfaces.
14778         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14779         to chunk_size.
14780         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14781         (omp_lock_hint_none, omp_lock_hint_uncontended,
14782         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14783         omp_lock_hint_speculative): New parameters.
14784         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14785         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14786         omp_get_place_num, omp_get_partition_num_places,
14787         omp_get_partition_place_nums, omp_get_initial_device,
14788         omp_get_max_task_priority): New functions and subroutines.
14789         * ordered.c: Include stdarg.h and string.h.
14790         (MAX_COLLAPSED_BITS): Define.
14791         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14792         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14793         GOMP_doacross_ull_wait): New functions.
14794         * target.c: Include errno.h.
14795         (resolve_device): If device is not initialized, call
14796         gomp_init_device on it.
14797         (gomp_map_lookup): New function.
14798         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14799         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14800         GOMP_MAP_ALWAYS_TO_P.
14801         (get_kind): Rename is_openacc argument to short_mapkind.
14802         (gomp_map_pointer): Use gomp_map_lookup.
14803         (gomp_map_fields_existing): New function.
14804         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14805         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14806         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14807         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14808         Adjust for tgt->list changed type and copy_from living in there.
14809         (gomp_copy_from_async): Adjust for tgt->list changed type and
14810         copy_from living in there.
14811         (gomp_unmap_vars): Likewise.
14812         (gomp_update): Likewise.  Rename is_openacc argument to
14813         short_mapkind.  Don't fail if object is not mapped.
14814         (gomp_load_image_to_device): Initialize refcount to
14815         REFCOUNT_INFINITY.
14816         (gomp_target_fallback): New function.
14817         (gomp_get_target_fn_addr): Likewise.
14818         (GOMP_target): Adjust gomp_map_vars caller, use
14819         gomp_get_target_fn_addr and gomp_target_fallback.
14820         (GOMP_target_41): New function.
14821         (gomp_target_data_fallback): New function.
14822         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14823         (GOMP_target_data_41): New function.
14824         (GOMP_target_update): Adjust gomp_update caller.
14825         (GOMP_target_update_41): New function.
14826         (gomp_exit_data, GOMP_target_enter_exit_data,
14827         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14828         omp_target_is_present, omp_target_memcpy,
14829         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14830         omp_target_associate_ptr, omp_target_disassociate_ptr,
14831         gomp_load_plugin_for_device): New functions.
14832         * task.c: Include gomp-constants.h.  Include taskloop.c
14833         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14834         (gomp_task_handle_depend): New function.
14835         (GOMP_task): Use it.  Add priority argument.  Use
14836         gomp-constant.h constants instead of hardcoded numbers.
14837         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14838         (gomp_create_target_task): New function.
14839         (verify_children_queue, verify_taskgroup_queue,
14840         verify_task_queue): New functions.
14841         (gomp_task_run_pre): Call verify_*_queue functions.
14842         If an upcoming tied task is about to leave the sibling or
14843         taskgroup queues in an invalid state, adjust appropriately.
14844         Remove taskgroup argument.  Add comments.
14845         (gomp_task_run_post_handle_dependers): Add comments.
14846         (gomp_task_run_post_remove_parent): Likewise.
14847         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14848         (GOMP_taskwait): Likewise.  Add comments.
14849         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14850         problem such that the first non parent_depends_on task does not
14851         end up at the end of the children queue.
14852         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14853         GOMP_TASK_UNDEFERRED.
14854         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14855         * taskloop.c: New file.
14856         * testsuite/lib/libgomp.exp
14857         (check_effective_target_offload_device_nonshared_as): New proc.
14858         * testsuite/libgomp.c/affinity-2.c: New test.
14859         * testsuite/libgomp.c/doacross-1.c: New test.
14860         * testsuite/libgomp.c/doacross-2.c: New test.
14861         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14862         Add map clause to target.
14863         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14864         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14865         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14866         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14867         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14868         Likewise.
14869         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14870         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14871         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14872         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14873         not defined.  Use those where needed.
14874         * testsuite/libgomp.c/for-4.c: New test.
14875         * testsuite/libgomp.c/for-5.c: New test.
14876         * testsuite/libgomp.c/for-6.c: New test.
14877         * testsuite/libgomp.c/linear-1.c: New test.
14878         * testsuite/libgomp.c/ordered-4.c: New test.
14879         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14880         only allowed on the loop iterator.
14881         * testsuite/libgomp.c/pr66199-3.c: New test.
14882         * testsuite/libgomp.c/pr66199-4.c: New test.
14883         * testsuite/libgomp.c/reduction-7.c: New test.
14884         * testsuite/libgomp.c/reduction-8.c: New test.
14885         * testsuite/libgomp.c/reduction-9.c: New test.
14886         * testsuite/libgomp.c/reduction-10.c: New test.
14887         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14888         map(tofrom:s).
14889         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14890         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14891         * testsuite/libgomp.c/target-11.c: New test.
14892         * testsuite/libgomp.c/target-12.c: New test.
14893         * testsuite/libgomp.c/target-13.c: New test.
14894         * testsuite/libgomp.c/target-14.c: New test.
14895         * testsuite/libgomp.c/target-15.c: New test.
14896         * testsuite/libgomp.c/target-16.c: New test.
14897         * testsuite/libgomp.c/target-17.c: New test.
14898         * testsuite/libgomp.c/target-18.c: New test.
14899         * testsuite/libgomp.c/target-19.c: New test.
14900         * testsuite/libgomp.c/target-20.c: New test.
14901         * testsuite/libgomp.c/target-21.c: New test.
14902         * testsuite/libgomp.c/target-22.c: New test.
14903         * testsuite/libgomp.c/target-23.c: New test.
14904         * testsuite/libgomp.c/target-24.c: New test.
14905         * testsuite/libgomp.c/target-25.c: New test.
14906         * testsuite/libgomp.c/target-26.c: New test.
14907         * testsuite/libgomp.c/target-27.c: New test.
14908         * testsuite/libgomp.c/taskloop-1.c: New test.
14909         * testsuite/libgomp.c/taskloop-2.c: New test.
14910         * testsuite/libgomp.c/taskloop-3.c: New test.
14911         * testsuite/libgomp.c/taskloop-4.c: New test.
14912         * testsuite/libgomp.c++/ctor-13.C: New test.
14913         * testsuite/libgomp.c++/doacross-1.C: New test.
14914         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14915         Replace offload_device with offload_device_nonshared_as.
14916         * testsuite/libgomp.c++/for-12.C: New test.
14917         * testsuite/libgomp.c++/for-13.C: New test.
14918         * testsuite/libgomp.c++/for-14.C: New test.
14919         * testsuite/libgomp.c++/linear-1.C: New test.
14920         * testsuite/libgomp.c++/member-1.C: New test.
14921         * testsuite/libgomp.c++/member-2.C: New test.
14922         * testsuite/libgomp.c++/member-3.C: New test.
14923         * testsuite/libgomp.c++/member-4.C: New test.
14924         * testsuite/libgomp.c++/member-5.C: New test.
14925         * testsuite/libgomp.c++/ordered-1.C: New test.
14926         * testsuite/libgomp.c++/reduction-5.C: New test.
14927         * testsuite/libgomp.c++/reduction-6.C: New test.
14928         * testsuite/libgomp.c++/reduction-7.C: New test.
14929         * testsuite/libgomp.c++/reduction-8.C: New test.
14930         * testsuite/libgomp.c++/reduction-9.C: New test.
14931         * testsuite/libgomp.c++/reduction-10.C: New test.
14932         * testsuite/libgomp.c++/reference-1.C: New test.
14933         * testsuite/libgomp.c++/simd14.C: New test.
14934         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14935         * testsuite/libgomp.c++/target-5.C: New test.
14936         * testsuite/libgomp.c++/target-6.C: New test.
14937         * testsuite/libgomp.c++/target-7.C: New test.
14938         * testsuite/libgomp.c++/target-8.C: New test.
14939         * testsuite/libgomp.c++/target-9.C: New test.
14940         * testsuite/libgomp.c++/target-10.C: New test.
14941         * testsuite/libgomp.c++/target-11.C: New test.
14942         * testsuite/libgomp.c++/target-12.C: New test.
14943         * testsuite/libgomp.c++/taskloop-1.C: New test.
14944         * testsuite/libgomp.c++/taskloop-2.C: New test.
14945         * testsuite/libgomp.c++/taskloop-3.C: New test.
14946         * testsuite/libgomp.c++/taskloop-4.C: New test.
14947         * testsuite/libgomp.c++/taskloop-5.C: New test.
14948         * testsuite/libgomp.c++/taskloop-6.C: New test.
14949         * testsuite/libgomp.c++/taskloop-7.C: New test.
14950         * testsuite/libgomp.c++/taskloop-8.C: New test.
14951         * testsuite/libgomp.c++/taskloop-9.C: New test.
14952         * testsuite/libgomp.fortran/affinity1.f90: New test.
14953         * testsuite/libgomp.fortran/affinity2.f90: New test.
14955 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14957         PR tree-optimization/67476
14958         * testsuite/libgomp.c/autopar-3.c: New test.
14959         * testsuite/libgomp.c/autopar-4.c: New test.
14960         * testsuite/libgomp.c/autopar-5.c: New test.
14961         * testsuite/libgomp.c/autopar-6.c: New test.
14962         * testsuite/libgomp.c/autopar-7.c: New test.
14963         * testsuite/libgomp.c/autopar-8.c: New test.
14965 2015-10-12  James Norris  <jnorris@codesourcery.com>
14967         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14968         initializer.
14970 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14972         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14973         using load_gcc_lib.
14975 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14977         * oacc-ptx.h: Remove file, moving its content into...
14978         * config/nvptx/fortran.c: ... here...
14979         * config/nvptx/oacc-init.c: ..., here...
14980         * config/nvptx/oacc-parallel.c: ..., and here.
14981         * config/nvptx/openacc.f90: New file.
14982         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14983         (link_ptx): Don't link in predefined bits of PTX code.
14985 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14986             Bernd Schmidt <bernds@codesourcery.com>
14988         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14989         (struct targ_ptx_obj): New.
14990         (nvptx_tdata): Move earlier, change data format.
14991         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14992         objects.
14993         (GOMP_OFFLOAD_load_image): Adjust.
14995 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14997         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14998         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14999         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15000         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15001         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15002         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15003         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15004         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15005         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15006         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15007         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15008         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15009         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15010         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15011         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15012         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15013         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15014         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15015         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15016         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15017         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15018         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15019         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15020         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15021         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15022         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15023         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15024         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15025         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15026         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15027         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15028         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15029         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15030         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15031         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15032         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15033         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15034         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15035         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15036         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15037         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15038         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15039         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15040         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15041         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15042         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15043         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15044         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15045         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15046         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15047         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15048         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15049         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15050         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15051         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15052         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15053         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15054         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15055         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15056         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15057         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15058         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15059         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15061 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
15063         * oacc-init.c (acc_on_device): Force optimization level.
15065 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
15067         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
15068         (cuda_errlist): Delete.
15069         (cuda_error): Reimplement.
15071 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
15073         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
15074         array.
15075         * libgomp.map (GOACC_parallel_keyed): New.
15076         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
15077         all callers.
15078         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
15079         and take keyed varargs list.  Adjust call to exec_func.
15080         (GOACC_parallel): Force host fallback.
15081         * libgomp_g.h (GOACC_parallel): Remove.
15082         (GOACC_parallel_keyed): Declare.
15083         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
15084         (struct targ_gn_descriptor): Replace name field with launch field.
15085         (nvptx_exec): Lose separate geometry args, take array.  Process
15086         dynamic dimensions and adjust.
15087         (struct nvptx_tdata): Replace fn_names field with fn_descs.
15088         (GOMP_OFFLOAD_load_image): Adjust for change in function table
15089         data.
15090         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
15091         passing.
15092         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
15093         passing.
15095 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
15097         PR libgomp/67141
15098         * oacc-int.h (goacc_host_init): Add declaration.
15099         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15100         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15102 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15103             Sebastian Pop  <s.pop@samsung.com>
15105         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15106         match o/p.
15107         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15108         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15109         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15110         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15111         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15113 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
15115         * configure.tgt: Add missing ;; in between nvptx and rtems
15116         snippets.
15118 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15120         * config/posix/pool.h (gomp_adjust_thread_attr): New.
15121         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15122         (gomp_thread_pool_reservoir): Add priority member.
15123         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15124         priority.
15125         (parse_thread_pools): Likewise.
15126         * team.c (gomp_team_start): Call configuration provided
15127         gomp_adjust_thread_attr(). Destroy thread attributes if
15128         necessary.
15129         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15131 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15133         * config/posix/pool.h: New.
15134         * config/rtems/pool.h: Likewise.
15135         * config/rtems/proc.c: Likewise.
15136         * libgomp.h (gomp_thread_destructor): Declare.
15137         * team.c: Include configuration provided "pool.h".
15138         (gomp_get_thread_pool): Define in configuration.
15139         (gomp_team_end): Call configuration defined
15140         gomp_release_thread_pool().
15142 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15144         * config/rtems/bar.c: New.
15145         * config/rtems/bar.h: Likewise.
15146         * config/rtems/mutex.c: Likewise.
15147         * config/rtems/mutex.h: Likewise.
15148         * config/rtems/sem.c: Likewise.
15149         * config/rtems/sem.h: Likewise.
15150         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15151         <sys/lock.h> header file.
15152         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15153         supported by Newlib.
15154         * configure: Regenerate.
15156 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15158         * team.c (gomp_new_thread_pool): Delete and move content to ...
15159         (gomp_get_thread_pool): ... new function.  Allocate and
15160         initialize thread pool on demand.
15161         (get_last_team): Use gomp_get_thread_pool().
15162         (gomp_team_start): Delete thread pool initialization.
15164 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15166         PR tree-optimization/65637
15167         * testsuite/libgomp.c/autopar-2.c: New test.
15169 2015-08-29  Tom de Vries  <tom@codesourcery.com>
15171         PR tree-optimization/46193
15172         * testsuite/libgomp.c/pr46193.c: New test.
15174 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15176         libgomp/
15177         * libgomp.map: Add 4.0.2 version.
15178         * target.c (offload_image_descr): Add version field.
15179         (gomp_load_image_to_device): Add version argument.  Adjust plugin
15180         call.  Improve load mismatch diagnostic.
15181         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
15182         call.
15183         (GOMP_offload_regster): Make stub function, move bulk to ...
15184         (GOMP_offload_register_ver): ... here.  Process version argument.
15185         (GOMP_offload_unregister): Make stub function, move bulk to ...
15186         (GOMP_offload_unregister_ver): ... here.  Process version argument.
15187         (gomp_init_device): Process version field.
15188         (gomp_unload_device): Process version field.
15189         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15190         macros.  Check plugin version.
15191         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
15192         loader and unloader types.
15193         * oacc-host.c: Include gomp-constants.h.
15194         (host_version): New.
15195         (host_load_image, host_unload_image): Adjust.
15196         (host_dispatch): Add host_version.
15197         * plugin/plugin-nvptx.c: Include gomp-constants.h.
15198         (GOMP_OFFLOAD_version): New.
15199         (GOMP_OFFLOAD_load_image): Add version arg and check it.
15200         (GOMP_OFFLOAD_unload_image): Likewise.
15201         * plugin/plugin-host.c: Include gomp-constants.h.
15202         (GOMP_OFFLOAD_version): New.
15203         (GOMP_OFFLOAD_load_image): Add version arg.
15204         (GOMP_OFFLOAD_unload_image): Likewise.
15206 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15208         PR tree-optimization/65468
15209         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15211 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15213         PR tree-optimization/65468
15214         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15216 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
15218         PR libgomp/66761
15219         PR libgomp/67303
15220         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15221         (gomp_iter_guided_next): Idem.
15222         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15223         (gomp_iter_ull_guided_next): Idem.
15224         * config/linux/wait.h (do_spin): Idem.
15226 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15228         * libgomp-plugin.h (enum offload_target_type): Remove
15229         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15230         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15231         * openacc.h (enum acc_device_t): Likewise.
15232         * openacc_lib.h: Likewise.
15233         * oacc-init.c (name_of_acc_device_t): Don't handle it.
15234         (acc_on_device): Just use __builtin_acc_on_device.
15235         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15236         of acc_on_device builtin.
15237         * plugin/plugin-host.h: Remove file.
15238         * plugin/plugin-host.c: Likewise, but salvage some content into...
15239         * oacc-host.c: ... this file.
15240         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15241         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15242         * Makefile.in: Regenerate.
15243         * configure: Likewise.
15244         * testsuite/lib/libgomp.exp
15245         (check_effective_target_openacc_host_nonshm_selected): Remove.
15246         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15247         ACC_DEVICE_TYPE=host_nonshm.
15248         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15249         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15250         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15251         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15252         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15253         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15255 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15256             Jakub Jelinek  <jakub@redhat.com>
15258         * config/nvptx/affinity.c: New file.
15259         * config/nvptx/alloc.c: Likewise.
15260         * config/nvptx/bar.c: Likewise.
15261         * config/nvptx/barrier.c: Likewise.
15262         * config/nvptx/critical.c: Likewise.
15263         * config/nvptx/env.c: Likewise.
15264         * config/nvptx/error.c: Likewise.
15265         * config/nvptx/fortran.c: Likewise.
15266         * config/nvptx/iter.c: Likewise.
15267         * config/nvptx/iter_ull.c: Likewise.
15268         * config/nvptx/libgomp-plugin.c: Likewise.
15269         * config/nvptx/lock.c: Likewise.
15270         * config/nvptx/loop.c: Likewise.
15271         * config/nvptx/loop_ull.c: Likewise.
15272         * config/nvptx/mutex.c: Likewise.
15273         * config/nvptx/oacc-async.c: Likewise.
15274         * config/nvptx/oacc-cuda.c: Likewise.
15275         * config/nvptx/oacc-host.c: Likewise.
15276         * config/nvptx/oacc-init.c: Likewise.
15277         * config/nvptx/oacc-mem.c: Likewise.
15278         * config/nvptx/oacc-parallel.c: Likewise.
15279         * config/nvptx/oacc-plugin.c: Likewise.
15280         * config/nvptx/omp-lock.h: Likewise.
15281         * config/nvptx/ordered.c: Likewise.
15282         * config/nvptx/parallel.c: Likewise.
15283         * config/nvptx/proc.c: Likewise.
15284         * config/nvptx/ptrlock.c: Likewise.
15285         * config/nvptx/sections.c: Likewise.
15286         * config/nvptx/sem.c: Likewise.
15287         * config/nvptx/single.c: Likewise.
15288         * config/nvptx/splay-tree.c: Likewise.
15289         * config/nvptx/target.c: Likewise.
15290         * config/nvptx/task.c: Likewise.
15291         * config/nvptx/team.c: Likewise.
15292         * config/nvptx/time.c: Likewise.
15293         * config/nvptx/work.c: Likewise.
15294         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15295         * configure: Regenerate.
15296         * configure.tgt (config_path): Set to "nvptx" for target
15297         nvptx*-*-*.
15299 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15301         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15303 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
15305         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15306         (cuda_errlist): Constify.
15307         (errmsg):  Move into ...
15308         (cuda_error): ... here.  Make smaller.
15309         (_XSTR, _STR): Delete.
15310         (cuda_synames): Delete.
15311         (verify_device_library): Delete.
15312         (nvptx_init): Don't call it.
15314 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15316         * testsuite/libgomp.c/uns-outer-4.c: New test.
15318 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15320         * testsuite/libgomp.c/pr66714.c: New test.
15322 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15324         PR libgomp/66950
15325         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15326         (fib_ref): New function.
15327         (fib): Correct corner cases in the recursion.
15328         (main): Replace the non-simd loop with fib_ref call.
15329         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15330         subroutine.
15331         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
15332         for the last array element value.  Replace the non-simd loop with
15333         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
15334         of the last array element with according Fibonacci sequence element.
15335         (fib): Correct corner cases in the recursion.
15337 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15339         * target.c (gomp_offload_image_to_device): Rename to ...
15340         (gomp_load_image_to_device): ... here.
15341         (GOMP_offload_register): Adjust call.
15342         (gomp_init_device): Likewise.
15343         (gomp_unload_image_from_device): New.  Broken out of ...
15344         (GOMP_offload_unregister): ... here.  Call it.
15345         (gomp_unload_device): New.
15346         * libgomp.h (gomp_unload_device): Declare.
15347         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15348         mem maps.
15350 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
15352         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15353         wait=-specific if.
15354         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15355         !=0 condition.
15356         (goacc_waits): Move !num_waits handling to ...
15357         (GOACC_wait): ... here, the only caller that might have zero waits.
15359         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15360         (struct ptx_image_data): Move earlier, add fns field.
15361         (struct ptx_device): Add images and image_lock fields.
15362         (ptx_images, ptx_image_lock): Delete.
15363         (nvptx_open_device): Initialize images and image_lock fields.
15364         (nvptx_close_device): Destroy image_lock.
15365         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15366         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15367         fields.
15369 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15371         * target.c (GOMP_offload_register): Use int for device type arg.
15372         (GOMP_offload_unregister): Likewise.
15374         * target.c (struct_offload_image_descr): Constify host_table.
15375         (gomp_offload_image_to_device): Likewise.
15376         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15378         * libgomp.h (gomp_device_descr): Constify target data arguments.
15379         * target.c (struct offload_image_descr): Constify target_data.
15380         (gomp_offload_image_to_device): Likewise.
15381         (GOMP_offload_register): Likewise.
15382         (GOMP_offload_unregister): Likewise.
15383         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15384         GOMP_OFFLOAD_unload_image): Constify target data.
15385         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15386         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15388 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15390         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15391         Workaround driver library const error.
15392         (struct nvptx_tdata, nvptx_tdata_t): New.
15393         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15394         type.
15396 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15398         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15399         of EPS parameter from integer to real.
15400         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15401         type of EPS parameter from integer to real.
15403 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15405         * team.c (get_last_team): New.
15406         (gomp_new_team): Recycle last non-nested team if possible.
15407         (gomp_team_end): Move team work share list free lock destruction
15408         to ...
15409         (free_team): ... here.
15411 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15413         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15414         and ref from int to double.  Replaced their comparison with
15415         an inequality of their difference and EPS.
15416         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15417         comparison of pri and a reference number with an inequality of their
15418         difference and EPS.
15419         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15420         the comparison of sum and sum_ref with an inequality of their
15421         difference and EPS.
15422         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15423         the comparison of pri and a reference number with an inequality of
15424         their difference and EPS.
15426 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15428         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15429         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15430         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15431         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15432         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15433         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15434         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15435         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15436         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15437         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15438         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15439         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15440         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15441         variables.
15442         (vec_mult): Likewise.  Add #pragma omp taskwait.
15443         (main): Adjust caller.
15444         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15445         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15446         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15447         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15448         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15449         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15450         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15451         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15452         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15453         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15454         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15455         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15456         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15457         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15458         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15459         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15460         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15461         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15462         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15463         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15464         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15465         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15466         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15467         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15468         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15469         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15470         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15471         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15472         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15473         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15474         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15475         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15476         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15477         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15478         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15479         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15480         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15481         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15482         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15483         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15484         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15485         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15486         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15487         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15488         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15489         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15490         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15491         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15492         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15493         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15494         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15495         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15496         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15497         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15498         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15499         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15500         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15501         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15502         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15503         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15504         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15505         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15506         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15507         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15508         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15509         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15510         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15511         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15512         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15513         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15514         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15515         (vec_mult): Add !$omp taskwait.
15516         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15517         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15518         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15519         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15520         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15521         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15522         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15523         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15524         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15525         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15526         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15527         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15528         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15529         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15530         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15531         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15532         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15533         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15534         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15535         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15536         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15537         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15538         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15539         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15540         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15541         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15542         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15543         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15544         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15545         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15546         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15547         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15548         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15549         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15550         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15551         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15552         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15553         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15554         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15555         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15556         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15557         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15558         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15559         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15560         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15561         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15562         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15563         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15564         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15565         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15566         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15567         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15568         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15569         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15570         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15571         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15572         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15573         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15574         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15575         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15576         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15577         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15578         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15579         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15580         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15581         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15582         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15584 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15586         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15587         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15589 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15591         PR libgomp/65099
15592         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15593         in a 64-bit configuration.
15594         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15595         offloading testing if no such device is available.
15596         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15597         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15599 2015-07-08  Tom de Vries  <tom@codesourcery.com>
15601         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15602         second call to f.
15603         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15605 2015-07-07  Tom de Vries  <tom@codesourcery.com>
15607         PR tree-optimization/66642
15608         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15609         iteration count case.
15610         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15611         function, factor out of ...
15612         (main): ... here.  Test low iteration count case.
15614 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15616         * libgomp.h (gomp_thread_pool): Comment last_team field.
15618 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
15620         * testsuite/libgomp.c++/pr66702-1.C: Require
15621         vect_simd_clones effective target.
15622         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15624 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15626         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15627         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15628         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15629         "-O2".
15631 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15633         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15634         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15635         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15636         * testsuite/libgomp.c++/pr64824.C: Same.
15637         * testsuite/libgomp.c++/pr64868.C: Same.
15638         * testsuite/libgomp.c++/pr66199-1.C: Same.
15639         * testsuite/libgomp.c++/pr66199-2.C: Same.
15640         * testsuite/libgomp.c++/target-2.C: Same.
15641         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15642         -std=<standard> option.
15643         * testsuite/libgomp.c++/udr-11.C: Same.
15644         * testsuite/libgomp.c++/udr-12.C: Same.
15645         * testsuite/libgomp.c++/udr-13.C: Same.
15646         * testsuite/libgomp.c++/udr-14.C: Same.
15647         * testsuite/libgomp.c++/udr-15.C: Same.
15648         * testsuite/libgomp.c++/udr-16.C: Same.
15649         * testsuite/libgomp.c++/udr-17.C: Same.
15650         * testsuite/libgomp.c++/udr-18.C: Same.
15651         * testsuite/libgomp.c++/udr-19.C: Same.
15652         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15653         * testsuite/libgomp.c++/simd-1.C: Same.
15654         * testsuite/libgomp.c++/simd-2.C: Same.
15655         * testsuite/libgomp.c++/simd-3.C: Same.
15656         * testsuite/libgomp.c++/simd-4.C: Same.
15657         * testsuite/libgomp.c++/simd-5.C: Same.
15658         * testsuite/libgomp.c++/simd-6.C: Same.
15659         * testsuite/libgomp.c++/simd-7.C: Same.
15660         * testsuite/libgomp.c++/simd-8.C: Same.
15661         * testsuite/libgomp.c++/simd-9.C: Same.
15662         * testsuite/libgomp.c++/simd10.C: Same.
15663         * testsuite/libgomp.c++/simd11.C: Same.
15664         * testsuite/libgomp.c++/simd12.C: Same.
15665         * testsuite/libgomp.c++/simd13.C: Same.
15667 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15669         PR middle-end/66702
15670         * testsuite/libgomp.c++/pr66702-1.C: New test.
15671         * testsuite/libgomp.c++/pr66702-2.C: New test.
15673 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15675         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15676         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15677         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15678         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15680 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15682         PR tree-optimization/66652
15683         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15684         using restrict pointers.
15685         (main): Add arguments to calls to f.
15686         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15688 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
15690         * configure.ac: Fix check for header <sys/sysctl.h>.
15691         * configure: Regenerate.
15692         * config.h.in: Likewise.
15694 2015-06-23  Tom de Vries  <tom@codesourcery.com>
15696         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15697         abort.
15698         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15700 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15702         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15703         acc_device_nvidia.
15705         PR libgomp/66518
15706         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15707         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15709 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15711         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15712         dg-additional-options for any remaining options.
15713         * testsuite/libgomp.c/atomic-2.c: Same.
15714         * testsuite/libgomp.c/atomic-4.c: Same.
15715         * testsuite/libgomp.c/atomic-5.c: Same.
15716         * testsuite/libgomp.c/atomic-6.c: Same.
15717         * testsuite/libgomp.c/autopar-1.c: Same.
15718         * testsuite/libgomp.c/copyin-1.c: Same.
15719         * testsuite/libgomp.c/copyin-2.c: Same.
15720         * testsuite/libgomp.c/copyin-3.c: Same.
15721         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15722         * testsuite/libgomp.c/nestedfn-5.c: Same.
15723         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15724         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15725         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15726         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15727         * testsuite/libgomp.c/pr32362-1.c: Same.
15728         * testsuite/libgomp.c/pr32362-2.c: Same.
15729         * testsuite/libgomp.c/pr32362-3.c: Same.
15730         * testsuite/libgomp.c/pr39591-1.c: Same.
15731         * testsuite/libgomp.c/pr39591-2.c: Same.
15732         * testsuite/libgomp.c/pr39591-3.c: Same.
15733         * testsuite/libgomp.c/pr58392.c: Same.
15734         * testsuite/libgomp.c/pr58756.c: Same.
15735         * testsuite/libgomp.c/simd-1.c: Same.
15736         * testsuite/libgomp.c/simd-10.c: Same.
15737         * testsuite/libgomp.c/simd-11.c: Same.
15738         * testsuite/libgomp.c/simd-12.c: Same.
15739         * testsuite/libgomp.c/simd-13.c: Same.
15740         * testsuite/libgomp.c/simd-14.c: Same.
15741         * testsuite/libgomp.c/simd-15.c: Same.
15742         * testsuite/libgomp.c/simd-2.c: Same.
15743         * testsuite/libgomp.c/simd-3.c: Same.
15744         * testsuite/libgomp.c/simd-4.c: Same.
15745         * testsuite/libgomp.c/simd-5.c: Same.
15746         * testsuite/libgomp.c/simd-6.c: Same.
15747         * testsuite/libgomp.c/simd-7.c: Same.
15748         * testsuite/libgomp.c/simd-8.c: Same.
15749         * testsuite/libgomp.c/simd-9.c: Same.
15751 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15753         * testsuite/libgomp.c/pr35625.c: Fix typo.
15755 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15757         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15758         in dg-options.
15759         * testsuite/libgomp.c/atomic-3.c: Same.
15760         * testsuite/libgomp.c/debug-1.c: Same.
15761         * testsuite/libgomp.c/nqueens-1.c: Same.
15762         * testsuite/libgomp.c/pr26171.c: Same.
15763         * testsuite/libgomp.c/pr48591.c: Same.
15764         * testsuite/libgomp.c/pr64824.c: Same.
15765         * testsuite/libgomp.c/pr64868.c: Same.
15766         * testsuite/libgomp.c/pr66133.c: Same.
15767         * testsuite/libgomp.c/pr66199-1.c: Same.
15768         * testsuite/libgomp.c/pr66199-2.c: Same.
15769         * testsuite/libgomp.c/target-8.c: Same.
15771 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15773         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15774         -std={gnu99,c99}.
15775         * testsuite/libgomp.c/for-1.c: Same.
15776         * testsuite/libgomp.c/for-2.c: Same.
15777         * testsuite/libgomp.c/for-3.c: Same.
15778         * testsuite/libgomp.c/pr35625.c: Same.
15779         * testsuite/libgomp.c/pr39154.c: Same.
15780         * testsuite/libgomp.c/simd-16.c: Same.
15781         * testsuite/libgomp.c/simd-17.c: Same.
15783 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15785         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15787 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15789         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15790         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15791         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15792         (N): Define.
15793         (main): Use N instead of hardcoded constants.
15795 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15797         merge from gomp4 branch:
15798         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15800         PR tree-optimization/65443
15801         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15802         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15803         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15805 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15807         * testsuite/libgomp.graphite/bounds.c: Adjust for
15808         cleanup-tree-dump removal.
15809         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15810         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15811         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15812         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15813         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15814         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15815         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15816         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15817         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15818         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15820 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15822         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15823         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15824         (futex_wake) [!__x86_64__]: Ditto.
15826 2015-05-28  Julian Brown  <julian@codesourcery.com>
15828         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15829         function comment. Only call gomp_fatal if new argument is true.
15830         (acc_dev_num_out_of_range): New function.
15831         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15832         acc_dev_num_out_of_range as appropriate.
15833         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15834         (acc_get_device_num, acc_set_device_num): Update calls to
15835         resolve_device.
15836         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15837         output.
15839 2015-05-28  Julian Brown  <julian@codesourcery.com>
15841         PR libgomp/65742
15842         * oacc-init.c (plugin/plugin-host.h): Include.
15843         (acc_on_device): Check whether we're in an offloaded region for
15844         host_nonshm
15845         plugin. Don't use __builtin_acc_on_device.
15846         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15847         nonshm_exec flag in thread-local data.
15848         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15849         data for host_nonshm plugin.
15850         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15851         for host_nonshm plugin.
15852         * plugin/plugin-host.h: New.
15854 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15856         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15858 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15860         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15861         Declare as int.
15862         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15863         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15864         Declare as int.
15866 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15868         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15870 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15872         * target.c (gomp_map_pointer): New function abstracting out
15873         GOMP_MAP_POINTER handling.
15874         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15875         gomp_map_pointer().
15877 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15879         PR middle-end/66199
15880         * testsuite/libgomp.c/pr66199-1.c: New test.
15881         * testsuite/libgomp.c/pr66199-2.c: New test.
15882         * testsuite/libgomp.c++/pr66199-1.C: New test.
15883         * testsuite/libgomp.c++/pr66199-2.C: New test.
15884         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15885         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15887 2015-05-19  Julian Brown  <julian@codesourcery.com>
15889         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15890         on cuInit failure.
15892 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15894         PR middle-end/66133
15895         * testsuite/libgomp.c/pr66133.c: New test.
15897 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15899         * Makefile.in: Regenerated with automake-1.11.6.
15900         * aclocal.m4: Likewise.
15901         * config.h.in: Likewise.
15902         * configure: Likewise.
15903         * testsuite/Makefile.in: Likewise.
15905 2015-05-08  Jason Merrill  <jason@redhat.com>
15907         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15908         _Complex.
15910         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15912 2015-05-06  Julian Brown  <julian@codesourcery.com>
15914         * oacc-init.c (acc_device_lock): Add explanatory comment.
15915         (resolve_device): Add comment about locking requirement.
15916         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15917         gomp_init_device and gomp_fini_device calls.
15918         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15919         (acc_get_device_num, acc_set_device_num): Add locking around
15920         resolve_device and gomp_init_device calls.
15922 2015-05-06  Julian Brown  <julian@codesourcery.com>
15924         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15925         goacc_thread_lock on error paths.
15926         * oacc-mem.c (lookup_host): Remove locking from function. Note
15927         locking requirement for caller in function comment.
15928         (lookup_dev): Likewise.
15929         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15930         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15931         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15932         Add locking.
15934 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15936         PR testsuite/65205
15937         PR libgomp/65993
15938         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15939         don't expect "0x" prefix for "%p" format specifier, don't expect
15940         "(nil)" for NULL pointer.
15941         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15942         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15943         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15944         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15945         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15946         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15947         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15948         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15949         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15950         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15951         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15952         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15953         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15954         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15955         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15956         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15957         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15958         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15959         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15960         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15961         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15962         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15963         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15964         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15965         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15966         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15967         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15968         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15969         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15970         accurately specify what we're looking for.
15971         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15972         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15973         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15974         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15975         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15977 2015-04-30  James Norris  <jnorris@codesourcery.com>
15979         PR testsuite/65205
15980         * testsuite/lib/libgomp.exp
15981         (check_effective_target_openacc_host_selected)
15982         (check_effective_target_openacc_host_nonshm_selected): New
15983         procedures.
15984         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15985         dg-shouldfail.
15986         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15987         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15988         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15989         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15990         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15991         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15992         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15993         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15994         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15995         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15996         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15997         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15998         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15999         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16000         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16001         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16002         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16003         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16004         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16005         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16006         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16007         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16008         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16009         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16010         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16011         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16012         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16013         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16014         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16015         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16016         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16017         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16018         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16019         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16020         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16021         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16022         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16023         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16024         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16025         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16026         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16027         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16028         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16030 2015-04-08  Julian Brown  <julian@codesourcery.com>
16032         * libgomp.h (target_mem_desc: Remove mem_map field.
16033         (acc_dispatch_t): Remove open_device_func, close_device_func,
16034         get_device_num_func, set_device_num_func, target_data members.
16035         Change create_thread_data_func argument to device number instead of
16036         generic pointer.
16037         * oacc-async.c (assert.h): Include.
16038         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
16039         (acc_wait_all, acc_wait_all_async): Use current host thread's
16040         active device, not base_dev.
16041         * oacc-cuda.c (acc_get_current_cuda_device)
16042         (acc_get_current_cuda_context, acc_get_cuda_stream)
16043         (acc_set_cuda_stream): Likewise.
16044         * oacc-host.c (host_dispatch): Don't set open_device_func,
16045         close_device_func, get_device_num_func or set_device_num_func.
16046         * oacc-init.c (base_dev, init_key): Remove.
16047         (cached_base_dev): New.
16048         (name_of_acc_device_t): New.
16049         (acc_init_1): Initialise default-numbered device, not zeroth.
16050         (acc_shutdown_1): Close all devices of a given type.
16051         (goacc_destroy_thread): Don't use base_dev.
16052         (lazy_open, lazy_init, lazy_init_and_open): Remove.
16053         (goacc_attach_host_thread_to_device): New.
16054         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
16055         (acc_get_num_devices): Don't use base_dev.
16056         (acc_set_device_type): Reimplement.
16057         (acc_get_device_type): Don't use base_dev.
16058         (acc_get_device_num): Tweak logic.
16059         (acc_set_device_num): Likewise.
16060         (acc_on_device): Use acc_get_device_type.
16061         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
16062         (goacc_lazy_initialize): Reimplement with acc_init and
16063         goacc_attach_host_thread_to_device.
16064         * oacc-int.h (goacc_thread): Add base_dev field.
16065         (base_dev): Remove extern declaration.
16066         (goacc_attach_host_thread_to_device): Add prototype.
16067         * oacc-mem.c (acc_malloc): Use current thread's device instead of
16068         base_dev.
16069         (acc_free): Likewise.
16070         (acc_memcpy_to_device): Likewise.
16071         (acc_memcpy_from_device): Likewise.
16072         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
16073         goacc_lazy_initialize (throughout).
16074         (GOACC_parallel): Use tgt_offset to locate target functions.
16075         * target.c (gomp_map_vars): Don't set tgt->mem_map.
16076         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
16077         (gomp_load_plugin_for_device): Remove open_device, close_device,
16078         get_device_num, set_device_num openacc hook initialisation. Don't set
16079         openacc.target_data.
16080         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
16081         (GOMP_OFFLOAD_openacc_close_device)
16082         (GOMP_OFFLOAD_openacc_get_device_num)
16083         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
16084         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
16085         to int.
16086         * plugin/plugin-nvptx.c (ptx_inited): Remove.
16087         (instantiated_devices, ptx_dev_lock): New.
16088         (struct ptx_image_data): New.
16089         (ptx_devices, ptx_images, ptx_image_lock): New.
16090         (fini_streams_for_device): Reorder cuStreamDestroy call.
16091         (nvptx_get_num_devices): Remove forward declaration.
16092         (nvptx_init): Change return type to bool.
16093         (nvptx_fini): Remove.
16094         (nvptx_attach_host_thread_to_device): New.
16095         (nvptx_open_device): Return struct ptx_device* instead of void*.
16096         (nvptx_close_device): Change argument type to struct ptx_device*,
16097         return type to void.
16098         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
16099         (kernel_target_data, kernel_host_table): Remove static globals.
16100         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16101         (GOMP_OFFLOAD_init_device): Reimplement.
16102         (GOMP_OFFLOAD_fini_device): Likewise.
16103         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16104         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16105         (GOMP_OFFLOAD_host2dev): Use ORD argument.
16106         (GOMP_OFFLOAD_openacc_open_device)
16107         (GOMP_OFFLOAD_openacc_close_device)
16108         (GOMP_OFFLOAD_openacc_set_device_num)
16109         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16110         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16111         (device number).
16113         testsuite/
16114         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16116 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
16118         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16119         * libgomp.h (struct gomp_memory_mapping): Remove.
16120         (struct target_mem_desc): Change type of mem_map from
16121         gomp_memory_mapping * to splay_tree_s *.
16122         (struct gomp_device_descr): Remove register_image_func, get_table_func.
16123         Add load_image_func, unload_image_func.
16124         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16125         Remove offload_regions_registered.
16126         (gomp_init_tables): Remove.
16127         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16128         to splay_tree_s *.
16129         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16130         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16131         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16132         offload_regions_registered.
16133         Initialize load_image_func, unload_image_func, mem_map.root.
16134         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16135         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16136         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16137         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16138         gomp_memory_mapping *.  Use dev's lock and splay_tree.
16139         (lookup_dev): Use dev's lock.
16140         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16141         (acc_is_present): Likewise.
16142         (acc_map_data): Likewise.
16143         (acc_unmap_data): Likewise.  Use dev's lock.
16144         (present_create_copy): Likewise.
16145         (delete_copyout): Pass dev to lookup_host instead of mem_map.
16146         (update_dev_host): Likewise.
16147         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
16148         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16149         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16150         (GOMP_OFFLOAD_get_table): Remove
16151         (GOMP_OFFLOAD_load_image): New function.
16152         (GOMP_OFFLOAD_unload_image): New function.
16153         * target.c (register_lock): New mutex for offload image registration.
16154         (num_devices): Do not guard with PLUGIN_SUPPORT.
16155         (gomp_realloc_unlock): New static function.
16156         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
16157         before gomp_fatal.
16158         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16159         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
16160         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16161         mem_map's.
16162         (gomp_unmap_vars): Likewise.
16163         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
16164         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
16165         (gomp_offload_image_to_device): New static function.
16166         (GOMP_offload_register): Add mutex lock.
16167         Call gomp_offload_image_to_device for all initialized devices.
16168         Replace gomp_realloc with gomp_realloc_unlock.
16169         (GOMP_offload_unregister): New function.
16170         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
16171         get_table_func from the plugin with calls to init_device_func and
16172         gomp_offload_image_to_device.
16173         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16174         to splay_tree_s *.
16175         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
16176         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
16177         (GOMP_target_data): Do not call gomp_init_tables.
16178         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
16179         (gomp_load_plugin_for_device): Replace register_image and get_table
16180         with load_image and unload_image in DLSYM ().
16181         (gomp_register_images_for_device): Remove function.
16182         (gomp_target_init): Do not initialize current_device.mem_map.*,
16183         current_device.offload_regions_registered.
16184         Remove call to gomp_register_images_for_device.
16185         Do not free offload_images and num_offload_images.
16187 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16189         PR fortran/65597
16190         * testsuite/libgomp.fortran/pr65597.f90: New test.
16192 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16194         PR testsuite/65594
16195         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16196         (init, check): New function.
16197         (foo): Change return type to void.
16198         (main): Call init and check.
16200 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16202         PR testsuite/65594
16203         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16204         (foo): Use M for non-inner loops to scale down test-case.
16206 2015-03-25  Kai Tietz  <ktietz@redhat.com>
16208         PR libgomp/64972
16209         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16210         (GOACC_data_start): Likewise.
16211         * target.c (gomp_map_vars): Likewise.
16213 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
16215         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16216         hppa*-*-hpux*.
16218 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
16220         * testsuite/libgomp.c/target-10.c: New test.
16221         * testsuite/libgomp.c++/target-4.C: New test.
16223 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16225         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16226         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16228 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16230         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16231         * configure.ac (*-*-rtems*): Assume Pthread is supported.
16232         (pthread.h): Check for this header file.
16233         * configure: Regenerate.
16235 2015-02-25  Tom de Vries  <tom@codesourcery.com>
16237         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16238         (check_reduction_op, check_reduction_macro, max, min):
16239         Declare.
16240         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16241         function.
16242         (main): Use new functions.
16244 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
16246         * target.c (gomp_load_plugin_for_device): Use const char * instead of
16247         char * for variables holding dlerror return values.
16248         (DLSYM_OPT): Ditto.
16250 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16252         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16254 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16255             Cesar Philippidis  <cesar@codesourcery.com>
16257         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16258         GOACC_ctaid, and GOACC_nctaid routines.
16260 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16262         PR c/64824
16263         * testsuite/libgomp.c/atomic-18.c: New test.
16264         * testsuite/libgomp.c++/atomic-16.C: New test.
16266 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16268         PR c/64824
16269         PR c/64868
16270         * testsuite/libgomp.c/pr64824.c: New test.
16271         * testsuite/libgomp.c/pr64868.c: New test.
16272         * testsuite/libgomp.c++/pr64824.C: New test.
16273         * testsuite/libgomp.c++/pr64868.C: New test.
16275 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16277         PR libgomp/64635
16278         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16279         Link with -lpthread.
16280         * config/aix/plugin-suffix.h: Delete.
16282 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
16284         PR libgomp/64635
16285         * configure.tgt (*-*-aix*): Use config_path "aix posix".
16286         (*-*-darwin*): Use config_path "bsd darwin posix".
16287         (*-*-hpux*): Use config_path "hpux posix".
16288         * target.c: Add include of plugin-suffix.h and use
16289         SONAME_SUFFIX macro.
16290         * config/aix/plugin-suffix.h: New file.
16291         * config/darwin/plugin-suffix.h: New file.
16292         * config/hpux/plugin-suffix.h: New file.
16293         * config/posix/plugin-suffix.h: New file.
16295 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16297         PR middle-end/64734
16298         * libgomp.c/pr64734.c: New test.
16300 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16302         PR libgomp/64672
16303         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16305 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16307         PR libgomp/64707
16308         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16309         dg-options.
16311 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16313         PR libgomp/64625
16314         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16315         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16316         formal parameter.  Update all users.
16317         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16318         Document unused formal parameter.
16320 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
16322         * oacc-parallel.c: Don't include <alloca.h>.
16323         (GOACC_parallel): Use gomp_alloca instead of alloca.
16325 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
16327         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16329 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16330             James Norris  <jnorris@codesourcery.com>
16331             Tom de Vries  <tom@codesourcery.com>
16332             Julian Brown  <julian@codesourcery.com>
16333             Cesar Philippidis  <cesar@codesourcery.com>
16334             Nathan Sidwell  <nathan@codesourcery.com>
16335             Tobias Burnus  <burnus@net-b.de>
16337         * Makefile.am (search_path): Add $(top_srcdir)/../include.
16338         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16339         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16340         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16341         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16342         Include $(top_srcdir)/plugin/Makefrag.am.
16343         (nodist_libsubinclude_HEADERS): Add openacc.h.
16344         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16345         openacc.f90, openacc.mod, openacc_kinds.mod.
16346         (omp_lib.mod): Generalize into...
16347         (%.mod): ... this new rule.
16348         (openacc_kinds.mod, openacc.mod): New rules.
16349         * plugin/configfrag.ac: New file.
16350         * configure.ac: Move plugin/offloading support into it.  Include
16351         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
16352         * plugin/Makefrag.am: New file.
16353         * testsuite/Makefile.am (OFFLOAD_TARGETS)
16354         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16355         export.
16356         (libgomp-test-support.exp): New rule.
16357         (all-local): Depend on it.
16358         * Makefile.in: Regenerate.
16359         * testsuite/Makefile.in: Regenerate.
16360         * config.h.in: Likewise.
16361         * configure: Likewise.
16362         * configure.tgt: Harden shell syntax.
16363         * env.c: Include "oacc-int.h".
16364         (parse_acc_device_type): New function.
16365         (gomp_debug_var, goacc_device_type, goacc_device_num): New
16366         variables.
16367         (initialize_env): Initialize those.  Call
16368         goacc_runtime_initialize.
16369         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16370         (gomp_fatal): Call gomp_vfatal.
16371         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16372         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16373         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16374         (splay_tree_node, splay_tree, splay_tree_key)
16375         (struct target_mem_desc, struct splay_tree_key_s)
16376         (struct gomp_memory_mapping, struct acc_dispatch_t)
16377         (struct gomp_device_descr, gomp_acc_insert_pointer)
16378         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16379         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16380         (gomp_free_memmap, gomp_fini_device): New declarations.
16381         (gomp_vdebug, gomp_debug): New macros.
16382         Include "splay-tree.h".
16383         * libgomp.map (OACC_2.0): New symbol version.  Use for
16384         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16385         acc_set_device_type_h_, acc_get_device_type,
16386         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16387         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16388         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16389         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16390         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16391         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16392         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16393         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16394         acc_copyin_array_h_, acc_present_or_copyin,
16395         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16396         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16397         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16398         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16399         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16400         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16401         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16402         acc_update_device, acc_update_device_32_h_,
16403         acc_update_device_64_h_, acc_update_device_array_h_,
16404         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16405         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16406         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16407         acc_is_present_64_h_, acc_is_present_array_h_,
16408         acc_memcpy_to_device, acc_memcpy_from_device,
16409         acc_get_current_cuda_device, acc_get_current_cuda_context,
16410         acc_get_cuda_stream, acc_set_cuda_stream.
16411         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
16412         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16413         GOACC_update, GOACC_wait, GOACC_get_thread_num,
16414         GOACC_get_num_threads.
16415         (GOMP_PLUGIN_1.0): New symbol version.  Use for
16416         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16417         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16418         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16419         GOMP_PLUGIN_acc_thread.
16420         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16421         environment variable.
16422         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16423         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16424         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16425         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16426         (splay_tree_remove): New declarations.
16427         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16428         (splay_tree_remove, splay_tree_lookup): Move into...
16429         * splay-tree.c: ... this new file.
16430         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16431         (splay_tree_node, splay_tree, splay_tree_key)
16432         (struct target_mem_desc, struct splay_tree_key_s)
16433         (struct gomp_device_descr): Don't declare.
16434         (num_devices_openmp): New variable.
16435         (gomp_get_num_devices ): Use it.
16436         (gomp_init_targets_once): New function.
16437         (gomp_get_num_devices ): Use it.
16438         (get_kind, gomp_copy_from_async, gomp_free_memmap)
16439         (gomp_fini_device, gomp_register_image_for_device): New functions.
16440         (gomp_map_vars): Add devaddrs parameter.
16441         (gomp_update): Add mm parameter.
16442         (gomp_init_device): Move most of it into...
16443         (gomp_init_tables): ... this new function.
16444         (gomp_register_images_for_device): Remove function.
16445         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16446         Make them hidden instead of static.
16447         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16448         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16449         (GOMP_target_end_data, GOMP_target_update)
16450         (gomp_load_plugin_for_device, gomp_target_init): Update for
16451         OpenACC changes.
16452         * oacc-async.c: New file.
16453         * oacc-cuda.c: Likewise.
16454         * oacc-host.c: Likewise.
16455         * oacc-init.c: Likewise.
16456         * oacc-int.h: Likewise.
16457         * oacc-mem.c: Likewise.
16458         * oacc-parallel.c: Likewise.
16459         * oacc-plugin.c: Likewise.
16460         * oacc-plugin.h: Likewise.
16461         * oacc-ptx.h: Likewise.
16462         * openacc.f90: Likewise.
16463         * openacc.h: Likewise.
16464         * openacc_lib.h: Likewise.
16465         * plugin/plugin-host.c: Likewise.
16466         * plugin/plugin-nvptx.c: Likewise.
16467         * libgomp-plugin.c: Likewise.
16468         * libgomp-plugin.h: Likewise.
16469         * libgomp_target.h: Remove file after merging content into the
16470         former file.  Update all users.
16471         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16472         (offload_targets_s, offload_targets_s_openacc): New variables.
16473         (check_effective_target_openacc_nvidia_accel_present)
16474         (check_effective_target_openacc_nvidia_accel_selected): New
16475         procedures.
16476         (libgomp_init): Update for OpenACC changes.
16477         * testsuite/libgomp-test-support.exp.in: New file.
16478         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16479         * testsuite/libgomp.oacc-c/c.exp: Likewise.
16480         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16481         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16482         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16483         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16484         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16485         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16486         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16487         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16488         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16489         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16490         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16491         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16492         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16493         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16494         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16495         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16496         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16497         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16498         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16499         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16500         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16501         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16502         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16503         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16504         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16505         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16506         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16507         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16508         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16509         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16510         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16511         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16512         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16513         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16514         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16515         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16516         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16517         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16518         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16519         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16520         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16521         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16522         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16523         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16524         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16525         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16526         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16527         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16528         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16529         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16530         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16531         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16532         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16533         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16534         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16535         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16536         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16537         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16538         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16539         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16540         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16541         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16542         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16543         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16544         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16545         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16546         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16547         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16548         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16549         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16550         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16551         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16552         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16553         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16554         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16555         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16556         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16557         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16558         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16559         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16560         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16561         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16562         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16563         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16564         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16565         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16566         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16567         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16568         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16569         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16570         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16571         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16572         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16573         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16574         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16575         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16576         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16577         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16578         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16579         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16580         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16581         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16582         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16583         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16584         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16585         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16586         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16587         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16588         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16589         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16590         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16591         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16592         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16593         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16594         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16595         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16596         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16597         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16598         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16599         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16600         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16601         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16602         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16603         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16604         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16605         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16606         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16607         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16608         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16609         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16610         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16611         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16612         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16613         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16614         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16615         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16616         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16617         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16618         Likewise.
16619         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16620         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16621         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16622         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16623         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16624         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16625         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16626         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16627         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16628         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16629         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16630         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16631         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16632         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16633         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16634         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16635         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16636         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16637         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16638         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16639         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16640         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16641         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16642         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16643         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16644         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16645         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16646         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16647         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16648         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16649         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16650         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16651         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16652         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16653         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16654         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16655         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16656         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16657         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16658         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16659         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16660         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16661         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16662         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16663         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16664         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16665         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16666         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16667         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16668         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16669         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16670         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16671         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16672         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16673         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16674         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16675         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16676         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16677         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16678         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16680 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16681             Julian Brown  <julian@codesourcery.com>
16682             David Malcolm  <dmalcolm@redhat.com>
16684         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16685         to "GNU Offloading and Multi Processing Runtime Library".  Change
16686         all users.
16687         * configure: Regenerate.
16688         * libgomp.texi: Update.
16690 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16692         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16693         "$tgt_dir/lib32".
16694         * configure: Regenerate.
16696         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16697         "intelmic" in $offload_targets.
16699 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16701         Update copyright years.
16703         * libgomp.texi: Bump @copying's copyright year.
16705 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16707         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16708         Move load of target-supports.exp earlier.
16710 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16712         * testsuite/libgomp.c/target-9.c: New test.
16714 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16716         * config.h.in: Regenerate.
16717         * configure: Regenerate.
16718         * configure.ac: Add GCC_CHECK_EMUTLS.
16719         * libgomp.h: Add check for USE_EMUTLS: this case
16720         is equal to HAVE_TLS.
16721         * team.c: Likewise.
16723 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16725         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16727 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16728             Ilya Verbin  <ilya.verbin@intel.com>
16730         * testsuite/libgomp.c/target-critical-1.c: New test.
16732 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16734         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16735         to dg-options unless expensive testing is on.
16736         (TESTITERS): Define to N if not defined.
16737         (main): Use TESTITERS instead of N.
16738         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16739         dg-additional-options depending on whether expensive testing is on.
16740         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16741         Decrease N to 100000 and CHUNKSZ to 10000.
16743 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16745         PR fortran/63938
16746         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16747         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16749 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16751         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16753 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16755         PR bootstrap/63784
16756         * configure: Regenerated.
16758 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16760         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16761         vect_simd_clones effective target.
16762         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16764 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16766         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16767         of 32 as block_size.
16768         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16769         instead of 32 as block_size.
16771 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16772             Ilya Verbin  <ilya.verbin@intel.com>
16774         * Makefile.in: Regenerate.
16775         * configure: Regenerate.
16776         * configure.ac: Set up offload_additional_options,
16777         offload_additional_lib_paths and offload_targets.
16778         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16779         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16780         * testsuite/Makefile.in: Regenerate.
16781         * testsuite/lib/libgomp.exp (libgomp_init): Append
16782         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16783         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16784         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16786 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16787             Ilya Verbin  <ilya.verbin@intel.com>
16788             Kirill Yukhin  <kirill.yukhin@intel.com>
16789             Ilya Tocar  <ilya.tocar@intel.com>
16791         * testsuite/lib/libgomp.exp
16792         (check_effective_target_offload_device): New.
16793         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16794         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16795         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16796         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16797         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16798         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16799         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16800         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16801         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16802         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16803         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16804         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16805         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16806         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16807         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16808         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16809         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16810         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16811         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16812         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16813         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16814         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16815         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16816         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16817         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16818         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16819         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16820         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16821         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16822         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16823         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16824         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16825         * testsuite/libgomp.c/target-7.c: Fix test.
16826         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16827         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16828         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16829         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16830         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16831         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16832         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16833         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16834         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16835         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16836         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16837         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16838         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16839         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16840         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16841         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16842         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16843         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16844         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16845         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16846         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16847         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16848         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16849         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16850         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16851         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16852         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16853         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16854         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16855         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16856         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16858 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16859             Ilya Verbin  <ilya.verbin@intel.com>
16860             Thomas Schwinge  <thomas@codesourcery.com>
16861             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16863         * libgomp.map (GOMP_4.0.1): New symbol version.
16864         Add GOMP_offload_register.
16865         * libgomp_target.h: New file.
16866         * splay-tree.h: New file.
16867         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16868         (gomp_target_init): New forward declaration.
16869         (gomp_is_initialized): New static variable.
16870         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16871         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16872         New structures.
16873         (offload_images, num_offload_images, devices, num_devices): New static
16874         variables.
16875         (splay_compare): New static function.
16876         (struct gomp_device_descr): New structure.
16877         (gomp_get_num_devices): Call gomp_target_init.
16878         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16879         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16880         (GOMP_offload_register): New function.
16881         (GOMP_target): Arrange for host callback to be performed in a separate
16882         initial thread and contention group, inheriting ICVs from
16883         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16884         Add device initialization and lookup for target function in splay tree.
16885         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16886         (GOMP_target_end_data): Call gomp_unmap_vars.
16887         (GOMP_target_update): Add device initialization and call gomp_update.
16888         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16889         (gomp_target_init): New static functions.
16891 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16892             Thomas Schwinge  <thomas@codesourcery.com>
16893             Ilya Verbin  <ilya.verbin@intel.com>
16894             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16896         * config.h.in: Regenerate.
16897         * configure: Regenerate.
16898         * configure.ac: Check for libdl, required for plugin support.
16899         (PLUGIN_SUPPORT): Define if plugins are supported.
16900         (enable_offload_targets): Support Intel MIC targets.
16901         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16903 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16905         PR target/63610
16906         * configure: Regenerate.
16908 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16910         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16912 2014-10-06  Marek Polacek  <polacek@redhat.com>
16914         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16915         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16916         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16917         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16919 2014-10-06  Marek Polacek  <polacek@redhat.com>
16921         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16922         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16923         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16924         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16925         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16926         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16927         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16928         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16929         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16930         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16931         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16932         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16933         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16934         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16935         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16936         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16937         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16938         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16939         declarations.
16941 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16943         PR libgomp/61200
16944         * testsuite/libgomp.c/pr61200.c: New test.
16946 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16948         PR c++/63248
16949         * testsuite/libgomp.c++/pr63248.C: New test.
16951 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16953         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16954         is not zero, but taskgroup->children is NULL and there are
16955         any task->children, schedule those instead of waiting.
16956         * testsuite/libgomp.c/depend-6.c: New test.
16957         * testsuite/libgomp.c/depend-7.c: New test.
16958         * testsuite/libgomp.c/depend-8.c: New test.
16959         * testsuite/libgomp.c/depend-9.c: New test.
16960         * testsuite/libgomp.c/depend-10.c: New test.
16962 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16964         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16965         (struct gomp_taskwait): New type.
16966         (struct gomp_task): Add taskwait and parent_depends_on, remove
16967         in_taskwait and taskwait_sem fields.
16968         (gomp_finish_task): Don't destroy taskwait_sem.
16969         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16970         taskwait and parent_depends_on.
16971         (GOMP_task): For if (0) tasks with depend clause that depend on
16972         earlier tasks don't defer them, instead call
16973         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16974         Initialize redundant_out field, for redundant out entries just
16975         move them at the end of linked list instead of removing them
16976         completely, and set redundant_out flag instead of redundant.
16977         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16978         that task.
16979         (gomp_task_run_post_handle_dependers): If parent is in
16980         gomp_task_maybe_wait_for_dependencies and newly runnable task
16981         is not parent_depends_on, queue it in parent->children linked
16982         list after all runnable tasks with parent_depends_on set.
16983         Adjust for addition of taskwait indirection.
16984         (gomp_task_run_post_remove_parent): If parent is in
16985         gomp_task_maybe_wait_for_dependencies and task to be removed
16986         is parent_depends_on, decrement n_depend and if needed awake
16987         parent.  Adjust for addition of taskwait indirection.
16988         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16989         (gomp_task_maybe_wait_for_dependencies): New function.
16990         * testsuite/libgomp.c/depend-5.c: New test.
16992 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16994         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16995         with TS 18508/Fortran 2015.
16997 2014-07-06  Marek Polacek  <polacek@redhat.com>
16999         PR c/6940
17000         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
17002 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
17004         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
17005         matches regex $lang_source_re, add $lang_include_flags to options.
17006         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
17007         * testsuite/libgomp.c++/c++.exp: Likewise.
17008         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
17009         and lang_include_flags instead of adding -fintrinsic-modules-path= to
17010         ALWAYS_CFLAGS.
17011         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
17013 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
17015         * testsuite/libgomp.fortran/fortran.exp: Explain
17016         gfortran-dg-runtest usage.
17018 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
17020         * testsuite/libgomp.fortran/simd5.f90: New test.
17021         * testsuite/libgomp.fortran/simd6.f90: New test.
17022         * testsuite/libgomp.fortran/simd7.f90: New test.
17024 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
17026         * testsuite/libgomp.c/for-2.c: Define SC to static for
17027         #pragma omp for simd testing.
17028         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
17029         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
17030         SC macro.
17031         * testsuite/libgomp.c/simd-14.c: New test.
17032         * testsuite/libgomp.c/simd-15.c: New test.
17033         * testsuite/libgomp.c/simd-16.c: New test.
17034         * testsuite/libgomp.c/simd-17.c: New test.
17035         * testsuite/libgomp.c++/for-10.C: Define SC to static for
17036         #pragma omp for simd testing.
17037         * testsuite/libgomp.c++/simd10.C: New test.
17038         * testsuite/libgomp.c++/simd11.C: New test.
17039         * testsuite/libgomp.c++/simd12.C: New test.
17040         * testsuite/libgomp.c++/simd13.C: New test.
17042         * testsuite/libgomp.fortran/aligned1.f03: New test.
17043         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
17044         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
17045         tasks with !$omp parallel !$omp single.
17046         * testsuite/libgomp.fortran/target8.f90: New test.
17047         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
17048         not to use trim in the combiner, instead call elemental function.
17049         (fn): New elemental function.
17050         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
17051         Make elemental.
17052         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
17053         omp_in): Likewise.
17054         * testsuite/libgomp.fortran/udr12.f90: New test.
17055         * testsuite/libgomp.fortran/udr13.f90: New test.
17056         * testsuite/libgomp.fortran/udr14.f90: New test.
17057         * testsuite/libgomp.fortran/udr15.f90: New test.
17059 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
17061         * omp_lib.f90.in (openmp_version): Set to 201307.
17062         * omp_lib.h.in (openmp_version): Likewise.
17063         * testsuite/libgomp.c/target-8.c: New test.
17064         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
17065         and inbranch clauses.
17066         * testsuite/libgomp.fortran/depend-3.f90: New test.
17067         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
17068         openmp_version.
17069         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17070         * testsuite/libgomp.fortran/target1.f90: New test.
17071         * testsuite/libgomp.fortran/target2.f90: New test.
17072         * testsuite/libgomp.fortran/target3.f90: New test.
17073         * testsuite/libgomp.fortran/target4.f90: New test.
17074         * testsuite/libgomp.fortran/target5.f90: New test.
17075         * testsuite/libgomp.fortran/target6.f90: New test.
17076         * testsuite/libgomp.fortran/target7.f90: New test.
17078 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
17080         PR fortran/60928
17081         * testsuite/libgomp.fortran/allocatable9.f90: New test.
17082         * testsuite/libgomp.fortran/allocatable10.f90: New test.
17083         * testsuite/libgomp.fortran/allocatable11.f90: New test.
17084         * testsuite/libgomp.fortran/allocatable12.f90: New test.
17085         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
17086         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
17087         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
17088         * testsuite/libgomp.fortran/associate1.f90: New test.
17089         * testsuite/libgomp.fortran/associate2.f90: New test.
17090         * testsuite/libgomp.fortran/procptr1.f90: New test.
17092 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
17094         * testsuite/libgomp.fortran/simd1.f90: New test.
17095         * testsuite/libgomp.fortran/udr1.f90: New test.
17096         * testsuite/libgomp.fortran/udr2.f90: New test.
17097         * testsuite/libgomp.fortran/udr3.f90: New test.
17098         * testsuite/libgomp.fortran/udr4.f90: New test.
17099         * testsuite/libgomp.fortran/udr5.f90: New test.
17100         * testsuite/libgomp.fortran/udr6.f90: New test.
17101         * testsuite/libgomp.fortran/udr7.f90: New test.
17102         * testsuite/libgomp.fortran/udr8.f90: New test.
17103         * testsuite/libgomp.fortran/udr9.f90: New test.
17104         * testsuite/libgomp.fortran/udr10.f90: New test.
17105         * testsuite/libgomp.fortran/udr11.f90: New test.
17107 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
17109         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17110         vect_simd_clones effective target.
17111         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17113 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
17115         PR middle-end/61252
17116         * testsuite/libgomp.c++/simd-9.C: New test.
17118 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
17120         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17121         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17122         texts according to their @menu entry positions.
17124 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
17126         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17127         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17128         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17129         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17130         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17131         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17132         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17133         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17134         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17135         * testsuite/libgomp.fortran/depend-1.f90: New test.
17136         * testsuite/libgomp.fortran/depend-2.f90: New test.
17137         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17138         * testsuite/libgomp.fortran/simd1.f90: New test.
17139         * testsuite/libgomp.fortran/simd2.f90: New test.
17140         * testsuite/libgomp.fortran/simd3.f90: New test.
17141         * testsuite/libgomp.fortran/simd4.f90: New test.
17142         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17144 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
17146         * testsuite/libgomp.c/simd-10.c: New test.
17147         * testsuite/libgomp.c/simd-11.c: New test.
17148         * testsuite/libgomp.c/simd-12.c: New test.
17149         * testsuite/libgomp.c/simd-13.c: New test.
17151 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
17153         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17154         atomic type clauses in any order and optional comma in between.
17155         * testsuite/libgomp.c++/atomic-15.C: Likewise.
17156         * testsuite/libgomp.c/atomic-17.c: Likewise.
17158         * testsuite/libgomp.c/simd-7.c: New test.
17159         * testsuite/libgomp.c/simd-8.c: New test.
17160         * testsuite/libgomp.c/simd-9.c: New test.
17161         * testsuite/libgomp.c/loop-16.c: New test.
17163 2014-04-02  Richard Henderson  <rth@redhat.com>
17165         * config/linux/futex.h (futex_wait): Get error value from errno.
17166         (futex_wake): Likewise.
17168 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
17170         PR c++/60331
17171         * testsuite/libgomp.c++/udr-11.C: New test.
17172         * testsuite/libgomp.c++/udr-12.C: New test.
17173         * testsuite/libgomp.c++/udr-13.C: New test.
17174         * testsuite/libgomp.c++/udr-14.C: New test.
17175         * testsuite/libgomp.c++/udr-15.C: New test.
17176         * testsuite/libgomp.c++/udr-16.C: New test.
17177         * testsuite/libgomp.c++/udr-17.C: New test.
17178         * testsuite/libgomp.c++/udr-18.C: New test.
17179         * testsuite/libgomp.c++/udr-19.C: New test.
17181 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17183         Update copyright years
17185 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17187         * hashtab.h: Use the standard form for the copyright notice.
17189 2014-01-02  Tobias Burnus  <burnus@net-b.de>
17191         * libgomp.texi: Bump @copying's copyright year.
17193 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
17195         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17196         alloca () with __builtin_alloca ().
17197         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17198         * testsuite/libgomp.c/lock-3.c: Likewise.
17199         * testsuite/libgomp.c/pr48591.c: Likewise.
17201 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
17203         PR testsuite/59534
17204         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17205         comparisons.
17207 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
17209         PR libgomp/58756
17210         * testsuite/libgomp.c/pr58756.c: New test.
17212 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
17214         PR libgomp/59467
17215         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17216         !$omp parallel.
17218 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
17220         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17221         ALWAYS_CFLAGS.
17222         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17223         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17224         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17225         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17226         Likewise.
17228         * libgomp_g.h: Include <stddef.h> for size_t.
17230         * libgomp.spec.in: Update comment about libgomp's dependencies.
17231         * configure.ac: Likewise.
17232         * configure: Regenerate.
17234 2013-10-16  Tobias Burnus  <burnus@net-b.de>
17236         * libgomp.texi: (Runtime Library Routines): Update references for
17237         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17238         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17239         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17240         (Environment Variables): Update references for OpenMP 4.0. Add
17241         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17242         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17243         order.
17245 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
17247         * env.c (parse_bind_var): Initialize value to avoid
17248         (false positive) warning.
17250 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
17252         PR libgomp/58691
17253         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17254         to check variable.
17255         (gomp_init_num_threads): Move i variable declaration into
17256         #ifdef CPU_ALLOC_SIZE block.
17257         * config/linux/affinity.c (gomp_affinity_init_level): Test
17258         gomp_places_list_len == 0 rather than gomp_places_list == 0
17259         when checking for topology reading error.
17260         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17261         * env.c (parse_affinity): Add ignore argument, if true, don't populate
17262         gomp_places_list, only parse env var and always return false.
17263         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
17264         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17265         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17266         and either of these variables were parsed correctly into a places
17267         list.
17269 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17270             Jakub Jelinek  <jakub@redhat.com>
17272         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17273         of 5 loopfn matches.
17274         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17275         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17276         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17277         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17278         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17279         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17280         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17281         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17283 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17285         * Makefile.am (omp_lib.mod): Streamline rule.
17286         * Makefile.in: Regenerate.
17288         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17289         exceptions.
17291         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17292         * testsuite/libgomp.fortran/lib1.f90: Likewise.
17293         * testsuite/libgomp.fortran/lib2.f: Likewise.
17294         * testsuite/libgomp.fortran/lib3.f: Likewise.
17296         * configure.ac: Typo fix.
17297         * configure: Regenerate.
17299         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17300         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17302         * omp.h.in: Don't touch the user's namespace.
17304 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
17305             Tobias Burnus  <burnus@net-b.de>
17306             Richard Henderson  <rth@redhat.com>
17308         * target.c: New file.
17309         * Makefile.am (libgomp_la_SOURCES): Add target.c.
17310         * Makefile.in: Regenerated.
17311         * libgomp_g.h (GOMP_task): Add depend argument.
17312         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17313         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17314         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17315         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17316         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17317         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17318         GOMP_taskgroup_start, GOMP_taskgroup_end,
17319         GOMP_parallel_sections): New prototypes.
17320         * fortran.c (omp_is_initial_device): Add ialias_redirect.
17321         (omp_is_initial_device_): New function.
17322         (ULP, STR1, STR2, ialias_redirect): Removed.
17323         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17324         omp_set_default_device_8_, omp_get_default_device_,
17325         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17326         functions.
17327         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17328         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17329         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17330         @@GOMP_4.0.
17331         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17332         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17333         omp_set_default_device, omp_set_default_device_,
17334         omp_set_default_device_8_, omp_get_default_device,
17335         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17336         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17337         omp_get_team_num_): Export @@OMP_4.0.
17338         * team.c (struct gomp_thread_start_data): Add place field.
17339         (gomp_thread_start): Clear thr->thread_pool and
17340         thr->task before returning.  Use gomp_team_barrier_wait_final
17341         instead of gomp_team_barrier_wait.  Initialize thr->place.
17342         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17343         team_cancelled and task_queued_count fields.
17344         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17345         before calling pthread_exit.
17346         (gomp_free_thread): No longer static.  Use
17347         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17348         (gomp_team_start): Add flags argument.  Set
17349         thr->thread_pool->threads_busy to nthreads immediately after creating
17350         new pool.  Use gomp_managed_threads_lock instead of
17351         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
17352         (gomp_team_end): Use gomp_managed_threads_lock instead of
17353         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
17354         of gomp_team_barrier_wait.  If team->team_cancelled, call
17355         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17356         rather than thr->ts.work_share.
17357         (initialize_team): Don't call gomp_sem_init here.
17358         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17359         caller.
17360         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17361         * env.c (gomp_global_icv): Add default_device_var, target_data and
17362         bind_var initializers.
17363         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17364         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17365         gomp_places_list_len): New variables.
17366         (parse_bind_var, parse_one_place, parse_places_var): New functions.
17367         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17368         sized places.
17369         (gomp_cancel_var): New global variable.
17370         (parse_int): New function.
17371         (handle_omp_display_env): New function.
17372         (initialize_env): Use it.  Initialize default_device_var.
17373         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
17374         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
17375         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
17376         been successfully parsed (and call gomp_init_affinity in that case).
17377         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17378         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17379         omp_get_team_num, omp_is_initial_device): New functions.
17380         * libgomp.h: Include stdlib.h.
17381         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17382         Define.
17383         (struct target_mem_desc): Forward declare.
17384         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17385         and thread_limit_var fields.
17386         (gomp_get_num_devices): New prototype.
17387         (gomp_cancel_var): New extern decl.
17388         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17389         team_cancelled and task_queued_count fields.  Add comments about
17390         task_{,queued_,running_}count.
17391         (gomp_cancel_kind): New enum.
17392         (gomp_work_share_end_cancel): New prototype.
17393         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17394         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17395         and depend fields.
17396         (struct gomp_taskgroup): New type.
17397         (struct gomp_task_depend_entry,
17398         struct gomp_dependers_vec): New types.
17399         (gomp_finish_task): Free depend_hash if non-NULL.
17400         (struct gomp_team_state): Add place_partition_off
17401         and place_partition_len fields.
17402         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17403         gomp_places_list_len): New extern decls.
17404         (struct gomp_thread): Add place field.
17405         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17406         (gomp_init_thread_affinity): Add place argument.
17407         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17408         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17409         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17410         gomp_affinity_init_level, gomp_affinity_print_place): New
17411         prototypes.
17412         (gomp_team_start): Add flags argument.
17413         (gomp_thread_limit_var, gomp_remaining_threads_count,
17414         gomp_remaining_threads_lock): Remove.
17415         (gomp_managed_threads_lock): New variable.
17416         (struct gomp_thread_pool): Add threads_busy field.
17417         (gomp_free_thread): New prototype.
17418         * task.c: Include hashtab.h.
17419         (hash_entry_type): New typedef.
17420         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17421         (gomp_init_task): Clear dependers, depend_hash, depend_count,
17422         copy_ctors_done and taskgroup fields.
17423         (GOMP_task): Add depend argument, handle depend clauses.  If
17424         gomp_team_barrier_cancelled or if it's taskgroup has been
17425         cancelled, don't queue or start new tasks.  Set copy_ctors_done
17426         field if needed.  Initialize taskgroup field.  If copy_ctors_done
17427         and already cancelled, don't discard the task.  If taskgroup is
17428         non-NULL, enqueue the task into taskgroup queue.  Increment
17429         num_children field in taskgroup.  Increment task_queued_count.
17430         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17431         gomp_task_run_post_remove_taskgroup): New inline functions.
17432         (gomp_task_run_post_handle_depend_hash,
17433         gomp_task_run_post_handle_dependers,
17434         gomp_task_run_post_handle_depend): New functions.
17435         (GOMP_taskwait): Use them.  If more than one new tasks
17436         have been queued, wake other threads if needed.
17437         (gomp_barrier_handle_tasks): Likewise.  If
17438         gomp_team_barrier_cancelled, don't start any new tasks, just free
17439         all tasks.
17440         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17441         * omp_lib.f90.in
17442         (omp_proc_bind_kind, omp_proc_bind_false,
17443         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17444         omp_proc_bind_spread): New params.
17445         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17446         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17447         omp_get_team_num, omp_is_initial_device): New interfaces.
17448         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17449         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17450         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17451         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17452         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17453         useless use omp_lib_kinds.
17454         * omp.h.in (omp_proc_bind_t): New typedef.
17455         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17456         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17457         omp_get_team_num, omp_is_initial_device): New prototypes.
17458         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17459         through to gomp_team_start.
17460         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17461         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17462         Adjust gomp_parallel_loop_start callers.
17463         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17464         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17465         GOMP_loop_end_cancel): New functions.
17466         (GOMP_parallel_end): Add ialias_redirect.
17467         * hashtab.h: New file.
17468         * libgomp.texi (Environment Variables): Minor cleanup,
17469         update section refs to OpenMP 4.0rc2.
17470         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17471         environment variables.
17472         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17473         team->work_shares_to_free to thr->ts.work_share before calling
17474         free_work_share.
17475         (gomp_work_share_end_cancel): New function.
17476         * config/linux/proc.c: Include errno.h.
17477         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17478         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17479         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
17480         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
17481         gomp_cpuset_size is sizeof (cpu_set_t).
17482         (gomp_init_num_threads): Initialize gomp_cpuset_size,
17483         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17484         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17485         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
17486         contain any logical CPUs.
17487         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17488         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
17489         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17490         pthread_getaffinity_np.  Check gomp_places_list instead of
17491         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
17492         * config/linux/bar.c (gomp_barrier_wait_end,
17493         gomp_barrier_wait_last): Use BAR_* defines.
17494         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
17495         from state where needed.  Set work_share_cancelled to 0 on last
17496         thread.
17497         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17498         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17499         functions.
17500         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17501         Add cpusetsize argument.
17502         (gomp_cpuset_size, gomp_cpusetp): Declare.
17503         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17504         (affinity_counter): Remove.
17505         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17506         if CPU_ALLOC_SIZE isn't defined.
17507         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17508         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17509         bind current thread to the first place.
17510         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
17511         pthread_setaffinity_np to gomp_places_list[place].
17512         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17513         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17514         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17515         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17516         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17517         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17518         (gomp_barrier_t): Add awaited_final field.
17519         (gomp_barrier_init): Initialize awaited_final field.
17520         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17521         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17522         prototypes.
17523         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
17524         defines.
17525         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17526         gomp_team_barrier_cancelled): New inline functions.
17527         (gomp_barrier_last_thread,
17528         gomp_team_barrier_set_task_pending,
17529         gomp_team_barrier_clear_task_pending,
17530         gomp_team_barrier_set_waiting_for_tasks,
17531         gomp_team_barrier_waiting_for_tasks,
17532         gomp_team_barrier_done): Use BAR_* defines.
17533         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17534         (gomp_barrier_wait_end): Use BAR_* defines.
17535         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17536         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17537         Use BAR_* defines.
17538         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17539         gomp_team_barrier_cancel): New functions.
17540         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17541         argument.
17542         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17543         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17544         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17545         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17546         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17547         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17548         (gomp_barrier_t): Add cancellable field.
17549         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17550         gomp_team_barrier_cancel): New prototypes.
17551         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17552         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17553         gomp_team_barrier_cancelled): New inline functions.
17554         (gomp_barrier_wait_start, gomp_barrier_last_thread,
17555         gomp_team_barrier_set_task_pending,
17556         gomp_team_barrier_clear_task_pending,
17557         gomp_team_barrier_set_waiting_for_tasks,
17558         gomp_team_barrier_waiting_for_tasks,
17559         gomp_team_barrier_done): Use BAR_* defines.
17560         * barrier.c (GOMP_barrier_cancel): New function.
17561         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17562         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17563         omp_proc_bind_spread): New params.
17564         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17565         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17566         omp_get_team_num, omp_is_initial_device): New externals.
17567         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17568         New functions.
17569         (gomp_resolve_num_threads): Adjust for thread_limit now being in
17570         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17571         infinity.  If not nested, just return minimum of max_num_threads
17572         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17573         to the returned value.  Otherwise, don't update atomically
17574         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17575         (GOMP_parallel_end): Adjust for thread_limit now being in
17576         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17577         infinity.  Adjust threads_busy in the pool rather than
17578         gomp_remaining_threads_count.  Remember team->nthreads and call
17579         gomp_team_end before adjusting threads_busy, if not nested
17580         afterwards, just set it to 1 non-atomically.  Add ialias.
17581         (GOMP_parallel_start): Adjust gomp_team_start caller.
17582         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17583         * testsuite/libgomp.c/affinity-1.c: New test.
17584         * testsuite/libgomp.c/atomic-15.c: New test.
17585         * testsuite/libgomp.c/atomic-16.c: New test.
17586         * testsuite/libgomp.c/atomic-17.c: New test.
17587         * testsuite/libgomp.c/cancel-for-1.c: New test.
17588         * testsuite/libgomp.c/cancel-for-2.c: New test.
17589         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17590         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17591         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17592         * testsuite/libgomp.c/cancel-sections-1.c: New test.
17593         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17594         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17595         * testsuite/libgomp.c/depend-1.c: New test.
17596         * testsuite/libgomp.c/depend-2.c: New test.
17597         * testsuite/libgomp.c/depend-3.c: New test.
17598         * testsuite/libgomp.c/depend-4.c: New test.
17599         * testsuite/libgomp.c/for-1.c: New test.
17600         * testsuite/libgomp.c/for-1.h: New file.
17601         * testsuite/libgomp.c/for-2.c: New test.
17602         * testsuite/libgomp.c/for-2.h: New file.
17603         * testsuite/libgomp.c/for-3.c: New test.
17604         * testsuite/libgomp.c/pr58392.c: New test.
17605         * testsuite/libgomp.c/simd-1.c: New test.
17606         * testsuite/libgomp.c/simd-2.c: New test.
17607         * testsuite/libgomp.c/simd-3.c: New test.
17608         * testsuite/libgomp.c/simd-4.c: New test.
17609         * testsuite/libgomp.c/simd-5.c: New test.
17610         * testsuite/libgomp.c/simd-6.c: New test.
17611         * testsuite/libgomp.c/target-1.c: New test.
17612         * testsuite/libgomp.c/target-2.c: New test.
17613         * testsuite/libgomp.c/target-3.c: New test.
17614         * testsuite/libgomp.c/target-4.c: New test.
17615         * testsuite/libgomp.c/target-5.c: New test.
17616         * testsuite/libgomp.c/target-6.c: New test.
17617         * testsuite/libgomp.c/target-7.c: New test.
17618         * testsuite/libgomp.c/taskgroup-1.c: New test.
17619         * testsuite/libgomp.c/thread-limit-1.c: New test.
17620         * testsuite/libgomp.c/thread-limit-2.c: New test.
17621         * testsuite/libgomp.c/thread-limit-3.c: New test.
17622         * testsuite/libgomp.c/udr-1.c: New test.
17623         * testsuite/libgomp.c/udr-2.c: New test.
17624         * testsuite/libgomp.c/udr-3.c: New test.
17625         * testsuite/libgomp.c++/affinity-1.C: New test.
17626         * testsuite/libgomp.c++/atomic-10.C: New test.
17627         * testsuite/libgomp.c++/atomic-11.C: New test.
17628         * testsuite/libgomp.c++/atomic-12.C: New test.
17629         * testsuite/libgomp.c++/atomic-13.C: New test.
17630         * testsuite/libgomp.c++/atomic-14.C: New test.
17631         * testsuite/libgomp.c++/atomic-15.C: New test.
17632         * testsuite/libgomp.c++/cancel-for-1.C: New test.
17633         * testsuite/libgomp.c++/cancel-for-2.C: New test.
17634         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17635         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17636         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17637         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17638         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17639         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17640         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17641         * testsuite/libgomp.c++/cancel-test.h: New file.
17642         * testsuite/libgomp.c++/for-9.C: New test.
17643         * testsuite/libgomp.c++/for-10.C: New test.
17644         * testsuite/libgomp.c++/for-11.C: New test.
17645         * testsuite/libgomp.c++/simd-1.C: New test.
17646         * testsuite/libgomp.c++/simd-2.C: New test.
17647         * testsuite/libgomp.c++/simd-3.C: New test.
17648         * testsuite/libgomp.c++/simd-4.C: New test.
17649         * testsuite/libgomp.c++/simd-5.C: New test.
17650         * testsuite/libgomp.c++/simd-6.C: New test.
17651         * testsuite/libgomp.c++/simd-7.C: New test.
17652         * testsuite/libgomp.c++/simd-8.C: New test.
17653         * testsuite/libgomp.c++/target-1.C: New test.
17654         * testsuite/libgomp.c++/target-2.C: New test.
17655         * testsuite/libgomp.c++/target-2-aux.cc: New file.
17656         * testsuite/libgomp.c++/target-3.C: New test.
17657         * testsuite/libgomp.c++/taskgroup-1.C: New test.
17658         * testsuite/libgomp.c++/udr-1.C: New test.
17659         * testsuite/libgomp.c++/udr-2.C: New test.
17660         * testsuite/libgomp.c++/udr-3.C: New test.
17661         * testsuite/libgomp.c++/udr-4.C: New test.
17662         * testsuite/libgomp.c++/udr-5.C: New test.
17663         * testsuite/libgomp.c++/udr-6.C: New test.
17664         * testsuite/libgomp.c++/udr-7.C: New test.
17665         * testsuite/libgomp.c++/udr-8.C: New test.
17666         * testsuite/libgomp.c++/udr-9.C: New test.
17668 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
17670         PR testsuite/57605
17671         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17672         ALWAYS_CFLAGS.
17674 2013-09-20  Alan Modra  <amodra@gmail.com>
17676         * configure: Regenerate.
17678 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17680         * testsuite/libgomp.c/sections-2.c: New test.
17682 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17684         * testsuite/libgomp.fortran/strassen.f90:
17685         Add dg-skip-if aarch64_tiny.
17687 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
17688             Cesar Philippidis  <cesar@codesourcery.com>
17690         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17691         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17692         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17693         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17694         * testsuite/libgomp.graphite/graphite.exp: Likewise.
17695         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17696         Use dg-runtest rather than gfortran-dg-runtest.
17698 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17700         * testsuite/libgomp.c/icv-2.c: Extend current handling of
17701         Linux-based x86 systems to cover all GNU systems.
17702         * testsuite/libgomp.c/lock-3.c: Likewise.
17703         * testsuite/libgomp.c/pr48591.c: Likewise.
17705 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17707         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17708         GNU/Hurd, as done for Linux-based systems.
17710         * config/posix/ptrlock.h: Fix comment.
17712 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17714         PR fortran/57423
17715         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17716         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17717         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17718         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17719         omp_destroy_nest_lock): Correct arguments to match the one in
17720         the OpenMP spec.
17721         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17722         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17723         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17724         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17726 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17728         * testsuite/libgomp.c/loop-13.c: New test.
17729         * testsuite/libgomp.c/loop-14.c: New test.
17730         * testsuite/libgomp.c/loop-15.c: New test.
17731         * testsuite/libgomp.c++/loop-13.C: New test.
17732         * testsuite/libgomp.c++/loop-14.C: New test.
17733         * testsuite/libgomp.c++/loop-15.C: New test.
17735 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17737         PR middle-end/56217
17738         * testsuite/libgomp.c++/pr56217.C: New test.
17740 2013-02-01  Alan Modra  <amodra@gmail.com>
17742         * task.c (GOMP_task, GOMP_taskwait): Comment.
17744 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17745             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17747         PR libgomp/55561
17748         * config/linux/wait.h (do_spin): Use atomic load for addr.
17749         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17750         for intptr and ptrlock.
17751         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17752         for ptrlock.
17754 2013-01-22  Alan Modra  <amodra@gmail.com>
17756         PR libgomp/51376
17757         PR libgomp/56073
17758         * task.c (GOMP_task): Revert 2011-12-09 change.
17759         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17760         barrier to read task->children..
17761         (gomp_barrier_handle_tasks): ..and matching atomic store with
17762         release barrier here when setting parent->children to NULL.
17764 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17765             Tobias Burnus  <burnus@net-b.de>
17767         PR driver/55884
17768         * testsuite/libgomp.fortran/fortran.exp: Use
17769         -fintrinsic-modules-path= instead of
17770         -fintrinsic-modules-path.
17772 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17774         Update copyright years.
17776 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17778         * testsuite/libgomp.fortran/fortran.exp: Set
17779         -fintrinsic-modules-path.
17781 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17783         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17784         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17786 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17788         PR libgomp/55411
17789         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17790         if pool had any threads_used.
17792 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17794         * testsuite/libgomp.c++/pr24455.C: Use
17795         -Wl,-undefined,dynamic_lookup on darwin.
17797 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17799         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17801 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17803         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17805 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17806             Jim MacArthur  <jim.macarthur@arm.com>
17807             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17808             Nigel Stephens  <nigel.stephens@arm.com>
17809             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17810             Richard Earnshaw  <rearnsha@arm.com>
17811             Sofiane Naci  <sofiane.naci@arm.com>
17812             Stephen Thomas  <stephen.thomas@arm.com>
17813             Tejas Belagod  <tejas.belagod@arm.com>
17814             Yufeng Zhang  <yufeng.zhang@arm.com>
17816         * configure.tgt: Add AArch64.
17818 2012-10-04  Jason Merrill  <jason@redhat.com>
17820         * testsuite/libgomp.c++/tls-init1.C: New.
17822 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17824         * configure: Regenerated.
17826 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17828         * config/linux/mips/futex.h (sys_futex0): Change to static
17829         function with noinline, nomips16 attributes under MIPS16. Adjust
17830         asm statement to place 'li v0,SYS_futex' immediately before
17831         syscall insn.
17833 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17835         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17836         conflict with index.html on case-insensitive file systems.
17838 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17840         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17841         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17843 2012-07-02  Richard Guenther  <rguenther@suse.de>
17844             Michael Matz  <matz@suse.de>
17845             Tobias Grosser <tobias@grosser.es>
17846             Sebastian Pop <sebpop@gmail.com>
17848         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17849         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17850         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17851         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17853 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17855         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17857 2012-06-22  Richard Guenther  <rguenther@suse.de>
17859         Merge from graphite branch
17860         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17862         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17863         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17865 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17867         PR middle-end/53580
17868         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17869         use GOMP_barrier () call instead.
17870         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17871         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17872         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17873         call GOMP_barrier instead.
17874         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17876 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17878         PR libgomp/52993
17879         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17880         argument to memset call.
17882 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17884         * configure: Regenerated.
17886 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17888         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17890 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17892         PR bootstrap/52812
17893         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17895 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17897         PR middle-end/52547
17898         * testsuite/libgomp.c/pr52547.c: New test.
17900 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17902         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17904 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17906         * configure.tgt (mips-sgi-irix6*): Remove.
17908 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17910         * configure.tgt (alpha*-dec-osf*): Remove.
17912         * config/osf/sem.h: Remove.
17913         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17915 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17917         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17919 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17921         PR libstdc++/52188
17922         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17923         Remove ENABLE_SYMVERS_SOL2.
17924         * configure: Regenerate.
17925         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17926         (PREPROCESS): New variable.
17927         (libgomp.ver): New target.
17928         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17929         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17930         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17931         Use libgomp.ver.
17932         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17933         * Makefile.in: Regenerate.
17935 2012-02-14  Walter Lee  <walt@tilera.com>
17937         * configure.tgt: Handle tilegx and tilepro.
17938         * config/linux/tile/futex.h: New file.
17940 2012-02-08  Richard Guenther  <rguenther@suse.de>
17942         PR tree-optimization/46886
17943         * testsuite/libgomp.c/pr46886.c: New testcase.
17945 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17947         * config/linux/arm: Remove empty directory.
17948         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17950 2011-12-09  Alan Modra  <amodra@gmail.com>
17952         PR libgomp/51376
17953         * task.c (GOMP_taskwait): Don't access task->children outside of
17954         task_lock mutex region.
17955         (GOMP_task): Likewise.
17957 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17959         PR libgomp/51132
17960         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17961         to file scope.
17962         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17963         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17964         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17965         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17966         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17968 2011-12-02  Alan Modra  <amodra@gmail.com>
17970         * config/linux/affinity.c: Use atomic rather than sync builtin.
17971         * config/linux/lock.c: Likewise.
17972         * config/linux/ptrlock.h: Likewise.
17973         * config/linux/ptrlock.c: Likewise.
17974         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17975         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17976         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17977         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17978         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17979         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17980         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17981         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17982         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17983         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17985 2011-11-30  Alan Modra  <amodra@gmail.com>
17987         PR libgomp/51298
17988         * config/linux/bar.h: Use atomic rather than sync builtins.
17989         * config/linux/bar.c: Likewise.  Add missing acquire
17990         synchronisation on generation field.
17991         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17992         double unlock.
17994 2011-11-30  Alan Modra  <amodra@gmail.com>
17996         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17997         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17998         * config/linux/mutex.h: Use atomic rather than sync builtins.
17999         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
18000         * config/linux/omp-lock.h: Comment fix.
18001         * config/linux/arm/mutex.h: Delete.
18002         * config/linux/powerpc/mutex.h: Delete.
18003         * config/linux/ia64/mutex.h: Delete.
18004         * config/linux/mips/mutex.h: Delete.
18006 2011-11-30  Alan Modra  <amodra@gmail.com>
18008         PR libgomp/51249
18009         * config/linux/sem.h: Rewrite.
18010         * config/linux/sem.c: Rewrite.
18012 2011-11-28  Richard Henderson  <rth@redhat.com>
18014         * libgomp.h (enum memmodel): New.
18016 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
18018         * configure: Regenerate.
18020 2011-10-10  Matthias Klose  <doko@ubuntu.com>
18022         * config/posix95: Remove empty directory.
18024 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
18026         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
18028 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
18030         PR fortran/49792
18031         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
18032         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
18034 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18036         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
18038 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18040         PR libgomp/49965
18041         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
18043 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
18045         * config/linux/proc.h: New.
18046         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
18047         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
18048         (gomp_init_num_threads): Update call to cpuset_popcount.
18049         (get_num_procs): Ditto.
18050         * config/linux/affinity.c (gomp_init_affinity): Call
18051         gomp_cpuset_popcount.
18053 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
18055         PR fortran/42041
18056         PR fortran/46752
18057         * omp.h.in (omp_in_final): New prototype.
18058         * omp_lib.f90.in (omp_in_final): New interface.
18059         (omp_integer_kind, omp_logical_kind): Remove
18060         and replace all its uses in the module with 4.
18061         (openmp_version): Change to 201107.
18062         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
18063         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
18064         kind for the parameters.
18065         (omp_in_final): New external.
18066         (openmp_version): Change to 201107.
18067         * task.c (omp_in_final): New function.
18068         (gomp_init_task): Initialize final_task.
18069         (GOMP_task): Remove unused attribute from flags.  Handle final
18070         tasks.
18071         (GOMP_taskyield): New function.
18072         (omp_in_final): Return true if if (false) or final (true) task
18073         or descendant of final (true).
18074         * fortran.c (omp_in_final_): New function.
18075         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
18076         (GOMP_3.0): Export GOMP_taskyield.
18077         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
18078         variables.
18079         (parse_unsigned_long_list): New function.
18080         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
18081         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
18082         even if parse_affinity returned false.
18083         * config/linux/affinity.c (gomp_init_affinity): Handle
18084         gomp_cpu_affinity_len == 0.
18085         * libgomp_g.h (GOMP_taskyield): New prototype.
18086         * libgomp.h (struct gomp_task): Add final_task field.
18087         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
18088         * team.c (gomp_team_start): Override new task's nthreads_var icv
18089         if list form OMP_NUM_THREADS has been used and it has value for
18090         the new nesting level.
18092         * testsuite/libgomp.c/atomic-11.c: New test.
18093         * testsuite/libgomp.c/atomic-12.c: New test.
18094         * testsuite/libgomp.c/atomic-13.c: New test.
18095         * testsuite/libgomp.c/atomic-14.c: New test.
18096         * testsuite/libgomp.c/reduction-6.c: New test.
18097         * testsuite/libgomp.c/task-5.c: New test.
18098         * testsuite/libgomp.c++/atomic-2.C: New test.
18099         * testsuite/libgomp.c++/atomic-3.C: New test.
18100         * testsuite/libgomp.c++/atomic-4.C: New test.
18101         * testsuite/libgomp.c++/atomic-5.C: New test.
18102         * testsuite/libgomp.c++/atomic-6.C: New test.
18103         * testsuite/libgomp.c++/atomic-7.C: New test.
18104         * testsuite/libgomp.c++/atomic-8.C: New test.
18105         * testsuite/libgomp.c++/atomic-9.C: New test.
18106         * testsuite/libgomp.c++/task-8.C: New test.
18107         * testsuite/libgomp.c++/reduction-4.C: New test.
18108         * testsuite/libgomp.fortran/allocatable7.f90: New test.
18109         * testsuite/libgomp.fortran/allocatable8.f90: New test.
18110         * testsuite/libgomp.fortran/crayptr3.f90: New test.
18111         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18112         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18113         * testsuite/libgomp.fortran/pointer1.f90: New test.
18114         * testsuite/libgomp.fortran/pointer2.f90: New test.
18115         * testsuite/libgomp.fortran/task4.f90: New test.
18117 2011-08-02  Tobias Burnus  <burnus@net-b.de>
18119         * libgomp.texi: Update OpenMP spec references to 3.1.
18120         (omp_in_final,OMP_PROC_BIND): New sections.
18121         (OMP_NUM_THREADS): Document that the value can be now a list.
18122         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18124 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
18126         * config/linux/x86/futex.h: Check __x86_64__ instead of
18127         __LP64__.
18129 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
18131         PR middle-end/49897
18132         PR middle-end/49898
18133         * testsuite/libgomp.c/pr49897-1.c: New test.
18134         * testsuite/libgomp.c/pr49897-2.c: New test.
18135         * testsuite/libgomp.c/pr49898-1.c: New test.
18136         * testsuite/libgomp.c/pr49898-2.c: New test.
18138 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
18140         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18141         for ia32 instead of ilp32.
18143         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18144         * testsuite/libgomp.c/atomic-6.c: Likewise.
18146 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
18148         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18149         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18151 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18153         PR libgomp/45351
18154         * config/osf/sem.h: New file.
18155         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18157 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18159         PR target/49541
18160         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18161         ldflags.
18163 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
18165         * config/linux/wait.h (do_spin): New inline, largely copied
18166         from do_wait, just don't do futex_wait here, instead return true if
18167         it should be done.
18168         (do_wait): Implement using do_spin.
18169         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18170         to prototype.
18171         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18172         __sync_bool_compare_and_swap, pass the oldval to
18173         gomp_mutex_lock_slow.
18174         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18175         If all mutex contenders are just spinning and not sleeping, don't
18176         change state to 2 unnecessarily.  Optimize the loop when state has
18177         already become 2 to use just one atomic operation per loop instead
18178         of two.
18179         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18180         to prototype.
18181         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18182         __sync_bool_compare_and_swap, pass the oldval to
18183         gomp_mutex_lock_slow.
18185 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18187         PR libgomp/49490
18188         * iter.c (gomp_iter_static_next): For chunk size 0
18189         only use n ceil/ nthreads size for the first
18190         n % nthreads threads in the team instead of
18191         all threads except for the last few ones which
18192         get less work or none at all.
18193         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18194         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18195         chunk argument, set run_sched_modifier to 0 for static
18196         resp. 1 for other kinds.  If chunk argument is 0
18197         and not static, set value to 1.
18199 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
18201         PR c++/49043
18202         * testsuite/libgomp.c++/pr49043.C: New test.
18204         PR c++/48869
18205         * testsuite/libgomp.c++/pr48869.C: New test.
18207 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18209         PR fortran/48894
18210         * fortran.c: Include limits.h.
18211         (TO_INT): Define.
18212         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18213         *set.
18214         (omp_set_num_threads_8_, omp_set_schedule_8_,
18215         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18216         omp_get_team_size_8_): Use TO_INT macro.
18217         * testsuite/libgomp.fortran/pr48894.f90: New test.
18219 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18221         PR middle-end/48591
18222         * testsuite/libgomp.c/pr48591.c: New test.
18224 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18226         PR bootstrap/48135
18227         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18228         * configure: Regenerate.
18230 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18232         PR fortran/47886
18233         * testsuite/libgomp.fortran/task3.f90: New test.
18235 2011-02-24  Tobias Burnus  <burnus@net-b.de>
18237         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18239 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
18241         PR libgomp/47854
18242         * libgomp.texi (omp_get_wtime): Don't say time in the past
18243         must be Unix Epoch.
18245 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18247         PR libgomp/47804
18248         * testsuite/libgomp.fortran/fortran.exp: Check for both
18249         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
18250         but $blddir != "", still append ${blddir}/${lang_library_path}
18251         to ld_library_path.
18253 2011-02-16  Tobias Burnus  <burnus@net-b.de>
18255         PR libgomp/47758
18256         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18257         of libquadmath.a before adding its libpath to ldflags.
18259 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
18261         PR libgomp/47731
18262         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18263         to FUTEX_WAIT futex syscall.
18264         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18266 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18268         * configure: Regenerate.
18270 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
18272         PR libstdc++/36104
18273         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18275 2011-01-16  Gerald Pfeifer
18277         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18279 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
18281         PR fortran/46874
18282         * libgomp.fortran/allocatable6.f90: New test.
18284 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18286         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18287         * configure: Regenerate.
18289 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18291         PR target/40125
18292         PR lto/46695
18293         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18294         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18295         * aclocal.m4: Regenerate.
18296         * configure: Regenerate.
18297         * Makefile.in: Regenerate.
18298         * testsuite/Makefile.in: Regenerate.
18300 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
18302         PR fortran/46753
18303         * libgomp.fortran/pr46753.f90: New test.
18305         PR libgomp/43706
18306         * env.c (initialize_env): Default to spin count 300000
18307         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18308         is specified.
18310         PR libgomp/45240
18311         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18312         at the end if sync builtins aren't supported.
18314 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18316         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18318 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18320         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18322 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
18324         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18326 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18327             Tobias Burnus  <burnus@net-b.de>
18329         PR fortran/32049
18330         * configure.ac:
18331         * configure: Regenerate.
18333 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18335         * config/linux/futex.h: New.
18336         * config/linux/arm/mutex.h: New.
18337         * configure.tgt (arm*-*-linux*): Add config path.
18339 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
18341         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18343 2010-09-23  Tobias Burnus  <burnus@net-b.de>
18345         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18346         Change Fortran datatype to LOGICAL.
18347         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18348         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18350 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18352         * configure: Regenerate.
18354 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
18356         * libgomp.texi: Add function keyword to a couple of Fortran
18357         interfaces, use integer instead of int for Fortran.
18359 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
18361         * libgomp.texi: Fix spelling and pasto problems throughout.
18362         Adjust prototypes to match code.
18364 2010-07-24  Tobias Burnus  <burnus@net-b.de>
18366         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18367         silence -fwhole-file warning.
18369 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18371         * configure.tgt (*-*-solaris2.[56]*): Removed.
18373 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18375         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18376         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18377         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18378         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18379         targetting solaris2*.
18380         * configure: Regenerate.
18381         * config.h.in: Regenerate.
18383         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18384         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18385         Add libgomp_version_dep.
18386         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18387         versioning.
18388         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18389         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18390         * Makefile.in: Regenerate.
18392         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18393         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18394         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18395         to common block, protected by
18396         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18398 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
18400         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
18402 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
18404         PR bootstrap/43170
18405         * configure: Regenerate.
18407 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18409         PR other/43620
18410         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18411         * configure: Regenerate.
18412         * Makefile.in: Regenerate.
18413         * testsuite/Makefile.in: Regenerate.
18415 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18417         PR c/43893
18418         * testsuite/libgomp.c/pr43893.c: New test.
18419         * testsuite/libgomp.c++/pr43893.C: New test.
18421 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18423         PR middle-end/43570
18424         * testsuite/libgomp.fortran/vla8.f90: New test.
18426 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18428         PR libgomp/43706
18429         * config/linux/affinity.c (gomp_init_affinity): Decrease
18430         gomp_available_cpus if affinity mask confines the process to fewer
18431         CPUs.
18432         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18433         non-NULL, just return gomp_available_cpus.
18435         PR libgomp/43569
18436         * sections.c (gomp_sections_init): Initialize ws->mode.
18438 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18440         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18441         not unused bar variable.
18442         * configure: Regenerate.
18444 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18446         * Makefile.in: Regenerate.
18447         * aclocal.m4: Regenerate.
18448         * testsuite/Makefile.in: Regenerate.
18450 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18452         PR libgomp/42942
18453         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18454         (initialize_env): Adjust callers.
18455         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18456         when the argument is 0.
18458         * testsuite/libgomp.c/pr42942.c: New test.
18460 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18462         PR middle-end/42644
18463         PR middle-end/42130
18464         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18465         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18467 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18469         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18470         * testsuite/libgomp.c++/task-6.C: Likewise.
18472 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
18474         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18476 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
18478         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18479         * configure: Regenerate.
18481 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18483         PR fortran/42866
18484         * testsuite/libgomp.fortran/allocatable5.f90: New test.
18486 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
18488         * configure.ac: Test for executability of GFORTRAN.
18489         * configure: Regenerate.
18491 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18493         * configure: Regenerate.
18495 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18497         PR libgomp/42602
18498         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18500 2010-01-03  Richard Guenther  <rguenther@suse.de>
18502         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18504 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
18506         * testsuite/libgomp.graphite/pr4118.c: New.
18508 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18510         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18511         for darwin, protect the test with require-effective-target tls_runtime.
18512         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18514 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18516         PR target/41605
18517         * testsuite/lib/libgomp.exp: Provide -B options to allow for
18518         link spec %s substitutions for static libraries.
18520 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
18522         PR testsuite/42135
18523         * libgomp.graphite/force-parallel-2.c: Reduce array size.
18525 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18527         * Makefile.in: Regenerate.
18528         * configure: Regenerate.
18529         * testsuite/Makefile.in: Regenerate.
18531 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18533         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18534         settings for LC_ALL and LANG.
18536 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
18538         PR fortran/42162
18539         * testsuite/libgomp.fortran/pr42162.f90: New test.
18541 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
18543         PR middle-end/42029
18544         * testsuite/libgomp.c/pr42029.c: New test.
18546 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
18548         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18549         *s.  Accept ld version without text in ()s.
18550         * configure: Regenerated.
18552 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
18554         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18556 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18558         PR libgomp/41418
18559         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18560         or a hyphen (happens with fortran language disabled).
18561         * configure: Regenerate.
18563 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18565         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18566         use sed script portable to Solaris /bin/sed for extracting ld
18567         version.
18568         * configure: Regenerate.
18570 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
18572         * testsuite/libgomp.graphite/bounds.c: New test.
18574 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18576         * Makefile.am (libgomp_la_LINK): New.
18577         * Makefile.in: Regenerate.
18579 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18581         * configure.ac (AC_PREREQ): Bump to 2.64.
18583 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18585         * Makefile.am (install-html, install-pdf): Remove.
18586         * Makefile.in: Regenerate.
18588         * Makefile.in: Regenerate.
18589         * aclocal.m4: Regenerate.
18590         * config.h.in: Regenerate.
18591         * configure: Regenerate.
18592         * testsuite/Makefile.in: Regenerate.
18594 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18596         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18597         * Makefile.in: Regenerate.
18599 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
18601         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18602         * Makefile.in: Regenerate.
18604 2009-08-19  Tobias Burnus  <burnus@net-b.de>
18606         PR fortran/41102
18607         omp_lib.h.in: Fix -std=f95 errors.
18609 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
18611         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18612         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18613         * testsuite/libgomp.graphite/graphite.exp: New.
18615 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
18617         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18618         only build.
18620 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
18622         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18623         needed memory barrier semantics.
18624         * config/linux/mips/mutex.h: New file.
18626 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18628         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18630 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
18632         * configure: Regenerate.
18634 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
18636         PR testsuite/40699
18637         PR testsuite/40707
18638         PR testsuite/40709
18639         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18640         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18641         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18643 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
18645         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18646         options when choosing a multilib.
18648 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
18650         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18651         ld_library_path.  Use add_path.  Add just find_libgcc_s to
18652         ld_library_path, not every libgcc multilib directory.
18653         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18654         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18655         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18656         Use add_path.
18657         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18659 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
18661         * Makefile.am (LTLDFLAGS): Define.
18662         (LINK): Define.
18663         * Makefile.in: Regenerate.
18665 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
18667         PR fortran/39718
18668         * testsuite/libgomp.fortran/fortran.exp: Don't link with
18669         libgfortranbegin, check existence of libgfortran.a instead of
18670         libgfortranbegin.a.
18672 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18674         PR libgomp/40174
18675         * team.c (gomp_thread_start): Destroy thr->release semaphore.
18676         (gomp_free_pool_helper): Likewise.
18678 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
18679             Jakub Jelinek  <jakub@redhat.com>
18681         PR fortran/35423
18682         * testsuite/libgomp.fortran/workshare2.f90: New test.
18684 2009-04-09  Nick Clifton  <nickc@redhat.com>
18686         * iter.c: Change copyright header to refer to version 3 of the
18687         GNU General Public License with version 3.1 of the GCC Runtime
18688         Library Exception and to point readers at the COPYING3 and
18689         COPYING3.RUNTIME files and the FSF's license web page.
18690         * alloc.c: Likewise.
18691         * barrier.c: Likewise.
18692         * config/bsd/proc.c: Likewise.
18693         * config/linux/affinity.c: Likewise.
18694         * config/linux/alpha/futex.h: Likewise.
18695         * config/linux/bar.c: Likewise.
18696         * config/linux/bar.h: Likewise.
18697         * config/linux/ia64/futex.h: Likewise.
18698         * config/linux/ia64/mutex.h: Likewise.
18699         * config/linux/lock.c: Likewise.
18700         * config/linux/mips/futex.h: Likewise.
18701         * config/linux/mutex.c: Likewise.
18702         * config/linux/mutex.h: Likewise.
18703         * config/linux/powerpc/futex.h: Likewise.
18704         * config/linux/proc.c: Likewise.
18705         * config/linux/ptrlock.c: Likewise.
18706         * config/linux/ptrlock.h: Likewise.
18707         * config/linux/s390/futex.h: Likewise.
18708         * config/linux/sem.c: Likewise.
18709         * config/linux/sem.h: Likewise.
18710         * config/linux/sparc/futex.h: Likewise.
18711         * config/linux/wait.h: Likewise.
18712         * config/linux/x86/futex.h: Likewise.
18713         * config/mingw32/proc.c: Likewise.
18714         * config/mingw32/time.c: Likewise.
18715         * config/posix/affinity.c: Likewise.
18716         * config/posix/bar.c: Likewise.
18717         * config/posix/bar.h: Likewise.
18718         * config/posix/lock.c: Likewise.
18719         * config/posix/mutex.h: Likewise.
18720         * config/posix/proc.c: Likewise.
18721         * config/posix/ptrlock.h: Likewise.
18722         * config/posix/sem.c: Likewise.
18723         * config/posix/sem.h: Likewise.
18724         * config/posix/time.c: Likewise.
18725         * config/posix95/lock.c: Likewise.
18726         * critical.c: Likewise.
18727         * env.c: Likewise.
18728         * error.c: Likewise.
18729         * fortran.c: Likewise.
18730         * iter_ull.c: Likewise.
18731         * libgomp.h: Likewise.
18732         * libgomp_f.h.in: Likewise.
18733         * libgomp_g.h: Likewise.
18734         * loop.c: Likewise.
18735         * loop_ull.c: Likewise.
18736         * omp.h.in: Likewise.
18737         * omp_lib.f90.in: Likewise.
18738         * omp_lib.h.in: Likewise.
18739         * ordered.c: Likewise.
18740         * parallel.c: Likewise.
18741         * sections.c: Likewise.
18742         * single.c: Likewise.
18743         * task.c: Likewise.
18744         * team.c: Likewise.
18745         * work.c: Likewise.
18747 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18749         * testsuite/config/default.exp: Change copyright header to refer to
18750         version 3 of the GNU General Public License and to point readers
18751         at the COPYING3 file and the FSF's license web page.
18753 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18755         PR middle-end/39573
18756         * libgomp.c++/pr39573.C: New test.
18758 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18760         PR other/39591
18761         * testsuite/libgomp.c/pr39591-1.c: New test.
18762         * testsuite/libgomp.c/pr39591-2.c: New test.
18763         * testsuite/libgomp.c/pr39591-3.c: New test.
18765 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18767         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18768         * testsuite/libgomp.c/atomic-6.c: Ditto.
18770 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18772         PR c/39495
18773         * testsuite/libgomp.c/loop-12.c: New test.
18774         * testsuite/libgomp.c/loop-11.c: New test.
18775         * testsuite/libgomp.c++/loop-11.C: New test.
18776         * testsuite/libgomp.c++/loop-12.C: New test.
18777         * testsuite/libgomp.c++/for-8.C: New test.
18779 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18781         * configure: Regenerate.
18783 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18785         PR middle-end/39154
18786         * testsuite/libgomp.c/pr39154.c: New test.
18788 2009-01-30  Ian Lance Taylor  <iant@google.com>
18790         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18791         libgomp_ld_is_gold.  Get gold version number.
18792         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18793         * configure: Rebuild.
18795 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18797         * testsuite/lib/libgomp.exp: Add -B option for targets that
18798         use libgfortran.a%s in their specs.
18800 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18802         PR libgomp/38086
18803         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18804         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18805         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18806         * configure: Regenerated.
18807         * config.h.in: Likewise.
18809 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18811         PR c++/38650
18812         * testsuite/libgomp.c/pr38650.c: New test.
18813         * testsuite/libgomp.c++/pr38650.C: New test.
18815 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18817         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18819 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18821         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18823 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18825         * configure: Regenerate.
18827 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18829         PR middle-end/36802
18830         * testsuite/libgomp.c/pr36802-1.c: New test.
18831         * testsuite/libgomp.c/pr36802-2.c: New test.
18832         * testsuite/libgomp.c/pr36802-3.c: New test.
18834 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18836         PR libgomp/38270
18837         * config/linux/powerpc/mutex.h: New.
18839 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18841         PR c++/38257
18842         * testsuite/libgomp.c++/for-7.C: New test.
18844         PR c++/38348
18845         * testsuite/libgomp.c++/for-6.C: New test.
18847 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18849         PR testsuite/28870
18850         * testsuite/lib/libgomp.exp: Include new timeout library files.
18851         (libgomp_target_compile): Set timeout value from new proc.
18853 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18855         PR libgomp/37938
18856         * config/linux/ia64/mutex.h: New.
18858 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18860         PR libgomp/37935
18861         * libgomp.texi (Runtime library routines, environment variables):
18862         Update for OpenMP version 3.0.
18864 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18865             Steve Ellcey  <sje@cup.hp.com>
18867         * configure: Regenerate for new libtool.
18868         * Makefile.in: Ditto.
18869         * testsuite/Makefile.in: Ditto.
18871 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18872             Andreas Tobler  <a.tobler@schweiz.org>
18874         * config/bsd/proc.c: New file.
18875         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18876         * configure.ac: Check for header <sys/sysctl.h>
18877         * configure: Regenerate.
18878         * config.h.in: Likewise.
18880 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18882         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18884 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18886         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18887         * Makefile.in: Regenerated.
18888         * testsuite/Makefile.in: Regenerated.
18890 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18892         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18893         depend on blddir if blddir exists.
18894         (libgomp_target_compile): Likewise.
18895         * testsuite/libgomp.c++/c++.exp: Likewise.
18896         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18898 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18900         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18901         Do not list GPL as Invariant Section.
18903 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18904             Chao-ying Fu  <fu@mips.com>
18906         * configure.tgt: Enable futex for MIPS.
18907         * config/linux/mips/futex.h: New file.
18909 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18911         * team.c (gomp_team_end): Free team immediately if it has
18912         just one thread.
18914 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18916         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18917         * testsuite/libgomp.fortran/fortran.exp: Same.
18918         * testsuite/libgomp.c/c.exp: Same.
18919         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18920         directory to library path first.
18922 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18924         * env.c (parse_stacksize): Add cast to avoid warning.
18925         (parse_spincount): Likewise.
18927 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18929         * testsuite/libgomp.c/loop-10.c: New test.
18930         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18931         * libgomp.c++/loop-6.C (main): Likewise.
18933         PR debug/36617
18934         * testsuite/libgomp.c/debug-1.c: New test.
18936 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18938         * testsuite/libgomp.c/nqueens-1.c: New test.
18940         PR c++/36523
18941         * testsuite/libgomp.c++/task-7.C: New function.
18943 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18945         * configure: Regenerate.
18947 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18949         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18950         mutex when HAVE_SYNC_BUILTINS isn't defined.
18952 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18954         * libgomp.texi (omp_test_lock): Fix typo.
18956 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18958         * omp_lib.f90.in: Add "implicit none".
18960 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18962         PR middle-end/36506
18963         * testsuite/libgomp.c/reduction-5.c: New test.
18965 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18967         * libgomp.h (struct gomp_task): Add in_tied_task field.
18968         * task.c (gomp_init_task): Initialize it.
18969         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18970         unconditionally.  Don't call gomp_team_barrier_wake if
18971         current task is implicit or if(0) from implicit and number of
18972         running tasks is equal to nthreads - 1.
18974         PR libgomp/36471
18975         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18976         omp_get_team_size_8): Fix pastos.
18978         PR libgomp/36469
18979         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18980         * configure: Regenerated.
18981         * config.h.in: Regenerated.
18982         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18983         defined.
18985 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18987         PR bootstrap/36452
18988         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18989         (GOMP_loop_ull_dynamic_start): Likewise.
18990         (GOMP_loop_ull_guided_start): Likewise.
18991         (GOMP_loop_ull_ordered_static_start): Likewise.
18992         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18993         (GOMP_loop_ull_ordered_guided_start): Likewise.
18995 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18996             Richard Henderson  <rth@redhat.com>
18997             Ulrich Drepper  <drepper@redhat.com>
18998             Jakob Blomer  <jakob.blomer@ira.uka.de>
19000         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
19001         Substitute also OMP_*LOCK_25*.
19002         * configure: Regenerated.
19003         * config.h.in: Regenerated.
19004         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
19005         ptrlock.c and task.c.
19006         * Makefile.in: Regenerated.
19007         * testsuite/Makefile.in: Regenerated.
19008         * task.c: New file.
19009         * loop_ull.c: New file.
19010         * iter_ull.c: New file.
19011         * libgomp.h: Include ptrlock.h.
19012         (enum gomp_task_kind): New type.
19013         (struct gomp_team): Add task_lock, task_queue, task_count,
19014         task_running_count, single_count fields.  Add
19015         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
19016         Remove work_share_lock, generation_mask,
19017         oldest_live_gen, num_live_gen and init_work_shares fields, add
19018         work work_share_list_alloc, work_share_list_free and work_share_chunk
19019         fields.  Change work_shares from pointer to pointers into an array.
19020         Change ordered_release field into gomp_sem_t ** from flexible array
19021         member.  Add implicit_task and initial_work_shares fields.
19022         Move close to the end of the struct.
19023         (struct gomp_team_state): Add single_count, last_work_share,
19024         active_level and level fields, remove work_share_generation.
19025         (gomp_barrier_handle_tasks): New prototype.
19026         (gomp_finish_task): New inline function.
19027         (struct gomp_work_share): Move chunk_size, end, incr into
19028         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
19029         next_ll fields.  Reshuffle fields.  Add next_alloc,
19030         next_ws, next_free and inline_ordered_team_ids fields, change
19031         ordered_team_ids into pointer from flexible array member.
19032         Add mode field.  Put lock and next into a different cache line
19033         from most of the write-once fields.
19034         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
19035         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
19036         gomp_iter_ull_guided_next): New prototypes.
19037         (gomp_new_icv): New prototype.
19038         (struct gomp_thread): Add thread_pool and task fields.
19039         (struct gomp_thread_pool): New type.
19040         (gomp_new_team): New prototype.
19041         (gomp_team_start): Change type of last argument.
19042         (gomp_new_work_share): Removed.
19043         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
19044         (gomp_work_share_init_done): New static inline.
19045         (gomp_throttled_spin_count_var, gomp_available_cpus,
19046         gomp_managed_threads): New extern decls.
19047         (gomp_init_task): New prototype.
19048         (gomp_spin_count_var): New extern var decl.
19049         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
19050         or no alias support, or if not PIC.
19051         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
19052         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
19053         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
19054         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
19055         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
19056         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
19057         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
19058         gomp_test_nest_lock_25): New prototypes.
19059         (omp_lock_symver, strong_alias): Define.
19060         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
19061         decls.
19062         (gomp_end_task): New.
19063         (struct gomp_task_icv, gomp_global_icv): New.
19064         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
19065         (struct gomp_task): New.
19066         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19067         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19068         (gomp_icv): New.
19069         (gomp_schedule_type): Reorder enum to match
19070         omp_sched_t.
19071         * team.c (struct gomp_thread_start_data): Add thread_pool and task
19072         fields.
19073         (gomp_thread_start): Add gomp_team_barrier_wait call.
19074         For non-nested case remove clearing of docked thread thr fields.
19075         Use pool fields instead of global gomp_* variables.  Use
19076         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
19077         Create tasks for each member thread.
19078         (free_team): Only destroy team barrier, task_lock here and free it.
19079         (gomp_free_thread): Free last_team if non-NULL.
19080         (gomp_team_end): Call gomp_team_barrier_wait instead of
19081         gomp_barrier_wait.  For nested case call one extra
19082         gomp_barrier_wait.  Move here some destruction from free_team.
19083         Call free_team on pool->last_team if any, rather than freeing
19084         current team.  Destroy work_share_list_free_lock ifndef
19085         HAVE_SYNC_BUILTINS.
19086         (gomp_new_icv): New function.
19087         (gomp_threads, gomp_threads_size, gomp_threads_used,
19088         gomp_threads_dock): Removed.
19089         (gomp_thread_destructor): New variable.
19090         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
19091         functions.
19092         (gomp_team_start): Create new pool if current thread doesn't have
19093         one.  Use pool fields instead of global gomp_* variables.
19094         Initialize thread_pool field for new threads.  Clear single_count.
19095         Change last argument from ws to team, don't create
19096         new team, set ts.work_share to &team->work_shares[0] and clear
19097         ts.last_work_share.  Don't clear ts.work_share_generation.
19098         If number of threads changed, adjust atomically gomp_managed_threads.
19099         Use gomp_init_task instead of gomp_new_task,
19100         set thr->task to the corresponding implicit_task array entry.
19101         Create tasks for each member thread.  Initialize ts.level.
19102         (initialize_team): Call pthread_key_create on
19103         gomp_thread_destructor.
19104         (team_destructor): New function.
19105         (new_team): Removed.
19106         (gomp_new_team): New function.
19107         (free_team): Free gomp_work_share blocks chained through next_alloc,
19108         instead of freeing work_shares and destroying work_share_lock.
19109         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
19110         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
19111         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19112         of gomp_barrier_wait.
19113         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19114         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
19115         if gomp_work_share_start returned true.  Don't unlock ws->lock.
19116         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19117         of gomp_barrier_wait.
19118         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
19119         gomp_work_share_init_done if gomp_work_share_start returned true.
19120         Don't unlock ws->lock.
19121         * work.c: Include stddef.h.
19122         (free_work_share): Use work_share_list_free_lock instead
19123         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
19124         Call gomp_fini_work_share and then either free ws if orphaned, or
19125         put it into work_share_list_free list of the current team.
19126         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19127         functions.
19128         (gomp_work_share_start, gomp_work_share_end,
19129         gomp_work_share_end_nowait): Rewritten.
19130         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19131         (openmp_version): Set to 200805.
19132         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19133         omp_sched_guided, omp_sched_auto): New parameters.
19134         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19135         omp_set_max_active_levels, omp_get_max_active_levels,
19136         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19137         omp_get_active_level): New interfaces.
19138         * omp_lib.h.in (openmp_version): Set to 200805.
19139         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19140         omp_sched_guided, omp_sched_auto): New parameters.
19141         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19142         omp_set_max_active_levels, omp_get_max_active_levels,
19143         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19144         omp_get_active_level): New externals.
19145         * loop.c: Include limits.h.
19146         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19147         GFS_AUTO.
19148         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19149         Likewise.  Use gomp_icv.
19150         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19151         ts.static_trip here.
19152         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19153         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
19154         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19155         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
19156         don't unlock ws->lock, otherwise lock it.
19157         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19158         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
19159         (gomp_parallel_loop_start): Call gomp_new_team instead of
19160         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
19161         Adjust gomp_team_start caller.  Pass 0 as second argument to
19162         gomp_resolve_num_threads.
19163         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19164         If adding ws->chunk_size nthreads + 1 times after end won't
19165         overflow, set ws->mode to 1.
19166         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19167         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19168         GOMP_loop_ull_ordered_static_start,
19169         GOMP_loop_ull_ordered_dynamic_start,
19170         GOMP_loop_ull_ordered_guided_start,
19171         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19172         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19173         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19174         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19175         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19176         prototypes.
19177         * libgomp.map: Export lock routines also @@OMP_2.0.
19178         (GOMP_loop_ordered_dynamic_first,
19179         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19180         GOMP_loop_ordered_static_first): Remove.
19181         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19182         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19183         GOMP_loop_ull_ordered_dynamic_next,
19184         GOMP_loop_ull_ordered_dynamic_start,
19185         GOMP_loop_ull_ordered_guided_next,
19186         GOMP_loop_ull_ordered_guided_start,
19187         GOMP_loop_ull_ordered_runtime_next,
19188         GOMP_loop_ull_ordered_runtime_start,
19189         GOMP_loop_ull_ordered_static_next,
19190         GOMP_loop_ull_ordered_static_start,
19191         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19192         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19193         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19194         (omp_set_schedule, omp_get_schedule,
19195         omp_get_thread_limit, omp_set_max_active_levels,
19196         omp_get_max_active_levels, omp_get_level,
19197         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19198         omp_set_schedule_, omp_set_schedule_8_,
19199         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19200         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19201         omp_get_max_active_levels_, omp_get_level_,
19202         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19203         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19204         New exports @@OMP_3.0.
19205         * omp.h.in (omp_sched_t): New type.
19206         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19207         omp_set_max_active_levels, omp_get_max_active_levels,
19208         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19209         omp_get_active_level): New prototypes.
19210         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19211         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19212         gomp_thread_limit_var, gomp_remaining_threads_count,
19213         gomp_remaining_threads_lock): New variables.
19214         (parse_spincount): New function.
19215         (initialize_env): Call gomp_init_num_threads unconditionally.
19216         Initialize gomp_available_cpus.  Call parse_spincount,
19217         initialize gomp_{,throttled_}spin_count_var
19218         depending on presence and value of OMP_WAIT_POLICY and
19219         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
19220         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19221         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
19222         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
19223         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
19224         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19225         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19226         (gomp_global_icv): New.
19227         (parse_schedule): Use it.  Parse "auto".
19228         (omp_set_num_threads): Use gomp_icv.
19229         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19230         Likewise.
19231         (omp_get_max_threads): Move from parallel.c.
19232         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19233         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19234         add ialias.
19235         (parse_stacksize, parse_wait_policy): New functions.
19236         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19237         both wrappers for compatibility and new locks.
19238         (omp_set_schedule, omp_get_schedule,
19239         omp_get_thread_limit, omp_set_max_active_levels,
19240         omp_get_max_active_levels, omp_get_level,
19241         omp_get_ancestor_thread_num, omp_get_team_size,
19242         omp_get_active_level): New ialias_redirect.
19243         (omp_set_schedule_, omp_set_schedule_8_,
19244         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19245         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19246         omp_get_max_active_levels_, omp_get_level_,
19247         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19248         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19249         New functions.
19250         * parallel.c: Include limits.h.
19251         (gomp_resolve_num_threads): Add count argument.  Rewritten.
19252         (GOMP_parallel_start): Call gomp_new_team and pass that as last
19253         argument to gomp_team_start.  Pass 0 as second argument to
19254         gomp_resolve_num_threads.
19255         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19256         if gomp_thread_limit_var != ULONG_MAX.
19257         (omp_in_parallel): Implement using ts.active_level.
19258         (omp_get_max_threads): Move to env.c.
19259         (omp_get_level, omp_get_ancestor_thread_num,
19260         omp_get_team_size, omp_get_active_level): New functions,
19261         add ialias.
19262         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19263         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
19264         gomp_iter_dynamic_next instead of the _locked variant and don't take
19265         lock around it, otherwise acquire it before calling
19266         gomp_iter_dynamic_next_locked.
19267         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19268         gomp_iter_dynamic_next instead of the _locked variant and don't take
19269         lock around it.
19270         (GOMP_parallel_sections_start): Call gomp_new_team instead of
19271         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
19272         Adjust gomp_team_start caller.  Pass count as second argument to
19273         gomp_resolve_num_threads, don't adjust num_threads after the call.
19274         Use gomp_icv.
19275         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19276         ws->chunk_size by incr.
19277         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
19278         code.
19279         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19280         types.
19281         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19282         (omp_check_defines): Check even the compat defines.
19283         * config/linux/ptrlock.c: New file.
19284         * config/linux/ptrlock.h: New file.
19285         * config/linux/wait.h: New file.
19286         * config/posix/ptrlock.c: New file.
19287         * config/posix/ptrlock.h: New file.
19288         * config/linux/bar.h (gomp_team_barrier_wait,
19289         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19290         (gomp_team_barrier_set_task_pending,
19291         gomp_team_barrier_clear_task_pending,
19292         gomp_team_barrier_set_waiting_for_tasks,
19293         gomp_team_barrier_waiting_for_tasks,
19294         gomp_team_barrier_done): New inlines.
19295         (gomp_barrier_t): Rewritten.
19296         (gomp_barrier_state_t): New typedef.
19297         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19298         gomp_barrier_wait_start): Rewritten.
19299         (gomp_barrier_wait_end): Change second argument to
19300         gomp_barrier_state_t.
19301         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19302         inlines.
19303         * config/linux/bar.c: Include wait.h instead of libgomp.h and
19304         futex.h.
19305         (gomp_barrier_wait_end): Rewritten.
19306         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19307         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19308         * config/posix/bar.h (gomp_barrier_t): Add generation field.
19309         (gomp_barrier_state_t): New typedef.
19310         (gomp_team_barrier_wait,
19311         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19312         (gomp_barrier_wait_start): Or all but low 2 bits from generation
19313         into the return value.  Return gomp_barrier_state_t.
19314         (gomp_team_barrier_set_task_pending,
19315         gomp_team_barrier_clear_task_pending,
19316         gomp_team_barrier_set_waiting_for_tasks,
19317         gomp_team_barrier_waiting_for_tasks,
19318         gomp_team_barrier_done): New inlines.
19319         (gomp_barrier_wait_end): Change second argument to
19320         gomp_barrier_state_t.
19321         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19322         inlines.
19323         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19324         (gomp_barrier_wait_end): Change second argument to
19325         gomp_barrier_state_t.
19326         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19327         gomp_team_barrier_wake): New functions.
19328         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19329         futex.h.
19330         (gomp_futex_wake, gomp_futex_wait): New variables.
19331         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19332         * config/linux/lock.c: Rewrite to make locks task owned,
19333         for backwards compatibility provide the old entrypoints
19334         if symbol versioning.  Include wait.h instead of libgomp.h and
19335         futex.h.
19336         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19337         * config/posix95/lock.c: Rewrite to make locks task owned,
19338         for backwards compatibility provide the old entrypoints
19339         if symbol versioning.
19340         * config/posix/lock.c: Rewrite to make locks task owned,
19341         for backwards compatibility provide the old entrypoints
19342         if symbol versioning.
19343         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19344         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19345         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19346         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19347         (sys_futex0): Return error code.
19348         (futex_wake, futex_wait): If ENOSYS was returned, clear
19349         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19350         (cpu_relax, atomic_write_barrier): New static inlines.
19351         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19352         (futex_wake, futex_wait): If ENOSYS was returned, clear
19353         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19354         (cpu_relax, atomic_write_barrier): New static inlines.
19355         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19356         (sys_futex0): Return error code.
19357         (futex_wake, futex_wait): If ENOSYS was returned, clear
19358         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19359         (cpu_relax, atomic_write_barrier): New static inlines.
19360         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19361         (sys_futex0): Return error code.
19362         (futex_wake, futex_wait): If ENOSYS was returned, clear
19363         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19364         (cpu_relax, atomic_write_barrier): New static inlines.
19365         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19366         (sys_futex0): Return error code.
19367         (futex_wake, futex_wait): If ENOSYS was returned, clear
19368         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19369         (cpu_relax, atomic_write_barrier): New static inlines.
19370         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19371         (sys_futex0): Return error code.
19372         (futex_wake, futex_wait): If ENOSYS was returned, clear
19373         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19374         (cpu_relax, atomic_write_barrier): New static inlines.
19375         * config/linux/sem.c: Include wait.h instead of libgomp.h and
19376         futex.h.
19377         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19378         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19379         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19380         types.
19381         (omp_nest_lock_t): Change owner into void *, add lock field.
19382         * config/posix95/omp-lock.h: Include semaphore.h.
19383         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19384         (omp_lock_t): Use sem_t instead of mutex if semaphores
19385         aren't broken.
19386         (omp_nest_lock_t): Likewise.  Change owner to void *.
19387         * config/posix/omp-lock.h: Include semaphore.h.
19388         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19389         (omp_lock_t): Use sem_t instead of mutex if semaphores
19390         aren't broken.
19391         (omp_nest_lock_t): Likewise.  Add owner field.
19393 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19395         * testsuite/libgomp.c/collapse-1.c: New test.
19396         * testsuite/libgomp.c/collapse-2.c: New test.
19397         * testsuite/libgomp.c/collapse-3.c: New test.
19398         * testsuite/libgomp.c/icv-1.c: New test.
19399         * testsuite/libgomp.c/icv-2.c: New test.
19400         * testsuite/libgomp.c/lib-2.c: New test.
19401         * testsuite/libgomp.c/lock-1.c: New test.
19402         * testsuite/libgomp.c/lock-2.c: New test.
19403         * testsuite/libgomp.c/lock-3.c: New test.
19404         * testsuite/libgomp.c/loop-4.c: New test.
19405         * testsuite/libgomp.c/loop-5.c: New test.
19406         * testsuite/libgomp.c/loop-6.c: New test.
19407         * testsuite/libgomp.c/loop-7.c: New test.
19408         * testsuite/libgomp.c/loop-8.c: New test.
19409         * testsuite/libgomp.c/loop-9.c: New test.
19410         * testsuite/libgomp.c/nested-3.c: New test.
19411         * testsuite/libgomp.c/nestedfn-6.c: New test.
19412         * testsuite/libgomp.c/sort-1.c: New test.
19413         * testsuite/libgomp.c/task-1.c: New test.
19414         * testsuite/libgomp.c/task-2.c: New test.
19415         * testsuite/libgomp.c/task-3.c: New test.
19416         * testsuite/libgomp.c/task-4.c: New test.
19417         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19418         to C++ testsuite default compiler options.
19419         * testsuite/libgomp.c++/collapse-1.C: New test.
19420         * testsuite/libgomp.c++/collapse-2.C: New test.
19421         * testsuite/libgomp.c++/ctor-10.C: New test.
19422         * testsuite/libgomp.c++/for-1.C: New test.
19423         * testsuite/libgomp.c++/for-2.C: New test.
19424         * testsuite/libgomp.c++/for-3.C: New test.
19425         * testsuite/libgomp.c++/for-4.C: New test.
19426         * testsuite/libgomp.c++/for-5.C: New test.
19427         * testsuite/libgomp.c++/loop-8.C: New test.
19428         * testsuite/libgomp.c++/loop-9.C: New test.
19429         * testsuite/libgomp.c++/loop-10.C: New test.
19430         * testsuite/libgomp.c++/task-1.C: New test.
19431         * testsuite/libgomp.c++/task-2.C: New test.
19432         * testsuite/libgomp.c++/task-3.C: New test.
19433         * testsuite/libgomp.c++/task-4.C: New test.
19434         * testsuite/libgomp.c++/task-5.C: New test.
19435         * testsuite/libgomp.c++/task-6.C: New test.
19436         * testsuite/libgomp.fortran/allocatable1.f90: New test.
19437         * testsuite/libgomp.fortran/allocatable2.f90: New test.
19438         * testsuite/libgomp.fortran/allocatable3.f90: New test.
19439         * testsuite/libgomp.fortran/allocatable4.f90: New test.
19440         * testsuite/libgomp.fortran/collapse1.f90: New test.
19441         * testsuite/libgomp.fortran/collapse2.f90: New test.
19442         * testsuite/libgomp.fortran/collapse3.f90: New test.
19443         * testsuite/libgomp.fortran/collapse4.f90: New test.
19444         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19445         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19446         * testsuite/libgomp.fortran/lib4.f90: New test.
19447         * testsuite/libgomp.fortran/lock-1.f90: New test.
19448         * testsuite/libgomp.fortran/lock-2.f90: New test.
19449         * testsuite/libgomp.fortran/nested1.f90: New test.
19450         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19451         * testsuite/libgomp.fortran/strassen.f90: New test.
19452         * testsuite/libgomp.fortran/tabs1.f90: New test.
19453         * testsuite/libgomp.fortran/tabs2.f: New test.
19454         * testsuite/libgomp.fortran/task1.f90: New test.
19455         * testsuite/libgomp.fortran/task2.f90: New test.
19456         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19457         * testsuite/libgomp.fortran/vla5.f90: Likewise.
19458         * testsuite/libgomp.c/pr26943-2.c: Likewise.
19459         * testsuite/libgomp.c/pr26943-3.c: Likewise.
19460         * testsuite/libgomp.c/pr26943-4.c: Likewise.
19462 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
19464         PR c++/36308
19465         * testsuite/libgomp.c++/ctor-11.C: New test.
19466         * testsuite/libgomp.c++/ctor-12.C: New test.
19468 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
19470         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19472 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19474         PR middle-end/36106
19475         * testsuite/libgomp.c/atomic-5.c: New test.
19476         * testsuite/libgomp.c/atomic-6.c: New test.
19477         * testsuite/libgomp.c/autopar-1.c: New test.
19479 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19481         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19482         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19483         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19484         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19485         * configure: Regenerate.
19486         * Makefile.in, testsuite/Makefile.in: Likewise.
19488 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19490         PR bootstrap/35457
19491         * aclocal.m4: Regenerate.
19492         * configure: Regenerate.
19494 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19496         PR middle-end/35611
19497         * testsuite/libgomp.c/atomic-4.c: New test.
19499         PR libgomp/35625
19500         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19501         (gomp_iter_guided_next): Likewise.
19502         * testsuite/libgomp.c/pr35625.c: New test.
19504 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19506         * aclocal.m4: Regenerate.
19507         * configure: Likewise.
19508         * Makefile.in: Likewise.
19509         * testsuite/Makefile.in: Likewise.
19511 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19513         PR middle-end/35185
19514         * testsuite/libgomp.c++/pr35185.C: New test.
19516 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19518         PR middle-end/35549
19519         * testsuite/libgomp.c/pr35549.c: New test.
19521 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19523         * testsuite/libgomp.c/atomic-3.c: New test.
19525 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19527         PR fortran/33197
19528         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19529         .F08 file suffixes.
19531 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
19533         PR libgomp/33131
19534         * configure.ac: Add ACX_HEADER_STRING.
19535         * env.c: Include strings.h.
19536         * aclocal.m4: Regenerate.
19537         * config.h.in: Regenerate.
19538         * configure: Regenerate.
19539         * Makefile.in: Regenerate.
19540         * testsuite/Makefile.in: Regenerate.
19542 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19544         PR middle-end/35196
19545         * testsuite/libgomp.c/pr35196.c: New test.
19547         PR middle-end/35130
19548         * testsuite/libgomp.fortran/pr35130.f90: New test.
19549         * testsuite/libgomp.c/pr35130.c: New test.
19551 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
19553         PR middle-end/33880
19554         * testsuite/libgomp.c/pr33880.c: New test.
19555         * testsuite/libgomp.fortran/pr33880.f90: New test.
19557 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
19559         * configure: Regenerate.
19561 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
19563         * configure.ac: Move futex checking into ../config/futex.m4.
19564         * configure: Rebuilt.
19565         * aclocal.m4: Rebuilt.
19566         * Makefile.in: Rebuilt.
19568         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19569         2007-10-15 ../config/tls.m4 change.
19571 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
19573         PR c++/34513
19574         * testsuite/libgomp.c/pr34513.c: New test.
19575         * testsuite/libgomp.c++/pr34513.C: New test.
19577 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
19579         PR target/32765
19580         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19582 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
19584         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
19586 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
19588         * testsuite/libgomp.c/private-1.c: New test.
19590 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
19591             Paolo Bonzini  <bonzini@gnu.org>
19593         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
19594         instead of 'VPATH ='.
19595         * Makefile.in: Regenerate.
19597 2007-11-23  Matthias Klose  <doko@ubuntu.com>
19599         * configure.ac: Adjust makeinfo version check.
19600         * configure: Regenerate.
19602 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
19604         PR fortran/34020
19605         * testsuite/libgomp.fortran/pr34020.f90: New test.
19607 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
19609         PR c++/33894
19610         * testsuite/libgomp.c++/atomic-1.C: New test.
19612 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
19614         PR libgomp/33275
19615         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19616         Make x and y integers rather than (implicit) reals.  Add private (j)
19617         clause to the last omp parallel.
19619 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
19621         * configure: Regenerate following changes to ../config/tls.m4.
19623 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
19625         * testsuite/libgomp.fortran/stack.f90: New test.
19627 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
19629         * config/mingw32/proc.c: New file.
19631 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
19633         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19634         (main): Use __get_cpuid to get i386 target fetaures.
19635         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19636         (main): Use __get_cpuid to get x86_64 target fetaures.
19638 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
19640         PR target/32765
19641         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19642         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19644 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
19646         PR fortran/32550
19647         * testsuite/libgomp.fortran/pr32550.f90: New test.
19648         * testsuite/libgomp.fortran/crayptr2.f90: New test.
19650 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19652         * aclocal.m4: Regenerated.
19654 2007-07-05  Tobias Burnus  <burnus@net-b.de>
19656         PR fortran/32359
19657         * testsuite/libgomp.fortran/pr32359.f90: New.
19659 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
19661         PR libgomp/32468
19662         * sections.c (GOMP_parallel_sections_start): Only decrease
19663         number of threads to COUNT if dyn_var is true.
19664         * testsuite/libgomp.c/pr32468.c: New test.
19666 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19668         PR libgomp/26308
19669         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19671 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
19673         PR middle-end/32362
19674         * testsuite/libgomp.c/pr32362-1.c: New test.
19675         * testsuite/libgomp.c/pr32362-2.c: New test.
19676         * testsuite/libgomp.c/pr32362-3.c: New test.
19678 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
19680         * team.c (gomp_team_start): Fix setting up thread_attr
19681         stack size.
19683 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
19685         * configure: Regenerate.
19687 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
19689         * Makefile.in: Regenerate.
19690         * configure: Regenerate.
19691         * aclocal.m4: Regenerate.
19692         * testsuite/Makefile.in: Regenerate.
19694 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
19696         * config/linux/proc.c: New file.
19698         PR libgomp/28482
19699         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19701 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
19703         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19705 2007-04-16  Matthias Klose  <doko@debian.org>
19707         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19708         flags if not building with -m64.
19709         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19710         flag for i?86-*-* targets, if current target matches -m64.
19712 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19714         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19715         * Makefile.in: Regenerate.
19717 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19719         PR testsuite/31369
19720         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19721         ld_library_path.
19722         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19724 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19726         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19727         decls.
19728         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19729         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19730         (parse_affinity): New function.
19731         (initialize_env): Call it and gomp_init_affinity.
19732         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19733         create new pthread_attr_t and call gomp_init_thread_affinity
19734         on it for each thread before passing the attribute to pthread_create.
19735         * config/linux/affinity.c: New file.
19736         * config/posix/affinity.c: New file.
19737         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19738         * configure: Rebuilt.
19739         * config.h.in: Rebuilt.
19740         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19741         * Makefile.in: Rebuilt.
19743 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19745         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19746         *-*-darwin*.
19747         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19748         and use it if found.
19750 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19752         * testsuite/config/default.exp: New file.
19753         * testsuite/lib/libgomp.exp: New file.
19754         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19755         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19756         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19757         (libgomp_load): Remove.
19758         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19759         always_ld_library_path, not ld_library_path.  Set additional_flags
19760         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19761         (target_compile): Do not call libgomp_init.  Append lang_library_path
19762         and lang_link_flags to options.
19763         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19764         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19765         here.
19766         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19767         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19768         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19769         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19770         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19771         CX8 flag.
19772         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19773         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19774         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19775         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19776         * testsuite/libgomp.c/atomic-10.c: Ditto.
19778 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19780         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19781         dg-final cleanup-modules line.
19782         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19783         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19784         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19785         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19786         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19787         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19788         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19790 2007-03-18  Andreas Schwab  <schwab@suse.de>
19792         * acinclude.m4: Adjust regular expression for ld version
19793         extraction.
19794         * configure: Regenerate.
19796 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19798         * Makefile.am: Add install-pdf target as copied from
19799         automake v1.10 rules.
19800         * Makefile.in: Regenerate
19802 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19804         PR libgomp/28486
19805         * configure: Regenerate.
19807         PR c++/30703
19808         * testsuite/libgomp.c++/pr30703.C: New test.
19810 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19812         Revert:
19813         2006-07-05  Eric Christopher  <echristo@apple.com>
19814         * configure.ac: Depend addition of -pthread on host OS.
19815         * configure: Regenerate.
19817 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19819         * libgomp.texi: Fix spacing after abbreviations.
19821 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19823         PR libgomp/30546
19824         * configure.ac: Add check for makeinfo
19825         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19826         if an appropriate version of makeinfo is found.
19827         * aclocal.m4: Regenerated.
19828         * configure: Regenerated.
19829         * Makefile.in: Regenerated.
19830         * testsuite/Makefile.in: Regenerated.
19832 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19834         PR libgomp/30540
19835         * libgomp.texi: More about implementation-dependent settings.
19837 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19839         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19841 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19843         PR middle-end/30494
19844         * testsuite/libgomp.c/pr30494.c: New test.
19846 2007-01-15  Tom Tromey  <tromey@redhat.com>
19848         * configure: Rebuilt.
19849         * configure.ac: Fixed comment.
19851 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19853         * libgomp.texi: Document implementation specific default values of
19854         environment variables.
19856 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19858         PR libgomp/28209
19859         * libgomp.texi: New file.
19860         * configure.ac: Add --enable-generated-files-in-srcdir option.
19861         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19862         files to srcdir.
19863         * Makefile.in: Regenerated.
19864         * config.h.in: Regenerated.
19865         * testsuite/Makefile.in: Regenerated.
19866         * NOTES: Removed.
19868 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19870         PR libgomp/29949
19871         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19873 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19875         * configure: Regenerate.
19877 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19879         PR libgomp/29947
19880         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19881         start if there shouldn't be any loop iterations.
19882         (gomp_loop_ordered_static_start): Remove start == end test.
19883         * testsuite/libgomp.c/pr29947-1.c: New test.
19884         * testsuite/libgomp.c/pr29947-2.c: New test.
19886 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19888         * configure.tgt: Force initial-exec TLS model on Linux only.
19890 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19892         * configure: Regenerated.
19894 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19896         * env.c (parse_schedule): Reject out of range values.
19897         (parse_unsigned_long): Reject out of range, negative or zero values.
19899 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19901         PR fortran/29629
19902         * testsuite/libgomp.fortran/pr29629.f90: New test.
19904 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19906         PR libgomp/29494
19907         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19908         * config/posix95: New directory.
19909         * config/posix95/omp-lock.h: New file.
19910         * config/posix95/lock.c: Likewise.
19912 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19914         * aclocal.m4: Regenerate.
19915         * configure: Regenerate.
19917 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19919         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19920         '<' to '<='.
19922 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19924         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19925         test.
19926         * configure: Regenerate.
19927         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19929 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19931         PR middle-end/25261
19932         PR middle-end/28790
19933         * testsuite/libgomp.c/nestedfn-4.c: New test.
19934         * testsuite/libgomp.c/nestedfn-5.c: New test.
19935         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19937         PR fortran/29097
19938         * testsuite/libgomp.fortran/condinc1.f: New test.
19939         * testsuite/libgomp.fortran/condinc2.f: New test.
19940         * testsuite/libgomp.fortran/condinc3.f90: New test.
19941         * testsuite/libgomp.fortran/condinc4.f90: New test.
19942         * testsuite/libgomp.fortran/condinc1.inc: New file.
19944 2006-09-18  Tom Tromey  <tromey@redhat.com>
19946         * configure: Rebuilt.
19948 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19950         PR c/28768
19951         PR preprocessor/14634
19952         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19953         to AC_DEFINE.
19954         * configure: Regenerate.
19956 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19958         * testsuite/libgomp.fortran/reduction3.f90: Change
19959         -2147483648 to -huge(i)-1 to avoid overflow.
19960         * testsuite/libgomp.fortran/reduction4.f90: Change
19961         Z'ffffffff' to not(0) to avoid overflow.
19963 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19965         PR libgomp/25938
19966         * Makefile.am (libsubincludedir): New.
19967         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19968         * Makefile.in: Regenerate.
19970 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19972         PR libgomp/28725
19973         * env.c: Include ctype.h.
19974         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19975         leading and/or trailing whitespace and compare strings case
19976         insensitively.
19978 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19980         PR fortran/28390
19981         * testsuite/libgomp.fortran/pr28390.f: New test.
19983 2006-07-05  Eric Christopher  <echristo@apple.com>
19985         * configure.ac: Depend addition of -pthread on host OS.
19986         * configure: Regenerate.
19988 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19990         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19991         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19992         defined.
19994 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19996         PR libgomp/26175
19997         PR libgomp/26477
19998         * configure.ac: If neither --enable-linux-futex nor
19999         --disable-linux-futex is passed, determine the default by checking
20000         for compiling and/or running against NPTL.  With --enable-linux-futex,
20001         check if SYS_gettid and SYS_futex are defined.
20002         * configure: Rebuilt.
20004 2006-06-14  Richard Henderson  <rth@redhat.com>
20006         PR libgomp/28008
20007         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
20008         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
20010 2006-06-09  Richard Henderson  <rth@redhat.com>
20012         * env.c (gomp_nthreads_var): Change to unsigned long.
20013         (gomp_run_sched_chunk): Likewise.
20014         (parse_unsigned_long): Rename from parse_num_threads and generalize.
20015         (initialize_env): Initialize gomp_thread_attr.
20016         * libgomp.h (gomp_nthreads_var): Update decl.
20017         (gomp_run_sched_chunk): Likewise.
20018         (gomp_thread_attr): Declare.
20019         * team.c (gomp_thread_attr): Export.
20020         (initialize_team): Don't initialize it.
20022 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
20024         PR fortran/27916
20025         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
20026         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
20028 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20030         * config/mingw32/time.c: New file.
20031         * configure.tgt: Use it.
20033 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
20035         * Makefile.am: Add install-html target. Add install-html to .PHONY
20036         * Makefile.in: Regenerate.
20038 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20040         PR libgomp/27612
20041         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
20042         * testsuite/libgomp.c/critical-1.c: Likewise.
20043         * testsuite/libgomp.c/loop-1.c: Likewise.
20044         * testsuite/libgomp.c/loop-2.c: Likewise.
20045         * testsuite/libgomp.c/single-1.c: Likewise.
20046         * testsuite/libgomp.c/ordered-1.c: Likewise.
20047         * testsuite/libgomp.c/ordered-2.c: Likewise.
20049 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
20051         PR middle-end/27416
20052         * libgomp.fortran/pr27416-1.f90: New test.
20054 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
20056         PR fortran/27395
20057         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
20058         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
20060 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
20062         PR c++/26943
20063         * testsuite/libgomp.c/pr26943-1.c: New test.
20064         * testsuite/libgomp.c/pr26943-2.c: New test.
20065         * testsuite/libgomp.c/pr26943-3.c: New test.
20066         * testsuite/libgomp.c/pr26943-4.c: New test.
20067         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20068         * testsuite/libgomp.c++/pr26943.C: New test.
20070 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
20072         PR middle-end/27337
20073         * testsuite/libgomp.c++/pr27337.C: New test.
20075 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
20077         PR c/26171
20078         * testsuite/libgomp.c/pr26171.c: New test.
20080 2006-04-25  Richard Henderson  <rth@redhat.com>
20082         PR libgomp/25865
20083         * configure.ac: Use GCC_CHECK_TLS.
20084         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
20085         * Makefile.in, aclocal.m4, configure: Regenerate.
20087 2006-04-10  Matthias Klose  <doko@debian.org>
20089         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
20090         directory names containing underscores.
20092 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
20094         PR c++/26691
20095         * testsuite/libgomp.c++/pr26691.C: New test.
20097 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
20099         * testsuite/libgomp.fortran/retval2.f90: New test.
20101 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
20103         * testsuite/libgomp.c++: New directory.
20105 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
20107         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20108         * config/posix/sem.c: Implement the above.
20110 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
20112         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20113         define HAVE_BROKEN_POSIX_SEMAPHORES.
20114         * configure: Rebuilt.
20115         * config.h.in: Rebuilt.
20117 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20119         PR bootstrap/26161
20120         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20121         for the other pthread check.
20122         * configure: Regenerate.
20123         * config.h.in: Regenerate.
20125 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
20127         PR libgomp/25938
20128         PR libgomp/25984
20129         * Makefile.am (fincludedir): New variable.
20130         (nodist_include_HEADERS): Remove Fortran files.
20131         (nodist_finclude_HEADERS): New variable.
20132         * Makefile.in: Regenerated.
20134 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
20136         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20137         Remove tests for returning assumed character length arrays.
20139 2006-02-12  Roger Sayle  <roger@eyesopen.com>
20140             John David Anglin  <dave@hiauly1.hia.nrc.ca>
20142         PR libgomp/25936
20143         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20145 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
20147         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20149 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
20151         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20152         part of LD_LIBRARY_PATH manually.
20154 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
20156         PR libgomp/25852
20157         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20158         libgomp_init.
20160 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
20162         PR libgomp/25884
20163         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20164         * configure.ac (PERL): Don't set.
20165         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20166         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20167         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20168         * omp.h.in: Wrap the new configure substitutions with @ characters.
20169         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20170         * aclocal.m4, configure, Makefile.in: Regenerate.
20171         * mkomp_h.pl: Delete.
20173 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
20175         PR libgomp/25259
20176         * configure.ac: Use GCC_HEADER_STDINT.
20177         * libgomp.h: Include gstdint.h.
20178         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20179         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20181 2006-01-24  Richard Henderson  <rth@redhat.com>
20183         PR libgomp/25942
20184         * configure.ac: Add AM_MAINTAINER_MODE.
20185         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20187 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
20189         * Makefile.in: Regenerate.
20190         * testsuite/Makefile.in: Regenerate.
20191         * aclocal.m4: Regenerate.
20193 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
20195         * config/posix/proc.c: Conditional include of sys/loadavg.h for
20196         Solaris.
20197         * configure.ac: Add check for loadavg.h.
20198         (link_gomp): Adjust comment.
20199         * configure: Regenerate.
20200         * config.h.in: Regenerate.
20202 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
20204         PR libgomp/25877
20205         * configure.ac: Remove check for alloca.h.
20206         * configure: Regenerate.
20207         * config.h.in: Regenerate.
20208         * libgomp.h: define gomp_alloca to be __builtin_alloca.
20209         * team.c: Remove use of alloca.h.
20210         Call gomp_alloca instead of alloca.
20212 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
20214         PR libgomp/25877
20215         * team.c: Add include of alloca.h.
20216         * configure.ac: Add check for alloca.h.
20217         * configure: Regenerate.
20218         * config.h.in: Regenerate.
20220 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
20222         PR fortran/25219
20223         * testsuite/libgomp.fortran/pr25219.f90: New test.
20225 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
20227         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20228         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20229         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20230         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20231         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20232         testsuite/libgomp.fortran/threadprivate1.f90,
20233         testsuite/libgomp.fortran/threadprivate2.f90,
20234         testsuite/libgomp.fortran/threadprivate3.f90,
20235         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20236         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20237         testsuite/libgomp.fortran/omp_parse3.f90: Change required
20238         effective-target to TLS runtime.
20240         * testsuite/libgomp.fortran/pr25162.f: Require
20241         effective-target TLS runtime.
20243 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
20245         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20246         * testsuite/libgomp.c/nestedfn-3.c: New test.
20248 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
20250         PR fortran/25162
20251         * testsuite/libgomp.fortran/pr25162.f: New test.
20253 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
20255         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20256         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20258 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
20260         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20261         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20262         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20263         single.c, team.c, work.c, config/linux/alpha/futex.h,
20264         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20265         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20266         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20267         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20268         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20269         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20270         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20271         FSF address.
20273 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20275         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20276         to nodist_noinst_HEADERS.
20277         * Makefile.in: Rebuilt.
20279         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20280         add integer count field.
20281         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20282         omp_nest_lock_t type change.
20283         (omp_init_nest_lock): Likewise.  Initialize count to 0.
20284         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20285         Increment count.
20286         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20287         Decrement count.
20288         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20289         Increment count if successful and return the new nesting level.
20290         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20291         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20292         * testsuite/libgomp.c/lib-1.c: New test.
20293         * testsuite/libgomp.fortran/lib1.f90: New test.
20294         * testsuite/libgomp.fortran/lib2.f: New test.
20295         * testsuite/libgomp.fortran/lib3.f: New test.
20297 2005-11-17  Richard Henderson  <rth@redhat.com>
20299         PR 24845
20300         * Makefile.am (nodist_toolexeclib_HEADERS): New.
20301         * configure.ac (link_gomp): New.  Substitute it.
20302         (AC_CONFIG_FILES): Add libgomp.spec.
20303         * libgomp.spec.in: New file.
20304         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20305         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20307 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20309         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20310         reduction(-:var) behaving the same as reduction(+:var).
20311         * testsuite/libgomp.c/reduction-4.c: New test.
20313 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
20315         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20316         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20317         testsuite/libgomp.c/copyin-3.c,
20318         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20319         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20320         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20321         testsuite/libgomp.c++/pr24455.C,
20322         testsuite/libgomp.fortran/threadprivate1.f90,
20323         testsuite/libgomp.fortran/threadprivate2.f90,
20324         testsuite/libgomp.fortran/threadprivate3.f90,
20325         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20326         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20327         testsuite/libgomp.fortran/omp_parse3.f90: Require
20328         effective-target TLS.
20330 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
20332         * HEADER: Remove.
20334 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
20336         PR libgomp/24797
20337         * team.c (initialize_team): Pass NULL rather than free as
20338         pthread_key_create destructor.  Initialize thread specific data
20339         pointer in initial thread to a static local variable rather than
20340         malloced memory.
20342 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
20344         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20345         its location to ld_library_path.
20347 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20349         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20351 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20353         * testsuite/libgomp.c: Rename from libgomp.dg.
20355 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
20357         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20358         threadprivate variable 'i'.
20360 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
20362         * config/linux/s390/futex.h: New file.
20363         * configure.tgt: Use it.
20365         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20366         before the parallel.
20368 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
20370         PR c++/24734
20371         * testsuite/libgomp.c++/master-1.C: New test.
20373 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20375         * testsuite/libgomp.dg/copyin-3.c: New test.
20377 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20379         * testsuite/libgomp.fortran/retval1.f90: New test.
20380         * testsuite/libgomp.fortran/vla7.f90: New test.
20382 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
20384         * testsuite/libgomp.fortran/vla2.f90: New test.
20385         * testsuite/libgomp.fortran/vla3.f90: New test.
20386         * testsuite/libgomp.fortran/vla4.f90: New test.
20387         * testsuite/libgomp.fortran/vla5.f90: New test.
20388         * testsuite/libgomp.fortran/vla6.f90: New test.
20390 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
20392         * config/linux/sparc/futex.h: New file.
20393         * configure.tgt: Use it.
20394         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20396         * critical.c: Include stdlib.h.
20397         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20398         ignoring return value.
20399         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20400         LIBGOMP_CHECK_SYNC_BUILTINS check.
20401         * configure: Rebuilt.
20403 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20405         * testsuite/libgomp.fortran/vla1.f90: New test.
20407 2005-10-31  Richard Henderson  <rth@redhat.com>
20409         * testsuite/libgomp.fortran/character2.f90: Fix race condition
20410         setting 's' in different threads.
20412 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20414         * libgomp.h (attribute_hidden, ialias): Define.
20415         * config/posix/proc.c (omp_get_num_procs): Add ialias.
20416         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20417         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20418         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20419         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20420         omp_test_lock, omp_test_nest_lock): Likewise.
20421         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20422         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20423         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20424         omp_test_lock, omp_test_nest_lock): Likewise.
20425         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20426         omp_get_dynamic, omp_get_nested): Likewise.
20427         * parallel.c (omp_get_num_threads, omp_get_max_threads,
20428         omp_get_thread_num, omp_in_parallel): Likewise.
20429         * fortran.c (ialias_redirect): Define.
20430         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20431         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20432         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20433         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20434         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20435         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20436         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20437         omp_get_wtime): Add ialias_redirect.
20439 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
20441         * fortran.c: Include stdlib.h.
20443 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
20445         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20446         * Makefile.in: Regenerated.
20448 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
20450         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20451         * libgomp_f.h.in (omp_check_defines): New function.
20452         * env.c: Include libgomp_f.h.
20453         (initialize_env): Call omp_check_defines.
20455         * testsuite/libgomp.dg/copyin-2.c: New test.
20456         * testsuite/libgomp.c++/copyin-2.C: New test.
20457         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20459         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20460         * testsuite/libgomp.fortran/sharing2.f90: New test.
20462         * testsuite/libgomp.dg/copyin-1.c: New test.
20463         * testsuite/libgomp.c++/copyin-1.C: New test.
20465 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
20467         * testsuite/libgomp.fortran/crayptr1.f90: New test.
20469         * testsuite/libgomp.fortran/workshare1.f90: New test.
20471         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20472         only test.
20473         * libgomp.fortran/sharing1.f90: New test.
20475 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
20477         PR c++/24502
20478         * testsuite/libgomp.c++/loop-7.C: New test.
20480         * testsuite/libgomp.dg/nestedfn-2.c: New test.
20482         * testsuite/libgomp.dg/nestedfn-1.c: New test.
20483         * testsuite/libgomp.fortran/reduction6.f90: New test.
20484         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20486 2005-10-23  Richard Henderson  <rth@redhat.com>
20488         * testsuite/libgomp.c++/ctor-1.C: New.
20489         * testsuite/libgomp.c++/ctor-2.C: New.
20490         * testsuite/libgomp.c++/ctor-3.C: New.
20491         * testsuite/libgomp.c++/ctor-4.C: New.
20492         * testsuite/libgomp.c++/ctor-5.C: New.
20493         * testsuite/libgomp.c++/ctor-6.C: New.
20494         * testsuite/libgomp.c++/ctor-7.C: New.
20495         * testsuite/libgomp.c++/ctor-8.C: New.
20496         * testsuite/libgomp.c++/ctor-9.C: New.
20498 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
20500         PR 24455
20501         * testsuite/libgomp.c++/pr24455-1.C: New test.
20502         * testsuite/libgomp.c++/pr24455.C: New test.
20503         * testsuite/libgomp.dg/pr24455-1.c: New test.
20504         * testsuite/libgomp.dg/pr24455.c: New test.
20506 2005-10-20  Richard Henderson  <rth@redhat.com>
20508         * testsuite/libgomp.c++/loop-6.C: New.
20509         * testsuite/libgomp.dg/loop-3.c: New.
20511 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
20513         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20514         explicitly private.
20515         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20516         explicitly shared.
20518 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
20520         * testsuite/libgomp.fortran/jacobi.f: New test.
20522 2005-10-19  Richard Henderson  <rth@redhat.com>
20524         * configure.tgt (i?86-linux): Default to with_arch instead of
20525         CFLAGS.  Add -mtune to match target_cpu.
20526         (x86_64-linux): Tune to i686.
20528         * fortran.c (omp_test_nest_lock_): Fix typo.
20530 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
20532         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20533         gomp_ordered_sync): Do nothing if team->nthreads == 1.
20534         * testsuite/libgomp.dg/ordered-3.c: New test.
20536         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20537         Remove volatile keyword.
20539         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20540         in COMMON block to avoid warnings on 64-bit targets.
20542 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
20544         * testsuite/libgomp.dg/shared-3.c: New test.
20546 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20548         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20549         * testsuite/libgomp.fortran/reduction5.f90: New test.
20551 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20553         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20554         dg-options.
20555         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
20556         flush loop now that __sync_synchronize has proper memory barrier.
20557         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20558         Add -ffixed-form to dg-options.
20560 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20562         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20563         from subdirectories.
20564         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20565         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20566         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20567         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20568         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20569         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20570         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20571         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20572         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20573         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20574         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20575         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20576         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20577         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20578         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20579         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20580         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20581         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20582         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20583         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20584         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20585         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20586         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20587         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20588         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20590 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
20592         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20593         lang_library_path exists.  Use find instead of glob to gather tests.
20594         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20596 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20598         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20599         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20600         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20601         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20602         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20603         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20604         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20605         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20606         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20607         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20608         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20609         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20610         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20612 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
20614         * testsuite/libgomp.dg/vla-1.c: New test.
20616         * testsuite/libgomp.fortran/reference2.f90: New test.
20618         * testsuite/libgomp.fortran/character2.f90: Remove explicit
20619         declaration of omp_get_thread_num.
20620         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
20621         use omp_lib.
20623         * testsuite/libgomp.fortran/reduction1.f90: New test.
20624         * testsuite/libgomp.fortran/reduction2.f90: New test.
20625         * testsuite/libgomp.fortran/reduction3.f90: New test.
20626         * testsuite/libgomp.fortran/reduction4.f90: New test.
20628 2005-10-13  Richard Henderson  <rth@redhat.com>
20630         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20631         * Makefile.in: Regenerate.
20632         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20633         * libgomp.h: Include bar.h.
20634         (struct gomp_barrier): Remove.
20635         (struct gomp_team): Add barrier.  Replace master_barrier with
20636         master_release.  Replace threads with ordered_release.
20637         (struct gomp_thread): Replace barrier with release.
20638         * ordered.c (gomp_ordered_first): Update for ordered_release change.
20639         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20640         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20641         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20642         (GOMP_single_copy_end): Likewise.
20643         * team.c (gomp_threads_dock): New.
20644         (gomp_barrier_init, gomp_barrier_destroy): Remove.
20645         (gomp_thread_start): Use gomp_barrier_wait.
20646         (new_team, free_team): Update for gomp_team changes.
20647         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20648         (gomp_team_end): Use gomp_barrier_wait.
20649         (initialize_team): Update for gomp_thread changes.
20650         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20651         (gomp_work_share_end_nowait): Use atomic ops when available.
20652         * config/linux/bar.c, config/linux/bar.h: New files.
20653         * config/posix/bar.c, config/posix/bar.h: New files.
20655 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
20657         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20658         * testsuite/libgomp.dg/single-2.c: New test.
20660         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20661         lang_link_flags): Unset, so that they aren't inherited from previously
20662         sourced *.exp.
20664         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20666 2005-10-12  Richard Henderson  <rth@redhat.com>
20668         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20669         (libgomp_init): Use lang_test_file, lang_library_path, and
20670         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
20672         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20673         (lang_test_file, lang_link_flags): New.
20674         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20676         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20677         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20678         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20679         testsuite/libgomp.c++/parallel-1.C,
20680         testsuite/libgomp.c++/reduction-1.C,
20681         testsuite/libgomp.c++/reduction-2.C,
20682         testsuite/libgomp.c++/reduction-3.C,
20683         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20684         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20685         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20686         New files, largely cribbed from the C testsuite.
20688 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
20690         * testsuite/libgomp.fortran/character1.f90: New test.
20691         * testsuite/libgomp.fortran/character2.f90: New test.
20693         * testsuite/libgomp.dg/nested-1.c: New test.
20694         * testsuite/libgomp.dg/nested-2.c: New test.
20695         * testsuite/libgomp.fortran/do1.f90: New test.
20696         * testsuite/libgomp.fortran/do2.f90: New test.
20698         * testsuite/libgomp.fortran/reference1.f90: New test.
20700 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
20702         * testsuite/libgomp.dg/reduction-1.c: New test.
20703         * testsuite/libgomp.dg/reduction-2.c: New test.
20704         * testsuite/libgomp.dg/reduction-3.c: New test.
20706 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20708         * testsuite/libgomp.dg/atomic-1.c: New test.
20709         * testsuite/libgomp.dg/atomic-2.c: New test.
20711 2005-10-09  Richard Henderson  <rth@redhat.com>
20713         * critical.c (atomic_lock): New.
20714         (initialize_critical): Initialize it.
20715         (GOMP_atomic_start, GOMP_atomic_end): New.
20716         * libgomp.map: Export them.
20717         * libgomp_g.h: Declare them.
20719         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20721 2005-10-02  Richard Henderson  <rth@redhat.com>
20723         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20724         to XCFLAGS instead of CFLAGS.
20726 2005-09-30  Richard Henderson  <rth@redhat.com>
20728         * configure.ac: Determine whether -pthread or -lpthread is needed.
20729         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20730         * Makefile.in, configure: Rebuild.
20732 2005-09-28  Richard Henderson  <rth@redhat.com>
20734         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20735         * testsuite/libgomp.dg/omp-single-3.c: New test.
20737 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20739         * testsuite/libgomp.dg/omp-single-2.c: New test.
20740         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20742 2005-09-27  Richard Henderson  <rth@redhat.com>
20744         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20745         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20747 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20749         * testsuite/libgomp.dg/omp-loop03.c: New test.
20751 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20753         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20755 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20757         * testsuite/libgomp.dg/omp-single-1.c: New test.
20758         * testsuite/libgomp.dg/shared-1.c: Return 0.
20759         Add prototype for abort.
20760         * testsuite/libgomp.dg/shared-2.c: Likewise.
20762 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20764         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20765         constructs.
20767 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20769         * testsuite/libgomp.dg/shared-1.c: New test.
20770         * testsuite/libgomp.dg/shared-2.c: New test.
20772 2005-09-24  Richard Henderson  <rth@redhat.com>
20774         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20776 2005-09-24  Richard Henderson  <rth@redhat.com>
20778         * iter.c (gomp_iter_static_next): Round up when computing number
20779         of iterations.  Don't bother distributing a remainder equally.
20781         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20782         Don't call srand.  Zero b before testing.
20783         (main): New.
20785 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20787         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20788         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20790 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20792         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20793         without !$omp end do, followed immediately by subroutine end.
20795 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20797         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20799 2005-09-22  Richard Henderson  <rth@redhat.com>
20801         * critical.c (GOMP_critical_name_start): Change argument to void**.
20802         Reuse the pointer space if the mutex fits.
20803         (GOMP_critical_name_end): Likewise.
20804         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20805         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20806         (GOMP_critical_name_end): Likewise.
20807         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20808         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20810 2005-09-20  Richard Henderson  <rth@redhat.com>
20812         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20813         (create_lock_lock): New.
20814         (initialize_critical): Initialize it.
20815         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20816         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20818 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20820         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20822 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20824         * testsuite/libgomp.dg/omp-loop01.c: New test.
20825         * testsuite/libgomp.dg/omp-loop02.c: New test.
20827 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20829         * configure.ac (AC_PROG_FC): Add.
20830         (USE_FORTRAN): New automake conditional.
20831         * configure: Rebuilt.
20832         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20833         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20834         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20835         Add rules to build them.
20836         * Makefile.in: Rebuilt.
20837         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20838         OMP_NEST_LOCK_KIND.
20839         * libgomp.map: Add Fortran wrappers.
20840         * libgomp_f.h.in: New file.
20841         * omp_lib.h.in: New file.
20842         * omp_lib.f90.in: New file.
20843         * fortran.c: New file.
20844         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20845         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20846         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20847         libgfortran has been built.
20848         * testsuite/libgomp.fortran/fortran.exp: New file.
20849         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20850         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20851         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20852         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20853         * testsuite/libgomp.fortran/omp_hello.f: New test.
20854         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20855         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20856         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20857         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20858         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20859         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20860         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20861         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20863 2005-08-30  Richard Henderson  <rth@redhat.com>
20865         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20866         function for when aliases are not usable.
20867         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20868         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20869         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20870         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20871         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20872         GOMP_loop_ordered_guided_next): Likewise.
20873         * ordered.c (GOMP_ordered_start): Likewise.
20875 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20877         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20878         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20879         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20880         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20881         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20882         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20883         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20884         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20885         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20887 2005-07-07  Eric Christopher  <echristo@redhat.com>
20888             Diego Novillo  <dnovillo@redhat.com>
20890         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20891         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20892         up code.
20893         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20894         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20895         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20896         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20897         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20898         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20899         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20901 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20903         * TOPLEVEL.patch: Remove.
20905 2005-05-16  Richard Henderson  <rth@redhat.com>
20907         * configure.ac: Test for clock_gettime.
20908         * config.h.in, configure: Rebuild.
20909         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20910         (omp_get_wtime): Use clock_gettime if available.
20911         (omp_get_wtick): Use clock_getres if available.
20913 2005-05-11  Richard Henderson  <rth@redhat.com>
20915         * config/linux/ia64/futex.h: New file.
20916         * configure.tgt: Use it.
20918         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20920 2005-05-07  Richard Henderson  <rth@redhat.com>
20922         * config/linux/powerpc/futex.h: New file.
20923         * configure.tgt: Use it.
20925         * config/linux/i486/futex.h: Merge ...
20926         * config/linux/x86_64/futex.h: ... into ...
20927         * config/linux/x86/futex.h: ... here.
20928         * configure.tgt: Update to match.
20930 2005-05-06  Richard Henderson  <rth@redhat.com>
20932         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20933         * config/linux/i486/futex.h: Likewise.
20934         * config/linux/x86_64/futex.h: Likewise.
20936         * config/linux/lock.c: New file.
20937         * config/linux/omp-lock.h: New file.
20939         * critical.c, env.h: Don't include omp.h
20940         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20941         * config/posix/time.c: Likewise.
20942         * config/posix/omp-lock.h: New file.
20943         * libgomp.h: Include omp-lock.h and omp.h.
20944         * Makefile.am (nodist_include_HEADERS): New.
20945         (omp.h): New rule.
20946         * configure.ac (PERL): New.
20947         * mkomp_h.pl: New file.
20948         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20949         with templates.
20950         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20952         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20953         build directory.  Re-add -march=i486 hack.
20955         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20956         (libgomp_link_flags): Remove.
20957         (libgomp_initialized): Remove.
20958         (libgomp_init): Don't protect from reinitialization.  Copy code
20959         from libstdc++ for getting the multilib set correctly.
20961 2005-05-05  Richard Henderson  <rth@redhat.com>
20963         * config/linux/alpha/futex.h: New file.
20964         * configure.tgt (alpha*-*-linux*): Use it.
20966         * config/posix/mutex.c: New file.
20967         * config/posix/sem.c: Use libgomp.h.
20969         * configure.tgt (x86_64-linux): Also test CC for -m32.
20970         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20972         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20973         after $gccpath.
20975         * Makefile.am (SUBDIRS): New.
20976         (libgomp_la_LDFLAGS): Add -lpthread.
20977         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20978         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20980         * libgomp_g.h: New file.
20981         * libgomp.h: Split out all public declarations to libgomp_g.h.
20982         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20983         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20984         * config/linux/sem.h: Likewise.
20985         * config/posix/sem.h: Likewise.
20987         * Makefile.am (AM_LDFLAGS): New.
20988         (libgomp_version_script): Split out from ...
20989         (libgomp_la_LDFLAGS): ... here.
20990         (libgomp_version_info): New.
20991         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20992         (LIBGOMP_ENABLE): New.
20993         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20994         (LIBGOMP_ENABLE_SYMVERS): New.
20995         * configure.ac (AC_INIT): Version 1.0.
20996         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20997         (enable-linux-futex): Likewise.  Rename from enable-futex.
20998         (libtool_VERSION): New.
20999         (LIBGOMP_ENABLE_SYMVERS): Use it.
21000         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
21001         * Makefile.in, aclocal.m4, configure: Rebuild.
21003         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
21004         (gomp_mutex_unlock_slow): Fix typo.
21005         * config/linux/sem.c: Similarly.
21006         (gomp_sem_post_slow): Fix typo.
21007         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
21008         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
21009         [__PIC__] (sys_futex0): Don't use tmp output in asm.
21011         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
21012         (libgomp_la_LDFLAGS): Add top_srcdir to path.
21013         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
21014         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
21015         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
21016         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
21017         LDFLAGS.  Pull enable_futex check to top-level.
21018         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
21019         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
21021         First attempt at real configury.
21022         * Makefile, config.h: Remove file.
21023         * Makefile.am, Makefile.in: New file.
21024         * acinclude.m4 aclocal.m4: New file.
21025         * configure.ac, configure.tgt, configure: New file.
21027         * config/posix/lock.c: Rename from sys-lock.c.
21028         * config/posix/mutex.h: Rename from sys-mutex.h.
21029         * config/posix/sem.c: Rename from sys-sem.c.
21030         * config/posix/sem.h: Rename from sys-sem.h.
21031         * config/posix/proc.c: Rename from sys-proc.c.
21032         * config/posix/time.c: Rename from sys-proc.c.
21034         * config/linux/mutex.c: New file.
21035         * config/linux/mutex.h: New file.
21036         * config/linux/sem.c: New file.
21037         * config/linux/sem.h: New file.
21038         * config/linux/i486/futex.h: New file.
21039         * config/linux/x86_64/futex.h: New file.
21041 2005-05-04  Richard Henderson  <rth@redhat.com>
21043         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
21044         * libgomp.h: Declare them.
21045         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
21046         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
21048 2005-05-04  Richard Henderson  <rth@redhat.com>
21050         * libgomp-1 code drop
21052 2005-05-04  Richard Henderson  <rth@redhat.com>
21054         * iter.c (gomp_iter_static_next): Return tri-state on 0.
21055         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
21056         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
21057         (gomp_iter_static_next): Update.
21058         (gomp_ordered_static_next): Update.
21059         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
21060         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
21061         totally empty range.
21062         (gomp_loop_ordered_static_next): Refine test for calling
21063         gomp_ordered_static_next.
21064         * testsuite/ordered-1.c: Add case for more threads than iterations.
21066         * iter.c (gomp_iter_runtime_next_locked): Remove.
21067         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
21068         gomp_loop_guided_start, gomp_loop_ordered_static_start,
21069         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
21070         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
21071         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
21072         gomp_loop_ordered_guided_next): Downcase name, make static, add
21073         an external alias with the old name.
21074         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
21075         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
21076         switch and call one of the above static functions.
21077         * libgomp.h: Update.
21079         * work.c (gomp_work_share_start): Lock the mutex for !first too.
21080         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
21081         GOMP_loop_guided_start, GOMP_loop_runtime_start,
21082         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21083         GOMP_loop_ordered_guided_start): Update to match.
21084         * sections.c (GOMP_sections_start): Likewise.
21085         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
21087         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21088         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
21089         Use bounds check instead of modulus.
21090         (gomp_ordered_sync): Split out of GOMP_ordered_start.
21091         (gomp_ordered_last): Don't sync with ordered_owner here.
21092         (gomp_ordered_next): Likewise.
21093         (gomp_ordered_static_loop_next): Likewise.
21094         * loop.c, libgomp.h: Update to match.
21096         * libgomp.h (GOMP_barrier): Declare.
21098         * testsuite/barrier-1.c: New file.
21099         * testsuite/critical-1.c: New file.
21100         * testsuite/ordered-2.c: New file.
21101         * testsuite/ordered-1.c: New file.
21102         * testsuite/sections-1.c: New file.
21103         * testsuite/single-1.c: New file.
21104         * testsuite/Makefile (TESTS): Add them.
21106 2005-05-04  Richard Henderson  <rth@redhat.com>
21108         * libgomp.h (struct gomp_work_share): Add ordered_owner.
21109         * loop.c (GOMP_loop_static_start): If not the startup thread,
21110         acquire the mutex to wait for initialization complete.
21111         (GOMP_loop_ordered_static_start): Likewise.
21112         (GOMP_loop_ordered_runtime_start): Likewise.
21113         (GOMP_loop_ordered_static_first): Remove.
21114         (GOMP_loop_ordered_dynamic_first): Remove.
21115         (GOMP_loop_ordered_guided_first): Remove.
21116         (GOMP_loop_ordered_runtime_first): Remove.
21117         * ordered.c (gomp_ordered_loop_first): Post to own release when
21118         we're the first thread.
21119         (gomp_ordered_loop_last): Wait on release if not owner.
21120         (gomp_ordered_loop_next): Likewise.
21121         (gomp_ordered_static_loop_init): New.
21122         (gomp_ordered_static_loop_next): Use ordered_owner.
21123         (GOMP_ordered_start): Likewise.
21124         * work.c (gomp_new_work_share): Initialize ordered_owner.
21126 2005-05-03  Richard Henderson  <rth@redhat.com>
21128         * Makefile (OPT): New.
21129         (CFLAGS): Use it.
21131         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21132         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21133         * libgomp.h, libgomp.map, NOTES: Update to match.
21135         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21136         Add initialized and thr members.
21137         (gomp_thread_start): Pause when initially spawned to wait for
21138         the whole team to be created.
21139         (gomp_team_start): Release team members at the end.
21141         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
21142         (f_foo_1): Use GOMP_loop_end.
21143         (f_foo_2): Use GOMP_loop_end_nowait.
21145         * testsuite/loop-2.c: New file.
21146         * testsuite/Makefile (TESTS): Add it.
21148 2005-05-03  Richard Henderson  <rth@redhat.com>
21150         * iter.c (gomp_iter_static_next): Fix overflow check typo.
21151         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21152         * team.c (new_team): Initialize oldest_live_gen to 1 if no
21153         initial work_share.
21155         * testsuite/Makefile: New file.
21156         * testsuite/loop-1.c: New file.
21158 2005-05-03  Richard Henderson  <rth@redhat.com>
21160         Initial implementation and checkin.
21162 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21164 Copying and distribution of this file, with or without modification,
21165 are permitted in any medium without royalty provided the copyright
21166 notice and this notice are preserved.