gccrs: Add checks for Trait functions
[official-gcc.git] / libgomp / ChangeLog
blob5fd657c1d92c7d5bd9bd3ddafafaf23b9f90a2e1
1 2024-02-01  John David Anglin  <danglin@gcc.gnu.org>
3         * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
4         on 32-bit hppa.
5         * testsuite/libgomp.c/omp-loop03.c: Likewise.
7 2024-01-29  Tobias Burnus  <tburnus@baylibre.com>
9         * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
10         function not gfx90a for gfx1100/gfx1030 context selector.
12 2024-01-26  Richard Biener  <rguenther@suse.de>
14         * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
15         agents with unsupported ISA.
17 2024-01-26  Richard Biener  <rguenther@suse.de>
19         * plugin/plugin-gcn.c
20         (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
21         (isa_code): Return that instead of -1.
22         (GOMP_OFFLOAD_init_device): Adjust.
24 2024-01-26  Tobias Burnus  <tburnus@baylibre.com>
26         * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
27         for gfx1030 and gfx1100.
28         * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
29         * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
31 2024-01-26  Andrew Stubbs  <ams@baylibre.com>
33         * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
34         (omp_get_wtime): Add RDNA3-compatible variant.
35         * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
37 2024-01-24  Tobias Burnus  <tburnus@baylibre.com>
38             Sandra Loosemore  <sandra@codesourcery.com>
40         * libgomp.texi (Runtime Library Routines): Document
41         omp_pause_resource, omp_pause_resource_all and
42         omp_target_memcpy{,_rect}{,_async}.
44 2024-01-22  Tobias Burnus  <tburnus@baylibre.com>
46         * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
47         support is no longer enabled by default.
48         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
50 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
52         * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
53         timeout by 2 on hppa*-*-*.
55 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
57         * testsuite/libgomp.c/simd-math-1.c: Don't run on
58         hppa*-*-hpux*.
60 2024-01-17  Jakub Jelinek  <jakub@redhat.com>
62         PR middle-end/113409
63         * testsuite/libgomp.c/bitint-1.c: New test.
65 2024-01-11  Julian Brown  <julian@codesourcery.com>
67         * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
68         * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
69         * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
71 2024-01-10  Jakub Jelinek  <jakub@redhat.com>
73         PR libgomp/113192
74         * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
75         instead of \$(abs_top_srcdir)/testsuite/flock.
76         * configure: Regenerated.
78 2024-01-09  Julian Brown  <julian@codesourcery.com>
80         * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
81         now work.
82         * testsuite/libgomp.c++/baseptrs-6.C: New test.
83         * testsuite/libgomp.c++/ind-base-1.C: New test.
84         * testsuite/libgomp.c++/ind-base-2.C: New test.
85         * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
86         * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
87         * testsuite/libgomp.c++/map-comma-1.C: New test.
88         * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
89         * testsuite/libgomp.c++/struct-ref-1.C: New test.
90         * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
91         * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
92         * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
94 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
96         PR libgomp/113192
97         * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
98         rather than $srcdir/testsuite/flock.
99         * configure: Regenerated.
101 2024-01-08  Thomas Schwinge  <thomas@codesourcery.com>
103         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
104         'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
106 2024-01-08  Julian Brown  <julian@codesourcery.com>
108         * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
109         hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
110         hsa_amd_memory_async_copy_rect_fn function pointers.
111         (init_hsa_runtime_functions): Add above functions, with
112         DLSYM_OPT_FN.
113         (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
115 2024-01-08  Tobias Burnus  <tobias@codesourcery.com>
117         * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
118         (gcn_isa_name_len): Fix length.
119         (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
121 2024-01-06  Tobias Burnus  <tobias@codesourcery.com>
123         * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
124         (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
125         omp_target_is_accessible.
126         (Environment Display Routine): Uncomment and add
127         omp_display_env description.
128         (OMP_DISPLAY_ENV): Update wording, add 'see also'.
130 2024-01-06  Mark Wielaard  <mark@klomp.org>
132         * configure: Regenerate.
134 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
136         * libgomp.texi: Bump @copying's copyright year.
138 2023-12-21  Julian Brown  <julian@codesourcery.com>
140         * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
142 2023-12-20  Julian Brown  <julian@codesourcery.com>
144         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
145         avoid out-of-bounds array checks in CUDA runtime.
146         (GOMP_OFFLOAD_memcpy3d): Likewise.
147         * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
149 2023-12-18  Jakub Jelinek  <jakub@redhat.com>
151         * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
152         drop because of that unneeded target selector from other directives
153         and remove the aarch64 specific ones.
155 2023-12-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
157         * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
158         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
160 2023-12-15  Thomas Schwinge  <thomas@codesourcery.com>
162         * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
163         'dg-output's to 'target offload_device_nonshared_as'.
165 2023-12-15  Julian Brown  <julian@codesourcery.com>
167         * oacc-mem.c (find_group_last, goacc_enter_data_internal,
168         goacc_exit_data_internal, GOACC_enter_exit_data): Add
169         GOMP_MAP_STRUCT_UNORD support.
170         * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
171         Detect incorrect use of variable indexing of arrays of structs.
172         (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
173         GOMP_MAP_STRUCT_UNORD support.
174         * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
175         * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
176         * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
177         * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
179 2023-12-13  Julian Brown  <julian@codesourcery.com>
181         * testsuite/libgomp.fortran/map-subarray.f90: New test.
182         * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
183         * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
184         * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
185         * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
186         * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
187         * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
188         * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
189         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
190         descriptor-mapping changes.  Remove XFAIL.
192 2023-12-13  Julian Brown  <julian@codesourcery.com>
194         * target.c (gomp_map_pointer): Modify zero-length array section
195         pointer handling.
196         (gomp_attach_pointer): Likewise.
197         (gomp_map_fields_existing): Use gomp_map_0len_lookup.
198         (gomp_attach_pointer): Allow attaching null pointers (or Fortran
199         "unassociated" pointers).
200         (gomp_map_vars_internal): Handle zero-sized struct members.  Add
201         diagnostic for unmapped struct pointer members.
202         * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
203         * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
204         * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
205         * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
206         * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
207         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
208         "free".
209         * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
210         * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
211         * testsuite/libgomp.c++/class-array-1.C: New test.
212         * testsuite/libgomp.c++/baseptrs-3.C: New test.
213         * testsuite/libgomp.c++/baseptrs-4.C: New test.
214         * testsuite/libgomp.c++/baseptrs-5.C: New test.
215         * testsuite/libgomp.c++/baseptrs-8.C: New test.
216         * testsuite/libgomp.c++/baseptrs-9.C: New test.
217         * testsuite/libgomp.c++/ref-mapping-1.C: New test.
218         * testsuite/libgomp.c++/target-48.C: New test.
219         * testsuite/libgomp.c++/target-49.C: New test.
220         * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
221         * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
222         semantics.
223         * testsuite/libgomp.c++/target-this-3.C: Likewise.
224         * testsuite/libgomp.c++/target-this-4.C: Likewise.
225         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
226         * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
228 2023-12-13  Thomas Schwinge  <thomas@codesourcery.com>
230         * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
231         vs. '%ld' format string mismatch.
233 2023-12-13  Andrew Stubbs  <ams@codesourcery.com>
234             Thomas Schwinge  <thomas@codesourcery.com>
236         * allocator.c (MEMSPACE_ALLOC): Add PIN.
237         (MEMSPACE_CALLOC): Add PIN.
238         (MEMSPACE_REALLOC): Add PIN.
239         (MEMSPACE_FREE): Add PIN.
240         (MEMSPACE_VALIDATE): Add PIN.
241         (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
242         (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
243         (omp_aligned_calloc): Likewise.
244         (omp_realloc): Likewise.
245         (omp_free): Likewise.
246         * config/linux/allocator.c: New file.
247         * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
248         (MEMSPACE_CALLOC): Add PIN.
249         (MEMSPACE_REALLOC): Add PIN.
250         (MEMSPACE_FREE): Add PIN.
251         (MEMSPACE_VALIDATE): Add PIN.
252         * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
253         (MEMSPACE_CALLOC): Add PIN.
254         (MEMSPACE_REALLOC): Add PIN.
255         (MEMSPACE_FREE): Add PIN.
256         * libgomp.texi: Switch pinned trait to supported.
257         (MEMSPACE_VALIDATE): Add PIN.
258         * testsuite/libgomp.c/alloc-pinned-1.c: New test.
259         * testsuite/libgomp.c/alloc-pinned-2.c: New test.
260         * testsuite/libgomp.c/alloc-pinned-3.c: New test.
261         * testsuite/libgomp.c/alloc-pinned-4.c: New test.
263 2023-12-11  Lipeng Zhu  <lipeng.zhu@intel.com>
265         * testsuite/libgomp.fortran/rwlock_1.f90: New file.
266         * testsuite/libgomp.fortran/rwlock_2.f90: New file.
267         * testsuite/libgomp.fortran/rwlock_3.f90: New file.
269 2023-12-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
271         * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
272         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
274 2023-12-11  Tobias Burnus  <tobias@codesourcery.com>
276         * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
278 2023-12-08  Tobias Burnus  <tobias@codesourcery.com>
280         * allocator.c (struct fort_alloc_splay_tree_key_s,
281         fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
282         * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
283         * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
284         GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
285         (GOMP_5.1.1): ... here.
286         * libgomp.texi (Impl. Status, Memory management): Update for
287         allocators/allocate directives.
288         * splay-tree.c: Handle splay_tree_static define to declare all
289         functions as static.
290         (splay_tree_lookup_node): New.
291         * splay-tree.h: Handle splay_tree_decl_only define.
292         (splay_tree_lookup_node): New prototype.
293         * target.c: Define splay_tree_static for 'reverse'.
294         * testsuite/libgomp.fortran/allocators-1.f90: New test.
295         * testsuite/libgomp.fortran/allocators-2.f90: New test.
296         * testsuite/libgomp.fortran/allocators-3.f90: New test.
297         * testsuite/libgomp.fortran/allocators-4.f90: New test.
298         * testsuite/libgomp.fortran/allocators-5.f90: New test.
300 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
302         * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
303         (TEAM_ARENA_FREE): Likewise.
304         (TEAM_ARENA_END): Likewise.
305         (GCN_LOWLAT_HEAP): New.
306         * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
307         (__gcn_lowlat_init): New prototype.
308         (gomp_gcn_enter_kernel): Initialize the low-latency heap.
309         * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
310         (TEAM_ARENA_FREE): Likewise.
311         (TEAM_ARENA_END): Likewise.
312         * plugin/plugin-gcn.c (lowlat_size): New variable.
313         (print_kernel_dispatch): Label the group_segment_size purpose.
314         (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
315         (create_kernel_dispatch): Pass low-latency head allocation to kernel.
316         (run_kernel): Use shadow; don't assume values.
317         * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
318         * config/gcn/allocator.c: New file.
319         * libgomp.texi: Document low-latency implementation details.
321 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
323         * allocator.c (MEMSPACE_VALIDATE): New macro.
324         (omp_init_allocator): Use MEMSPACE_VALIDATE.
325         (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
326         (omp_aligned_calloc): Likewise.
327         (omp_realloc): Likewise.
328         * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
329         (MEMSPACE_VALIDATE): New macro.
330         (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
331         * libgomp.texi: Document low-latency implementation details.
332         * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
333         * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
334         * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
335         * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
336         * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
337         * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
338         * testsuite/libgomp.c/omp_alloc-traits.c: New test.
340 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
341             Kwok Cheung Yeung   <kcy@codesourcery.com>
342             Thomas Schwinge  <thomas@codesourcery.com>
344         * allocator.c (MEMSPACE_ALLOC): New macro.
345         (MEMSPACE_CALLOC): New macro.
346         (MEMSPACE_REALLOC): New macro.
347         (MEMSPACE_FREE): New macro.
348         (predefined_alloc_mapping): New array.  Add _Static_assert to match.
349         (ARRAY_SIZE): New macro.
350         (omp_aligned_alloc): Use MEMSPACE_ALLOC.
351         Implement fall-backs for predefined allocators.  Simplify existing
352         fall-backs.
353         (omp_free): Use MEMSPACE_FREE.
354         (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
355         predefined allocators.  Simplify existing fall-backs.
356         (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
357         Implement fall-backs for predefined allocators.  Simplify existing
358         fall-backs.
359         * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
360         (__nvptx_lowlat_init): New prototype.
361         (gomp_nvptx_main): Call __nvptx_lowlat_init.
362         * libgomp.texi: Update memory space table.
363         * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
364         (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
365         (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
366         * basic-allocator.c: New file.
367         * config/nvptx/allocator.c: New file.
368         * testsuite/libgomp.c/omp_alloc-1.c: New test.
369         * testsuite/libgomp.c/omp_alloc-2.c: New test.
370         * testsuite/libgomp.c/omp_alloc-3.c: New test.
371         * testsuite/libgomp.c/omp_alloc-4.c: New test.
372         * testsuite/libgomp.c/omp_alloc-5.c: New test.
373         * testsuite/libgomp.c/omp_alloc-6.c: New test.
375 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
377         * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
378         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
379         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
380         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
381         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
382         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
383         * testsuite/libgomp.c/declare-variant-4.h: Likewise.
384         * testsuite/libgomp.c/declare-variant-4.c: New.
386 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
388         * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
389         into 'dg-do link'.
390         * testsuite/libgomp.c/declare-variant-3.c: New.
391         * testsuite/libgomp.c/declare-variant-3.h: Extend.
393 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
395         * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
396         'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
397         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
398         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
399         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
400         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
401         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
402         * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
403         'scan-offload-tree-dump' to
404         'only_for_offload_target amdgcn-amdhsa'.
405         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
406         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
407         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
408         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
409         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
411 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
413         * testsuite/libgomp.c/declare-variant-3-sm30.c:
414         'dg-additional-options -foffload=nvptx-none'.
415         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
416         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
417         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
418         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
419         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
421 2023-11-29  Thomas Schwinge  <thomas@codesourcery.com>
423         * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
424         'scan-offload-ipa-dump's to
425         'only_for_offload_target amdgcn-amdhsa'.
426         * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
427         * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
429 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
431         * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
432         is now supported.
434 2023-11-22  Thomas Schwinge  <thomas@codesourcery.com>
436         * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
437         (f75, f80, f): Add '__attribute__ ((noipa))'.
438         * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
439         (gfx908, gfx90a, f): Likewise.
441 2023-11-15  Andrew Stubbs  <ams@codesourcery.com>
442             Andrew Jenner   <andrew@codesourcery.com>
444         * plugin/plugin-gcn.c (max_isa_vgprs): New.
445         (run_kernel): CDNA2 devices have more VGPRs.
447 2023-11-10  Tobias Burnus  <tobias@codesourcery.com>
449         * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
450         renamed section from TR11.
452 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
454         * config/linux/target-indirect.c: Move to...
455         * target-indirect.c: ...here.
457 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
459         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
460         * Makefile.in: Regenerate.
461         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
462         (GOMP_OFFLOAD_load_image): Add extra argument.
463         * libgomp.h (struct indirect_splay_tree_key_s): New.
464         (indirect_splay_tree_node, indirect_splay_tree,
465         indirect_splay_tree_key): New.
466         (indirect_splay_compare): New.
467         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
468         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
469         calls in target region and on indirect clause.
470         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
471         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
472         * oacc-host.c (host_load_image): Add extra argument.
473         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
474         enough, read host indirect functions table and pass to
475         load_image_func.
476         * config/accel/target-indirect.c: New.
477         * config/linux/target-indirect.c: New.
478         * config/gcn/team.c (build_indirect_map): Add prototype.
479         (gomp_gcn_enter_kernel): Initialize support for indirect
480         function calls on GCN target.
481         * config/nvptx/team.c (build_indirect_map): Add prototype.
482         (gomp_nvptx_main): Initialize support for indirect function
483         calls on NVPTX target.
484         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
485         indirect functions count.
486         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
487         is high enough, build address translation table and copy it to target
488         memory.
489         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
490         functions count.
491         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
492         is high enough, Build address translation table and copy it to target
493         memory.
494         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
495         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
496         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
498 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
500         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
501         supported also in C.
503 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
505         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
506         'acc_map_data' variant.
508 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
510         * oacc-parallel.c (GOACC_data_start): Handle
511         'GOACC_FLAG_LOCAL_DEVICE'.
512         (GOACC_parallel_keyed): Simplify accordingly.
513         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
515 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
517         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
518         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
519         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
520         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
521         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
523 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
525         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
526         GOACC_FLAG_LOCAL_DEVICE case.
527         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
529 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
531         * Makefile.am: Handle Darwin rpaths.
532         * Makefile.in: Regenerate.
533         * configure: Regenerate.
534         * configure.ac: Handle Darwin rpaths
536 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
538         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
539         (isa_hsa_name): Recognise gfx1030.
540         (isa_code): Likewise.
541         * team.c (defined): Remove s_endpgm.
543 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
545         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
546         _OPENMP >= 201811.
548 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
550         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
551         improve wording especially for Fortran; mention -fopenmp-simd.
552         (Enabling OpenACC): Minor cleanup; remove conditional compilation
553         sentinel.
555 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
557         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
558         Actually document what the function does.
559         (GCC_ACC_NOTIFY): Remove unused env var.
561 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
563         * libgomp.texi: Replace most future tense by present tense.
565 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
567         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
568         dg-additional-options "-fdump-tree-gimple"; fix scan.
570 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
572         * libgomp.texi: Fix some typos.
573         (Memory Management Routines): Document remaining 5.x routines.
574         (Memory allocation): Make clear when the section applies.
576 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
578         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
579         supports the allocate directive for stack variables.
580         * testsuite/libgomp.fortran/allocate-5.f90: New test.
581         * testsuite/libgomp.fortran/allocate-6.f90: New test.
582         * testsuite/libgomp.fortran/allocate-7.f90: New test.
583         * testsuite/libgomp.fortran/allocate-8.f90: New test.
585 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
587         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
588         OMP_TARGET_OFFLOAD.
589         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
590         clarify MANDATORY behavior.
592 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
594         * env.c (initialize_env): Use do_adjust_default_spincount.
595         * config/linux/x86/spincount.h: New file.
597 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
599         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
601 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
603         * libgomp.texi (Device Memory Routines): New.
605 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
607         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
608         and that other target archs have no 'arch'/'isa' traits implemented.
610 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
612         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
613         implemented for C only.
614         * testsuite/libgomp.c/allocate-4.c: New test.
615         * testsuite/libgomp.c/allocate-5.c: New test.
616         * testsuite/libgomp.c/allocate-6.c: New test.
618 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
620         PR c++/111392
621         * libgomp.texi: Mark decl attribute was added to the C++ attribute
622         syntax as implemented.
624 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
626         PR libgomp/111413
627         * env.c (initialize_env): Don't dereference environ if it is NULL.
628         Reindent.
630 2023-09-18  Richard Biener  <rguenther@suse.de>
632         PR tree-optimization/111294
633         * team.c (gomp_team_start): Assert alloca size to avoid false
634         positive alloc-size diagnostic.
636 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
637             Chung-Lin Tang  <cltang@codesourcery.com>
639         PR testsuite/91884
640         PR testsuite/109951
641         * configure.ac: Revert earlier changes, instead
642         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
643         * Makefile.in: Regenerate.
644         * configure: Likewise.
645         * testsuite/Makefile.in: Likewise.
646         * testsuite/lib/libgomp.exp (libgomp_init): Remove
647         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
648         If '--with-build-sysroot=[...]' was specified, use it for
649         build-tree testing.
650         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
651         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
652         (SYSROOT_CFLAGS_FOR_TARGET): Set.
653         * testsuite/libgomp.c++/c++.exp (lang_source_re)
654         (lang_include_flags): Set for build-tree testing.
655         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
656         (lang_include_flags): Likewise.
658 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
660         * libgomp.texi (Memory Management Routines): New; add documentation for
661         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
662         omp_get_default_allocator.
663         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
665 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
667         * target.c (gomp_unload_device): Remove tailing whitespace.
669 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
670             Thomas Schwinge  <thomas@codesourcery.com>
672         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
674 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
676         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
678 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
680         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
681         * testsuite/libgomp.fortran/imperfect1.f90: New.
682         * testsuite/libgomp.fortran/imperfect2.f90: New.
683         * testsuite/libgomp.fortran/imperfect3.f90: New.
684         * testsuite/libgomp.fortran/imperfect4.f90: New.
685         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
686         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
687         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
688         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
690 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
692         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
693         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
694         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
695         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
696         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
697         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
698         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
699         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
700         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
701         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
703 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
705         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
706         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
707         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
708         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
709         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
710         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
711         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
712         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
713         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
714         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
715         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
716         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
717         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
719 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
721         * testsuite/lib/libgomp.exp: Add effective target.
722         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
723         functions.
725 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
727         * libgomp.texi (OpenMP 5.2 status): Add depobj with
728         destroy-var argument as 'N'. Mark defaultmap with
729         'all' category as 'Y'.
731 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
733         PR middle-end/111017
734         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
736 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
738         PR libgomp/111024
739         * allocator.c (gomp_init_libnuma): Call numa_available; if
740         not available or not returning 0, disable libnuma usage.
742 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
744         * configure: Regenerate.
746 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
748         * configure: Regenerate.
750 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
752         * configure: Regenerate.
754 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
756         * configure: Regenerate.
758 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
760         * configure: Regenerate.
762 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
764         * configure: Regenerate.
766 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
768         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
769         GOMP_OFFLOAD_CAP_SHARED_MEM.
770         (omp_target_memcpy_rect_copy): Likewise for lock condition.
771         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
772         memcpy3d/memcpy2d.
773         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
774         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
775         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
777 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
779         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
780         GOMP_OFFLOAD_memcpy3d): New prototypes.
781         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
782         and memcpy3d_func.
783         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
784         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
785         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
786         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
787         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
788         GOMP_OFFLOAD_memcpy3d): New.
789         * target.c (omp_target_memcpy_rect_worker):
790         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
791         Permit all device-to-device copyies; invoke new plugins for
792         2D and 3D copying when available.
793         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
794         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
795         * testsuite/libgomp.fortran/target-12.f90: Likewise.
796         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
798 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
800         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
801         (Tasking Routines): Document omp_in_explicit_task.
802         (Implementation-defined ICV Initialization): Use @ref not @code.
804 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
806         * libgomp.texi (OpenMP Runtime Library Routines):
807         Split long list by adding sections and moving routines there.
808         (OMP_ALLOCATORS): Fix typo.
810 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
812         PR fortran/107424
813         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
814         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
815         commented tests.
816         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
817         test file; tests are in non-rectangular-loop-1.f90.
818         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
819         testcase to use a non-constant step to retain the 'sorry' test.
820         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
822 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
823             Chung-Lin Tang  <cltang@codesourcery.com>
825         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
826         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
828 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
830         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
831         the traits. Add crossref to 'Memory allocation'.
832         (Memory allocation): Refer to OMP_ALLOCATOR for the available
833         traits and allocators/mem spaces; document the default value
834         for the pool_size trait.
836 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
838         * allocator.c (omp_init_allocator): Check whether symbol from
839         dlopened libnuma is available before using libnuma for
840         allocations.
842 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
844         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
845         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
846         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
848 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
850         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
851         'Memory allocation' section which contains the full status.
852         (TR11): Remove differently worded duplicated entry.
854 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
856         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
857         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
858         add GOMP_MEMKIND_LIBNUMA.
859         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
860         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
861         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
862         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
863         needed.
864         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
865         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
866         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
867         updated for libnuma usage.
868         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
869         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
871 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
873         * allocator.c (omp_init_allocator): Use malloc for
874         omp_high_bw_mem_space when the memkind lib is unavailable
875         instead of returning omp_null_allocator.
876         * libgomp.texi (OpenMP 5.0): Fix typo.
877         (Memory allocation with libmemkind): Document implementation
878         in more detail.
880 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
882         * libgomp.texi: Use @var for ICV vars.
883         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
884         document which ICV is set and which scope the ICV has; extend/cleanup
885         some @ref.
886         (Implementation-defined ICV Initialization): New.
887         (nvptx): Document the implementation-defined used per-warp stack size.
889 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
891         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
892         error.
894 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
896         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
897         as expected dg-output.
899 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
901         PR middle-end/110270
902         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
903         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
904         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
905         * testsuite/libgomp.c/target-19.c: Update expected value.
906         * testsuite/libgomp.c++/target-18.C: Likewise.
907         * testsuite/libgomp.c++/target-19.C: Likewise.
908         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
909         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
910         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
912 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
914         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
915         gomp_init_targets_once was called before using default-device-var.
916         * testsuite/libgomp.c/target-55.c: New test.
917         * testsuite/libgomp.c/target-55a.c: New test.
919 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
921         * env.c (gomp_def_allocator_envvar): New var.
922         (parse_allocator): Handle OpenMP 5.1 syntax.
923         (cleanup_env): New.
924         (omp_display_env): Output gomp_def_allocator_envvar
925         for an allocator with traits.
926         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
927         OMP_DISPLAY_AFFINITY): New.
928         * testsuite/libgomp.c/allocator-1.c: New test.
929         * testsuite/libgomp.c/allocator-2.c: New test.
930         * testsuite/libgomp.c/allocator-3.c: New test.
931         * testsuite/libgomp.c/allocator-4.c: New test.
932         * testsuite/libgomp.c/allocator-5.c: New test.
933         * testsuite/libgomp.c/allocator-6.c: New test.
935 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
937         * target.c (resolve_device): Align a
938         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
939         * testsuite/libgomp.c/target-51.c: Adjust.
941 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
943         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
944         set.
945         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
946         Likewise.
947         * testsuite/libgomp.c/simd-math-1.c: Remove
948         '-foffload-options=-lm'.
949         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
950         Likewise.
951         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
952         Likewise.
954 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
956         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
957         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
958         Likewise.
960 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
962         * testsuite/libgomp.c/target-51.c: Fix typo.
964 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
966         * env.c (gomp_default_icv_values): Init default_device_var to
967         an nonconforming value - INT_MIN.
968         (initialize_env): After env-var parsing, set default_device_var to
969         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
970         (omp_display_env): If default_device_var is INT_MIN, call
971         gomp_init_targets_once.
972         * icv-device.c (omp_get_default_device): Likewise.
973         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
974         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
975         * target.c (resolve_device): Improve error message device-num < 0
976         with 'mandatory' and no no-host devices available.
977         (gomp_target_init): Set default-device-var if INT_MIN.
978         * testsuite/libgomp.c/target-48.c: New test.
979         * testsuite/libgomp.c/target-49.c: New test.
980         * testsuite/libgomp.c/target-50.c: New test.
981         * testsuite/libgomp.c/target-50a.c: New test.
982         * testsuite/libgomp.c/target-51.c: New test.
983         * testsuite/libgomp.c/target-52.c: New test.
984         * testsuite/libgomp.c/target-53.c: New test.
985         * testsuite/libgomp.c/target-54.c: New test.
987 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
989         PR libgomp/109837
990         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
991         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
993 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
995         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
996         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
997         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
998         error message.
999         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1000         changed error message.
1001         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1002         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1003         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1004         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1005         extend testcase to check that data is copied when needed.
1006         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1007         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1009 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
1010             Tobias Burnus  <tobias@codesourcery.com>
1012         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1013         also for non-offload_device targets; check that it runs
1014         successfully for those and for all until a checkpoint for all
1015         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1016         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1017         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1018         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1019         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1020         add missing vars to map clause.
1022 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
1024         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1025         unified_address requirement as supported.
1026         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1027         'unified_address' from the not-supported requirements.
1029 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
1030             Tobias Burnus  <tobias@codesourcery.com>
1032         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1033         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1034         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1035         modifier.
1036         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1037         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1038         Emit runtime error if memory region not present.
1039         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1040         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1041         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1042         * testsuite/libgomp.fortran/target-present-1.f90: New test.
1043         * testsuite/libgomp.fortran/target-present-2.f90: New test.
1044         * testsuite/libgomp.fortran/target-present-3.f90: New test.
1046 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1048         PR testsuite/66005
1049         * testsuite/lib/libgomp.exp: 'flock' through stdout.
1050         * testsuite/flock: New.
1051         * configure.ac (FLOCK): Point to that if no 'flock' available, but
1052         'perl' is.
1053         * configure: Regenerate.
1055 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1057         * configure.ac (PERL): Remove.
1058         * configure: Regenerate.
1059         * Makefile.in: Likewise.
1060         * testsuite/Makefile.in: Likewise.
1062 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
1064         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1066 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
1068         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1070 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
1072         PR libgomp/109875
1073         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1074         * config/nvptx/target.c (GOMP_teams4): Likewise.
1075         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1076         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1077         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1078         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1080 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
1082         PR libgomp/109904
1083         * configure.ac (link_gomp): Include also $DL_LIBS.
1084         * configure: Regenerated.
1086 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
1088         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1089         'target exit data'.
1090         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1091         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1092         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1093         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1095 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1097         PR testsuite/66005
1098         * configure.ac: Look for 'flock'.
1099         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1100         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1101         * testsuite/lib/libgomp.exp: ... but here, instead.
1102         (libgomp_load): Override for parallel testing.
1103         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1104         * configure: Regenerate.
1105         * Makefile.in: Regenerate.
1106         * testsuite/Makefile.in: Regenerate.
1108 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1109             Thomas Schwinge  <thomas@codesourcery.com>
1111         PR testsuite/66005
1112         * testsuite/Makefile.am (PWD_COMMAND): New variable.
1113         (%/site.exp): New target.
1114         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1115         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1116         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1117         (check_p_subdirs)
1118         (check_DEJAGNU_libgomp_targets): New variables.
1119         ($(check_DEJAGNU_libgomp_targets)): New target.
1120         ($(check_DEJAGNU_libgomp_targets)): New dependency.
1121         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1122         * testsuite/Makefile.in: Regenerate.
1123         * testsuite/lib/libgomp.exp: For parallel testing,
1124         'load_file ../libgomp-test-support.exp'.
1126 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1128         PR testsuite/91884
1129         * configure.ac: 'AC_SUBST(CXX)'.
1130         * configure: Regenerate.
1131         * Makefile.in: Likewise.
1132         * testsuite/Makefile.in: Likewise.
1133         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1134         (GFORTRAN_UNDER_TEST): Set.
1135         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1136         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1137         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1138         * testsuite/libgomp.fortran/fortran.exp: Use
1139         'GFORTRAN_UNDER_TEST'.
1140         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1142 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1144         PR testsuite/91884
1145         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1146         specify compiler.
1147         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1148         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1149         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1150         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1151         Likewise.
1152         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1153         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1154         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1155         Likewise.
1157 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
1159         PR libstdc++/109816
1160         * testsuite/libgomp.c++/target-map-class-1.C: New test.
1161         * testsuite/libgomp.c++/target-map-class-2.C: New test.
1163 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1165         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1166         'lang_library_path' into a list of 'lang_library_paths'.
1167         * testsuite/libgomp.c++/c++.exp: Adjust.
1168         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1169         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
1170         libquadmath, too.
1171         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1173 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1175         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1176         at 'lang_test_file_found'.
1177         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1178         'return' early if not able to test.  Simplify 'ld_library_path' setup.
1179         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1180         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1181         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1183 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1185         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1186         first.
1187         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1188         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1189         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1191 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1193         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1194         * testsuite/libgomp.c/c.exp: Likewise.
1195         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1196         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1197         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1198         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1199         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1201 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1203         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1204         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1205         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1206         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1207         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1208         'lang_test_file'.
1209         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1210         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1211         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1212         'lang_test_file_found' instead of 'lang_test_file'.
1214 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1216         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1217         set.
1218         * testsuite/libgomp.c++/c++.exp: Likewise.
1219         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1221 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1223         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1224         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1226 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1228         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1229         of 'libstdcxx_includes'.
1230         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1232 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1234         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1235         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1236         * libgomp.h (gomp_target_rev): Adjust.
1237         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1238         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1239         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1240         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1241         (rev_off_host_to_dev_cpy): Remove.
1242         (GOMP_OFFLOAD_run): Adjust.
1244 2023-05-04  Julian Brown  <julian@codesourcery.com>
1246         PR fortran/109622
1247         * testsuite/libgomp.fortran/pr109622.f90: Move test...
1248         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1249         vector length warning.
1250         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1251         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
1252         missing copyin/copyout variable. Ignore vector length warnings.
1253         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1254         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
1255         vector length warnings.
1256         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1258 2023-04-28  Julian Brown  <julian@codesourcery.com>
1260         PR fortran/109622
1261         * testsuite/libgomp.fortran/pr109622.f90: New test.
1262         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1263         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1265 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
1267         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1268         * testsuite/libgomp.c/scan-23.c: New test.
1269         * testsuite/libgomp.fortran/scan-2.f90: New test.
1271 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1273         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1274         weak_undefined options.
1276 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
1278         * libgomp.texi (Offload-Target Specifics): Grammar fix.
1280 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
1282         PR fortran/104949
1283         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1284         caveat/safeguard.
1286 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1288         PR libgomp/90596
1289         * target.c (gomp_map_vars_internal): Allow for
1290         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1291         * oacc-parallel.c (GOACC_parallel_keyed): Pass
1292         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1293         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1294         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1295         Adjust, simplify.
1296         (gomp_offload_free): Remove.
1297         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1298         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1299         (cuda_free_argmem): Remove.
1300         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1301         Adjust.
1303 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1305         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1306         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1307         data.
1309 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1311         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1312         'GOMP_MAP_IF_PRESENT'.
1313         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1314         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1315         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1316         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1317         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1318         testing.
1319         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1321 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1323         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1324         shortcut.
1326 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1328         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1329         another aspect of OpenACC 'async' semantics.
1331 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1333         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1334         position.
1335         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1336         Verify 'acc_ev_alloc', 'acc_ev_free'.
1338 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
1340         PR libgomp/109062
1341         * env.c (wait_policy): Initialize to -1.
1342         (initialize_icvs): Initialize icvs->wait_policy to -1.
1343         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1345 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
1347         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1349 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1350             Paul-Antoine Arras  <pa@codesourcery.com>
1352         * testsuite/libgomp.c/simd-math-1.c: New testcase.
1354 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
1356         PR middle-end/108546
1357         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1358         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1360 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1362         * testsuite/libgomp.fortran/alloc-10.f90: Use
1363         '-Wno-complain-wrong-lang'.
1364         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1365         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1366         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1367         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1368         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1369         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1370         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1371         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1372         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1373         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1374         Likewise.
1375         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1376         Likewise.
1377         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1378         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1379         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1380         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1381         'dg-prune-output'.
1383 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1385         * libgomp.texi: Fix typos - theads -> threads.
1387 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1389         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1390         comment typo and improve its wording.
1392 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1394         * target.c (gomp_target_rev): Dereference ptr
1395         to get device address.
1396         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1397         for unallocated allocatable.
1399 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1401         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1402         kind check.
1403         (GOMP_target_enter_exit_data): If the next map item is
1404         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1405         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1407 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
1409         PR fortran/107424
1410         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1411         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1412         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1413         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1414         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1415         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1417 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
1419         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1420         offloading compilation.
1422 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1424         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1425         freeing not allocated memory.
1426         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1428 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1430         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1431         reverse offload.
1432         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1433         reverse-offload requirement.
1435 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
1437         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1438         (DEFAULT_TEAM_ARENA_SIZE): New define.
1439         (struct heap): Move to this file.
1440         (struct kernargs_abi): Likewise.
1441         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1442         the kernargs.
1443         * libgomp.h: Include libgomp-gcn.h.
1444         (TEAM_ARENA_SIZE): Remove.
1445         (team_malloc): Update the error message.
1446         * plugin/plugin-gcn.c (struct kernargs): Move common content to
1447         struct kernargs_abi.
1448         (struct agent_info): Rename team arenas to ephemeral memories.
1449         (struct team_arena_list): Rename ....
1450         (struct ephemeral_memories_list): to this.
1451         (struct heap): Delete.
1452         (team_arena_size): New variable.
1453         (stack_size): New variable.
1454         (print_kernel_dispatch): Update debug messages.
1455         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1456         Read GCN_STACK_SIZE.
1457         (get_team_arena): Rename ...
1458         (configure_ephemeral_memories): ... to this, and set up stacks.
1459         (release_team_arena): Rename ...
1460         (release_ephemeral_memories): ... to this.
1461         (destroy_team_arenas): Rename ...
1462         (destroy_ephemeral_memories): ... to this.
1463         (create_kernel_dispatch): Add num_threads parameter.
1464         Adjust for kernargs_abi refactor and ephemeral memories.
1465         (release_kernel_dispatch): Adjust for ephemeral memories.
1466         (run_kernel): Pass thread-count to create_kernel_dispatch.
1467         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1468         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1470 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
1472         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1474 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1476         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1477         usage, remove unused -fdump-tree-original.
1478         * testsuite/libgomp.fortran/allocate-4.f90: New.
1480 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1482         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1483         (GCN): Add item about 'omp requires'.
1484         (nvptx): Likewise; add item about reverse offload.
1486 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
1488         PR fortran/108558
1489         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1491 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
1493         * libgomp.texi (OpenMP 5.0): Set non-rectangular
1494         loop nest back to 'P' as Fortran support is incomplete.
1496 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
1498         PR middle-end/108459
1499         * testsuite/libgomp.c/pr108459.c: New test.
1501 2023-01-17  Martin Liska  <mliska@suse.cz>
1503         * Makefile.in: Regenerate.
1504         * configure: Regenerate.
1506 2023-01-07  LIU Hao  <lh_mouse@126.com>
1508         PR middle-end/108300
1509         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1510         <windows.h>.
1512 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
1514         PR c++/108286
1515         * testsuite/libgomp.c++/pr108286.C: New test.
1517 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
1519         * libgomp.texi: Bump @copying's copyright year.
1521 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
1523         PR target/99555
1524         * config/nvptx/bar.c (generation_to_barrier): Remove.
1525         (futex_wait,futex_wake,do_spin,do_wait): Remove.
1526         (GOMP_WAIT_H): Remove.
1527         (#include "../linux/bar.c"): Remove.
1528         (gomp_barrier_wait_end): New function.
1529         (gomp_barrier_wait): Likewise.
1530         (gomp_barrier_wait_last): Likewise.
1531         (gomp_team_barrier_wait_end): Likewise.
1532         (gomp_team_barrier_wait): Likewise.
1533         (gomp_team_barrier_wait_final): Likewise.
1534         (gomp_team_barrier_wait_cancel_end): Likewise.
1535         (gomp_team_barrier_wait_cancel): Likewise.
1536         (gomp_team_barrier_cancel): Likewise.
1537         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1538         (gomp_barrier_init): Remove init of waiters, lock fields.
1539         (gomp_team_barrier_wake): Remove prototype, add new static inline
1540         function.
1542 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1544         PR c++/108180
1545         * testsuite/libgomp.c++/pr108180.C: New test.
1547 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1549         PR libfortran/108056
1550         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1551         accidentally added file.
1553 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1555         PR libfortran/108056
1556         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1558 2022-12-14  Julian Brown  <julian@codesourcery.com>
1560         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1561         test.
1563 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1565         * libgomp.h (struct target_mem_desc): Predeclare; move
1566         below after 'reverse_splay_tree_node' and add rev_array
1567         member.
1568         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1569         (reverse_splay_tree_node, reverse_splay_tree,
1570         reverse_splay_tree_key): New typedef.
1571         (struct gomp_device_descr): Add mem_map_rev member.
1572         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1573         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1574         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1575         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1576         splay_tree_callback but returning int not void.
1577         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1578         taking splay_tree_callback_stop as argument.
1579         * splay-tree.c (splay_tree_foreach_internal_lazy,
1580         splay_tree_foreach_lazy): New; but early exit if callback returns
1581         nonzero.
1582         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1583         (gomp_map_lookup_rev): New.
1584         (gomp_load_image_to_device): Handle reverse-offload function
1585         lookup table.
1586         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1587         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1588         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1589         gomp_map_cdata_lookup): New auxiliary structs and functions for
1590         gomp_target_rev.
1591         (gomp_target_rev): Implement reverse offloading and its mapping.
1592         (gomp_target_init): Init current_device.mem_map_rev.root.
1593         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1594         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1595         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1596         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1597         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1598         mapping of on-device allocated variables.
1600 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1602         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1603         item about 'align'; mark clause as 'Y' and directive as 'N'.
1604         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1605         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1607 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1609         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1610         allow processing of device-specific values.
1611         (omp_set_teams_thread_limit): Likewise.
1612         (ialias): Likewise.
1613         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1614         (omp_set_teams_thread_limit): Likewise.
1615         (ialias): Likewise.
1616         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1617         (ialias): Likewise.
1618         (omp_set_teams_thread_limit): Likewise.
1619         * icv.c (omp_set_teams_thread_limit): Removed.
1620         (omp_get_teams_thread_limit): Likewise.
1621         (ialias): Likewise.
1622         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1623         to the limitation of the number of teams.
1624         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1625         the number of teams by twice the number of compute units.
1626         (parse_target_attributes): Limit the number of teams on gcn offload
1627         devices.
1628         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1629         handling.
1630         (gomp_load_image_to_device): Added a size check for the ICVs struct
1631         variable.
1632         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1633         copy back the ICV values from device to host.
1634         (GOMP_target_ext): Update the number of teams and threads in the kernel
1635         args also considering device-specific values.
1636         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1637         of OMP_TEAMS_THREAD_LIMIT from the environment.
1638         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1639         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1640         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1641         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1642         * testsuite/libgomp.fortran/icv-5.f90: New test.
1643         * testsuite/libgomp.fortran/icv-6.f90: New test.
1645 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1647         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1648         (TR11): Add missing '@tab N @tab'.
1650 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1652         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1654 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1656         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1657         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1658         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1659         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1660         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1661         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1662         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1664 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1666         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1668 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1670         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1671         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1672         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1673         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1675 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1677         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1678         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1679         as valid and the code having no reverse-offload code.
1680         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1682 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1684         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1685         and status for Technical Report (TR) 11.
1687 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1689         * config/gcn/libgomp-gcn.h (struct output):
1690         Remove 'msg_u64' from the union, change
1691         value_u64[2] to value_u64[6].
1692         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1693         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1694         Likewise.
1696 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1698         * config/gcn/libgomp-gcn.h: New file; contains
1699         struct output, declared previously in plugin-gcn.c.
1700         * config/gcn/target.c: Include it.
1701         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1702         (GOMP_target_ext): Handle reverse offload.
1703         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1704         (struct kernargs): Replace struct def by the one
1705         from libgomp-gcn.h for output_data.
1706         (process_reverse_offload): New.
1707         (console_output): Call it.
1709 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1710             Andrew Stubbs  <ams@codesourcery.com>
1712         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1713         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1715 2022-11-14  Martin Liska  <mliska@suse.cz>
1717         Revert:
1718         2022-11-14  Martin Liska  <mliska@suse.cz>
1720         * doc/amd-radeon-gcn.rst: New file.
1721         * doc/conf.py: New file.
1722         * doc/copyright.rst: New file.
1723         * doc/cuda-streams-usage.rst: New file.
1724         * doc/enabling-openacc.rst: New file.
1725         * doc/enabling-openmp.rst: New file.
1726         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1727         * doc/first-invocation-openacc-library-api.rst: New file.
1728         * doc/funding.rst: New file.
1729         * doc/general-public-license-3.rst: New file.
1730         * doc/gnu-free-documentation-license.rst: New file.
1731         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1732         * doc/index.rst: New file.
1733         * doc/indices-and-tables.rst: New file.
1734         * doc/introduction.rst: New file.
1735         * doc/memory-allocation-with-libmemkind.rst: New file.
1736         * doc/nvptx.rst: New file.
1737         * doc/offload-target-specifics.rst: New file.
1738         * doc/openacc-environment-variables.rst: New file.
1739         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1740         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1741         * doc/openacc-environment-variables/accproflib.rst: New file.
1742         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1743         * doc/openacc-introduction.rst: New file.
1744         * doc/openacc-library-and-environment-variables.rst: New file.
1745         * doc/openacc-library-interoperability.rst: New file.
1746         * doc/openacc-profiling-interface.rst: New file.
1747         * doc/openacc-runtime-library-routines.rst: New file.
1748         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1749         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1750         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1751         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1752         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1753         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1754         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1755         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1756         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1757         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1758         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1759         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1760         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1761         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1762         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1763         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1764         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1765         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1766         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1767         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1768         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1769         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1770         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1771         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1772         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1773         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1774         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1775         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1776         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1777         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1778         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1779         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1780         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1781         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1782         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1783         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1784         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1785         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1786         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1787         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1788         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1789         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1790         * doc/openmp-context-selectors.rst: New file.
1791         * doc/openmp-environment-variables.rst: New file.
1792         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1793         * doc/openmp-environment-variables/gompdebug.rst: New file.
1794         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1795         * doc/openmp-environment-variables/gompspincount.rst: New file.
1796         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1797         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1798         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1799         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1800         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1801         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1802         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1803         * doc/openmp-environment-variables/ompnested.rst: New file.
1804         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1805         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1806         * doc/openmp-environment-variables/ompplaces.rst: New file.
1807         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1808         * doc/openmp-environment-variables/ompschedule.rst: New file.
1809         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1810         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1811         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1812         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1813         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1814         * doc/openmp-implementation-specifics.rst: New file.
1815         * doc/openmp-implementation-status.rst: New file.
1816         * doc/openmp-implementation-status/openmp-45.rst: New file.
1817         * doc/openmp-implementation-status/openmp-50.rst: New file.
1818         * doc/openmp-implementation-status/openmp-51.rst: New file.
1819         * doc/openmp-implementation-status/openmp-52.rst: New file.
1820         * doc/openmp-runtime-library-routines.rst: New file.
1821         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1822         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1823         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1824         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1825         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1826         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1827         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1828         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1829         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1830         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1831         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1832         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1833         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1834         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1835         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1836         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1837         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1838         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1839         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1840         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1841         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1842         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1843         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1844         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1845         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1846         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1847         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1848         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1849         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1850         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1851         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1852         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1853         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1854         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1855         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1856         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1857         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1858         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1859         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1860         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1861         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1862         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1863         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1864         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1865         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1866         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1867         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1868         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1869         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1870         * doc/reporting-bugs.rst: New file.
1871         * doc/the-libgomp-abi.rst: New file.
1872         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1873         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1874         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1875         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1876         New file.
1877         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1878         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1879         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1880         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1881         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1882         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1883         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1884         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1885         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1886         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1887         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1889 2022-11-14  Martin Liska  <mliska@suse.cz>
1891         Revert:
1892         2022-11-14  Martin Liska  <mliska@suse.cz>
1894         * Makefile.in: Support Sphinx based documentation.
1896 2022-11-14  Martin Liska  <mliska@suse.cz>
1898         Revert:
1899         2022-11-14  Martin Liska  <mliska@suse.cz>
1901         * libgomp.texi: Removed.
1903 2022-11-14  Martin Liska  <mliska@suse.cz>
1905         Revert:
1906         2022-11-14  Martin Liska  <mliska@suse.cz>
1908         * Makefile.in: Support --with-sphinx-build.
1909         * configure.ac: Likewise..
1910         * configure: Regenerate.
1912 2022-11-14  Martin Liska  <mliska@suse.cz>
1914         Revert:
1915         2022-11-09  Martin Liska  <mliska@suse.cz>
1917         * Makefile.in: Build info pages conditionally.
1919 2022-11-14  Martin Liska  <mliska@suse.cz>
1921         Revert:
1922         2022-11-14  Martin Liska  <mliska@suse.cz>
1924         * doc/amd-radeon-gcn.rst:
1925         Add trailing newline.
1926         * doc/copyright.rst:
1927         Add trailing newline.
1928         * doc/cuda-streams-usage.rst:
1929         Add trailing newline.
1930         * doc/enabling-openacc.rst:
1931         Add trailing newline.
1932         * doc/enabling-openmp.rst:
1933         Add trailing newline.
1934         * doc/first-invocation-nvidia-cublas-library-api.rst:
1935         Add trailing newline.
1936         * doc/first-invocation-openacc-library-api.rst:
1937         Add trailing newline.
1938         * doc/funding.rst:
1939         Add trailing newline.
1940         * doc/general-public-license-3.rst:
1941         Add trailing newline.
1942         * doc/gnu-free-documentation-license.rst:
1943         Add trailing newline.
1944         * doc/implementation-status-and-implementation-defined-behavior.rst:
1945         Add trailing newline.
1946         * doc/index.rst:
1947         Add trailing newline.
1948         * doc/indices-and-tables.rst:
1949         Add trailing newline.
1950         * doc/introduction.rst:
1951         Add trailing newline.
1952         * doc/memory-allocation-with-libmemkind.rst:
1953         Add trailing newline.
1954         * doc/nvptx.rst:
1955         Add trailing newline.
1956         * doc/offload-target-specifics.rst:
1957         Add trailing newline.
1958         * doc/openacc-environment-variables.rst:
1959         Add trailing newline.
1960         * doc/openacc-environment-variables/accdevicenum.rst:
1961         Add trailing newline.
1962         * doc/openacc-environment-variables/accdevicetype.rst:
1963         Add trailing newline.
1964         * doc/openacc-environment-variables/accproflib.rst:
1965         Add trailing newline.
1966         * doc/openacc-environment-variables/gccaccnotify.rst:
1967         Add trailing newline.
1968         * doc/openacc-introduction.rst:
1969         Add trailing newline.
1970         * doc/openacc-library-and-environment-variables.rst:
1971         Add trailing newline.
1972         * doc/openacc-library-interoperability.rst:
1973         Add trailing newline.
1974         * doc/openacc-profiling-interface.rst:
1975         Add trailing newline.
1976         * doc/openacc-runtime-library-routines.rst:
1977         Add trailing newline.
1978         * doc/openacc-runtime-library-routines/accasynctest.rst:
1979         Add trailing newline.
1980         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1981         Add trailing newline.
1982         * doc/openacc-runtime-library-routines/accattach.rst:
1983         Add trailing newline.
1984         * doc/openacc-runtime-library-routines/acccopyin.rst:
1985         Add trailing newline.
1986         * doc/openacc-runtime-library-routines/acccopyout.rst:
1987         Add trailing newline.
1988         * doc/openacc-runtime-library-routines/acccreate.rst:
1989         Add trailing newline.
1990         * doc/openacc-runtime-library-routines/accdelete.rst:
1991         Add trailing newline.
1992         * doc/openacc-runtime-library-routines/accdetach.rst:
1993         Add trailing newline.
1994         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1995         Add trailing newline.
1996         * doc/openacc-runtime-library-routines/accfree.rst:
1997         Add trailing newline.
1998         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1999         Add trailing newline.
2000         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2001         Add trailing newline.
2002         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2003         Add trailing newline.
2004         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2005         Add trailing newline.
2006         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2007         Add trailing newline.
2008         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2009         Add trailing newline.
2010         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2011         Add trailing newline.
2012         * doc/openacc-runtime-library-routines/acchostptr.rst:
2013         Add trailing newline.
2014         * doc/openacc-runtime-library-routines/accinit.rst:
2015         Add trailing newline.
2016         * doc/openacc-runtime-library-routines/accispresent.rst:
2017         Add trailing newline.
2018         * doc/openacc-runtime-library-routines/accmalloc.rst:
2019         Add trailing newline.
2020         * doc/openacc-runtime-library-routines/accmapdata.rst:
2021         Add trailing newline.
2022         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2023         Add trailing newline.
2024         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2025         Add trailing newline.
2026         * doc/openacc-runtime-library-routines/accondevice.rst:
2027         Add trailing newline.
2028         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2029         Add trailing newline.
2030         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2031         Add trailing newline.
2032         * doc/openacc-runtime-library-routines/accproflookup.rst:
2033         Add trailing newline.
2034         * doc/openacc-runtime-library-routines/accprofregister.rst:
2035         Add trailing newline.
2036         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2037         Add trailing newline.
2038         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2039         Add trailing newline.
2040         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2041         Add trailing newline.
2042         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2043         Add trailing newline.
2044         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2045         Add trailing newline.
2046         * doc/openacc-runtime-library-routines/accshutdown.rst:
2047         Add trailing newline.
2048         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2049         Add trailing newline.
2050         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2051         Add trailing newline.
2052         * doc/openacc-runtime-library-routines/accupdateself.rst:
2053         Add trailing newline.
2054         * doc/openacc-runtime-library-routines/accwait.rst:
2055         Add trailing newline.
2056         * doc/openacc-runtime-library-routines/accwaitall.rst:
2057         Add trailing newline.
2058         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2059         Add trailing newline.
2060         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2061         Add trailing newline.
2062         * doc/openmp-context-selectors.rst:
2063         Add trailing newline.
2064         * doc/openmp-environment-variables.rst:
2065         Add trailing newline.
2066         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2067         Add trailing newline.
2068         * doc/openmp-environment-variables/gompdebug.rst:
2069         Add trailing newline.
2070         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2071         Add trailing newline.
2072         * doc/openmp-environment-variables/gompspincount.rst:
2073         Add trailing newline.
2074         * doc/openmp-environment-variables/gompstacksize.rst:
2075         Add trailing newline.
2076         * doc/openmp-environment-variables/ompcancellation.rst:
2077         Add trailing newline.
2078         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2079         Add trailing newline.
2080         * doc/openmp-environment-variables/ompdisplayenv.rst:
2081         Add trailing newline.
2082         * doc/openmp-environment-variables/ompdynamic.rst:
2083         Add trailing newline.
2084         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2085         Add trailing newline.
2086         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2087         Add trailing newline.
2088         * doc/openmp-environment-variables/ompnested.rst:
2089         Add trailing newline.
2090         * doc/openmp-environment-variables/ompnumteams.rst:
2091         Add trailing newline.
2092         * doc/openmp-environment-variables/ompnumthreads.rst:
2093         Add trailing newline.
2094         * doc/openmp-environment-variables/ompplaces.rst:
2095         Add trailing newline.
2096         * doc/openmp-environment-variables/ompprocbind.rst:
2097         Add trailing newline.
2098         * doc/openmp-environment-variables/ompschedule.rst:
2099         Add trailing newline.
2100         * doc/openmp-environment-variables/ompstacksize.rst:
2101         Add trailing newline.
2102         * doc/openmp-environment-variables/omptargetoffload.rst:
2103         Add trailing newline.
2104         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2105         Add trailing newline.
2106         * doc/openmp-environment-variables/ompthreadlimit.rst:
2107         Add trailing newline.
2108         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2109         Add trailing newline.
2110         * doc/openmp-implementation-specifics.rst:
2111         Add trailing newline.
2112         * doc/openmp-implementation-status.rst:
2113         Add trailing newline.
2114         * doc/openmp-implementation-status/openmp-45.rst:
2115         Add trailing newline.
2116         * doc/openmp-implementation-status/openmp-50.rst:
2117         Add trailing newline.
2118         * doc/openmp-implementation-status/openmp-51.rst:
2119         Add trailing newline.
2120         * doc/openmp-implementation-status/openmp-52.rst:
2121         Add trailing newline.
2122         * doc/openmp-runtime-library-routines.rst:
2123         Add trailing newline.
2124         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2125         Add trailing newline.
2126         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2127         Add trailing newline.
2128         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2129         Add trailing newline.
2130         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2131         Add trailing newline.
2132         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2133         Add trailing newline.
2134         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2135         Add trailing newline.
2136         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2137         Add trailing newline.
2138         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2139         Add trailing newline.
2140         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2141         Add trailing newline.
2142         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2143         Add trailing newline.
2144         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2145         Add trailing newline.
2146         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2147         Add trailing newline.
2148         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2149         Add trailing newline.
2150         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2151         Add trailing newline.
2152         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2153         Add trailing newline.
2154         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2155         Add trailing newline.
2156         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2157         Add trailing newline.
2158         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2159         Add trailing newline.
2160         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2161         Add trailing newline.
2162         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2163         Add trailing newline.
2164         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2165         Add trailing newline.
2166         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2167         Add trailing newline.
2168         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2169         Add trailing newline.
2170         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2171         Add trailing newline.
2172         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2173         Add trailing newline.
2174         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2175         Add trailing newline.
2176         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2177         Add trailing newline.
2178         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2179         Add trailing newline.
2180         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2181         Add trailing newline.
2182         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2183         Add trailing newline.
2184         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2185         Add trailing newline.
2186         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2187         Add trailing newline.
2188         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2189         Add trailing newline.
2190         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2191         Add trailing newline.
2192         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2193         Add trailing newline.
2194         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2195         Add trailing newline.
2196         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2197         Add trailing newline.
2198         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2199         Add trailing newline.
2200         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2201         Add trailing newline.
2202         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2203         Add trailing newline.
2204         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2205         Add trailing newline.
2206         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2207         Add trailing newline.
2208         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2209         Add trailing newline.
2210         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2211         Add trailing newline.
2212         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2213         Add trailing newline.
2214         * doc/openmp-runtime-library-routines/omptestlock.rst:
2215         Add trailing newline.
2216         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2217         Add trailing newline.
2218         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2219         Add trailing newline.
2220         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2221         Add trailing newline.
2222         * doc/reporting-bugs.rst:
2223         Add trailing newline.
2224         * doc/the-libgomp-abi.rst:
2225         Add trailing newline.
2226         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2227         Add trailing newline.
2228         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2229         Add trailing newline.
2230         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2231         Add trailing newline.
2232         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2233         Add trailing newline.
2234         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2235         Add trailing newline.
2236         * doc/the-libgomp-abi/implementing-for-construct.rst:
2237         Add trailing newline.
2238         * doc/the-libgomp-abi/implementing-master-construct.rst:
2239         Add trailing newline.
2240         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2241         Add trailing newline.
2242         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2243         Add trailing newline.
2244         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2245         Add trailing newline.
2246         * doc/the-libgomp-abi/implementing-private-clause.rst:
2247         Add trailing newline.
2248         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2249         Add trailing newline.
2250         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2251         Add trailing newline.
2252         * doc/the-libgomp-abi/implementing-single-construct.rst:
2253         Add trailing newline.
2254         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2255         Add trailing newline.
2257 2022-11-14  Martin Liska  <mliska@suse.cz>
2259         Revert:
2260         2022-11-09  Martin Liska  <mliska@suse.cz>
2262         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2264 2022-11-14  Martin Liska  <mliska@suse.cz>
2266         Revert:
2267         2022-11-14  Martin Liska  <mliska@suse.cz>
2269         * doc/conf.py: Add newline at last line.
2271 2022-11-14  Martin Liska  <mliska@suse.cz>
2273         Revert:
2274         2022-11-14  Martin Liska  <mliska@suse.cz>
2276         PR other/107620
2277         * configure: Regenerate.
2278         * configure.ac: Always set sphinx-build.
2280 2022-11-13  Martin Liska  <mliska@suse.cz>
2282         PR other/107620
2283         * configure: Regenerate.
2284         * configure.ac: Always set sphinx-build.
2286 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
2288         PR libgomp/107641
2289         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2290         unsigned long.  Change type of upper from unsigned to unsigned long.
2292 2022-11-10  Martin Liska  <mliska@suse.cz>
2294         * doc/conf.py: Add newline at last line.
2296 2022-11-09  Martin Liska  <mliska@suse.cz>
2298         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2300 2022-11-09  Martin Liska  <mliska@suse.cz>
2302         * doc/amd-radeon-gcn.rst:
2303         Add trailing newline.
2304         * doc/copyright.rst:
2305         Add trailing newline.
2306         * doc/cuda-streams-usage.rst:
2307         Add trailing newline.
2308         * doc/enabling-openacc.rst:
2309         Add trailing newline.
2310         * doc/enabling-openmp.rst:
2311         Add trailing newline.
2312         * doc/first-invocation-nvidia-cublas-library-api.rst:
2313         Add trailing newline.
2314         * doc/first-invocation-openacc-library-api.rst:
2315         Add trailing newline.
2316         * doc/funding.rst:
2317         Add trailing newline.
2318         * doc/general-public-license-3.rst:
2319         Add trailing newline.
2320         * doc/gnu-free-documentation-license.rst:
2321         Add trailing newline.
2322         * doc/implementation-status-and-implementation-defined-behavior.rst:
2323         Add trailing newline.
2324         * doc/index.rst:
2325         Add trailing newline.
2326         * doc/indices-and-tables.rst:
2327         Add trailing newline.
2328         * doc/introduction.rst:
2329         Add trailing newline.
2330         * doc/memory-allocation-with-libmemkind.rst:
2331         Add trailing newline.
2332         * doc/nvptx.rst:
2333         Add trailing newline.
2334         * doc/offload-target-specifics.rst:
2335         Add trailing newline.
2336         * doc/openacc-environment-variables.rst:
2337         Add trailing newline.
2338         * doc/openacc-environment-variables/accdevicenum.rst:
2339         Add trailing newline.
2340         * doc/openacc-environment-variables/accdevicetype.rst:
2341         Add trailing newline.
2342         * doc/openacc-environment-variables/accproflib.rst:
2343         Add trailing newline.
2344         * doc/openacc-environment-variables/gccaccnotify.rst:
2345         Add trailing newline.
2346         * doc/openacc-introduction.rst:
2347         Add trailing newline.
2348         * doc/openacc-library-and-environment-variables.rst:
2349         Add trailing newline.
2350         * doc/openacc-library-interoperability.rst:
2351         Add trailing newline.
2352         * doc/openacc-profiling-interface.rst:
2353         Add trailing newline.
2354         * doc/openacc-runtime-library-routines.rst:
2355         Add trailing newline.
2356         * doc/openacc-runtime-library-routines/accasynctest.rst:
2357         Add trailing newline.
2358         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2359         Add trailing newline.
2360         * doc/openacc-runtime-library-routines/accattach.rst:
2361         Add trailing newline.
2362         * doc/openacc-runtime-library-routines/acccopyin.rst:
2363         Add trailing newline.
2364         * doc/openacc-runtime-library-routines/acccopyout.rst:
2365         Add trailing newline.
2366         * doc/openacc-runtime-library-routines/acccreate.rst:
2367         Add trailing newline.
2368         * doc/openacc-runtime-library-routines/accdelete.rst:
2369         Add trailing newline.
2370         * doc/openacc-runtime-library-routines/accdetach.rst:
2371         Add trailing newline.
2372         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2373         Add trailing newline.
2374         * doc/openacc-runtime-library-routines/accfree.rst:
2375         Add trailing newline.
2376         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2377         Add trailing newline.
2378         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2379         Add trailing newline.
2380         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2381         Add trailing newline.
2382         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2383         Add trailing newline.
2384         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2385         Add trailing newline.
2386         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2387         Add trailing newline.
2388         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2389         Add trailing newline.
2390         * doc/openacc-runtime-library-routines/acchostptr.rst:
2391         Add trailing newline.
2392         * doc/openacc-runtime-library-routines/accinit.rst:
2393         Add trailing newline.
2394         * doc/openacc-runtime-library-routines/accispresent.rst:
2395         Add trailing newline.
2396         * doc/openacc-runtime-library-routines/accmalloc.rst:
2397         Add trailing newline.
2398         * doc/openacc-runtime-library-routines/accmapdata.rst:
2399         Add trailing newline.
2400         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2401         Add trailing newline.
2402         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2403         Add trailing newline.
2404         * doc/openacc-runtime-library-routines/accondevice.rst:
2405         Add trailing newline.
2406         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2407         Add trailing newline.
2408         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2409         Add trailing newline.
2410         * doc/openacc-runtime-library-routines/accproflookup.rst:
2411         Add trailing newline.
2412         * doc/openacc-runtime-library-routines/accprofregister.rst:
2413         Add trailing newline.
2414         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2415         Add trailing newline.
2416         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2417         Add trailing newline.
2418         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2419         Add trailing newline.
2420         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2421         Add trailing newline.
2422         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2423         Add trailing newline.
2424         * doc/openacc-runtime-library-routines/accshutdown.rst:
2425         Add trailing newline.
2426         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2427         Add trailing newline.
2428         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2429         Add trailing newline.
2430         * doc/openacc-runtime-library-routines/accupdateself.rst:
2431         Add trailing newline.
2432         * doc/openacc-runtime-library-routines/accwait.rst:
2433         Add trailing newline.
2434         * doc/openacc-runtime-library-routines/accwaitall.rst:
2435         Add trailing newline.
2436         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2437         Add trailing newline.
2438         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2439         Add trailing newline.
2440         * doc/openmp-context-selectors.rst:
2441         Add trailing newline.
2442         * doc/openmp-environment-variables.rst:
2443         Add trailing newline.
2444         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2445         Add trailing newline.
2446         * doc/openmp-environment-variables/gompdebug.rst:
2447         Add trailing newline.
2448         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2449         Add trailing newline.
2450         * doc/openmp-environment-variables/gompspincount.rst:
2451         Add trailing newline.
2452         * doc/openmp-environment-variables/gompstacksize.rst:
2453         Add trailing newline.
2454         * doc/openmp-environment-variables/ompcancellation.rst:
2455         Add trailing newline.
2456         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2457         Add trailing newline.
2458         * doc/openmp-environment-variables/ompdisplayenv.rst:
2459         Add trailing newline.
2460         * doc/openmp-environment-variables/ompdynamic.rst:
2461         Add trailing newline.
2462         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2463         Add trailing newline.
2464         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2465         Add trailing newline.
2466         * doc/openmp-environment-variables/ompnested.rst:
2467         Add trailing newline.
2468         * doc/openmp-environment-variables/ompnumteams.rst:
2469         Add trailing newline.
2470         * doc/openmp-environment-variables/ompnumthreads.rst:
2471         Add trailing newline.
2472         * doc/openmp-environment-variables/ompplaces.rst:
2473         Add trailing newline.
2474         * doc/openmp-environment-variables/ompprocbind.rst:
2475         Add trailing newline.
2476         * doc/openmp-environment-variables/ompschedule.rst:
2477         Add trailing newline.
2478         * doc/openmp-environment-variables/ompstacksize.rst:
2479         Add trailing newline.
2480         * doc/openmp-environment-variables/omptargetoffload.rst:
2481         Add trailing newline.
2482         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2483         Add trailing newline.
2484         * doc/openmp-environment-variables/ompthreadlimit.rst:
2485         Add trailing newline.
2486         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2487         Add trailing newline.
2488         * doc/openmp-implementation-specifics.rst:
2489         Add trailing newline.
2490         * doc/openmp-implementation-status.rst:
2491         Add trailing newline.
2492         * doc/openmp-implementation-status/openmp-45.rst:
2493         Add trailing newline.
2494         * doc/openmp-implementation-status/openmp-50.rst:
2495         Add trailing newline.
2496         * doc/openmp-implementation-status/openmp-51.rst:
2497         Add trailing newline.
2498         * doc/openmp-implementation-status/openmp-52.rst:
2499         Add trailing newline.
2500         * doc/openmp-runtime-library-routines.rst:
2501         Add trailing newline.
2502         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2503         Add trailing newline.
2504         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2505         Add trailing newline.
2506         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2507         Add trailing newline.
2508         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2509         Add trailing newline.
2510         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2511         Add trailing newline.
2512         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2513         Add trailing newline.
2514         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2515         Add trailing newline.
2516         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2517         Add trailing newline.
2518         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2519         Add trailing newline.
2520         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2521         Add trailing newline.
2522         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2523         Add trailing newline.
2524         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2525         Add trailing newline.
2526         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2527         Add trailing newline.
2528         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2529         Add trailing newline.
2530         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2531         Add trailing newline.
2532         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2533         Add trailing newline.
2534         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2535         Add trailing newline.
2536         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2537         Add trailing newline.
2538         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2539         Add trailing newline.
2540         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2541         Add trailing newline.
2542         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2543         Add trailing newline.
2544         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2545         Add trailing newline.
2546         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2547         Add trailing newline.
2548         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2549         Add trailing newline.
2550         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2551         Add trailing newline.
2552         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2553         Add trailing newline.
2554         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2555         Add trailing newline.
2556         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2557         Add trailing newline.
2558         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2559         Add trailing newline.
2560         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2561         Add trailing newline.
2562         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2563         Add trailing newline.
2564         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2565         Add trailing newline.
2566         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2567         Add trailing newline.
2568         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2569         Add trailing newline.
2570         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2571         Add trailing newline.
2572         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2573         Add trailing newline.
2574         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2575         Add trailing newline.
2576         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2577         Add trailing newline.
2578         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2579         Add trailing newline.
2580         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2581         Add trailing newline.
2582         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2583         Add trailing newline.
2584         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2585         Add trailing newline.
2586         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2587         Add trailing newline.
2588         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2589         Add trailing newline.
2590         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2591         Add trailing newline.
2592         * doc/openmp-runtime-library-routines/omptestlock.rst:
2593         Add trailing newline.
2594         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2595         Add trailing newline.
2596         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2597         Add trailing newline.
2598         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2599         Add trailing newline.
2600         * doc/reporting-bugs.rst:
2601         Add trailing newline.
2602         * doc/the-libgomp-abi.rst:
2603         Add trailing newline.
2604         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2605         Add trailing newline.
2606         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2607         Add trailing newline.
2608         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2609         Add trailing newline.
2610         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2611         Add trailing newline.
2612         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2613         Add trailing newline.
2614         * doc/the-libgomp-abi/implementing-for-construct.rst:
2615         Add trailing newline.
2616         * doc/the-libgomp-abi/implementing-master-construct.rst:
2617         Add trailing newline.
2618         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2619         Add trailing newline.
2620         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2621         Add trailing newline.
2622         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2623         Add trailing newline.
2624         * doc/the-libgomp-abi/implementing-private-clause.rst:
2625         Add trailing newline.
2626         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2627         Add trailing newline.
2628         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2629         Add trailing newline.
2630         * doc/the-libgomp-abi/implementing-single-construct.rst:
2631         Add trailing newline.
2632         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2633         Add trailing newline.
2635 2022-11-09  Martin Liska  <mliska@suse.cz>
2637         * Makefile.in: Build info pages conditionally.
2639 2022-11-09  Martin Liska  <mliska@suse.cz>
2641         * Makefile.in: Support --with-sphinx-build.
2642         * configure.ac: Likewise..
2643         * configure: Regenerate.
2645 2022-11-09  Martin Liska  <mliska@suse.cz>
2647         * libgomp.texi: Removed.
2649 2022-11-09  Martin Liska  <mliska@suse.cz>
2651         * Makefile.in: Support Sphinx based documentation.
2653 2022-11-09  Martin Liska  <mliska@suse.cz>
2655         * doc/amd-radeon-gcn.rst: New file.
2656         * doc/conf.py: New file.
2657         * doc/copyright.rst: New file.
2658         * doc/cuda-streams-usage.rst: New file.
2659         * doc/enabling-openacc.rst: New file.
2660         * doc/enabling-openmp.rst: New file.
2661         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2662         * doc/first-invocation-openacc-library-api.rst: New file.
2663         * doc/funding.rst: New file.
2664         * doc/general-public-license-3.rst: New file.
2665         * doc/gnu-free-documentation-license.rst: New file.
2666         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2667         * doc/index.rst: New file.
2668         * doc/indices-and-tables.rst: New file.
2669         * doc/introduction.rst: New file.
2670         * doc/memory-allocation-with-libmemkind.rst: New file.
2671         * doc/nvptx.rst: New file.
2672         * doc/offload-target-specifics.rst: New file.
2673         * doc/openacc-environment-variables.rst: New file.
2674         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2675         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2676         * doc/openacc-environment-variables/accproflib.rst: New file.
2677         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2678         * doc/openacc-introduction.rst: New file.
2679         * doc/openacc-library-and-environment-variables.rst: New file.
2680         * doc/openacc-library-interoperability.rst: New file.
2681         * doc/openacc-profiling-interface.rst: New file.
2682         * doc/openacc-runtime-library-routines.rst: New file.
2683         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2684         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2685         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2686         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2687         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2688         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2689         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2690         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2691         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2692         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2693         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2694         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2695         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2696         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2697         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2698         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2699         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2700         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2701         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2702         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2703         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2704         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2705         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2706         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2707         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2708         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2709         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2710         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2711         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2712         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2713         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2714         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2715         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2716         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2717         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2718         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2719         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2720         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2721         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2722         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2723         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2724         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2725         * doc/openmp-context-selectors.rst: New file.
2726         * doc/openmp-environment-variables.rst: New file.
2727         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2728         * doc/openmp-environment-variables/gompdebug.rst: New file.
2729         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2730         * doc/openmp-environment-variables/gompspincount.rst: New file.
2731         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2732         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2733         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2734         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2735         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2736         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2737         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2738         * doc/openmp-environment-variables/ompnested.rst: New file.
2739         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2740         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2741         * doc/openmp-environment-variables/ompplaces.rst: New file.
2742         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2743         * doc/openmp-environment-variables/ompschedule.rst: New file.
2744         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2745         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2746         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2747         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2748         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2749         * doc/openmp-implementation-specifics.rst: New file.
2750         * doc/openmp-implementation-status.rst: New file.
2751         * doc/openmp-implementation-status/openmp-45.rst: New file.
2752         * doc/openmp-implementation-status/openmp-50.rst: New file.
2753         * doc/openmp-implementation-status/openmp-51.rst: New file.
2754         * doc/openmp-implementation-status/openmp-52.rst: New file.
2755         * doc/openmp-runtime-library-routines.rst: New file.
2756         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2757         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2758         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2759         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2760         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2761         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2762         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2763         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2764         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2765         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2766         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2767         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2768         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2769         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2770         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2771         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2772         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2773         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2774         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2775         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2776         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2777         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2778         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2779         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2780         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2781         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2782         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2783         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2784         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2785         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2786         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2787         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2788         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2789         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2790         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2791         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2792         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2793         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2794         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2795         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2796         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2797         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2798         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2799         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2800         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2801         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2802         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2803         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2804         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2805         * doc/reporting-bugs.rst: New file.
2806         * doc/the-libgomp-abi.rst: New file.
2807         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2808         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2809         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2810         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2811         New file.
2812         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2813         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2814         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2815         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2816         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2817         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2818         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2819         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2820         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2821         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2822         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2824 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2826         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2827         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2828         documentation.
2829         * plugin/configfrag.ac <enable_offload_targets>
2830         [*-intelmic-* | *-intelmicemul-*]: Remove.
2831         * configure: Regenerate.
2832         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2833         handling.
2834         (offload_target_to_openacc_device_type)
2835         [$offload_target = *-intelmic*]: Remove.
2836         (check_effective_target_offload_device_intel_mic)
2837         (check_effective_target_offload_device_any_intel_mic): Remove.
2838         * testsuite/libgomp.c-c++-common/on_device_arch.h
2839         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2840         (any_device_arch_intel_mic): Remove.
2841         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2842         'offload_device_any_intel_mic' XFAIL.
2843         * testsuite/libgomp.fortran/target10.f90: Likewise.
2845 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2847         * testsuite/libgomp.fortran/target-11.f90: New test.
2848         * testsuite/libgomp.fortran/target-13.f90: New test.
2850 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2852         PR libgomp/106643
2853         PR fortran/96668
2854         * oacc-mem.c (goacc_enter_data_internal): Support
2855         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2856         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2857         Adjust.
2858         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2860 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2862         PR libgomp/106643
2863         * oacc-mem.c (goacc_enter_data_internal): Support
2864         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2865         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2866         New.
2867         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2868         New.
2870 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2872         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2873         New.
2875 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2877         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2878         New.
2880 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2881             Thomas Schwinge  <thomas@codesourcery.com>
2883         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2885 2022-10-28  Julian Brown  <julian@codesourcery.com>
2886             Thomas Schwinge  <thomas@codesourcery.com>
2888         PR middle-end/90115
2889         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2890         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2891         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2892         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2893         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2895 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2897         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2898         'ptx_dev->rev_data'.
2900 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2902         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2903         'static' for this variable.
2904         * config/nvptx/libgomp-nvptx.h: New file.
2905         * config/nvptx/target.c: Include it.
2906         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2907         (GOMP_REV_OFFLOAD_VAR): Declare var.
2908         (GOMP_target_ext): Handle reverse offload.
2909         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2910         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2911         * target.c (gomp_target_rev): ... this new stub function.
2912         * libgomp.h (gomp_target_rev): Declare.
2913         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2914         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2915         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2916         (struct ptx_device): Add rev_data member.
2917         (nvptx_open_device): Remove async_engines query, last used in
2918         r10-304-g1f4c5b9b; add unified-address assert check.
2919         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2920         support.
2921         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2922         offload functions exist. Make offload var available
2923         on host and device.
2924         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2925         (GOMP_OFFLOAD_run): Handle reverse offload.
2927 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2929         PR tree-optimization/107195
2930         PR target/107344
2931         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2932         regions checking.
2934 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2936         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2937         New.
2938         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2939         on_device_arch_gcn): New.
2940         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2941         requires-4.c but using heap-allocated memory.
2943 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2945         PR target/105421
2946         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2948 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2950         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2951         '-foffload-options' syntax.
2953 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2955         * testsuite/libgomp.fortran/task-7.f90: New test.
2956         * testsuite/libgomp.fortran/task-8.f90: New test.
2957         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2958         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2959         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2960         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2961         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2963 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2965         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2966         in deprecation bullet.
2968 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2970         * omp.h.in (omp_in_explicit_task): Declare.
2971         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2972         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2973         * libgomp.map (OMP_5.2): New symbol version, export
2974         omp_in_explicit_task and omp_in_explicit_task_.
2975         * task.c (omp_in_explicit_task): New function.
2976         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2977         (omp_in_explicit_task_): New function.
2978         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2979         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2980         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2981         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2983 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2985         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2986         from within explicit task.
2987         * target.c (GOMP_target_ext): Likewise.
2988         * testsuite/libgomp.c/task-7.c: New test.
2989         * testsuite/libgomp.c/task-8.c: New test.
2990         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2991         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2993 2022-10-12  Martin Liska  <mliska@suse.cz>
2995         * configure: Regenerate.
2997 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2998             Olivier Hainque  <hainque@adacore.com>
3000         * configure: Regenerate.
3002 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
3004         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3006 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
3008         * libgomp.texi (Support begin/end declare target syntax in C/C++):
3009         Mark as implemented.
3011 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
3013         PR fortran/105318
3014         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3016 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
3018         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3019         for C/C++. Remove duplicated 'begin declare target' entry.
3021 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
3023         PR c/106981
3024         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3026 2022-09-14  Julian Brown  <julian@codesourcery.com>
3028         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3029         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3030         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3031         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3032         test to here, make "run" test.
3034 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
3036         PR libgomp/106906
3037         * env.c (get_icv_member_addr): Cast false to void * before assigning
3038         it to icv_addr[1], and comment the whole assignment out.
3040 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
3042         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3043         (nvptx): ... here.
3045 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3047         * libgomp.texi (Offload-Target Specifics: nvptx): Document
3048         that reverse offload requires >= -march=sm_35.
3049         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3050         with -misa=sm_35.
3051         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3052         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3053         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3054         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3055         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3057 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3059         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3060         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3062 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
3064         PR libgomp/106894
3065         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3066         (main): Avoid tests for which corresponding non-_ALL suffixed variable
3067         is in the environment, or for OMP_NUM_TEAMS on the device
3068         OMP_NUM_TEAMS_DEV_?.
3070 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
3072         * env.c (initialize_env): Include libiberty environ.h.
3074 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3076         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3077         function address table '$offload_func_table' if rev_fn_table
3078         is not NULL.
3080 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3082         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3083         .offload_func_table to populate rev_fn_table when requested.
3085 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3087         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3088         'uint64_t **rev_fn_table' argument.
3089         * oacc-host.c (host_load_image): Likewise.
3090         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3091         currently unused.
3092         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3093         * target.c (gomp_load_image_to_device): Update call but pass
3094         NULL for now.
3096 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
3098         PR libgomp/106894
3099         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3100         char * for dest[1] initialization from params[1].  Formatting fixes.
3102 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3104         PR fortran/106670
3105         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3107 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3109         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3110         section; move OpenMP Context Selectors from ...
3111         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3112         'nvptx' sections.
3114 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
3116         * config/gcn/icv-device.c (omp_get_default_device): Return device-
3117         specific ICV.
3118         (omp_get_max_teams): Added for GCN devices.
3119         (omp_set_num_teams): Likewise.
3120         (ialias): Likewise.
3121         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3122         specific ICV.
3123         (omp_get_max_teams): Added for NVPTX devices.
3124         (omp_set_num_teams): Likewise.
3125         (ialias): Likewise.
3126         * env.c (struct gomp_icv_list): New struct to store entries of initial
3127         ICV values.
3128         (struct gomp_offload_icv_list): New struct to store entries of device-
3129         specific ICV values that are copied to the device and back.
3130         (struct gomp_default_icv_values): New struct to store default values of
3131         ICVs according to the OpenMP standard.
3132         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3133         (print_env_var_error): Function that prints an error for invalid values
3134         for ICVs.
3135         (parse_unsigned_long_1): Removed getenv.  Generalized.
3136         (parse_unsigned_long): Likewise.
3137         (parse_int_1): Likewise.
3138         (parse_int): Likewise.
3139         (parse_int_secure): Likewise.
3140         (parse_unsigned_long_list): Likewise.
3141         (parse_target_offload): Likewise.
3142         (parse_bind_var): Likewise.
3143         (parse_stacksize): Likewise.
3144         (parse_boolean): Likewise.
3145         (parse_wait_policy): Likewise.
3146         (parse_allocator): Likewise.
3147         (omp_display_env): Extended to output different variants of environment
3148         variables.
3149         (print_schedule): New helper function for omp_display_env which prints
3150         the values of run_sched_var.
3151         (print_proc_bind): New helper function for omp_display_env which prints
3152         the values of proc_bind_var.
3153         (enum gomp_parse_type): Collection of types used for parsing environment
3154         variables.
3155         (ENTRY): Preprocess string lengths of environment variables.
3156         (OMP_VAR_CNT): Preprocess table size.
3157         (OMP_HOST_VAR_CNT): Likewise.
3158         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3159         number.
3160         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3161         (gomp_set_icv_flag): Sets a flag for a particular ICV.
3162         (print_device_specific_icvs): New helper function for omp_display_env to
3163         print device specific ICV values.
3164         (get_device_num): New helper function for parse_device_specific.
3165         Extracts the device number from an environment variable name.
3166         (get_icv_member_addr): Gets the memory address for a particular member
3167         of an ICV struct.
3168         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3169         (initialize_icvs): New function to initialize a gomp_initial_icvs
3170         struct.
3171         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3172         (startswith): Checks if a string starts with a given prefix.
3173         (initialize_env): Extended to parse the new syntax of environment
3174         variables.
3175         * icv-device.c (omp_get_max_teams): Added.
3176         (ialias): Likewise.
3177         (omp_set_num_teams): Likewise.
3178         * icv.c (omp_set_num_teams): Moved to icv-device.c.
3179         (omp_get_max_teams): Likewise.
3180         (ialias): Likewise.
3181         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3182         (GOMP_ADDITIONAL_ICVS): New target-side struct that
3183         holds the designated ICVs of the target device.
3184         * libgomp.h (enum gomp_icvs): Collection of ICVs.
3185         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3186         no suffix.
3187         (enum gomp_env_suffix): Collection of possible suffixes of environment
3188         variables.
3189         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3190         initial values.
3191         (struct gomp_default_icv):New struct to hold ICVs for which we need
3192         to store initial values.
3193         (struct gomp_icv_list): Definition of a linked list that is used for
3194         storing ICVs for the devices and also for _DEV, _ALL, and without
3195         suffix.
3196         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3197         a device.
3198         (struct gomp_offload_icv_list): Definition of a linked list that holds
3199         device-specific ICVs that are copied to devices.
3200         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3201         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3202         * libgomp.texi: Updated.
3203         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3204         further ICVs from the offload image.
3205         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3206         * target.c (gomp_get_offload_icv_item): Get a list item of
3207         gomp_offload_icv_list.
3208         (get_gomp_offload_icvs): New. Returns the ICV values
3209         depending on the device num and the variable hierarchy.
3210         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3211         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3212         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3213         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3214         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3215         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3216         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3218 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
3220         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3221         fully supported.
3222         * testsuite/libgomp.c/doacross-4.c: New test.
3223         * testsuite/libgomp.c/doacross-5.c: New test.
3224         * testsuite/libgomp.c/doacross-6.c: New test.
3225         * testsuite/libgomp.c/doacross-7.c: New test.
3227 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
3229         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3231 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
3233         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3234         refer to 'requires'.
3235         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3236         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3237         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3238         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3240 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3242         PR middle-end/106548
3243         * testsuite/libgomp.c/linear-2.c: New test.
3245 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3247         * splay-tree.h: Fix splay_* macro unsetting if
3248         splay_tree_prefix is defined.
3250 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
3252         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3254 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
3256         PR middle-end/106449
3257         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3259 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
3261         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3263 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
3265         PR middle-end/101551
3266         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3267         'offloading_enabled' diagnostics issue.
3269 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
3271         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3272         '_Pragma' diagnostics verification.
3274 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
3276         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3277         improved warning locations.
3278         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3280 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3282         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3283         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3284         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3285         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3286         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3288 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3290         * target.c (GOMP_offload_register, GOMP_offload_unregister):
3291         Denote as legacy entry points.
3292         * testsuite/lib/libgomp.exp
3293         (check_effective_target_offload_target_any): New proc.
3294         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3295         'offload_target_any'.
3296         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3297         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3298         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3300 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3302         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3303         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3305 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3307         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3309 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
3311         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3312         'data'.
3313         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
3315 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3316             Jakub Jelinek  <jakub@redhat.com>
3318         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3320 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3321             Chung-Lin Tang  <cltang@codesourcery.com>
3322             Thomas Schwinge  <thomas@codesourcery.com>
3324         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3325         omp_requires_mask arg.
3326         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3327         return -1 when device available but omp_requires_mask != 0.
3328         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3329         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3330         Update call.
3331         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3332         goacc_attach_host_thread_to_device, acc_get_num_devices,
3333         acc_set_device_num, get_property_any): Likewise.
3334         * target.c (omp_requires_mask): New global var.
3335         (gomp_requires_to_name): New.
3336         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3337         (gomp_target_init): Handle omp_requires_mask.
3338         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3339         (OpenMP 5.1): Add a missed item.
3340         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3341         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3342         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3343         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3344         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3345         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3346         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3347         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3348         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3349         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3350         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3351         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3352         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3353         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3354         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3355         * testsuite/libgomp.fortran/requires-1.f90: New test.
3357 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
3359         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3360         with fromto as implemented.
3362 2022-06-28  Martin Liska  <mliska@suse.cz>
3364         * acinclude.m4: Fix typo in mold linker detection.
3365         * Makefile.in: Regenerate.
3366         * configure: Regenerate.
3368 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
3369             Paul Iannetta  <piannetta@kalrayinc.com>
3371         PR libgomp/106045
3372         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3374 2022-06-17  Martin Liska  <mliska@suse.cz>
3376         * libgomp.texi: Add table header for new features of
3377         OpenMP 5.2.
3379 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
3381         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3382         q to ddress of an automatic variable.  Use -5 instead of -1 in
3383         omp_get_mapped_ptr call.  Add test with omp_initial_device.
3384         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3385         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
3386         Renumber stop arguments afterwards.
3388 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
3390         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3391         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3392         parameters.
3393         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3394         * target.c (resolve_device): Add remapped argument, handle
3395         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3396         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3397         if remapped, otherwise treat omp_initial_device that way.  For
3398         omp_invalid_device, always emit gomp_fatal, even when
3399         OMP_TARGET_OFFLOAD isn't mandatory.
3400         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3401         GOMP_target_update, GOMP_target_update_ext,
3402         GOMP_target_enter_exit_data): Pass true as remapped argument to
3403         resolve_device.
3404         (omp_target_alloc, omp_target_free, omp_target_is_present,
3405         omp_target_memcpy_check, omp_target_associate_ptr,
3406         omp_target_disassociate_ptr, omp_get_mapped_ptr,
3407         omp_target_is_accessible): Pass false as remapped argument to
3408         resolve_device.  Treat omp_initial_device the same as
3409         gomp_get_num_devices ().  Don't bypass resolve_device calls if
3410         device_num is negative.
3411         (omp_pause_resource): Treat omp_initial_device the same as
3412         gomp_get_num_devices ().  Call resolve_device.
3413         * icv-device.c (omp_set_default_device): Always set to device_num
3414         even when it is negative.
3415         * libgomp.texi: Document that Conforming device numbers,
3416         omp_initial_device and omp_invalid_device is implemented.
3417         * testsuite/libgomp.c/target-41.c (main): Add test with
3418         omp_initial_device.
3419         * testsuite/libgomp.c/target-45.c: New test.
3420         * testsuite/libgomp.c/target-46.c: New test.
3421         * testsuite/libgomp.c/target-47.c: New test.
3422         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3423         test with omp_initial_device.  Use -5 instead of -1 for negative value
3424         test.
3425         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3426         Likewise.  Reorder stop numbers.
3428 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
3430         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3431         rather than "libmemkind.so".
3433 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3435         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3436         * plugin/configfrag.ac (--with-cuda-driver)
3437         (--with-cuda-driver-include, --with-cuda-driver-lib)
3438         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3439         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3440         Remove.
3441         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3442         (cuda_driver_lib): Remove.
3443         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3444         * Makefile.in: Regenerate.
3445         * configure: Likewise.
3446         * testsuite/Makefile.in: Likewise.
3448 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3450         * config/linux/allocator.c: Fix up #include directive.
3452 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3454         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3455         (enum gomp_memkind_kind): New type.
3456         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3457         is defined.
3458         (struct gomp_memkind_data): New type.
3459         (memkind_data, memkind_data_once): New variables.
3460         (gomp_init_memkind, gomp_get_memkind): New functions.
3461         (omp_init_allocator): Initialize data.memkind, don't fail for
3462         omp_high_bw_mem_space if libmemkind supports it.
3463         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3464         memkind support of LIBGOMP_USE_MEMKIND is defined.
3465         * config/linux/allocator.c: New file.
3467 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
3469         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3470         * testsuite/libgomp.fortran/scope-2.f90: New test.
3472 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
3474         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3476 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
3478         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3479         scope construct with allocate clause.
3480         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3481         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3483 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
3485         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3486         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3487         explicit 'to' and 'enter' clause.
3488         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3490 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
3492         PR libgomp/105745
3493         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3494         defined(HAVE__ALIGNED_MALLOC) case.
3495         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3496         handling as last option before fallback instead of first.
3497         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3498         _aligned_free.
3500 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
3502         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3503         clauses to enter.
3504         * testsuite/libgomp.c/target-41.c: Likewise.
3506 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
3508         * libgomp.texi (Other new OpenMP 5.1 features): Add
3509         'begin declare target'.
3510         (Other new OpenMP 5.2 features): New.
3512 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
3514         * task.c (gomp_task_run_post_handle_dependers): If empty_task
3515         is the last task taskwait depend depends on, wake it up.
3516         Similarly if it is the last child of a taskgroup, use atomic
3517         store instead of decrement and awak taskgroup wait if any.
3518         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3520 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
3522         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3523         EF_AMDGPU_MACH_AMDGCN_GFX90a.
3524         (gcn_gfx90a_s): New.
3525         (isa_hsa_name): Support gfx90a.
3526         (isa_code): Likewise.
3528 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
3530         PR c/105378
3531         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3532         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3534 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3536         PR c/105378
3537         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3538         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3539         * task.c (empty_task): New function.
3540         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3541         (gomp_task_run_post_handle_depend): Declare.
3542         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3543         for.
3544         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3545         (GOMP_taskwait_depend_nowait): New function.
3546         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3548 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3550         PR fortran/104949
3551         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3552         Support attach for GOMP_MAP_FIRSTPRIVATE.
3553         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3554         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3555         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3557 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3559         * libgomp.map: Added omp_target_memcpy_async and
3560         omp_target_memcpy_rect_async.
3561         * libgomp.texi: Both functions are now supported.
3562         * omp.h.in: Added omp_target_memcpy_async and
3563         omp_target_memcpy_rect_async.
3564         * omp_lib.f90.in: Added interfaces for both new functions.
3565         * omp_lib.h.in: Likewise.
3566         * target.c (ialias_redirect): Added for GOMP_task.
3567         (omp_target_memcpy): Restructured into check and copy part.
3568         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3569         omp_target_memcpy_async that checks requirements.
3570         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3571         omp_target_memcpy_async that performs the memcpy.
3572         (omp_target_memcpy_async_helper): New helper function that is used in
3573         omp_target_memcpy_async for the asynchronous task.
3574         (omp_target_memcpy_async): Added.
3575         (omp_target_memcpy_rect): Restructured into check and copy part.
3576         (omp_target_memcpy_rect_check): New helper function for
3577         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3578         requirements.
3579         (omp_target_memcpy_rect_copy): New helper function for
3580         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3581         the memcpy.
3582         (omp_target_memcpy_rect_async_helper): New helper function that is used
3583         in omp_target_memcpy_rect_async for the asynchronous task.
3584         (omp_target_memcpy_rect_async): Added.
3585         * task.c (ialias): Added for GOMP_task.
3586         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3587         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3588         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3589         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3590         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3591         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3592         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3593         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3595 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3597         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3598         (OpenMP Context Selectors): Add missing comma.
3599         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3600         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3601         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3602         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3604 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3606         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3607         comment for omp_display_env feature.
3609 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3611         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3612         to document OpenMP context selectors.
3614 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3616         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3617         from bool to unsigned char.
3618         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3619         Ignore dependencies where
3620         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3621         rather than just task->depend[i].is_in && ent->is_in.  Remember
3622         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3623         conditional.
3624         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3625         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3626         rather than just elem.is_in && ent->is_in.
3627         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3628         inoutset depend-kind.
3629         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3630         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3631         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3633 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3635         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3637 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3639         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3640         * testsuite/libgomp.fortran/depend-5.f90: New test.
3641         * testsuite/libgomp.fortran/depend-6.f90: New test.
3642         * testsuite/libgomp.fortran/depend-7.f90: New test.
3644 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3646         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3647         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3648         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3650 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3652         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3654 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3656         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3658 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3660         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3661         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3662         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3663         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3664         * Makefile.in: Regenerate.
3666 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3668         * Makefile.am (libgomp_la_LIBADD): Initialize.
3669         * plugin/configfrag.ac (DL_LIBS): New.
3670         (PLUGIN_GCN_LIBS): Remove.
3671         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3672         * plugin/Makefrag.am (libgomp_la_LIBADD)
3673         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3674         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3675         * Makefile.in: Regenerate.
3676         * config.h.in: Likewise.
3677         * configure: Likewise.
3678         * testsuite/Makefile.in: Likewise.
3680 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3682         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3683         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3684         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3685         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3686         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3687         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3688         * Makefile.in: Regenerate.
3689         * config.h.in: Likewise.
3690         * configure: Likewise.
3692 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3694         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3695         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3696         * Makefile.in: Regenerate.
3697         * config.h.in: Likewise.
3698         * configure: Likewise.
3699         * testsuite/Makefile.in: Likewise.
3701 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3703         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3704         * task.c (gomp_init_task): Initialize depend_all_memory.
3705         (gomp_task_handle_depend): Handle omp_all_memory.
3706         (gomp_task_run_post_handle_depend_hash): Clear
3707         parent->depend_all_memory if equal to current task.
3708         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3709         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3710         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3711         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3713 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3715         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3716         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3717         * Makefile.in: Regenerate.
3718         * configure: Likewise.
3719         * testsuite/Makefile.in: Likewise.
3721 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3723         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3724         consider 'PLUGIN_GCN_CPPFLAGS'.
3725         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3726         'PLUGIN_GCN_LDFLAGS'.
3727         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3728         Remove.
3729         * Makefile.in: Regenerate.
3730         * configure: Likewise.
3731         * testsuite/Makefile.in: Likewise.
3733 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3735         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3736         (HSA_RUNTIME_LDFLAGS): Remove.
3737         * configure: Regenerate.
3739 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3741         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3742         'append always_ld_library_path ":$hsa_runtime_lib"'.
3743         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3745 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3747         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3748         multi-device testing.
3750 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3752         * libgomp.map: Added omp_target_is_accessible.
3753         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3754         * omp.h.in: Added omp_target_is_accessible.
3755         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3756         * omp_lib.h.in: Likewise.
3757         * target.c (omp_target_is_accessible): Added implementation of
3758         omp_target_is_accessible.
3759         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3760         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3762 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3764         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3766 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3768         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3770 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3772         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3774 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3776         * libgomp.map: Added omp_get_mapped_ptr.
3777         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3778         * omp.h.in: Added omp_get_mapped_ptr.
3779         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3780         * omp_lib.h.in: Likewise.
3781         * target.c (omp_get_mapped_ptr): Added implementation of
3782         omp_get_mapped_ptr.
3783         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3784         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3785         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3786         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3787         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3788         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3789         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3790         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3792 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3794         PR fortran/104717
3795         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3796         privatization scanning.  For GCN offloading compilation, raise
3797         '-mgang-private-size'.
3799 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3801         PR libgomp/105358
3802         * work.c (gomp_init_work_share): Don't mask of adjustment for
3803         dynamic long long realignment if struct gomp_work_share has smaller
3804         alignof than long long.
3805         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3806         struct gomp_work_share has smaller alignof than long long or if
3807         sizeof (struct gomp_work_share) is smaller than
3808         INLINE_ORDERED_TEAM_IDS_OFF.
3809         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3810         * sections.c (GOMP_sections2_start): Likewise.
3812 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3813             Thomas Schwinge  <thomas@codesourcery.com>
3815         PR fortran/104717
3816         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3818 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3820         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3822 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3824         * plugin/cuda/cuda.h: Remove file.
3825         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3826         "cuda/cuda.h" instead of <cuda.h>.
3827         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3828         'PLUGIN_NVPTX_CPPFLAGS'.
3829         * configure: Regenerate.
3831 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3833         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3835 2022-04-04  Tom de Vries  <tdevries@suse.de>
3837         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3838         on_device_arch_nvptx instead of offload_target_nvptx.
3839         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3841 2022-04-01  Tom de Vries  <tdevries@suse.de>
3843         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3844         and use REC_DEPTH.
3845         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3847 2022-04-01  Tom de Vries  <tdevries@suse.de>
3849         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3850         num_workers check.
3852 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3853             Lulu Cheng  <chenglulu@loongson.cn>
3855         * configure.tgt: Add LoongArch triplet.
3857 2022-03-28  Tom de Vries  <tdevries@suse.de>
3859         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3860         instead of /libexec/.
3861         * configure: Regenerate.
3863 2022-03-25  Tom de Vries  <tdevries@suse.de>
3865         PR libgomp/105042
3866         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3867         execution time.
3868         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3869         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3871 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3873         PR middle-end/104285
3874         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3875         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3876         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3877         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3878         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3879         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3881 2022-03-22  Tom de Vries  <tdevries@suse.de>
3883         PR target/104916
3884         PR target/104783
3885         * testsuite/libgomp.c/pr104783-2.c: New test.
3887 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3889         PR fortran/103039
3890         * testsuite/libgomp.fortran/associate4.f90: New test.
3892 2022-03-18  Tom de Vries  <tdevries@suse.de>
3894         PR target/104952
3895         * testsuite/libgomp.c/pr104952-1.c: New test.
3896         * testsuite/libgomp.c/pr104952-2.c: New test.
3898 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3900         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3901         variable next to pl variable.
3903 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3905         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3906         Enhance.
3907         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3908         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3910 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3912         PR middle-end/90115
3913         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3914         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3916 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3918         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3919         omp_set_max_active_levels.
3920         * testsuite/libgomp.fortran/icv-8.f90: New test.
3922 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3924         PR testsuite/102841
3925         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3927 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3929         * libgomp.texi: Fix typo.
3931 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3933         PR middle-end/100280
3934         PR middle-end/104892
3935         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3936         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3937         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3938         Likewise.
3939         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3940         Likewise.
3941         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3942         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3943         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3944         Likewise.
3946 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3948         PR middle-end/104892
3949         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3950         to PR104892.
3951         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3952         enable '--param=openacc-kernels=decompose' and adjust.
3953         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3954         Likewise.
3955         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3956         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3957         Likewise.
3959 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3961         PR middle-end/90115
3962         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3963         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3964         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3965         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3967 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3969         PR middle-end/100280
3970         PR middle-end/104086
3971         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3972         Merge this...
3973         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3974         ..., and this...
3975         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3976         this, and adjust.
3977         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3978         Extend.
3980 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3982         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3983         trait.  Test last index in w and v array.  Remove redundant
3984         assignment to V(1).  Move alignment checks at the end of
3985         parallel region.
3987 2022-03-10  Tom de Vries  <tdevries@suse.de>
3989         * testsuite/libgomp.c/pr104783.c: New test.
3991 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3993         PR middle-end/90115
3994         PR middle-end/102330
3995         PR middle-end/104774
3996         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3997         Enhance.
3998         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3999         Adjust.
4000         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4001         Likewise.
4002         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4003         Likewise.
4004         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4005         Likewise.
4006         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4007         Likewise.
4008         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4009         Likewise.
4010         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4011         Likewise.
4012         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4013         Likewise.
4014         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4015         Likewise.
4016         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4017         Likewise.
4018         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4019         Likewise.
4020         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4021         Likewise.
4022         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4023         Likewise.
4024         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4025         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4026         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4028 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4030         PR middle-end/90115
4031         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4032         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4033         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4034         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4036 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4038         PR testsuite/104791
4039         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4040         expected diagnostics.
4042 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4044         PR middle-end/104784
4045         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4046         Test with '--param=openacc-kernels=decompose'.
4047         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4048         Likewise.
4049         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4050         Likewise.
4051         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4052         Likewise.
4053         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4054         Likewise.
4055         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4056         Likewise.
4057         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4058         Likewise.
4059         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4060         Likewise.
4061         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4062         Likewise.
4063         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4064         Likewise.
4065         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4066         Likewise.
4067         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4068         Likewise.
4069         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4070         Likewise.
4071         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4072         Likewise.
4073         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4074         Likewise.
4075         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4076         Likewise.
4077         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4078         Likewise.
4079         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4080         Likewise.
4081         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4082         Likewise.
4083         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4084         Likewise.
4085         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4086         Likewise.
4087         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4088         Likewise.
4089         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4090         Likewise.
4091         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4092         Likewise.
4093         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4094         Likewise.
4095         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4096         Likewise.
4097         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4098         Likewise.
4099         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4100         Likewise.
4101         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4102         Likewise.
4103         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4104         Likewise.
4105         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4106         Likewise.
4107         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4108         Likewise.
4109         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4110         Likewise.
4112 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4115         Test '-fopt-info-omp-all'.
4116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4117         Likewise.
4118         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4119         Likewise.
4120         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4121         Likewise.
4122         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4123         Likewise.
4124         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4125         Likewise.
4126         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4127         Likewise.
4128         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4129         Likewise.
4130         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4131         Likewise.
4132         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4133         Likewise.
4134         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4135         Likewise.
4136         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4137         Likewise.
4138         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4139         Likewise.
4140         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4141         Likewise.
4142         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4143         Likewise.
4144         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4145         Likewise.
4146         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4147         Likewise.
4148         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4149         Likewise.
4150         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4151         Likewise.
4152         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4153         Likewise.
4154         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4155         Likewise.
4156         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4157         Likewise.
4158         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4159         Likewise.
4160         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4161         Likewise.
4162         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4163         Likewise.
4164         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4165         Likewise.
4166         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4167         Likewise.
4168         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4169         Likewise.
4170         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4171         Likewise.
4172         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4173         Likewise.
4174         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4175         Likewise.
4176         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4177         Likewise.
4178         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4179         Likewise.
4181 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4183         PR middle-end/100280
4184         PR middle-end/104132
4185         PR middle-end/104133
4186         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4187         Extend.
4189 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4191         PR middle-end/100280
4192         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4193         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4194         Likewise.
4196 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4198         PR middle-end/100280
4199         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4200         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4201         Likewise.
4203 2022-02-28  Tom de Vries  <tdevries@suse.de>
4205         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4206         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4207         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4208         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4209         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4210         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4212 2022-02-24  Tom de Vries  <tdevries@suse.de>
4214         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4215         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4216         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4217         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4218         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4219         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4220         * testsuite/libgomp.c/declare-variant-3.h: New header file.
4222 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
4224         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4225         gang-redundant execution.
4227 2022-02-22  Tom de Vries  <tdevries@suse.de>
4229         PR target/99555
4230         * config/nvptx/bar.c (generation_to_barrier): New function, copied
4231         from config/rtems/bar.c.
4232         (futex_wait, futex_wake): New function.
4233         (do_spin, do_wait): New function, copied from config/linux/wait.h.
4234         (gomp_barrier_wait_end, gomp_barrier_wait_last)
4235         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4236         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4237         and replace with include of config/linux/bar.c.
4238         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4239         (gomp_barrier_init): Init new fields.
4240         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4241         workarounds.
4242         * testsuite/libgomp.c/pr99555-1.c: Same.
4243         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4245 2022-02-22  Tom de Vries  <tdevries@suse.de>
4247         PR testsuite/104146
4248         * testsuite/libgomp.c++/pr96390.C: Add additional-option
4249         -foffload=-Wa,--verify for nvptx.
4250         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4252 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
4254         * testsuite/libgomp.fortran/depend-4.f90: New test.
4256 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
4258         PR c++/102204
4259         * testsuite/libgomp.c++/target-virtual-1.C: New test.
4261 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
4263         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4264         * target.c (copy_firstprivate_data): Copy only if host address is not
4265         NULL.
4266         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4267         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4268         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4269         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4270         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4271         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4272         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4273         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4274         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4275         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4277 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
4279         PR libgomp/104385
4280         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4281         clear task->parent.
4282         * testsuite/libgomp.c/pr104385.c: New test.
4284 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4286         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4287         STOP of previous commit.
4289 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4291         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4292         from is_64bit_aligned_.
4293         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4294         and use it, more implicit none, remove unused argument.
4296 2022-02-03  David Seifert  <soap@gentoo.org>
4297             Jakub Jelinek  <jakub@redhat.com>
4299         * configure.ac: Support --disable-werror.
4300         * configure: Regenerate.
4302 2022-02-01  Tom de Vries  <tdevries@suse.de>
4304         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4305         PR83812 workaround.
4306         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4307         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4309 2022-02-01  Tom de Vries  <tdevries@suse.de>
4311         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4312         num_workers for nvidia accelerator to fix libgomp error 'insufficient
4313         resources'.
4314         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4315         Same.
4316         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4318 2022-02-01  Tom de Vries  <tdevries@suse.de>
4320         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4321         recursion depth.
4322         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4324 2022-01-31  Martin Liska  <mliska@suse.cz>
4326         * acinclude.m4: Detect *_ld_is_mold and use it.
4327         * configure: Regenerate.
4329 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
4331         * libgomp.texi (OpenMP 5.0): Update implementation status.
4333 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
4335         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4336         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4337         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4338         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4339         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4340         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4341         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4342         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4343         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4344         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4345         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4346         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4347         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4348         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4349         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4351 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
4353         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4354         "static") to make the device num available in the offload image.
4356 2022-01-19  Martin Liska  <mliska@suse.cz>
4357             Thomas Schwinge  <thomas@codesourcery.com>
4359         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4360         patterns.
4361         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4362         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4363         Likewise.
4364         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4365         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4366         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4367         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4368         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4369         Likewise.
4370         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4371         Likewise.
4372         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4373         Likewise.
4374         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4375         Likewise.
4376         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4377         Likewise.
4378         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4379         Likewise.
4380         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4381         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4382         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4384 2022-01-18  Martin Liska  <mliska@suse.cz>
4386         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4387         in dg-warning.
4388         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4389         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4390         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4391         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4392         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4393         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4394         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4395         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4396         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4397         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4398         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4399         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4400         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4401         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4402         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4404 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
4406         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4407         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4408         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4410 2022-01-17  Julian Brown  <julian@codesourcery.com>
4411             Thomas Schwinge  <thomas@codesourcery.com>
4413         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4414         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4415         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4417 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
4418             Andrew Stubbs   <ams@codesourcery.com>
4420         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4421         the number of teams and threads if necessary.
4422         (gcn_exec): Automatically set the number of gangs and workers if
4423         necessary.
4425 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4427         * testsuite/libgomp.fortran/allocate-1.c: New test.
4428         * testsuite/libgomp.fortran/allocate-1.f90: New test.
4429         * libgomp.texi: Remove string that says that allocate clause
4430         support is for C/C++ only.
4432 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4434         * testsuite/libgomp.c-c++-common/on_device_arch.h
4435         (any_device_arch, any_device_arch_intel_mic): New.
4436         * testsuite/lib/libgomp.exp
4437         (check_effective_target_offload_device_any_intel_mic): New.
4438         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4439         * testsuite/libgomp.fortran/target10.f90: Likewise.
4441 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4443         PR tree-optimization/102192
4444         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4445         '-Wuninitialized' diagnostics.
4447 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4449         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4450         current '-Wuninitialized' diagnostics.
4451         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4452         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4453         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4454         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4455         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4456         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4457         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4458         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4459         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4460         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4461         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4462         Likewise.
4464 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4466         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4467         for 'offload_device_intel_mic'.
4469 2022-01-13  Julian Brown  <julian@codesourcery.com>
4470             Thomas Schwinge  <thomas@codesourcery.com>
4472         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4473         offloading execution XFAIL.
4475 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4477         PR middle-end/100280
4478         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4479         Update.
4480         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4481         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4482         Likewise.
4484 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4486         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4487         Enhance.
4488         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4489         Likewise.
4490         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4491         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4492         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4493         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4494         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4495         Likewise.
4496         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4497         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4498         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4499         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4501 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
4503         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4504         * testsuite/libgomp.fortran/target10.f90: Likewise.
4506 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
4508         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4509         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4510         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4512 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
4514         * libgomp.texi: Bump @copying's copyright year.
4516 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
4518         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4519         * testsuite/libgomp.fortran/atomic-19.f90: New test.
4521 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
4523         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4524         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4525         table, not individual symbols.
4527 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
4529         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4530         "target offload_device_nonshared_as"
4531         * testsuite/libgomp.c++/target-this-3.C: Likewise.
4532         * testsuite/libgomp.c++/target-this-4.C: Likewise.
4534 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4536         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4537         not overwritten during cross-host/device copying.
4538         (gomp_update): Likewise.
4539         (gomp_exit_data): Likewise.
4540         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4541         * testsuite/libgomp.c++/target-12.C: Likewise.
4542         * testsuite/libgomp.c++/target-15.C: Likewise.
4543         * testsuite/libgomp.c++/target-16.C: Likewise.
4544         * testsuite/libgomp.c++/target-17.C: Likewise.
4545         * testsuite/libgomp.c++/target-21.C: Likewise.
4546         * testsuite/libgomp.c++/target-23.C: Likewise.
4547         * testsuite/libgomp.c/target-23.c: Likewise.
4548         * testsuite/libgomp.c/target-29.c: Likewise.
4549         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4551 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4553         PR middle-end/92120
4554         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4555         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4556         (goacc_enter_data_internal): Likewise.
4557         * target.c (gomp_map_vars_existing): Update assert condition to
4558         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4559         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4560         parameter, add support for mapping a pointer with NULL target.
4561         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4562         parameter, add support for attaching a pointer with NULL target.
4563         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4564         gomp_attach_pointer, add handling for
4565         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4566         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4567         * testsuite/libgomp.c++/target-23.C: New testcase.
4568         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4569         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4570         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4571         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4572         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4573         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4574         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4576 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4578         * libgomp.texi (OpenMP 5.1): Update status.
4580 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4582         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4584 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4586         PR fortran/90030
4587         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4588         * testsuite/libgomp.fortran/pr90030.f90: New test.
4590 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4591             Thomas Schwinge  <thomas@codesourcery.com>
4593         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4594         temporary skip.
4596 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4597             Thomas Schwinge  <thomas@codesourcery.com>
4599         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4600         skip.
4602 2021-11-29  Richard Biener  <rguenther@suse.de>
4604         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4605         return.
4607 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4609         PR middle-end/103384
4610         * testsuite/libgomp.c/declare-variant-2.c: New test.
4612 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4614         * alloc.c (gomp_aligned_alloc): Fix typo.
4616 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4618         PR libgomp/102838
4619         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4620         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4621         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4622         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4623         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4624         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4625         gomp_aligned_alloc instead of team_malloc.
4627 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4629         PR libgomp/102838
4630         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4631         memalign over posix_memalign over aligned_alloc over fallback
4632         with malloc instead of aligned_alloc over _aligned_alloc over
4633         posix_memalign over memalign over fallback with malloc.  For
4634         aligned_alloc, round up size up to multiple of al.
4636 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4638         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4639         construct as implemented.
4641 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4643         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4645 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4647         * task.c (gomp_create_target_task): Copy args array as well.
4648         * target.c (gomp_target_fallback): Add args argument.
4649         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4650         (GOMP_target): Adjust gomp_target_fallback caller.
4651         (GOMP_target_ext): Likewise.
4652         (gomp_target_task_fn): Likewise.
4653         * config/nvptx/team.c (gomp_nvptx_main): Set
4654         gomp_global_icv.thread_limit_var.
4655         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4657 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4659         * config/nvptx/team.c (__gomp_team_num): Define as
4660         __attribute__((shared)) var.
4661         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4662         * config/nvptx/target.c (__gomp_team_num): Declare as
4663         extern __attribute__((shared)) var.
4664         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4665         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4666         is bigger than num_blocks, use num_teams_lower teams and arrange for
4667         bumping of __gomp_team_num if !first and returning false once we run
4668         out of teams.
4669         * config/nvptx/teams.c (__gomp_team_num): Declare as
4670         extern __attribute__((shared)) var.
4671         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4673 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4675         * testsuite/libgomp.c/teams-5.c: New test.
4677 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4679         PR target/103201
4680         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4681         to ...
4682         * config/gcn/teams.c: ... here.  New file.
4684 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4686         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4687         implicit map handling to allow a "superset" existing map as valid case.
4688         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4689         (get_implicit): New function to extract implicit status.
4690         (gomp_map_fields_existing): Adjust arguments in calls to
4691         gomp_map_vars_existing, and add uses of get_implicit.
4692         (gomp_map_vars_internal): Likewise.
4693         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4695 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4697         * libgomp_g.h (GOMP_teams4): Declare.
4698         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4699         * target.c (GOMP_teams4): New function.
4700         * config/nvptx/target.c (GOMP_teams): Remove.
4701         (GOMP_teams4): New function.
4702         * config/gcn/target.c (GOMP_teams): Remove.
4703         (GOMP_teams4): New function.
4704         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4705         teams instead of <= 2.
4706         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4708 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4710         * testsuite/libgomp.fortran/teams-1.f90: New test.
4712 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4714         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4715         * team.c (struct gomp_thread_start_data): Likewise.
4716         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4717         (gomp_team_start): Initialize start_data->num_teams and
4718         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4719         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4720         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4721         instead of gomp_num_teams and gomp_team_num.
4722         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4723         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4724         * testsuite/libgomp.c/teams-4.c: New test.
4726 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4728         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4730 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4732         * env.c (parse_gomp_openacc_dim): Restore parsing.
4734 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4736         PR middle-end/102972
4737         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4738         parallel construct.
4739         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4740         * testsuite/libgomp.c/target-3.c: Likewise.
4741         * testsuite/libgomp.c/target-5.c: Likewise.
4742         * testsuite/libgomp.c/target-6.c: Likewise.
4743         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4744         * testsuite/libgomp.c/teams-1.c: Likewise.
4745         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4746         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4747         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4748         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4749         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4750         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4751         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4753 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4755         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4756         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4758 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4760         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4761         aren't implemented for Fortran yet.
4763 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4765         * testsuite/libgomp.c/loop-26.c: New test.
4766         * testsuite/libgomp.c/loop-27.c: New test.
4768 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4770         PR testsuite/102910
4771         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4772         instead of #include <alloca.h> + alloca.
4774 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4776         * libgomp.texi (Support of strictly structured blocks in Fortran):
4777         Adjust to 'Y'.
4778         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4780 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4782         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4783         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4785 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4787         PR libgomp/102838
4788         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4789         (struct gomp_work_share): Only use aligned(64) attribute if
4790         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4791         add padding before lock to ensure lock is at offset 64 bytes
4792         into the structure.
4793         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4794         New poor man's static assertions.
4795         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4796         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4798 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4799             Richard Biener  <rguenther@suse.de>
4801         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4803 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4805         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4806         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4808 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4810         PR fortran/102086
4811         PR fortran/92189
4812         PR fortran/92621
4813         PR fortran/101308
4814         PR fortran/101309
4815         PR fortran/101635
4816         PR fortran/92482
4817         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4819 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4821         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4822         type from char [50] to const char *.
4823         (places_array): Add a testcase for simplified syntax place followed
4824         by length or length and stride.
4826 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4828         * env.c (parse_one_place): Handle non-negative-number the same
4829         as { non-negative-number }.  Reject even !number:1 and
4830         !number:1:stride or !place:1 or !place:1:stride instead of just
4831         length other than 1.
4832         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4833         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4834         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4835         as implemented.
4836         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4837         simplified syntax.
4839 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4841         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4842         clearly reject return value 0 as invalid handle the case where end
4843         pointer is the same as first argument as invalid.
4844         (parse_unsigned_long_1): Likewise.
4845         (parse_one_place): Likewise.
4846         (parse_places_var): Likewise.
4847         (parse_stacksize): Likewise.
4848         (parse_spincount): Likewise.
4849         (parse_affinity): Likewise.
4850         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4851         Make code valid C89.
4852         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4853         For strtoul calls which don't clearly reject return value 0 as
4854         invalid handle the case where end pointer is the same as first
4855         argument as invalid.
4856         (gomp_affinity_init_level_1): Likewise.
4857         (gomp_affinity_init_numa_domains): Likewise.
4858         * config/rtems/proc.c (parse_thread_pools): Likewise.
4860 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4862         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4863         after creating count places clean up and return immediately.
4864         * testsuite/libgomp.c/places-6.c: New test.
4865         * testsuite/libgomp.c/places-7.c: New test.
4866         * testsuite/libgomp.c/places-8.c: New test.
4867         * testsuite/libgomp.c/places-9.c: New test.
4868         * testsuite/libgomp.c/places-10.c: New test.
4870 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4872         * env.c (parse_places_var): Handle numa_domains as level 5.
4873         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4874         function.
4875         (gomp_affinity_init_level): Use it instead of
4876         gomp_affinity_init_level_1 for level == 5.
4877         * testsuite/libgomp.c/places-5.c: New test.
4879 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4881         * env.c (parse_places_var): Handle ll_caches as level 4.
4882         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4883         function.
4884         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4885         last level cache.
4886         (gomp_affinity_init_level): Likewise.
4887         * testsuite/libgomp.c/places-1.c: New test.
4888         * testsuite/libgomp.c/places-2.c: New test.
4889         * testsuite/libgomp.c/places-3.c: New test.
4890         * testsuite/libgomp.c/places-4.c: New test.
4892 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4894         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4895         directive.
4897 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4899         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4901 2021-10-12  Julian Brown  <julian@codesourcery.com>
4903         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4904         error path.
4906 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4908         * testsuite/libgomp.fortran/icv-3.f90: New.
4909         * testsuite/libgomp.fortran/icv-4.f90: New.
4911 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4913         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4914         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4915         OMP_TEAMS_THREAD_LIMIT): Document.
4917 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4919         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4920         to avoid makeinfo warnings.
4922 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4924         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4925         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4927 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4929         PR libgomp/102628
4930         PR libgomp/102668
4931         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4932         allocation sizes from 420 to 320 and from 768 to 568.
4933         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4934         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4935         for cr from 16 to 4.
4937 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4939         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4940         * testsuite/libgomp.c/scan-12.c: Likewise.
4941         * testsuite/libgomp.c/scan-13.c: Likewise.
4942         * testsuite/libgomp.c/scan-14.c: Likewise.
4943         * testsuite/libgomp.c/scan-15.c: Likewise.
4944         * testsuite/libgomp.c/scan-16.c: Likewise.
4945         * testsuite/libgomp.c/scan-17.c: Likewise.
4946         * testsuite/libgomp.c/scan-18.c: Likewise.
4947         * testsuite/libgomp.c/scan-19.c: Likewise.
4948         * testsuite/libgomp.c/scan-20.c: Likewise.
4949         * testsuite/libgomp.c/scan-21.c: Likewise.
4950         * testsuite/libgomp.c/scan-22.c: Likewise.
4951         * testsuite/libgomp.c++/scan-9.C: Likewise.
4952         * testsuite/libgomp.c++/scan-10.C: Likewise.
4953         * testsuite/libgomp.c++/scan-11.C: Likewise.
4954         * testsuite/libgomp.c++/scan-12.C: Likewise.
4955         * testsuite/libgomp.c++/scan-13.C: Likewise.
4956         * testsuite/libgomp.c++/scan-14.C: Likewise.
4957         * testsuite/libgomp.c++/scan-15.C: Likewise.
4958         * testsuite/libgomp.c++/scan-16.C: Likewise.
4960 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4962         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4964 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4966         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4967         omp_atv_serialized.
4968         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4969         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4970         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4971         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4973 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4975         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4976         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4977         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4978         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4979         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4980         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4981         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4982         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4983         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4984         omp_set_teams_thread_limit{,_,_8_}.
4985         * icv.c (omp_set_num_teams, omp_get_max_teams,
4986         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4987         functions.
4988         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4989         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4990         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4991         vars.
4992         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4993         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4994         is not specified, use gomp_nteams_var.
4995         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4996         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4997         ialias_redirect.
4998         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4999         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5000         omp_get_teams_thread_limit_): New functions.
5002 2021-10-09  liuhongt  <hongtao.liu@intel.com>
5004         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5005         * testsuite/libgomp.c++/scan-11.C: Ditto.
5006         * testsuite/libgomp.c++/scan-12.C: Ditto.
5007         * testsuite/libgomp.c++/scan-13.C: Ditto.
5008         * testsuite/libgomp.c++/scan-14.C: Ditto.
5009         * testsuite/libgomp.c++/scan-15.C: Ditto.
5010         * testsuite/libgomp.c++/scan-16.C: Ditto.
5011         * testsuite/libgomp.c++/scan-9.C: Ditto.
5012         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5013         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5014         * testsuite/libgomp.c/scan-11.c: Ditto.
5015         * testsuite/libgomp.c/scan-12.c: Ditto.
5016         * testsuite/libgomp.c/scan-13.c: Ditto.
5017         * testsuite/libgomp.c/scan-14.c: Ditto.
5018         * testsuite/libgomp.c/scan-15.c: Ditto.
5019         * testsuite/libgomp.c/scan-16.c: Ditto.
5020         * testsuite/libgomp.c/scan-17.c: Ditto.
5021         * testsuite/libgomp.c/scan-18.c: Ditto.
5022         * testsuite/libgomp.c/scan-19.c: Ditto.
5023         * testsuite/libgomp.c/scan-20.c: Ditto.
5024         * testsuite/libgomp.c/scan-21.c: Ditto.
5025         * testsuite/libgomp.c/scan-22.c: Ditto.
5027 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
5029         * libgomp.texi (OpenMP 5.1): Mention implemented support for
5030         structured block sequences in C/C++.  Mention support for
5031         unconstrained/reproducible modifiers on order clause.
5032         Mention partial (C/C++ only) support of extentensions to atomics
5033         construct.  Mention partial (C/C++ on clause only) support of
5034         align/allocator modifiers on allocate clause.
5036 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
5038         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5039         based on libgomp.c-c++-common/order-reproducible-1.c.
5040         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5041         * testsuite/libgomp.fortran/my-usleep.c: New test.
5043 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
5045         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5046         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5047         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5048         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5049         based on libgomp.c-c++-common/alloc-9.c.
5051 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5053         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5054         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5056 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5058         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5059         ialias_redirect.
5060         * env.c (handle_omp_display_env): Use ialias_call.
5061         * icv-device.c: Move ialias right below each function.
5062         (omp_get_device_num): Use ialias_call.
5063         * fortran.c (omp_fulfill_event): Add ialias_redirect.
5064         * icv.c (omp_get_active_level): Add ialias_redirect.
5066 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5068         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5069         __alloc_align__ (1) attribute.
5070         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5072 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5074         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5075         for -fintrinsic-modules-path= warning of the C compiler.
5076         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5077         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5079 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5081         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5082         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5083         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5084         omp_realloc): Add.
5085         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5086         omp_realloc): Add.
5087         * testsuite/libgomp.fortran/alloc-10.f90: New test.
5088         * testsuite/libgomp.fortran/alloc-6.f90: New test.
5089         * testsuite/libgomp.fortran/alloc-7.c: New test.
5090         * testsuite/libgomp.fortran/alloc-7.f90: New test.
5091         * testsuite/libgomp.fortran/alloc-8.f90: New test.
5092         * testsuite/libgomp.fortran/alloc-9.f90: New test.
5094 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
5096         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5097         omp_realloc): New prototypes.
5098         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5099         attribute.
5100         * allocator.c: Include string.h.
5101         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
5102         variable and use it instead of alignment so that when retrying the old
5103         alignment is used again.  Don't retry if new alignment is the same
5104         as old alignment, unless allocator had pool size.
5105         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5106         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5107         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5108         omp_aligned_calloc and omp_realloc.
5109         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5110         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5111         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5112         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5113         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5114         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5116 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
5118         PR libgomp/96661
5119         * configure.ac: Only check for int-type = 2*size_t support when
5120         building with Fortran support.
5121         * configure: Regenerate.
5123 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
5125         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5126         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5128 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5130         * team.c: Initialize start_data.
5131         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5132         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5134 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5136         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5137         dg-message back to dg-note.
5139 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5141         PR fortran/94070
5142         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5143         expected dg-note output.
5145 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
5147         PR fortran/55534
5148         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5149         r12-3722 by removing -Wno-missing-include-dirs.
5150         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5152 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
5154         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5155         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5157 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
5159         PR fortran/55534
5160         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5161         to ALWAYS_CFLAGS.
5162         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5164 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
5166         * testsuite/libgomp.c++/default-1.C: New test.
5167         * testsuite/libgomp.c-c++-common/default-1.c: New test.
5168         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5169         to default clause in C and C++" as implemented.
5171 2021-09-17  Julian Brown  <julian@codesourcery.com>
5173         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5175 2021-09-17  Julian Brown  <julian@codesourcery.com>
5177         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5179 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5181         * libgomp.texi (OpenMP 5.1): Spelling fix,
5182         declare variante -> declare variant.
5184 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5186         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5187         Use /* */ comments instead of //.
5188         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5189         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5190         * testsuite/libgomp.c++/atomic-16.C: New test.
5191         * testsuite/libgomp.c++/atomic-17.C: New test.
5193 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
5195         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5196         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5197         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5199 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5201         * libgomp.texi (OpenMP Implementation Status): Extend
5202         OpenMP 5.0 section.
5203         (OpenACC Profiling Interface): Fix typo.
5205 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5207         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5208         not to 4.5; link to new section.
5209         (OpenMP Implementation Status): New.
5211 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
5213         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5215 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
5217         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5218         dg-output.
5219         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5221 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5222             Jakub Jelinek  <jakub@redhat.com>
5224         * testsuite/libgomp.c/address-space-1.c: New file.
5226 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5228         * testsuite/lib/libgomp.exp
5229         (check_effective_target_offload_target_intelmic): Remove 'proc'.
5230         (check_effective_target_offload_device_intel_mic): New 'proc'.
5231         * testsuite/libgomp.c-c++-common/on_device_arch.h
5232         (device_arch_intel_mic, on_device_arch_intel_mic): New.
5233         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5234         'dg-xfail-run-if'.
5235         * testsuite/libgomp.fortran/target10.f90: Likewise.
5237 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
5239         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5240         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5241         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5242         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5244 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5246         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5247         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5248         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5250 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
5252         * config/nvptx/error.c (fwrite, exit): Override, too.
5253         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5254         of offloading testing.
5255         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5257 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
5259         * testsuite/libgomp.fortran/error-1.f90: New test.
5261 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
5263         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5264         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5265         * error.c (GOMP_warning, GOMP_error): New functions.
5266         * testsuite/libgomp.c-c++-common/error-1.c: New test.
5268 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
5270         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5271         omp_target_free. omp_target_is_present, omp_target_memcpy,
5272         omp_target_memcpy_rect, omp_target_associate_ptr,
5273         omp_target_disassociate_ptr): Add interface.
5274         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5275         omp_target_free. omp_target_is_present, omp_target_memcpy,
5276         omp_target_memcpy_rect, omp_target_associate_ptr,
5277         omp_target_disassociate_ptr): Add interface.
5278         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5279         interface block for omp_alloc + omp_free.
5280         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5281         * testsuite/libgomp.fortran/refcount-1.f90: New test.
5282         * testsuite/libgomp.fortran/target-12.f90: New test.
5284 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
5286         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5288 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
5290         * testsuite/libgomp.fortran/scope-1.f90: New test.
5291         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5293 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
5295         * Makefile.am (libgomp_la_SOURCES): Add scope.c
5296         * Makefile.in: Regenerated.
5297         * libgomp_g.h (GOMP_scope_start): Declare.
5298         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5299         * scope.c: New file.
5300         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5301         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5303 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
5305         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5306         '?:' issues.
5308 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
5310         * testsuite/libgomp.fortran/masked-1.f90: New test.
5312 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
5314         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5316 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
5318         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5320 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
5322         * env.c (parse_bind_var): Accept 'primary' as alias for
5323         'master'.
5324         (omp_display_env): Add TODO comment to
5325         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5326         * libgomp.texi: Change 'master thread' to 'primary thread'
5327         in line with OpenMP 5.1.
5328         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5329         omp_proc_bind_master is an alias of it.
5330         (OMP_PROC_BIND): Mention 'PRIMARY'.
5331         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5332         (omp_proc_bind_primary): Add.
5333         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5334         * omp_lib.f90.in (omp_proc_bind_primary): Add.
5335         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5336         * omp_lib.h.in (omp_proc_bind_primary): Add.
5337         * testsuite/libgomp.c/affinity-1.c: Check that
5338         'primary' works and is identical to 'master'.
5340 2021-08-09  Julian Brown  <julian@codesourcery.com>
5341             Kwok Cheung Yeung  <kcy@codesourcery.com>
5342             Thomas Schwinge  <thomas@codesourcery.com>
5344         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5345         16.
5346         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5347         [acc_device_radeon]: Update.
5348         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5349         [ACC_DEVICE_TYPE_radeon]: Likewise.
5350         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5351         [acc_device_radeon]: Likewise.
5352         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5353         [ACC_DEVICE_TYPE_radeon]: Likewise.
5354         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5355         'openacc_radeon_accel_selected' and '-O0'.
5356         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5358 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
5360         * icv-device.c (omp_get_device_num): New API function, host side.
5361         * fortran.c (omp_get_device_num_): New interface function.
5362         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5363         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5364         omp_get_device_num_.
5365         * libgomp.texi (omp_get_device_num): Add documentation for new API
5366         function.
5367         * omp.h.in (omp_get_device_num): Add declaration.
5368         * omp_lib.f90.in (omp_get_device_num): Likewise.
5369         * omp_lib.h.in (omp_get_device_num): Likewise.
5370         * target.c (gomp_load_image_to_device): If additional entry for device
5371         number exists at end of returned entries from 'load_image_func' hook,
5372         copy the assigned device number over to the device variable.
5373         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5374         (omp_get_device_num): New API function, device side.
5375         * plugin/plugin-gcn.c ("symcat.h"): Add include.
5376         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5377         at end of returned 'target_table' entries.
5378         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5379         (omp_get_device_num): New API function, device side.
5380         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5381         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5382         at end of returned 'target_table' entries.
5383         * testsuite/lib/libgomp.exp
5384         (check_effective_target_offload_target_intelmic): New function for
5385         testing for intelmic offloading.
5386         * testsuite/libgomp.c-c++-common/target-45.c: New test.
5387         * testsuite/libgomp.fortran/target10.f90: New test.
5389 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
5390             Ulrich Drepper  <drepper@redhat.com>
5392         * fortran.c (omp_display_env_, omp_display_env_8_): Only
5393         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5395 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
5396             Julian Brown  <julian@codesourcery.com>
5397             Kwok Cheung Yeung  <kcy@codesourcery.com>
5399         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5400         's%oaccdevlow%oaccloops%g'.
5401         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5402         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5403         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5404         Likewise.
5405         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5406         Likewise.
5407         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5408         Likewise.
5409         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5410         Likewise.
5411         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5412         Likewise.
5413         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5414         Likewise.
5415         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5416         Likewise.
5417         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5418         Likewise.
5419         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5421 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
5423         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5424         threader.
5425         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5427 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
5429         * env.c (wait_policy, stacksize): New static variables,
5430         move out of handle_omp_display_env.
5431         (omp_display_env): New function.  The meat of the old
5432         handle_omp_display_env function.
5433         (handle_omp_display_env): Change to not take parameters
5434         and instead use the global variables.  Only perform
5435         parsing, defer to omp_display_env for the implementation.
5436         (initialize_env): Remove local variables wait_policy and
5437         stacksize.  Don't pass parameters to handle_omp_display_env.
5438         * fortran.c: Add ialias_redirect for omp_display_env.
5439         (omp_display_env_, omp_display_env_8_): New functions.
5440         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
5441         omp_display_env_, and omp_display_env_8_.
5442         * omp.h.in: Declare omp_display_env.
5443         * omp_lib.f90.in: Likewise.
5444         * omp_lib.h.in: Likewise.
5446 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5447             Julian Brown  <julian@codesourcery.com>
5449         * target.c (gomp_coalesce_buf_add): Update comment.
5450         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5451         'aq && cbuf'.
5452         (gomp_map_vars_internal): Only 'if (!aq)', do
5453         'gomp_coalesce_buf_add'.
5454         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5455         XFAIL.
5457 2021-07-27  Julian Brown  <julian@codesourcery.com>
5458             Thomas Schwinge  <thomas@codesourcery.com>
5460         * libgomp.h (gomp_copy_host2dev): Update prototype.
5461         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5462         argument to gomp_copy_host2dev (false).
5463         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5464         (copy_data): Don't free src.
5465         (queue_push_copy): Remove free_src handling.
5466         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5467         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5468         snapshotting.
5469         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5470         queue_push_copy.
5471         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5472         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
5473         data when true, and set up deferred freeing of temporary buffer.
5474         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5475         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5476         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5477         calls to gomp_copy_host2dev with appropriate ephemeral argument.
5478         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5479         XFAIL.
5481 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5482             Tom de Vries  <tom@codesourcery.com>
5484         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5485         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5487 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5489         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5490         sequencing of 'async' data copying vs. profiling events.
5491         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5492         Likewise.
5494 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5495             Julian Brown  <julian@codesourcery.com>
5497         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5498         'async'/'wait' issue.
5499         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5500         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5501         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5503 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
5504             Joseph Myers  <joseph@codesourcery.com>
5505             Cesar Philippidis  <cesar@codesourcery.com>
5507         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5508         file.
5509         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5510         Likewise.
5511         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5512         Likewise.
5513         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5515 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
5517         PR target/101484
5518         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5519         '-Wno-error=array-bounds'.
5520         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5521         * libgomp.h [__AMDGCN__]: Likewise.
5523 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
5525         PR target/101484
5526         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5527         * libgomp.h [__AMDGCN__]: Likewise.
5529 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
5530             Florian Weimer  <fweimer@redhat.com>
5532         * config/linux/sem.h: Don't include limits.h.
5533         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5534         * config/linux/affinity.c: Include limits.h.
5536 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5538         PR middle-end/94366
5539         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5541 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5543         PR other/67300
5544         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5545         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5546         avoid disabling other offload targets.
5547         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5548         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5549         * testsuite/libgomp.c/target-44.c: Likewise.
5551 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5553         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5554         target has shared memory and disable some scalar pointer/allocatable
5555         checks if not as firstprivate does not work.
5557 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5559         PR testsuite/101114
5560         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5561         Add "target offload_device_nonshared_as" condition for enabling test.
5563 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5565         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5566         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5567         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5568         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5570 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5572         PR middle-end/101167
5573         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5575 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5577         * hashtab.h (htab_clear): New function with initialization code
5578         factored out from...
5579         (htab_create): ...here, adjust to use htab_clear function.
5580         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5581         special refcount values, add comments.
5582         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5583         (REFCOUNT_LINK): Likewise.
5584         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5585         element siblings.
5586         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5587         sibling maps.
5588         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5589         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5590         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5591         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5592         (struct splay_tree_key_s): Add structelem_refcount and
5593         structelem_refcount_ptr fields into a union with dynamic_refcount.
5594         Add comments.
5595         (gomp_map_vars): Delete declaration.
5596         (gomp_map_vars_async): Likewise.
5597         (gomp_unmap_vars): Likewise.
5598         (gomp_unmap_vars_async): Likewise.
5599         (goacc_map_vars): New declaration.
5600         (goacc_unmap_vars): Likewise.
5601         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5602         (goacc_enter_datum): Likewise.
5603         (goacc_enter_data_internal): Likewise.
5604         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5605         and goacc_unmap_vars.
5606         (GOACC_data_start): Adjust to use goacc_map_vars.
5607         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5608         * target.c (hash_entry_type): New typedef.
5609         (htab_alloc): New function hook for hashtab.h.
5610         (htab_free): Likewise.
5611         (htab_hash): Likewise.
5612         (htab_eq): Likewise.
5613         (hashtab.h): Add file include.
5614         (gomp_increment_refcount): New function.
5615         (gomp_decrement_refcount): Likewise.
5616         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5617         gomp_increment_refcount.
5618         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5619         to gomp_map_vars_existing.
5620         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5621         variable to guard OpenMP specific paths, adjust calls to
5622         gomp_map_vars_existing, add structure element sibling splay_tree_key
5623         sequence creation code, adjust Fortran map case to avoid increment
5624         under OpenMP.
5625         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5626         local refcount_set if caller passed in NULL, adjust call to
5627         gomp_map_vars_internal.
5628         (gomp_map_vars_async): Adjust and rename into...
5629         (goacc_map_vars): ...this new function, adjust call to
5630         gomp_map_vars_internal.
5631         (gomp_remove_splay_tree_key): New function with code factored out from
5632         gomp_remove_var_internal.
5633         (gomp_remove_var_internal): Add code to handle removing multiple
5634         splay_tree_key sequence for structure elements, adjust code to use
5635         gomp_remove_splay_tree_key for splay-tree key removal.
5636         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5637         gomp_decrement_refcount.
5638         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5639         local refcount_set if caller passed in NULL, adjust call to
5640         gomp_unmap_vars_internal.
5641         (gomp_unmap_vars_async): Adjust and rename into...
5642         (goacc_unmap_vars): ...this new function, adjust call to
5643         gomp_unmap_vars_internal.
5644         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5645         gomp_unmap_vars.
5646         (GOMP_target_ext): Likewise.
5647         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5648         (GOMP_target_data): Likewise.
5649         (GOMP_target_data_ext): Likewise.
5650         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5651         (gomp_exit_data): Add refcount_set parameter, adjust to use
5652         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5653         after main loop.
5654         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5655         gomp_map_vars and gomp_exit_data.
5656         (gomp_target_task_fn): Likewise.
5657         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5658         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5659         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5660         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5661         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5662         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5664 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5666         PR fortran/92568
5667         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5669 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5670             Thomas Schwinge  <thomas@codesourcery.com>
5672         * libgomp.map (GOACC_2.0.2): New symbol version.
5673         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5674         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5676 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5677             Andrew Stubbs  <ams@codesourcery.com>
5679         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5680         extracted from...
5681         (GOACC_enter_exit_data): ... here.
5682         (GOACC_declare): Use it.
5684 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5686         * oacc-parallel.c (GOACC_declare): Move...
5687         * oacc-mem.c: ... here.
5688         * libgomp_g.h: Adjust.
5690 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5691             Thomas Schwinge  <thomas@codesourcery.com>
5693         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5694         handling.
5696 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5698         PR tree-optimization/100981
5699         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5700         dsdotr and dsdoti to 0.
5702 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5704         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5705         if atomic compare-and-swap is supported on 'int'.
5707 2021-06-09  Richard Biener  <rguenther@suse.de>
5709         PR tree-optimization/100981
5710         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5712 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5714         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5715         unconditionally.
5716         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5717         Update.
5718         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5719         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5721 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5723         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5724         '-DACC_MEM_SHARED=0'.
5725         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5726         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5727         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5728         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5729         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5730         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5731         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5732         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5733         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5734         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5735         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5736         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5737         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5738         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5739         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5740         'acc_device_radeon' testing.
5741         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5742         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5743         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5744         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5745         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5746         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5747         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5748         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5749         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5750         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5751         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5752         for non-'openacc_nvidia_accel_selected'.
5753         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5754         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5755         all implement this checking".
5756         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5757         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5758         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5759         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5760         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5762 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5764         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5765         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5767 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5769         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5770         for 'acc_device_radeon'.
5772 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5774         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5775         for non-'acc_device_nvidia'.
5777 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5779         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5780         'acc_device_radeon' testing.
5781         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5782         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5783         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5785 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5787         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5788         require 'openacc_nvidia_accel_selected'.  Fix up for
5789         'ACC_DEVICE_TYPE_radeon'.
5791 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5793         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5794         'openacc_nvidia_accel_selected'.
5795         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5797 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5799         * testsuite/lib/libgomp.exp
5800         (check_effective_target_openacc_radeon_accel_selected):
5801         Streamline.
5803 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5805         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5806         PR80547 workaround.
5808 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5810         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5811         <acc_device_nvidia>: Update comment.
5813 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5815         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5817 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5819         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5820         check_effective_target_openacc_cublas,
5821         check_effective_target_openacc_cudart): New.
5822         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5823         target openacc_cublas.
5824         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5825         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5826         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5827         target openacc_cuda.
5828         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5829         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5830         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5831         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5832         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5833         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5834         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5835         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5836         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5837         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5838         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5839         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5840         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5841         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5842         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5843         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5844         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5845         targets openacc_cublas and openacc_cudart.
5846         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5847         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5848         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5849         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5850         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5851         Require effective target openacc_cudart.
5852         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5853         for effective target openacc_cuda and add && defined USE_CUDA_H to
5854         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5855         effective target.
5857 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5859         PR libgomp/100573
5860         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5861         GOMP_target_end_data, GOMP_target_update_ext,
5862         GOMP_target_enter_exit_data): New dummy entrypoints.
5863         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5864         GOMP_target_end_data, GOMP_target_update_ext,
5865         GOMP_target_enter_exit_data): Likewise.
5866         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5867         OMPFROM, OMPTO): Define.
5868         (main): Remove #pragma omp target teams around all the tests.
5869         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5870         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5872 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5874         PR middle-end/99928
5875         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5877 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5879         PR fortran/86470
5880         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5881         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5882         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5884 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5886         PR testsuite/90115
5887         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5888         uninteresting/varying diagnostics.
5890 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5892         PR middle-end/90115
5893         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5894         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5896 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5898         PR middle-end/90115
5899         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5900         file.
5901         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5902         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5903         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5904         Likewise.
5905         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5906         Likewise.
5907         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5908         Likewise.
5909         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5910         Likewise.
5911         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5912         Likewise.
5913         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5914         Likewise.
5915         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5916         Likewise.
5917         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5918         Likewise.
5919         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5920         Likewise.
5921         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5922         Likewise.
5923         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5924         Likewise.
5925         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5926         Likewise.
5927         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5928         Likewise.
5929         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5930         Likewise.
5931         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5932         Likewise.
5933         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5934         Likewise.
5935         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5936         Likewise.
5937         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5938         Likewise.
5939         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5940         Likewise.
5941         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5942         Likewise.
5943         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5944         Likewise.
5945         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5946         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5947         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5948         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5949         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5950         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5951         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5952         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5953         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5954         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5955         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5956         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5957         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5958         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5959         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5960         Likewise.
5961         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5962         Likewise.
5963         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5964         Likewise.
5965         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5966         Likewise.
5967         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5968         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5969         Likewise.
5970         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5971         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5972         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5973         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5974         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5975         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5976         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5977         Likewise.
5978         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5979         Likewise.
5980         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5981         Likewise.
5982         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5983         Likewise.
5984         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5985         Likewise.
5986         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5987         Likewise.
5988         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5989         Likewise.
5990         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5991         Likewise.
5992         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5993         Likewise.
5994         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5995         Likewise.
5996         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5997         Likewise.
5998         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5999         Likewise.
6000         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6001         Likewise.
6002         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6003         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6004         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6005         Likewise.
6006         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6007         Likewise.
6008         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6009         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6010         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6012 2021-05-21  Julian Brown  <julian@codesourcery.com>
6013             Chung-Lin Tang  <cltang@codesourcery.com>
6014             Thomas Schwinge  <thomas@codesourcery.com>
6016         PR middle-end/90115
6017         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6018         test.
6019         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6020         Likewise.
6021         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6022         Likewise.
6024 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6026         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6027         for nvptx offloading.
6029 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
6031         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6033 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
6035         PR target/83812
6036         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6038 2021-05-19  Julian Brown  <julian@codesourcery.com>
6040         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6042 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6044         * testsuite/lib/libgomp.exp
6045         (check_effective_target_offload_target_nvptx): Don't shadow global
6046         'offload_targets' variable.
6048 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6050         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6051         '-latomic' to nvptx offloading compilation.
6052         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6054 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6056         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6057         offloading compilation.
6059 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
6061         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6062         if new tasks generated.
6063         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6065 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
6067         * testsuite/libgomp.fortran/parallel-master.f90: New test.
6069 2021-05-13  Martin Liska  <mliska@suse.cz>
6071         PR testsuite/100569
6072         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6073         * testsuite/libgomp.c/pr46032-2.c: Likewise.
6074         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6075         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6077 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6079         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6080         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6082 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6084         PR middle-end/100471
6085         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6086         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6087         reduction pointer.
6088         * testsuite/libgomp.c/task-reduction-4.c: New test.
6090 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6091             Tom de Vries  <tdevries@suse.de>
6093         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6094         complex/floating-point || + && reduction with 'omp target'.
6095         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6097 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6099         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6100         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6101         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6102         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6104 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6106         PR testsuite/100397
6107         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6108         declaration to scope of non-'depend'-guarded assignment to avoid races.
6110 2021-05-03  Tom de Vries  <tdevries@suse.de>
6112         PR target/100321
6113         * testsuite/libgomp.c/target-44.c: New test.
6115 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
6117         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6119 2021-04-29  Tom de Vries  <tdevries@suse.de>
6121         * testsuite/libgomp.c/pr81778.c: New test.
6123 2021-04-29  Tom de Vries  <tdevries@suse.de>
6125         PR target/100232
6126         * testsuite/libgomp.c/target-43.c: New file.
6128 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
6129             Tobias Burnus  <tobias@codesourcery.com>
6131         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6132         * target.c (gomp_load_plugin_for_device): If set and if a plugin
6133         can't be dlopened, silently assume it has no devices.
6134         * Makefile.in: Regenerate.
6135         * config.h.in: Regenerate.
6136         * configure: Regenerate.
6138 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6140         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6141         Use [Ww]arning in dg-bogus as FE diagnostic and default
6142         diagnostic differ and the result depends on ENABLE_OFFLOAD.
6143         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6144         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6145         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6147 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6149         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6150         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6151         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6152         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6153         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6155 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6156             Nathan Sidwell  <nathan@codesourcery.com>
6157             Tom de Vries  <vries@codesourcery.com>
6158             Julian Brown  <julian@codesourcery.com>
6159             Kwok Cheung Yeung  <kcy@codesourcery.com>
6161         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6162         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6163         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6164         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6165         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6166         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6167         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6168         Likewise.
6169         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6170         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6171         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6172         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6173         Likewise.
6174         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6175         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6176         Likewise.
6177         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6178         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6179         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6180         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6181         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6182         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6183         Likewise.
6184         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6185         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6186         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6187         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6188         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6189         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6190         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6191         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6192         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6193         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6194         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6196 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6198         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6199         compile with '-w'.
6200         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6201         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6202         Likewise.
6203         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6204         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6205         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6206         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6207         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6208         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6209         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6211 2021-04-22  Richard Biener  <rguenther@suse.de>
6213         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6214         only on nvptx-none.
6216 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6218         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6219         omp_depend_kind instead of defining it as 16.
6221 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6223         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6224         New, based on check_effective_target_offload_target_nvptx.
6225         (check_effective_target_offload_target_nvptx): Call it.
6226         (check_effective_target_offload_target_amdgcn): New.
6227         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6228         Require target offload_target_nvptx || offload_target_amdgcn.
6229         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6230         * testsuite/libgomp.c/pr86416-1.c: Likewise.
6231         * testsuite/libgomp.c/pr86416-2.c: Likewise.
6233 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6235         * testsuite/libgomp.fortran/depobj-1.f90: New test.
6237 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6239         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6240         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6241         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6242         Likewise.
6243         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6244         Likewise.
6245         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6247 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6249         PR target/99555
6250         * testsuite/lib/libgomp.exp
6251         (check_effective_target_offload_device_nvptx): New.
6252         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6253         resolved, make sure that we exit quickly, with error status,
6254         XFAILed.
6255         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6256         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6258 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
6260         PR testsuite/100071
6261         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6262         cp = omp_alloc with cp, p arguments instead of cq, q and call
6263         c_f_pointer after last cq = omp_alloc with cq, q.
6265 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6267         PR middle-end/98088
6268         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6269         for loop with GT/GE condition.
6270         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6272 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
6274         PR middle-end/84991
6275         PR middle-end/84992
6276         PR middle-end/90779
6277         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6279 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
6281         PR libgomp/99984
6282         * team.c (gomp_thread_start): Call pthread_setspecific for
6283         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6284         has been initialized to avoid false positive warning.
6286 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
6288         PR target/99555
6289         * testsuite/lib/on_device_arch.c: Move to ...
6290         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6291         * testsuite/libgomp.fortran/on_device_arch.c: New file;
6292         #include on_device_arch.h.
6293         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6294         on_device_arch.h instead of using dg-additional-source.
6295         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6296         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6297         on_device_arch.c without relative paths.
6299 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6301         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6302         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6303         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6304         * config.h.in: Regenerate.
6305         * configure: Likewise.
6307 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6309         PR target/99555
6310         * testsuite/lib/on_device_arch.c: New file.
6311         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6312         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6313         skip for nvptx offloading, with error status.
6314         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6316 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6318         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6319         OpenACC 'serial' construct diagnostic for nvptx offloading.
6321 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
6323         PR c++/99509
6324         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6326 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
6328         PR fortran/98858
6329         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6331 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
6333         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6334         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6335         checking of -m32 or -mx32 options on the command line.
6336         * config.h.in: Regenerated.
6337         * configure: Regenerated.
6339 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
6341         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6342         support from the target.
6344 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6345             Jakub Jelinek  <jakub@redhat.com>
6347         PR libgomp/98738
6348         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6349         (struct gomp_task): Replace detach and completion_sem fields with
6350         union containing completion_sem and detach_team.  Add deferred_p
6351         field.
6352         (struct gomp_team): Remove task_detach_queue.
6353         * task.c: Include assert.h.
6354         (gomp_init_task): Initialize deferred_p and completion_sem fields.
6355         Rearrange initialization order of fields.
6356         (task_fulfilled_p): Delete.
6357         (GOMP_task): Use address of task as the event handle.  Remove
6358         initialization of detach field.  Initialize deferred_p field.
6359         Use automatic local for completion_sem.  Initialize detach_team field
6360         for deferred tasks.
6361         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6362         Set kind of suspended detach task to GOMP_TASK_DETACHED and
6363         decrement task_running_count.  Move finish_cancelled block out of
6364         else branch.  Relocate call to gomp_team_barrier_done.
6365         (GOMP_taskwait): Handle tasks with completion events that have not
6366         been fulfilled.
6367         (GOMP_taskgroup_end): Likewise.
6368         (omp_fulfill_event): Use address of task as event handle.  Post to
6369         completion_sem for undeferred tasks.  Clear detach_team if task
6370         has not finished.  For finished tasks, handle post-execution tasks,
6371         call gomp_team_barrier_wake if necessary, and free task.
6372         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6373         (free_team): Remove free of task_detach_queue.
6374         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6375         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6376         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6377         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6378         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6379         Change data-sharing of detach events on enclosing parallel to private.
6380         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
6381         taskwait directive.
6382         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6383         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6384         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6385         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6386         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6387         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6388         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6389         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6390         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6391         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6392         Change data-sharing of detach events on enclosing parallel to private.
6393         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
6394         taskwait directive.
6395         * testsuite/libgomp.fortran/task-detach-7.f90: New.
6396         * testsuite/libgomp.fortran/task-detach-8.f90: New.
6397         * testsuite/libgomp.fortran/task-detach-9.f90: New.
6398         * testsuite/libgomp.fortran/task-detach-10.f90: New.
6399         * testsuite/libgomp.fortran/task-detach-11.f90: New.
6401 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
6403         PR fortran/99171
6404         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6406 2021-02-17  Julian Brown  <julian@codesourcery.com>
6408         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6409         expected errors.
6411 2021-02-17  Julian Brown  <julian@codesourcery.com>
6413         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6414         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6416 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6418         * config/linux/x86/futex.h (__futex_wait):
6419         Revert output type back to long.
6420         (__futex_wake): Ditto.
6421         (futex_wait): Update for revert.
6422         (futex_wake): Ditto.
6424 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6426         * config/linux/x86/futex.h (__futex_wait): New static inline
6427         wrapper function.  Correct output type to int and
6428         timeout type to void *.
6429         (__futex_wake): New static inline wrapper function.
6430         Correct output type to int.
6431         (futex_wait): Use __futex_wait.
6432         (futex_wake): Use __futex_wake.
6434 2021-02-10  Julian Brown  <julian@codesourcery.com>
6436         PR fortran/98979
6437         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6438         errors.
6440 2021-02-04  Julian Brown  <julian@codesourcery.com>
6442         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6444 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
6446         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6447         EF_AMDGPU_MACH_AMDGCN_GFX908.
6448         (gcn_gfx908_s): New constant string.
6449         (isa_hsa_name): Add gfx908.
6450         (isa_code): Add gfx908.
6452 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6454         * libgomp.texi (omp_fulfill_event): New entry.
6456 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
6458         * task.c (GOMP_task): Rename priority argument to priority_arg,
6459         add priority automatic variable and modify that variable.  Instead of
6460         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6461         check flags for that bit.
6463 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
6465         PR fortran/98476
6466         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6468 2021-01-18  Andreas Schwab  <schwab@suse.de>
6470         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6472 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6474         * config/rtems/sem.h (gomp_sem_getcount): New function.
6476 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
6478         * config/linux/sem.h (gomp_sem_getcount): New function.
6479         * config/posix/sem.h (gomp_sem_getcount): New function.
6480         * config/posix/sem.c (gomp_sem_getcount): New function.
6481         * config/accel/sem.h (gomp_sem_getcount): New function.
6482         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6483         (omp_fulfill_event): Likewise.
6485 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
6487         * fortran.c (omp_fulfill_event_): New.
6488         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6489         (struct gomp_team): Add task_detach_queue and task_detach_count
6490         fields.
6491         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6492         * libgomp_g.h (GOMP_task): Add extra argument.
6493         * omp.h.in (enum omp_event_handle_t): New.
6494         (omp_fulfill_event): New.
6495         * omp_lib.f90.in (omp_event_handle_kind): New.
6496         (omp_fulfill_event): New.
6497         * omp_lib.h.in (omp_event_handle_kind): New.
6498         (omp_fulfill_event): Declare.
6499         * priority_queue.c (priority_tree_find): New.
6500         (priority_list_find): New.
6501         (priority_queue_find): New.
6502         * priority_queue.h (priority_queue_predicate): New.
6503         (priority_queue_find): New.
6504         * task.c (gomp_init_task): Initialize detach field.
6505         (task_fulfilled_p): New.
6506         (GOMP_task): Add detach argument.  Ignore detach argument if
6507         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
6508         field.  Copy address of completion_sem into detach argument and
6509         into the start of the data record.  Wait for detach event if task
6510         not deferred.
6511         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6512         Remove completed tasks and requeue dependent tasks.
6513         (omp_fulfill_event): New.
6514         * team.c (gomp_new_team): Initialize task_detach_queue and
6515         task_detach_count fields.
6516         (free_team): Free task_detach_queue field.
6517         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6518         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6519         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6520         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6521         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6522         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6523         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6524         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6525         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6526         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6527         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6528         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6530 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
6532         PR target/70454
6533         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6534         be added through preprocessor check on
6535         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6537 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6539         PR libgomp/65099
6540         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6541         configurations.
6542         * configure: Regenerate.
6543         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6544         check.
6546 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6548         * configure: Re-generate.
6550 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6552         * configure: Re-generate.
6554 2021-01-05  Julian Brown  <julian@codesourcery.com>
6556         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6557         (struct ptx_device): Add omp_stacks struct.
6558         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6559         (nvptx_close_device): Free cached stacks block and mutex.
6560         (nvptx_stacks_free): New function.
6561         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6562         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6563         (nvptx_stacks_alloc): Rename to...
6564         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6565         size or smaller is required.
6566         (nvptx_stacks_free): Remove.
6567         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6568         during kernel execution.
6570 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6572         * libgomp.texi: Bump @copying's copyright year.
6574 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6576         * libgomp.texi (Top): Avoid bad "up" link.
6578 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6580         * testsuite/libgomp.c/task-6.c: New test.
6582 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6584         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6585         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6587 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6589         * testsuite/libgomp.fortran/scan-1.f90: New test.
6591 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6593         PR target/97865
6594         * configure: Regenerate.
6596 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6598         * configure: Regenerate.
6600 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6602         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6603         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6605 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6607         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6608         expected results.
6610 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6612         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6613         (reserved): Delete unused define.
6615 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6617         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6618         Tcl 8.5-specific behavior.
6619         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6621 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6623         * env.c (gomp_global_icv): Remove nest_var field.  Add
6624         max_active_levels_var field.
6625         (gomp_max_active_levels_var): Remove.
6626         (parse_boolean): Return true on success.
6627         (handle_omp_display_env): Express OMP_NESTED in terms of
6628         max_active_levels_var.  Change format specifier for
6629         max_active_levels_var.
6630         (initialize_env): Set max_active_levels_var from
6631         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6632         OMP_PROC_BIND.
6633         * icv.c (omp_set_nested): Express in terms of
6634         max_active_levels_var.
6635         (omp_get_nested): Likewise.
6636         (omp_set_max_active_levels): Use max_active_levels_var field instead
6637         of gomp_max_active_levels_var.
6638         (omp_get_max_active_levels): Likewise.
6639         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6640         max_active_levels_var field.
6641         (gomp_supported_active_levels): Set to UCHAR_MAX.
6642         (gomp_max_active_levels_var): Delete.
6643         * libgomp.texi (omp_get_nested): Update documentation.
6644         (omp_set_nested): Likewise.
6645         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6646         (OMP_NESTED): Likewise.
6647         (OMP_NUM_THREADS): Likewise.
6648         (OMP_PROC_BIND): Likewise.
6649         * parallel.c (gomp_resolve_num_threads): Replace reference
6650         to nest_var with max_active_levels_var.  Use max_active_levels_var
6651         field instead of gomp_max_active_levels_var.
6653 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6655         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6656         nvptx_usleep; use also for device={arch(gcn)}.
6658 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6660         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6661         (foo): Add tests for non-VLA private and firstprivate clauses on
6662         omp task.
6663         (bar): Likewise.  Remove taking of address from private/firstprivate
6664         variables.
6665         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6666         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6667         and for non-VLA private and firstprivate clauses on omp task.
6668         (bar): Removed.
6669         (main): Adjust foo caller.  Don't call bar.
6671 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6672             Thomas Schwinge  <thomas@codesourcery.com>
6674         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6675         New.
6676         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6677         Likewise.
6678         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6679         Likewise.
6680         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6681         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6683 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6684             Thomas Schwinge  <thomas@codesourcery.com>
6686         PR fortran/94358
6687         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6689 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6691         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6692         for array reductions.
6693         (main): Adjust foo callers.
6695 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6697         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6698         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6699         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6700         * allocator.c (omp_aligned_alloc): New for now static function,
6701         add alignment argument and handle it.
6702         (omp_alloc): Reimplement using omp_aligned_alloc.
6703         (GOMP_alloc, GOMP_free): New functions.
6704         (omp_free): Add ialias.
6705         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6706         * testsuite/libgomp.c++/allocate-1.C: New test.
6708 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6710         PR fortran/97782
6711         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6713 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6715         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6716         usable.
6717         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6718         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6719         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6720         (goacc_enter_data_internal): Likewise.
6721         * target.c (gomp_map_vars_internal):
6722         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6723         of gomp_attach_pointer for OpenMP cases.
6724         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6725         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6726         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6728 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6729             Kwok Cheung Yeung  <kcy@codesourcery.com>
6731         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6732         * Makefile.in: Regenerate.
6733         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6734         pragmas to ignore -Wdeprecated-declarations warnings.
6735         * icv.c: Likewise.
6736         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6737         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6738         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6739         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6740         deprecated.
6741         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6742         to test options.
6743         * testsuite/libgomp.c/affinity-1.c: Likewise.
6744         * testsuite/libgomp.c/affinity-2.c: Likewise.
6745         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6746         * testsuite/libgomp.c/lib-1.c: Likewise.
6747         * testsuite/libgomp.c/nested-1.c: Likewise.
6748         * testsuite/libgomp.c/nested-2.c: Likewise.
6749         * testsuite/libgomp.c/nested-3.c: Likewise.
6750         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6751         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6752         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6753         * testsuite/libgomp.c/pr35549.c: Likewise.
6754         * testsuite/libgomp.c/pr42942.c: Likewise.
6755         * testsuite/libgomp.c/pr61200.c: Likewise.
6756         * testsuite/libgomp.c/sort-1.c: Likewise.
6757         * testsuite/libgomp.c/target-5.c: Likewise.
6758         * testsuite/libgomp.c/target-6.c: Likewise.
6759         * testsuite/libgomp.c/teams-1.c: Likewise.
6760         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6761         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6762         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6763         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6764         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6765         * testsuite/libgomp.fortran/lib2.f: Likewise.
6766         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6767         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6769 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6771         PR target/85486
6772         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6773         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6774         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6776 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6778         PR testsuite/80219
6779         PR testsuite/85303
6780         * testsuite/lib/libgomp.exp (libgomp_init): Set
6781         'gcc_warning_prefix', 'gcc_error_prefix'.
6783 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6785         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6786         even in field_tgt_clear initializer.
6788 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6790         * testsuite/libgomp.c/target-42.c: New test.
6792 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6793             Tom de Vries  <tdevries@suse.de>
6795         PR testsuite/81690
6796         * testsuite/libgomp.c/usleep.h: New file.
6797         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6798         (main): Use tgt_usleep instead of usleep.
6799         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6800         (main): Use tgt_usleep instead of usleep.
6802 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6804         PR lto/96680
6805         * testsuite/libgomp.c/declare-variant-1.c: New test.
6807 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6809         * testsuite/libgomp.c/target-41.c: New test.
6811 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6813         * icv.c (omp_get_initial_device): Remove including corresponding
6814         ialias.
6815         * icv-device.c (omp_get_initial_device): New function.  Return
6816         gomp_get_num_devices ().  Add ialias.
6817         * target.c (resolve_device): Don't fail with
6818         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6819         gomp_get_num_devices ().
6820         (omp_target_alloc, omp_target_free, omp_target_is_present,
6821         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6822         omp_target_disassociate_ptr, omp_pause_resource): Use
6823         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6824         first use in the functions, in uses dominated by the
6825         gomp_get_num_devices call use num_devices_openmp instead.
6826         * libgomp.texi (omp_get_initial_device): Document.
6827         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6828         Add ialias.
6829         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6830         * testsuite/libgomp.c/target-40.c: New test.
6832 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6834         * env.c (parse_target_offload): Change new_offload var type to int,
6835         preinitialize to -1, remove found var and test new_offload != -1
6836         instead of found.
6838 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6840         * target.c (gomp_target_init): Inside of the function, use automatic
6841         variables corresponding to num_devices, num_devices_openmp and devices
6842         global variables and update the globals only at the end of the
6843         function.
6845 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6847         * env.c (gomp_target_offload_var): New.
6848         (parse_target_offload): New.
6849         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6850         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6851         * libgomp.h (gomp_target_offload_t): New.
6852         (gomp_target_offload_var): New.
6853         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6854         * target.c (resolve_device): Generate error if device not found and
6855         offloading is mandatory.
6856         (gomp_target_fallback): Generate error if offloading is mandatory.
6857         (GOMP_target): Add argument in call to gomp_target_fallback.
6858         (GOMP_target_ext): Likewise.
6859         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6860         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6861         (GOMP_target_data_ext): Likewise.
6862         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6863         (gomp_target_init): Return early if offloading is disabled.
6865 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6867         * libgomp.texi (omp_get_max_active_levels): Modify description.
6868         (omp_get_supported_active_levels): Make descriptions consistent.
6870 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6872         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6874 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6876         * env.c (gomp_max_active_levels_var): Initialize to
6877         gomp_supported_active_levels.
6878         (initialize_env): Limit gomp_max_active_levels_var to be at most
6879         equal to gomp_supported_active_levels.
6880         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6881         (omp_get_supported_active_levels_): New.
6882         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6883         to at most equal to gomp_supported_active_levels.
6884         (omp_get_supported_active_levels): New.
6885         * libgomp.h (gomp_supported_active_levels): New.
6886         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6887         omp_get_supported_active_levels_.
6888         * libgomp.texi (omp_get_supported_active_levels): New.
6889         (omp_set_max_active_levels): Update.  Add reference to
6890         omp_get_supported_active_levels.
6891         * omp.h.in (omp_get_supported_active_levels): New.
6892         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6893         * omp_lib.h.in (omp_get_supported_active_levels): New.
6894         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6895         against omp_get_supported_active_levels.
6896         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6898 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6900         * config/t-aix: Delete and recreate libgomp before creating
6901         FAT library.
6903 2020-10-08  Tom de Vries  <tdevries@suse.de>
6905         PR libgomp/81802
6906         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6907         dimensions.
6909 2020-10-06  Tom de Vries  <tdevries@suse.de>
6911         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6913 2020-10-06  Tom de Vries  <tdevries@suse.de>
6915         PR middle-end/90861
6916         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6918 2020-10-05  Tom de Vries  <tdevries@suse.de>
6920         PR fortran/95654
6921         * testsuite/libgomp.fortran/pr95654.f90: New test.
6923 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6925         * Makefile.in: Regenerate with automake 1.15.1.
6926         * aclocal.m4: Likewise.
6927         * configure: Likewise.
6928         * testsuite/Makefile.in: Likewise.
6930 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6932         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6933         and amdgcn targets.
6935 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6937         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6939 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6941         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6942         total number of threads is one.
6943         (gomp_team_barrier_wake): Likewise.
6944         (gomp_team_barrier_wait_end): Likewise.
6945         (gomp_team_barrier_wait_cancel_end): Likewise.
6946         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6947         (gomp_team_barrier_wake): Likewise.
6948         (gomp_team_barrier_wait_end): Likewise.
6949         (gomp_team_barrier_wait_cancel_end): Likewise.
6950         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6952 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6954         PR middle-end/96390
6955         * testsuite/libgomp.c++/pr96390.C: New test.
6956         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6958 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6960         * config/t-aix: Use $(AR) without -X32_64.
6962 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6964         * testsuite/libgomp.c/loop-25.c: New test.
6966 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6968         PR fortran/95654
6969         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6971 2020-09-22  Tom de Vries  <tdevries@suse.de>
6973         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6974         fails.
6976 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6978         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6980 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6982         PR fortran/96668
6983         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6985 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6987         PR fortran/96668
6988         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6989         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6990         (gomp_map_vars_existing): Update call to it.
6991         (gomp_map_fields_existing): Likewise
6992         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6993         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6994         remapped.
6995         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6996         GOMP_MAP_POINTER.
6997         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6998         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7000 2020-09-14  Tom de Vries  <tdevries@suse.de>
7002         * config/nvptx/atomic.c: New file.  Add
7003         __sync_val_compare_and_swap_16.
7004         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7005         target offload_target_nvptx.
7007 2020-09-08  Julian Brown  <julian@codesourcery.com>
7009         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7010         iteration-ordering assumptions.
7012 2020-09-08  Julian Brown  <julian@codesourcery.com>
7014         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7015         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7017 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
7019         * plugin/plugin-nvptx.c (nvptx_free):
7020         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7021         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7022         comments.
7024 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
7026         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7028 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7030         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7032 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
7034         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7035         * testsuite/libgomp.c/loop-23.c (main): Likewise.
7036         * testsuite/libgomp.c/loop-24.c: New test.
7038 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
7039             Tobias Burnus  <tobias@codesourcery.com>
7041         PR fortran/93553
7042         * testsuite/libgomp.fortran/pr93553.f90: New test.
7044 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7046         * testsuite/libgomp.c/loop-22.c: New test.
7047         * testsuite/libgomp.c/loop-23.c: New test.
7049 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7051         PR middle-end/96459
7052         * testsuite/libgomp.c/teams-3.c: New test.
7053         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7054         if not defined yet.
7055         (N(test)): Use it before all N(f*) calls.
7056         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7057         (main): Don't call all test_* functions from within
7058         #pragma omp teams reduction(|:err), call them directly.
7060 2020-08-04  Tom de Vries  <tdevries@suse.de>
7062         PR target/96428
7063         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7064         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7066 2020-08-03  Julian Brown  <julian@codesourcery.com>
7067             Thomas Schwinge  <thomas@codesourcery.com>
7069         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7070         shared-memory devices.  Extend with further checking.
7072 2020-08-03  Martin Jambor  <mjambor@suse.cz>
7074         * plugin/Makefrag.am: Remove configuration of HSA plugin.
7075         * aclocal.m4: Regenerated.
7076         * Makefile.in: Regenerated.
7077         * config.h.in: Regenerated.
7078         * configure: Regenerated.
7079         * plugin/configfrag.ac: Likewise.
7080         * plugin/hsa_ext_finalize.h: Removed.
7081         * plugin/plugin-hsa.c: Likewise.
7082         * testsuite/Makefile.in: Regenerated.
7083         * testsuite/lib/libgomp.exp
7084         (offload_target_to_openacc_device_type): Remove hsa case.
7085         (check_effective_target_hsa_offloading_selected_nocache): Removed
7086         (check_effective_target_hsa_offloading_selected): Likewise.
7087         (libgomp_init): Do not add -Wno-hsa to additional_flags.
7088         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7089         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7090         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7091         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7092         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7093         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7094         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7095         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7096         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7097         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7098         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7099         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7100         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7101         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7102         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7103         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7104         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7105         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7106         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7107         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7108         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7109         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7110         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7111         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7113 2020-07-27  Julian Brown  <julian@codesourcery.com>
7114             Thomas Schwinge  <thomas@codesourcery.com>
7116         * libgomp.h (struct target_var_desc): Rename do_detach field to
7117         is_attach.
7118         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
7119         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7120         (goacc_enter_data_internal): Don't affect reference counts
7121         for attach mappings.
7122         (goacc_exit_data_internal): Don't affect reference counts for detach
7123         mappings.
7124         * target.c (gomp_map_vars_existing): Don't affect reference counts for
7125         attach mappings.
7126         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7127         mark attach mappings.
7128         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7129         reference count for attach mappings.
7130         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7131         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7132         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7133         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7134         test as shouldfail.
7135         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7136         gracefully in no-finalize mode.
7137         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7139 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
7141         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7142         use.
7143         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7144         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7146 2020-07-23  Julian Brown  <julian@codesourcery.com>
7147             Thomas Schwinge  <thomas@codesourcery.com>
7149         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7150         finalization for detach operation.
7151         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7152         New test.
7154 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
7156         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7157         * libgomp_f.h.in (omp_check_defines): Check whether
7158         sizeof of determined Fortran kind and C typedef match.
7159         * omp_lib.f90.in: Add omp_depened_kind.
7160         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7161         * configure: Regenerate.
7162         * Makefile.in: Regenerate.
7163         * testsuite/Makefile.in: Regenerate.
7165 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7167         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7168         gcc/testsuite/c-c++-common/gomp/.
7169         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7170         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7171         from gcc/testsuite/gfortran.dg/gomp/.
7172         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7174 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7176         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7177         * omp_lib.h.in: Likewise.
7179 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
7181         PR target/95620
7182         * testsuite/libgomp.c/pr95620.c: New test.
7184 2020-07-16  Julian Brown  <julian@codesourcery.com>
7185             Thomas Schwinge  <thomas@codesourcery.com>
7187         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7188         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7190 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7192         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7193         avoid conversion on 32bit systems from 32bit to 64bit due
7194         to -fdefault-integer-8.
7196 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7198         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7199         variables; add character(kind=4) tests; update TODO comment.
7201 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7203         * allocator.c: Add ialias for omp_init_allocator and
7204         omp_destroy_allocator.
7205         * configure.ac: Set INTPTR_T_KIND.
7206         * configure: Regenerate.
7207         * Makefile.in: Regenerate.
7208         * testsuite/Makefile.in: Regenerate.
7209         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7210         omp_set_default_allocator_, omp_get_default_allocator_): New
7211         functions and ialias_redirect.
7212         * icv.c: Add ialias for omp_set_default_allocator and
7213         omp_get_default_allocator.
7214         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7215         omp_destroy_allocator_, omp_set_default_allocator_ and
7216         omp_get_default_allocator_.
7217         * omp_lib.f90.in: Add allocator traits parameters, declare
7218         allocator routines and add related kind parameters.
7219         * omp_lib.h.in: Likewise.
7220         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7221         * testsuite/libgomp.fortran/alloc-1.F90: New test.
7222         * testsuite/libgomp.fortran/alloc-2.F90: New test.
7223         * testsuite/libgomp.fortran/alloc-3.F: New test.
7224         * testsuite/libgomp.fortran/alloc-4.f90: New test.
7225         * testsuite/libgomp.fortran/alloc-5.f90: New test.
7227 2020-07-14  Tom de Vries  <tom@codesourcery.com>
7228             Cesar Philippidis  <cesar@codesourcery.com>
7229             Thomas Schwinge  <thomas@codesourcery.com>
7230             Kwok Cheung Yeung  <kcy@codesourcery.com>
7232         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7233         New variable.
7234         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
7235         acc_init_state to initializing at the start, and to initialized at the
7236         end.
7237         (self_initializing_p): New function.
7238         (acc_get_device_type): Return acc_device_none if called by thread that
7239         is currently executing acc_init_1.
7240         * libgomp.texi (acc_get_device_type): Update documentation.
7241         (Implementation Status and Implementation-Defined Behavior): Likewise.
7242         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7244 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
7246         * config/t-aix: Set BITS from compiler cpp macro.
7248 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7250         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7252 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7254         PR fortran/67311
7255         * testsuite/libgomp.fortran/target-map-1.f90: New test.
7257 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
7259         * testsuite/libgomp.c/loop-21.c: New test.
7261 2020-07-13  Julian Brown  <julian@codesourcery.com>
7262             Thomas Schwinge  <thomas@codesourcery.com>
7264         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7266 2020-07-10  Julian Brown  <julian@codesourcery.com>
7267             Thomas Schwinge  <thomas@codesourcery.com>
7269         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7270         dynamic_refcount.
7271         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7272         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7273         dynamic_refcount.
7274         (acc_unmap_data): Update comment.
7275         (goacc_map_var_existing, goacc_enter_datum): Adjust for
7276         dynamic_refcount semantics.
7277         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7278         Adjust for dynamic_refcount semantics.
7279         (goacc_enter_data_internal): Implement "present" case of dynamic
7280         memory-map handling here.  Update "non-present" case for
7281         dynamic_refcount semantics.
7282         (goacc_exit_data_internal): Use goacc_exit_datum_1.
7283         * target.c (gomp_map_vars_internal): Remove
7284         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
7285         handling.
7286         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7287         (gomp_load_image_to_device): Substitute dynamic_refcount for
7288         virtual_refcount.
7289         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7290         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7291         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7292         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7293         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7294         trace output.
7295         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7296         trace output.
7297         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7298         test.
7299         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7300         Remove stale comment.
7301         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7302         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7303         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7304         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7305         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7306         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7308 2020-07-10  Julian Brown  <julian@codesourcery.com>
7309             Thomas Schwinge  <thomas@codesourcery.com>
7311         * oacc-mem.c (goacc_map_var_existing): New function.
7312         (goacc_enter_datum): Use above function.
7313         (goacc_exit_datum_1): New function.
7314         (goacc_exit_datum): Use above function.
7316 2020-07-09  Julian Brown  <julian@codesourcery.com>
7317             Thomas Schwinge  <thomas@codesourcery.com>
7319         PR middle-end/95270
7320         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7321         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7323 2020-07-09  Julian Brown  <julian@codesourcery.com>
7325         * oacc-mem.c (find_group_last): Group data-movement clauses
7326         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7327         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
7329 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7331         * testsuite/libgomp.c/loop-19.c: New test.
7332         * testsuite/libgomp.c/loop-20.c: New test.
7334 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7336         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7337         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
7338         it.  Remove __omp_alloctrait_value_max__.
7339         * allocator.c (omp_init_allocator): Handle omp_atv_default for
7340         omp_atk_alignment and omp_atk_pool_size.
7342 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7344         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7345         behavior for 'GOMP_MAP_FORCE_FROM'.
7346         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7348 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7350         * oacc-mem.c (goacc_exit_data_internal): Remove
7351         'GOMP_MAP_ALWAYS_FROM' handling.
7353 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7355         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7356         'scan-assembler' with 'scan-offload-rtl'.
7357         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7358         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7359         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7360         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7362 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7364         * target.c (gomp_map_vars_existing): Assert 'kind !=
7365         GOMP_MAP_ATTACH'.
7366         (gomp_map_vars_internal): Clean up.
7368 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
7370         * testsuite/libgomp.c/loop-17.c: New test.
7371         * testsuite/libgomp.c/loop-18.c: New test.
7373 2020-06-26  Marek Polacek  <polacek@redhat.com>
7375         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7377 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
7379         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7380         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7382 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
7384         * Makefile.am: Use -include.
7385         * Makefile.in: Regenerate.
7387 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
7389         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7390         * Makefile.in: Regenerate
7391         * configure.ac (tmake_file): Substitute.
7392         * configure: Regenerate.
7393         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7394         * config/t-aix: New file.
7396 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
7398         PR lto/94848
7399         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7400         'dg-do run'.
7402 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
7404         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7405         variant for HSA_RUNTIME_LIB name.
7406         (find_executable_symbol_1): Delete.
7407         (find_executable_symbol): Delete.
7408         (init_kernel_properties): Add ".kd" suffix to symbol names.
7409         (find_load_offset): Delete.
7410         (create_and_finalize_hsa_program): Remove relocation handling.
7412 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
7414         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7416 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
7418         PR lto/94848
7419         PR middle-end/95551
7420         * testsuite/libgomp.fortran/target-var.f90: New test.
7422 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7423             Julian Brown  <julian@codesourcery.com>
7425         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7426         special handling.
7428 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7429             Julian Brown  <julian@codesourcery.com>
7431         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7432         Simplify.
7434 2020-06-05  Julian Brown  <julian@codesourcery.com>
7436         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7437         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7439 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7441         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7442         Evaluate 'copyfrom' individually for each entry.
7443         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7445 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7447         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7448         Evaluate 'finalize' individually for each entry.
7449         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7450         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7451         file.
7453 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7455         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7456         usage.
7457         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7459 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7460             Julian Brown  <julian@codesourcery.com>
7462         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7463         checking.
7464         (acc_unmap_data, goacc_exit_data_internal): Restore
7465         'is_tgt_unmapped' checking.
7466         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7467         file.
7468         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7469         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7470         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7471         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7472         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7473         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7475 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7476             Julian Brown  <julian@codesourcery.com>
7478         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7480 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7482         PR libgomp/92854
7483         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7485 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7487         PR libgomp/92854
7488         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7489         more.
7491 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7492             Julian Brown  <julian@codesourcery.com>
7494         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7495         'gomp_map_vars'.
7496         (acc_map_data): Clean up accordingly.
7498 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7500         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7501         of over-eager 'finalize' clause.
7502         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7503         file.
7504         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7505         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7506         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7507         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7508         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7509         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7510         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7511         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7513 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7515         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7517 2020-06-04  Julian Brown  <julian@codesourcery.com>
7519         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7520         error path.
7521         (goacc_detach_internal): Likewise.
7523 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7525         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7526         the checkpoint.
7527         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7528         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7529         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7530         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7531         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7533 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7535         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7536         defined.
7538 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7540         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7542 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7544         * allocator.c (omp_alloc): For size == 0, return NULL early.
7546 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7548         PR bootstrap/95413
7549         * configure: Regenerated.
7551 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7553         PR libfortran/95191
7554         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7556 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7558         * omp.h.in (omp_uintptr_t): New typedef.
7559         (__GOMP_UINTPTR_T_ENUM): Define.
7560         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7561         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7562         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7563         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7564         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7565         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7566         (gomp_def_allocator): Declare.
7567         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7568         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7569         omp_alloc and omp_free.
7570         * team.c (gomp_team_start): Copy over ts.def_allocator.
7571         * env.c (gomp_def_allocator): New variable.
7572         (parse_wait_policy): Adjust function comment.
7573         (parse_allocator): New function.
7574         (handle_omp_display_env): Print OMP_ALLOCATOR.
7575         (initialize_env): Call parse_allocator.
7576         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7577         * allocator.c: New file.
7578         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7579         functions.
7580         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7581         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7582         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7583         * Makefile.in: Regenerated.
7585 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7587         PR bootstrap/95147
7588         * configure: Regenerated.
7590 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7592         PR libfortran/95119
7593         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7595 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7597         * configure: Regenerated.
7599 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7601         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7603 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7605         PR fortran/94690
7606         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7607         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7608         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7609         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7610         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7611         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7612         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7614 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7616         * testsuite/libgomp.c/target-39.c: New test.
7618 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7620         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7621         * openacc.f90 (acc_device_current): Likewise.
7622         * openacc.h (acc_device_current): Likewise.
7623         * openacc_lib.h (acc_device_current): Likewise.
7625         PR target/94282
7626         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7627         'dg-allow-blank-lines-in-output'.
7629         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7630         * testsuite/lib/libgomp.exp
7631         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7632         'radeon'.  Adjust all users.
7633         (check_effective_target_openacc_amdgcn_accel_present): Rename
7634         to...
7635         (check_effective_target_openacc_radeon_accel_present): ... this.
7636         Adjust all users.
7637         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7638         (check_effective_target_openacc_radeon_accel_selected): ... this.
7639         Adjust all users.
7641         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7642         'dg-do run'.
7644 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7646         PR other/94629
7648         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7649         hsa_iterate_agents.
7650         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7651         hsa_agent_iterate_regions.
7653 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7655         PR middle-end/94635
7656         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7657         run'.
7659 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7661         PR middle-end/94120
7662         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7663         test case.
7665 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7667         PR middle-end/94635
7668         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7670 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7672         PR libgomp/92843
7673         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7674         Rename to...
7675         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7676         ... this.
7677         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7678         Rename to...
7679         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7680         ... this.
7681         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7682         Rename to...
7683         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7684         ... this.
7685         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7686         Rename to...
7687         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7688         ... this.
7689         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7690         Rename to...
7691         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7692         ... this.
7693         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7694         Rename to...
7695         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7696         ... this.
7697         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7698         Rename to...
7699         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7700         ... this.
7701         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7702         Rename to...
7703         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7704         ... this.
7705         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7706         Rename to...
7707         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7708         ... this.
7709         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7710         Rename to...
7711         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7712         ... this.
7713         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7714         Rename to...
7715         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7716         ... this.
7717         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7718         Rename to...
7719         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7720         ... this.
7721         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7722         Rename to...
7723         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7724         ... this.
7725         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7726         Rename to...
7727         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7728         ... this.
7729         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7730         Rename to...
7731         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7732         ... this.
7733         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7734         Rename to...
7735         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7736         ... this.
7738 2020-04-10  Julian Brown  <julian@codesourcery.com>
7739             Thomas Schwinge  <thomas@codesourcery.com>
7741         PR libgomp/92843
7742         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7743         New file.
7744         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7745         Likewise.
7746         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7747         Likewise.
7748         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7749         Likewise.
7750         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7751         Likewise.
7752         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7753         Likewise.
7754         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7755         Likewise.
7756         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7757         Likewise.
7758         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7759         Likewise.
7760         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7761         Likewise.
7762         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7763         Likewise.
7764         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7765         Likewise.
7766         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7767         Likewise.
7768         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7769         Likewise.
7770         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7771         Likewise.
7772         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7773         Likewise.
7775 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7777         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7778         run'.
7780 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7782         PR middle-end/94120
7783         * libgomp.oacc-c++/declare-pr94120.C: New.
7785 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7787         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7788         files.
7789         * configure: Regenerate.
7790         * testsuite/libgomp-site-extra.exp.in: New file.
7791         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7792         variable.
7793         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7794         variable.
7795         * testsuite/Makefile.in: Regenerate.
7797 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7799         PR tree-optimization/89713
7800         PR c/94392
7801         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7802         'bar.sync'.
7803         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7805 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7807         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7808         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7810 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7812         PR libgomp/81689
7813         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7815 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7817         PR libgomp/94251
7818         * target.c (gomp_load_image_to_device): Fix link
7819         variable handling.
7821 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7823         PR c++/93931
7824         * testsuite/libgomp.c++/pr93931.C: New test.
7826 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7828         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7829         dg-allow-blank-lines-in-output.
7831 2020-03-18  Julian Brown <julian@codesourcery.com>
7832             Tobias Burnus  <tobias@codesourcery.com>
7834         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7835         it work concurrently.
7837 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7839         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7840         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7841         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7843 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7845         PR middle-end/93566
7846         * testsuite/libgomp.c/pr93566.c: New test.
7848 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7850         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7851         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7852         integer(acc_device_property) for the type of the return value of
7853         acc_get_property.
7855 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7857         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7858         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7859         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7860         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7861         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7862         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7863         corrections; add note about the previous interface and named constant.
7864         (OpenACC library and environment variables): Fix two typos.
7865         * openacc.f90: Use for all procedures the argument names from the spec
7866         as for â€¦_h they are user visible.
7867         (openacc_kinds): Rename acc_device_property to
7868         acc_device_property_kinds and change value to int32 ; and update users.
7869         Re-add acc_device_property for for backward compatibility.
7870         (acc_get_property_string_h): Clean up as acc_device_property_kind
7871         changed.
7872         (acc_get_property_h): Likewise and return c_size_t instead of
7873         acc_device_property.
7874         (openacc): Also export acc_device_property_kinds.
7875         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7876         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7877         handling; check against /= 0 instead of == 1 to match C.
7878         * openacc_lib.h: Use for all procedures the argument names from the spec
7879         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7880         be active also for fixed-form souce form.
7881         (acc_device_current, acc_device_property_kind, acc_device_property,
7882         acc_property_memory, acc_property_free_memory, acc_property_name,
7883         acc_property_vendor, acc_property_driver): New named constants.
7884         (acc_get_property, acc_get_property_string): New generic interface.
7886 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7888         PR libgomp/93481
7889         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7890         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7891         optional.
7892         (gomp_target_task_fn): Assert "devicep->async_run_func".
7893         (clear_unsupported_flags): New function to remove unsupported flags
7894         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7895         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7896         * testsuite/libgomp.c/target-33.c:
7897         Remove xfail for offload_target_nvptx.
7898         * testsuite/libgomp.c/target-34.c: Likewise.
7900 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7902         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7903         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7904         * testsuite/libgomp.c/target-34.c: Likewise.
7905         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7906         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7908 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7910         * testsuite/libgomp.c/target-38.c: New test.
7912 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7914         PR libgomp/93515
7915         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7917 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7919         * testsuite/lib/libgomp.exp
7920         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7921         and not as 'source' argument to libgomp_target_compile.
7923 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7925         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7926         (gcn_gfx801_s): Remove.
7927         (isa_hsa_name): Remove gfx801.
7928         (isa_gcc_name): Remove gfx801/carizzo.
7929         (isa_code): Remove gfx801.
7931 2020-02-03  Julian Brown  <julian@codesourcery.com>
7932             Tobias Burnus  <tobias@codesourcery.com>
7934         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7935         and *_finalize variants; document acc_attach and acc_detach; update
7936         references from OpenACC 2.0 to 2.6.
7937         * openacc.f90 (openacc_version): Update to 201711.
7938         * openacc_lib.h (openacc_version): Update to 201711.
7939         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7940         openacc_version to 201711.
7941         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7943 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7945         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7946         and vgpr_count fields.
7947         (struct kernel_info): Add a field for a hsa_kernel_description.
7948         (run_kernel): Reduce the number of threads/workers if the requested
7949         number would require too many VGPRs.
7950         (init_basic_kernel_info): Initialize description field with
7951         the hsa_kernel_description entry for the kernel.
7953 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7955         PR bootstrap/93409
7956         * plugin/configfrag.ac (enable_offload_targets): Skip
7957         HSA and GCN plugin besides -m32 also for -mx32.
7958         * configure: Regenerate.
7960 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7962         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7964 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7966         * plugin-gcn.c (struct agent_info): Add fields "name" and
7967         "vendor_name" ...
7968         (GOMP_OFFLOAD_init_device): ... and init from here.
7969         (struct hsa_context_info): Add field "driver_version_s" ...
7970         (init_hsa_contest): ... and init from here.
7971         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7972         implementation.
7973         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7974         Enable test execution for amdgcn and host offloading targets.
7975         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7976         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7977         (expect_device_properties): Split function into ...
7978         (expect_device_string_properties): ... this new function ...
7979         (expect_device_memory): ... and this new function.
7980         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7981         Add test.
7983 2020-01-28  Julian Brown  <julian@codesourcery.com>
7985         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7986         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7987         component/non-component variable refs in a single directive.
7988         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7990 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7992         * configure.ac: Handle `--with-toolexeclibdir='.
7993         * Makefile.in: Regenerate.
7994         * aclocal.m4: Regenerate.
7995         * configure: Regenerate.
7996         * testsuite/Makefile.in: Regenerate.
7998 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
8000         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8001         (expect_device_properties): Remove "expected_free_mem" argument,
8002         change "expected_total_mem" argument type to size_t;
8003         change types of acc_get_property results to size_t,
8004         adapt format strings.
8005         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8006         Use %zu instead of %zd to print size_t values.
8007         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8008         rename to ...
8009         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8010         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8011         rename to ...
8012         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8014 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
8016         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8017         the device id.
8019 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
8021         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8022         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8023         Adjust test dimensions for amdgcn.
8024         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8025         gang/worker/vector expectations dynamically.
8026         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8027         (main): Likewise.
8028         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8029         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8030         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8031         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8032         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8033         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8034         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8035         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8036         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8037         (acc_gang): Recognise acc_device_radeon.
8038         (acc_worker): Likewise.
8039         (acc_vector): Likewise.
8040         (main): Set expectations for amdgcn.
8041         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8042         (main): Adjust gang/worker/vector expectations dynamically.
8043         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8044         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8045         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8046         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8047         for amdgcn.
8049 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
8051         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8052         acc_device_radeon.
8053         (openacc): Likewise.
8054         * openacc.f90 (openacc_kinds): Likewise.
8055         (openacc): Likewise.
8056         * openacc.h (acc_device_t): Likewise.
8057         * openacc_lib.h: Likewise.
8058         * testsuite/lib/libgomp.exp
8059         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8060         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8061         (cb_compute_construct_end): Likewise.
8062         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8063         (cb_enqueue_launch_start): Likewise.
8064         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8065         (cb_enter_data_end): Likewise.
8066         (cb_exit_data_start): Likewise.
8067         (cb_exit_data_end): Likewise.
8068         (cb_compute_construct_end): Likewise.
8069         (cb_enqueue_launch_start): Likewise.
8070         (cb_enqueue_launch_end): Likewise.
8071         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8072         (main): Likewise.
8074 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8076         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
8077         to use this instead of 'enum gomp_device_property'.
8078         (GOMP_OFFLOAD_get_property): Rename to...
8079         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
8080         * libgomp.h (struct gomp_device_descr): Move
8081         'GOMP_OFFLOAD_openacc_get_property'...
8082         (struct acc_dispatch_t): ... here.  Adjust all users.
8083         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8085         * target.c (gomp_map_vars_internal)
8086         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8087         paths.
8089 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
8091         PR libgomp/93219
8092         * libgomp.h (gomp_print_string): Change return type from void to int.
8093         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
8094         not all characters have been written.
8096 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
8098         * libgomp.texi: Fix typos, use https.
8100 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
8102         * testsuite/libgomp.fortran/optional-map.f90: Add test for
8103         unallocated/disassociated actual arguments to nonallocatable/nonpointer
8104         dummy arguments; those are/shall be regarded as absent arguments.
8105         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8106         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8108 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
8110         Update copyright years.
8112         * libgomp.texi: Bump @copying's copyright year.
8114 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
8116         PR libgomp/93065
8117         * oacc-init.c (goacc_runtime_deinitialize): New function.
8119 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
8121         PR bootstrap/93074
8122         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8123         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
8125 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
8126             Frederik Harwath  <frederik@codesourcery.com>
8127             Thomas Schwinge  <tschwinge@codesourcery.com>
8129         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8130         * libgomp-plugin.h (gomp_device_property_value): New union.
8131         (gomp_device_property_value): New prototype.
8132         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8133         constant.
8134         (acc_device_property_t): New enum.
8135         (acc_get_property, acc_get_property_string): New prototypes.
8136         * oacc-init.c (acc_get_device_type): Also assert that result
8137         is not `acc_device_current'.
8138         (get_property_any, acc_get_property, acc_get_property_string):
8139         New functions.
8140         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8141         `acc_property_memory', `acc_property_free_memory',
8142         `acc_property_name', `acc_property_vendor' and
8143         `acc_property_driver' constants.  Add `acc_device_property' data
8144         type.
8145         (openacc_internal): Add `acc_get_property' and
8146         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
8147         `acc_get_property_string_h', `acc_get_property_l' and
8148         `acc_get_property_string_l'.
8149         * oacc-host.c (host_get_property): New function.
8150         (host_dispatch): Wire it.
8151         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8152         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8153         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8154         * libgomp.texi (OpenACC Runtime Library Routines): Add
8155         `acc_get_property'.
8156         (acc_get_property): New node.
8157         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8158         function (stub).
8159         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8160         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8161         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8162         calls.
8163         (GOMP_OFFLOAD_get_property): New function.
8164         (struct ptx_device): Add new field "name".
8165         (cuda_driver_version_s): Add new static variable ...
8166         (nvptx_init): ... and init from here.
8168         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8169         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8170         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8171         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8172         with test helper functions.
8174         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8176 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
8178         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8179         variable.
8181 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
8183         * target.c (gomp_map_vars_internal): Restore 'omp declare target
8184         link' handling.
8186 2019-12-19  Julian Brown  <julian@codesourcery.com>
8188         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8189         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8190         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8192 2019-12-19  Julian Brown  <julian@codesourcery.com>
8193             Cesar Philippidis  <cesar@codesourcery.com>
8195         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8196         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8197         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8198         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8199         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8200         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8201         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8202         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8203         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8204         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8205         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8206         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8207         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8209 2019-12-19  Julian Brown  <julian@codesourcery.com>
8211         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8212         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8213         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8214         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8215         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8216         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8217         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8218         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8219         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8220         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8221         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8222         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8224 2019-12-19  Julian Brown  <julian@codesourcery.com>
8226         * libgomp.h (struct target_var_desc): Add do_detach flag.
8227         * oacc-init.c (acc_shutdown_1): Free aux block if present.
8228         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8229         struct components.  Tidy up and add some new checks.
8230         (goacc_enter_data_internal): Update call to find_group_last.
8231         (goacc_exit_data_internal): Support detach operations and
8232         GOMP_MAP_STRUCT.
8233         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8234         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
8235         attach/detach in enter/exit data detection code.
8236         * target.c (gomp_map_vars_existing): Initialise do_detach field of
8237         tgt_var_desc.
8238         (gomp_map_vars_internal): Support attach.
8239         (gomp_unmap_vars_internal): Support detach.
8241 2019-12-19  Julian Brown  <julian@codesourcery.com>
8242             Thomas Schwinge  <thomas@codesourcery.com>
8244         * libgomp.h (struct splay_tree_aux): Add attach_count field.
8245         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8246         * libgomp.map (OACC_2.6): New section. Add acc_attach,
8247         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8248         acc_detach_finalize_async.
8249         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8250         acc_detach, acc_detach_async, acc_detach_finalize,
8251         acc_detach_finalize_async): New functions.
8252         * openacc.h (acc_attach, acc_attach_async, acc_detach,
8253         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8254         prototypes.
8255         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8256         (gomp_remove_var_internal): Free attachment counts if present.
8257         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8258         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8260 2019-12-19  Julian Brown  <julian@codesourcery.com>
8261             Cesar Philippidis  <cesar@codesourcery.com>
8263         * libgomp.h (gomp_map_val): Add prototype.
8264         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8265         open-coding device-address calculation.
8266         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8267         non-present case.
8269 2019-12-19  Julian Brown  <julian@codesourcery.com>
8271         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8272         field for virtual_refcount.
8273         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8274         (gomp_free_memmap): Remove prototype.
8275         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8276         instead of calling gomp_free_memmap.
8277         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8278         dynamic_refcount.
8279         (acc_unmap_data): Open code instead of forcing target_mem_desc's
8280         to_free field to NULL then calling gomp_unmap_vars.  Handle
8281         REFCOUNT_INFINITY on target blocks.
8282         (goacc_enter_data): Rename to...
8283         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
8284         handling for mapping groups.  Use virtual_refcount instead of
8285         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8286         map_map_vars_async call.  Re-do lookup for target pointer return value.
8287         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8288         renamed goacc_enter_datum function.
8289         (goacc_exit_data): Rename to...
8290         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
8291         (acc_delete, acc_delete_async, acc_delete_finalize,
8292         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8293         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8294         goacc_exit_datum function.
8295         (gomp_acc_remove_pointer, find_pointer): Remove functions.
8296         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8297         New functions.
8298         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8299         goacc_exit_data_internal helper functions.
8300         * target.c (gomp_map_vars_internal): Handle
8301         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
8302         semantics.
8303         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8304         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8305         virtual_refcount field instead of dynamic_refcount.
8306         (gomp_free_memmap): Remove function.
8307         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8308         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8309         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8311 2019-12-19  Julian Brown  <julian@codesourcery.com>
8312             Thomas Schwinge  <thomas@codesourcery.com>
8314         * libgomp.h (struct splay_tree_aux): New.
8315         (struct splay_tree_key_s): Replace link_key field with aux pointer.
8316         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8317         to aux struct.
8318         (gomp_remove_var_internal): Free aux block if present.
8319         (gomp_load_image_to_device): Zero-initialise aux field instead of
8320         link_key field.
8321         (omp_target_associate_pointer): Zero-initialise aux field.
8323 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
8325         PR middle-end/86416
8326         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8327         q or none.
8328         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8329         L or none.
8331 2019-12-19  Julian Brown  <julian@codesourcery.com>
8332             Maciej W. Rozycki  <macro@codesourcery.com>
8333             Tobias Burnus  <tobias@codesourcery.com>
8334             Thomas Schwinge  <thomas@codesourcery.com>
8336         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8337         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8338         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8339         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8340         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8341         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8342         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8343         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8344         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8346 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
8348         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8349         called...
8350         (goacc_insert_pointer): ... from here, "present" case.
8351         (goacc_insert_pointer): Inline function into...
8352         (GOACC_enter_exit_data): ... here, and simplify.
8354         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8355         called...
8356         (goacc_insert_pointer): ... from here, "not present" case.
8358         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
8359         all users.
8361         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8362         'goacc_enter_data', 'goacc_exit_data'.
8364         * oacc-mem.c (delete_copyout): Refactor into...
8365         (goacc_exit_data): ... this.  Adjust all users.
8367         * oacc-mem.c (present_create_copy): Refactor into...
8368         (goacc_enter_data): ... this.  Adjust all users.
8370         * target.c (gomp_unmap_vars_internal): Add a safeguard to
8371         'gomp_remove_var'.
8373         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8374         like 'GOMP_MAP_FROM'.
8376         PR libgomp/92726
8377         PR libgomp/92970
8378         PR libgomp/92984
8379         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8380         fails.
8381         (GOACC_enter_exit_data): Simplify accordingly.
8382         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8383         subsuming...
8384         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8385         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8386         file.
8387         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8388         subsuming...
8389         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8390         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8391         file.
8392         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8393         subsuming...
8394         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8396         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8397         'finalize' handling.
8399         PR libgomp/92848
8400         * oacc-mem.c (acc_map_data, present_create_copy)
8401         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8402         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8403         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8404         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8405         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8406         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8407         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8408         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8409         Remove "XFAIL"s.
8411         * target.c (gomp_unmap_tgt): Make it 'static'.
8412         * libgomp.h (gomp_unmap_tgt): Remove.
8414 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
8416         PR middle-end/86416
8417         * testsuite/libgomp.c/pr86416-1.c: New.
8418         * testsuite/libgomp.c/pr86416-2.c: New.
8420 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
8422         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8423         all symbols as public except for the 'use â€¦, only' imported symbol,
8424         which is private.
8425         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8426         all symbols from module openacc_kinds as PUBLIC
8427         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8428         fix comment typo.
8429         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8431 2019-12-13  Julian Brown  <julian@codesourcery.com>
8433         PR libgomp/92881
8435         * libgomp.h (gomp_remove_var_async): Add prototype.
8436         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8437         gomp_remove_var.
8438         * target.c (gomp_unref_tgt): Change return type to bool, indicating
8439         whether target_mem_desc was unmapped.
8440         (gomp_unref_tgt_void): New.
8441         (gomp_remove_var): Reimplement in terms of...
8442         (gomp_remove_var_internal): ...this new helper function.
8443         (gomp_remove_var_async): New, implemented using above helper function.
8444         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8445         gomp_unref_tgt.
8447 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
8449         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8450         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8451         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8452         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8453         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8454         Likewise.
8455         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8456         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8458 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
8460         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8461         as public except for the 'use â€¦, only' imported symbol, which is
8462         private.
8463         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8464         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8465         attributes for acc_copyout_finalize and acc_delete_finalize.
8467 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
8469         PR fortran/92899
8470         * testsuite/libgomp.fortran/atomic1.f90: New test.
8472 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8474         PR libgomp/92843
8475         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8476         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
8477         assertions.
8478         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8479         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8480         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8481         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8482         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8484         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8485         * oacc-mem.c: ... here.
8486         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8487         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8488         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8489         Remove.
8490         * libgomp_g.h: Update.
8492         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8493         * oacc-async.c: ... here.
8494         * oacc-int.h (goacc_wait): Declare.
8495         * libgomp_g.h: Update
8497         PR libgomp/92854
8498         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8499         New file.
8500         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8501         Likewise.
8502         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8503         Likewise.
8504         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8505         Likewise.
8506         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8507         Likewise.
8508         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8509         Likewise.
8511 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8512             Julian Brown  <julian@codesourcery.com>
8514         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8515         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8517 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8519         * omp_lib.h.in: Fix spelling of function declaration
8520         omp_get_cancell(l)ation.
8521         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8522         Fix typos.
8523         * env.c: Fix comment typos.
8524         * oacc-host.c: Likewise.
8525         * ordered.c: Likewise.
8526         * task.c: Likewise.
8527         * team.c: Likewise.
8528         * config/gcn/task.c: Likewise.
8529         * config/gcn/team.c: Likewise.
8530         * config/nvptx/task.c: Likewise.
8531         * config/nvptx/team.c: Likewise.
8532         * plugin/plugin-gcn.c: Likewise.
8533         * testsuite/libgomp.fortran/jacobi.f: Likewise.
8534         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8535         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8537 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8539         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8540         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8541         unnecessary 'dg-additional-options "-w"'.
8543 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8544             Julian Brown  <julian@codesourcery.com>
8546         PR libgomp/92116
8547         PR libgomp/92877
8549         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8550         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8551         Adjust all users.
8552         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8553         Remove XFAIL.
8554         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8555         Likewise.
8556         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8558 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8560         PR libgomp/92503
8561         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8562         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8563         file.
8564         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8565         Likewise.
8566         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8567         Likewise.
8568         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8569         Likewise.
8570         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8571         Likewise.
8572         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8573         Likewise.
8574         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8575         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8576         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8577         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8578         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8579         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8580         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8581         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8582         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8583         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8585         PR libgomp/92840
8586         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8587         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8588         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8589         New file.
8590         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8591         Likewise.
8592         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8593         Likewise.
8594         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8595         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8597         PR libgomp/92511
8598         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8599         this file...
8600         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8601         this file...
8602         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8603         file...
8604         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8605         file...
8606         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8607         ... with their content moved into, and extended in this new file.
8608         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8609         New file.
8610         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8611         Likewise.
8612         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8613         Likewise.
8614         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8615         Likewise.
8617         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8619         PR libgomp/92854
8620         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8622         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8624         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8626 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8628         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8629         unique.
8630         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8631         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8632         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8633         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8634         Ditto.
8635         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8636         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8638 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8640         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8642 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8643             Kwok Cheung Yeung <kcy@codesourcery.com>
8645         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8646         if input it a NULL pointer.
8647         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8648         diagnostic of NULL pointer.
8649         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8650         * testsuite/libgomp.fortran/optional-map.f90: New.
8651         * testsuite/libgomp.fortran/use_device_addr-1.f90
8652         (test_dummy_opt_callee_1_absent): New.
8653         (test_dummy_opt_call_1): Call it.
8654         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8655         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8656         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8657         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8658         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8659         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8660         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8661         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8662         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8663         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8664         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8665         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8666         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8667         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8668         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8669         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8671 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8673         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8674         expect dg-output of 'Error termination.' for GCN.
8675         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8676         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8678 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8680         PR fortran/92756
8681         * testsuite/libgomp.fortran/teams1.f90: New test.
8682         * testsuite/libgomp.fortran/teams2.f90: New test.
8684 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8686         * oacc-init.c (acc_known_device_type): Add function.
8687         (unknown_device_type_error): Add function.
8688         (name_of_acc_device_t): Change to call unknown_device_type_error
8689         on unknown type.
8690         (resolve_device): Use acc_known_device_type.
8691         (acc_init): Fail if acc_device_t argument is not valid.
8692         (acc_shutdown): Likewise.
8693         (acc_get_num_devices): Likewise.
8694         (acc_set_device_type): Likewise.
8695         (acc_get_device_num): Likewise.
8696         (acc_set_device_num): Likewise.
8697         (acc_on_device): Add comment that argument validity is not checked.
8699 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8701         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8702         Recognize amdgcn.
8703         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8704         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8705         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8706         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8707         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8709 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8711         PR libgomp/91938
8712         * configure.tgt: Avoid IE tls on *-*-musl*.
8714 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8716         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8717         adding a common-block test case.
8719 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8721         PR c++/60228
8722         * testsuite/libgomp.c++/udr-20.C: New test.
8723         * testsuite/libgomp.c++/udr-21.C: New test.
8725 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8727         * testsuite/lib/libgomp.exp
8728         (check_effective_target_offload_target_nvptx): New proc.
8729         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8730         'dg-skip-if'.
8731         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8732         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8733         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8735 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8737         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8738         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8739         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8740         * testsuite/libgomp.c/private-1.c: Likewise.
8741         * testsuite/libgomp.c/task-1.c: Likewise.
8742         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8744 2019-11-20  Julian Brown  <julian@codesourcery.com>
8746         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8747         aq->mutex here.
8748         (queue_push_launch): Lock aq->mutex before calling
8749         wait_for_queue_nonfull.
8750         (queue_push_callback): Likewise.
8751         (queue_push_asyncwait): Likewise.
8752         (queue_push_placeholder): Likewise.
8754 2019-11-20  Julian Brown  <julian@codesourcery.com>
8756         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8757         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8758         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8759         return code.
8761 2019-11-20  Julian Brown  <julian@codesourcery.com>
8763         PR libgomp/92511
8765         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8766         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8767         in non-present/create case.
8768         (delete_copyout): Change error condition to fail only on copies outside
8769         of mapped block.  Adjust error message accordingly.
8770         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8771         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8772         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8773         message.
8774         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8776         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8778 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8780         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8781         libatomic in build-tree testing.
8783 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8785         * testsuite/Makefile.in: Regenerate.
8787 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8789         * testsuite/libgomp.c/target-print-1.c: New file.
8790         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8791         * testsuite/libgomp.oacc-c/print-1.c: New file.
8792         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8794 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8795             Kwok Cheung Yeung  <kcy@codesourcery.com>
8796             Julian Brown  <julian@codesourcery.com>
8797             Tom de Vries  <tom@codesourcery.com>
8799         * plugin/Makefrag.am: Add amdgcn plugin support.
8800         * plugin/configfrag.ac: Likewise.
8801         * plugin/plugin-gcn.c: New file.
8802         * configure: Regenerate.
8803         * Makefile.in: Regenerate.
8804         * testsuite/Makefile.in: Regenerate.
8806 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8808         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8809         and use team_malloc variants.
8810         (gomp_gcn_exit_kernel): Use team_free.
8811         * libgomp.h (TEAM_ARENA_SIZE): Define.
8812         (TEAM_ARENA_START): Define.
8813         (TEAM_ARENA_FREE): Define.
8814         (TEAM_ARENA_END): Define.
8815         (team_malloc): New function.
8816         (team_malloc_cleared): New function.
8817         (team_free): New function.
8818         * team.c (gomp_new_team): Initialize and use team_malloc.
8819         (free_team): Use team_free.
8820         (gomp_free_thread): Use team_free.
8821         (gomp_pause_host): Use team_free.
8822         * work.c (gomp_init_work_share): Use team_malloc.
8823         (gomp_fini_work_share): Use team_free.
8825 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8826             Kwok Cheung Yeung  <kcy@codesourcery.com>
8827             Julian Brown  <julian@codesourcery.com>
8828             Tom de Vries  <tom@codesourcery.com>
8830         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8831         * Makefile.in: Regenerate.
8832         * config.h.in (PLUGIN_GCN): Add new undef.
8833         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8834         * config/gcn/affinity-fmt.c: New file.
8835         * config/gcn/bar.c: New file.
8836         * config/gcn/bar.h: New file.
8837         * config/gcn/doacross.h: New file.
8838         * config/gcn/icv-device.c: New file.
8839         * config/gcn/oacc-target.c: New file.
8840         * config/gcn/simple-bar.h: New file.
8841         * config/gcn/target.c: New file.
8842         * config/gcn/task.c: New file.
8843         * config/gcn/team.c: New file.
8844         * config/gcn/time.c: New file.
8845         * configure.ac: Add amdgcn*-*-*.
8846         * configure: Regenerate.
8847         * configure.tgt: Add amdgcn*-*-*.
8848         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8849         * libgomp.h (gcn_thrs): Add amdgcn variant.
8850         (set_gcn_thrs): Likewise.
8851         (gomp_thread): Likewise.
8852         * oacc-int.h (goacc_thread): Likewise.
8853         * oacc-target.c: New file.
8854         * openacc.f90 (acc_device_gcn): New parameter.
8855         * openacc.h (acc_device_t): Add acc_device_gcn.
8856         * team.c (gomp_free_pool_helper): Add amdgcn support.
8858 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8859             Julian Brown  <julian@codesourcery.com>
8861         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8862         parameter.
8863         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8864         queue constructor.
8865         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8866         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8867         device parameter.
8869 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8871         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8872         * config/nvptx/libgomp-plugin.c: Move ...
8873         * config/accel/libgomp-plugin.c: ... to here.
8874         * config/nvptx/lock.c: Move ...
8875         * config/accel/lock.c: ... to here.
8876         * config/nvptx/mutex.c: Move ...
8877         * config/accel/mutex.c: ... to here.
8878         * config/nvptx/mutex.h: Move ...
8879         * config/accel/mutex.h: ... to here.
8880         * config/nvptx/oacc-async.c: Move ...
8881         * config/accel/oacc-async.c: ... to here.
8882         * config/nvptx/oacc-cuda.c: Move ...
8883         * config/accel/oacc-cuda.c: ... to here.
8884         * config/nvptx/oacc-host.c: Move ...
8885         * config/accel/oacc-host.c: ... to here.
8886         * config/nvptx/oacc-init.c: Move ...
8887         * config/accel/oacc-init.c: ... to here.
8888         * config/nvptx/oacc-mem.c: Move ...
8889         * config/accel/oacc-mem.c: ... to here.
8890         * config/nvptx/oacc-plugin.c: Move ...
8891         * config/accel/oacc-plugin.c: ... to here.
8892         * config/nvptx/omp-lock.h: Move ...
8893         * config/accel/omp-lock.h: ... to here.
8894         * config/nvptx/openacc.f90: Move ...
8895         * config/accel/openacc.f90: ... to here.
8896         * config/nvptx/pool.h: Move ...
8897         * config/accel/pool.h: ... to here.
8898         * config/nvptx/proc.c: Move ...
8899         * config/accel/proc.c: ... to here.
8900         * config/nvptx/ptrlock.c: Move ...
8901         * config/accel/ptrlock.c: ... to here.
8902         * config/nvptx/ptrlock.h: Move ...
8903         * config/accel/ptrlock.h: ... to here.
8904         * config/nvptx/sem.c: Move ...
8905         * config/accel/sem.c: ... to here.
8906         * config/nvptx/sem.h: Move ...
8907         * config/accel/sem.h: ... to here.
8908         * config/nvptx/thread-stacksize.h: Move ...
8909         * config/accel/thread-stacksize.h: ... to here.
8911 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8912             Tobias Burnus  <tobias@codesourcery.com>
8913             Frederik Harwath  <frederik@codesourcery.com>
8914             Thomas Schwinge  <thomas@codesourcery.com>
8916         libgomp/
8917         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8918         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8919         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8921 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8922             Kwok Cheung Yeung  <kcy@codesourcery.com>
8924         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8925         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8927 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8929         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8931         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8932         run'.
8933         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8934         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8936 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8938         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8939         Add expected warnings about missing reduction clauses.
8940         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8941         Likewise.
8942         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8943         Likewise.
8944         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8945         Likewise.
8947 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8949         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8950         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8951         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8952         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8953         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8954         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8956 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8958         PR fortran/92305
8959         * testsuite/libgomp.fortran/allocatable2.f90: Use
8960         unique numbers with 'stop'.
8961         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8962         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8963         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8964         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8965         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8967 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8969         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8970         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8971         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8972         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8973         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8974         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8976 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8978         * testsuite/libgomp.fortran/target9.f90: New.
8980 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8982         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8983         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8984         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8985         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8986         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8987         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8988         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8989         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8990         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8991         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8992         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8993         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8994         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8995         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8996         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8997         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8998         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8999         * testsuite/libgomp.fortran/associate2.f90: Ditto.
9000         * testsuite/libgomp.fortran/associate3.f90: Ditto.
9001         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9002         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9003         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9004         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9005         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9006         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9007         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9008         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9009         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9010         * testsuite/libgomp.fortran/character1.f90: Ditto.
9011         * testsuite/libgomp.fortran/character2.f90: Ditto.
9012         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9013         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9014         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9015         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9016         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9017         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9018         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9019         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9020         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9021         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9022         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9023         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9024         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9025         * testsuite/libgomp.fortran/do1.f90: Ditto.
9026         * testsuite/libgomp.fortran/do2.f90: Ditto.
9027         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9028         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9029         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9030         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9031         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9032         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9033         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9034         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9035         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9036         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9037         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9038         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9039         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9040         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9041         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9042         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9043         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9044         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9045         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9046         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9047         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9048         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9049         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9050         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9051         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9052         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9053         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9054         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9055         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9056         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9057         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9058         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9059         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9060         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9061         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9062         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9063         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9064         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9065         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9066         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9067         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9068         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9069         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9070         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9071         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9072         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9073         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9074         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9075         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9076         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9077         * testsuite/libgomp.fortran/lib1.f90: Ditto.
9078         * testsuite/libgomp.fortran/lib4.f90: Ditto.
9079         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9080         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9081         * testsuite/libgomp.fortran/nested1.f90: Ditto.
9082         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9083         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9084         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9085         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9086         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9087         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9088         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9089         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9090         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9091         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9092         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9093         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9094         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9095         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9096         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9097         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9098         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9099         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9100         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9101         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9102         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9103         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9104         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9105         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9106         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9107         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9108         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9109         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9110         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9111         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9112         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9113         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9114         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9115         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9116         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9117         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9118         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9119         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9120         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9121         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9122         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9123         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9124         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9125         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9126         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9127         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9128         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9129         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9130         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9131         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9132         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9133         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9134         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9135         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9136         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9137         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9138         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9139         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9140         * testsuite/libgomp.fortran/reference1.f90: Ditto.
9141         * testsuite/libgomp.fortran/reference2.f90: Ditto.
9142         * testsuite/libgomp.fortran/retval1.f90: Ditto.
9143         * testsuite/libgomp.fortran/retval2.f90: Ditto.
9144         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9145         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9146         * testsuite/libgomp.fortran/simd1.f90: Ditto.
9147         * testsuite/libgomp.fortran/simd2.f90: Ditto.
9148         * testsuite/libgomp.fortran/simd3.f90: Ditto.
9149         * testsuite/libgomp.fortran/simd4.f90: Ditto.
9150         * testsuite/libgomp.fortran/simd5.f90: Ditto.
9151         * testsuite/libgomp.fortran/simd6.f90: Ditto.
9152         * testsuite/libgomp.fortran/simd7.f90: Ditto.
9153         * testsuite/libgomp.fortran/stack.f90: Ditto.
9154         * testsuite/libgomp.fortran/strassen.f90: Ditto.
9155         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9156         * testsuite/libgomp.fortran/tabs2.f: Ditto.
9157         * testsuite/libgomp.fortran/target1.f90: Ditto.
9158         * testsuite/libgomp.fortran/target2.f90: Ditto.
9159         * testsuite/libgomp.fortran/target3.f90: Ditto.
9160         * testsuite/libgomp.fortran/target4.f90: Ditto.
9161         * testsuite/libgomp.fortran/target5.f90: Ditto.
9162         * testsuite/libgomp.fortran/target6.f90: Ditto.
9163         * testsuite/libgomp.fortran/target7.f90: Ditto.
9164         * testsuite/libgomp.fortran/target8.f90: Ditto.
9165         * testsuite/libgomp.fortran/task1.f90: Ditto.
9166         * testsuite/libgomp.fortran/task2.f90: Ditto.
9167         * testsuite/libgomp.fortran/task3.f90: Ditto.
9168         * testsuite/libgomp.fortran/task4.f90: Ditto.
9169         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9170         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9171         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9172         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9173         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9174         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9175         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9176         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9177         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9178         * testsuite/libgomp.fortran/udr1.f90: Ditto.
9179         * testsuite/libgomp.fortran/udr10.f90: Ditto.
9180         * testsuite/libgomp.fortran/udr11.f90: Ditto.
9181         * testsuite/libgomp.fortran/udr12.f90: Ditto.
9182         * testsuite/libgomp.fortran/udr13.f90: Ditto.
9183         * testsuite/libgomp.fortran/udr14.f90: Ditto.
9184         * testsuite/libgomp.fortran/udr15.f90: Ditto.
9185         * testsuite/libgomp.fortran/udr2.f90: Ditto.
9186         * testsuite/libgomp.fortran/udr3.f90: Ditto.
9187         * testsuite/libgomp.fortran/udr4.f90: Ditto.
9188         * testsuite/libgomp.fortran/udr5.f90: Ditto.
9189         * testsuite/libgomp.fortran/udr6.f90: Ditto.
9190         * testsuite/libgomp.fortran/udr7.f90: Ditto.
9191         * testsuite/libgomp.fortran/udr8.f90: Ditto.
9192         * testsuite/libgomp.fortran/udr9.f90: Ditto.
9193         * testsuite/libgomp.fortran/vla1.f90: Ditto.
9194         * testsuite/libgomp.fortran/vla2.f90: Ditto.
9195         * testsuite/libgomp.fortran/vla3.f90: Ditto.
9196         * testsuite/libgomp.fortran/vla4.f90: Ditto.
9197         * testsuite/libgomp.fortran/vla5.f90: Ditto.
9198         * testsuite/libgomp.fortran/vla6.f90: Ditto.
9199         * testsuite/libgomp.fortran/vla7.f90: Ditto.
9200         * testsuite/libgomp.fortran/vla8.f90: Ditto.
9201         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9202         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9204 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9206         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9207         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9208         Ditto; add 'dg-do run' for torture testing.
9209         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
9210         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9211         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9212         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9213         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9214         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9215         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9216         * testsuite/libgomp.fortran/task2.f90: Ditto.
9217         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9218         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9219         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9220         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9221         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9222         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9224 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
9226         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9227         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9228         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9229         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9230         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9231         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9232         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9233         Use 'stop' not abort().
9234         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9235         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9236         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9237         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9238         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9239         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9240         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9241         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9242         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9243         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9244         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9245         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9246         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9247         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9248         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9249         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9250         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9251         Ditto.
9252         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9253         Ditto.
9254         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9255         Ditto.
9256         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9257         Ditto.
9258         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9259         Ditto.
9260         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9261         Ditto.
9262         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9263         Ditto.
9264         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9265         Ditto.
9266         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9267         Ditto.
9268         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9269         Ditto.
9270         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9271         Ditto.
9272         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9273         Ditto.
9274         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9275         Ditto.
9276         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9277         Ditto.
9278         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9279         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9280         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9281         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9282         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9283         Likewise and also add 'dg-do run'.
9284         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9285         Ditto.
9287 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
9288             Tobias Burnus  <tobias@codesourcery.com>
9290         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9291         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9292         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9294 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
9296         PR libgomp/92081
9297         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9298         than 0.
9300 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9302         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9303         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9305 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
9307         PR middle-end/92036
9308         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9309         file.
9311 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
9313         PR testsuite/91884
9314         * testsuite/libgomp.fortran/fortran.exp: Conditionally
9315         add -lquadmath.
9316         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9318 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
9320         PR libgomp/92028
9321         * target.c (gomp_map_vars_internal): Readd the previous
9322         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9323         though do that just in the !not_found_cnt case.
9325 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
9327         * gfortran.dg/gomp/target-simd.f90: New.
9329 2019-10-02  Julian Brown  <julian@codesourcery.com>
9330             Cesar Philippidis  <cesar@codesourcery.com>
9332         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9333         * target.c (FIELD_TGT_EMPTY): Define.
9334         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
9335         as switch instead of list of ifs.
9336         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9338 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
9340         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9341         include. Replace alloca () with __builtin_alloca ().
9342         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9344 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
9346         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9347         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9348         * oacc-parallel.c: Don't include "libgomp_g.h".
9349         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9350         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9351         * aclocal.m4: Regenerated.
9352         * config.h.in: Regenerated.
9353         * configure: Regenerated.
9354         * Makefile.in: Regenerated.
9356 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
9358         * libgomp_g.h: Include stdint.h instead of gstdint.h.
9360 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
9362         * configure: Regenerate.
9364 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
9366         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9367         string is initialized.
9369 2019-09-06  Florian Weimer  <fweimer@redhat.com>
9371         * configure: Regenerate.
9373 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
9375         PR other/79543
9376         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9377         scanning to conform to the GNU Coding Standards.
9378         * configure: Regenerate.
9380 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
9382         PR libgomp/91530
9383         * testsuite/libgomp.c/scan-21.c: New test.
9384         * testsuite/libgomp.c/scan-22.c: New test.
9386 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
9388         PR libgomp/91530
9389         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9390         targets.
9391         * testsuite/libgomp.c/scan-12.c: Likewise.
9392         * testsuite/libgomp.c/scan-13.c: Likewise.
9393         * testsuite/libgomp.c/scan-14.c: Likewise.
9394         * testsuite/libgomp.c/scan-15.c: Likewise.
9395         * testsuite/libgomp.c/scan-16.c: Likewise.
9396         * testsuite/libgomp.c/scan-17.c: Likewise.
9397         * testsuite/libgomp.c/scan-18.c: Likewise.
9398         * testsuite/libgomp.c/scan-19.c: Likewise.
9399         * testsuite/libgomp.c/scan-20.c: Likewise.
9400         * testsuite/libgomp.c++/scan-9.C: Likewise.
9401         * testsuite/libgomp.c++/scan-10.C: Likewise.
9402         * testsuite/libgomp.c++/scan-11.C: Likewise.
9403         * testsuite/libgomp.c++/scan-12.C: Likewise.
9404         * testsuite/libgomp.c++/scan-14.C: Likewise.
9405         * testsuite/libgomp.c++/scan-15.C: Likewise.
9406         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
9407         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9408         * testsuite/libgomp.c++/scan-16.C: Likewise.
9410 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
9412         PR fortran/91473
9413         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9414         -std=legacy so invalid code in the test case is accepted.
9416 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9418         PR fortran/91422
9419         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9420         dimension.
9422 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
9424         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9425         perform the lookup in the first loop only if !not_found_cnt, otherwise
9426         perform lookups for it in the second loop guarded with
9427         if (not_found_cnt || has_firstprivate).
9428         * testsuite/libgomp.c/target-37.c: New test.
9429         * testsuite/libgomp.c++/target-22.C: New test.
9431 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
9433         * testsuite/libgomp.c/target-18.c (struct S): New type.
9434         (foo): Use use_device_addr clause instead of use_device_ptr clause
9435         where required by OpenMP 5.0, add further tests for both use_device_ptr
9436         and use_device_addr clauses.
9437         * testsuite/libgomp.c++/target-9.C (struct S): New type.
9438         (foo): Use use_device_addr clause instead of use_device_ptr clause
9439         where required by OpenMP 5.0, add further tests for both use_device_ptr
9440         and use_device_addr clauses.  Add t and u arguments.
9441         (main): Adjust caller.
9443 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
9445         * testsuite/libgomp.c++/loop-13.C: New test.
9446         * testsuite/libgomp.c++/loop-14.C: New test.
9447         * testsuite/libgomp.c++/loop-15.C: New test.
9449 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9451         PR middle-end/91301
9452         * testsuite/libgomp.c++/for-27.C: New test.
9454 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
9456         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9457         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9459 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9461         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9463 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
9465         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9466         * testsuite/libgomp.c++/scan-16.C: Likewise.
9468 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
9470         * testsuite/libgomp.c/scan-19.c: New test.
9471         * testsuite/libgomp.c/scan-20.c: New test.
9473         * testsuite/libgomp.c/scan-11.c: New test.
9474         * testsuite/libgomp.c/scan-12.c: New test.
9475         * testsuite/libgomp.c/scan-13.c: New test.
9476         * testsuite/libgomp.c/scan-14.c: New test.
9477         * testsuite/libgomp.c/scan-15.c: New test.
9478         * testsuite/libgomp.c/scan-16.c: New test.
9479         * testsuite/libgomp.c/scan-17.c: New test.
9480         * testsuite/libgomp.c/scan-18.c: New test.
9481         * testsuite/libgomp.c++/scan-9.C: New test.
9482         * testsuite/libgomp.c++/scan-10.C: New test.
9483         * testsuite/libgomp.c++/scan-11.C: New test.
9484         * testsuite/libgomp.c++/scan-12.C: New test.
9485         * testsuite/libgomp.c++/scan-13.C: New test.
9486         * testsuite/libgomp.c++/scan-14.C: New test.
9487         * testsuite/libgomp.c++/scan-15.C: New test.
9488         * testsuite/libgomp.c++/scan-16.C: New test.
9490 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
9492         * testsuite/libgomp.c/scan-9.c: New test.
9493         * testsuite/libgomp.c/scan-10.c: New test.
9495 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
9497         * testsuite/libgomp.c++/scan-1.C: New test.
9498         * testsuite/libgomp.c++/scan-2.C: New test.
9499         * testsuite/libgomp.c++/scan-3.C: New test.
9500         * testsuite/libgomp.c++/scan-4.C: New test.
9501         * testsuite/libgomp.c++/scan-5.C: New test.
9502         * testsuite/libgomp.c++/scan-6.C: New test.
9503         * testsuite/libgomp.c++/scan-7.C: New test.
9504         * testsuite/libgomp.c++/scan-8.C: New test.
9505         * testsuite/libgomp.c/scan-1.c: New test.
9506         * testsuite/libgomp.c/scan-2.c: New test.
9507         * testsuite/libgomp.c/scan-3.c: New test.
9508         * testsuite/libgomp.c/scan-4.c: New test.
9509         * testsuite/libgomp.c/scan-5.c: New test.
9510         * testsuite/libgomp.c/scan-6.c: New test.
9511         * testsuite/libgomp.c/scan-7.c: New test.
9512         * testsuite/libgomp.c/scan-8.c: New test.
9514 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9516         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9517         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9518         Likewise.
9520         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9521         check.
9523 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
9525         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9526         file.
9528 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9530         PR fortran/90743
9531         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9532         case.
9533         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9534         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9535         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9536         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9538         PR testsuite/90861
9539         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9541         PR middle-end/90862
9542         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9544 2019-06-16  Tom de Vries  <tdevries@suse.de>
9546         PR tree-optimization/89376
9547         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9549 2019-06-15  Tom de Vries  <tdevries@suse.de>
9551         PR tree-optimization/89713
9552         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9553         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9555 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9557         PR middle-end/90779
9558         * testsuite/libgomp.c/pr90779.c: New test.
9559         * testsuite/libgomp.fortran/pr90779.f90: New test.
9561 2019-06-15  Tom de Vries  <tdevries@suse.de>
9563         PR tree-optimization/90009
9564         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9566 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9568         PR tree-optimization/89713
9569         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9571 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9573         PR target/90811
9574         * testsuite/libgomp.c/pr90811.c: New test.
9576 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9578         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9579         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9581 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9583         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9584         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9585         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9586         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9588 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9590         * configure.ac: Call AX_COUNT_CPUS.
9591         Substitute CPU_COUNT.
9592         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9593         count fallback.
9594         * aclocal.m4: Regenerate.
9595         * configure: Regenerate.
9596         * Makefile.in, testsuite/Makefile.in: Regenerate.
9598 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9600         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9601         to ...
9602         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9603         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9604         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9606 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9608         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9610         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9612         PR libgomp/90641
9613         * work.c (gomp_init_work_share): Instead of aligning final ordered
9614         value to multiples of long long alignment, align to that the
9615         first part (ordered team ids) and if inline_ordered_team_ids
9616         is not on a long long alignment boundary within the structure,
9617         use __alignof__ (long long) - 1 pad size always.
9618         * loop.c (GOMP_loop_start): Fix *mem computation if
9619         inline_ordered_team_ids is not aligned on long long alignment boundary
9620         within the structure.
9621         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9622         * sections.c (GOMP_sections2_start): Likewise.
9624 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9626         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9627         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9629         PR libgomp/90585
9630         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9631         HAVE_INTTYPES_H is defined.
9632         (print_uint64_t): New typedef.
9633         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9634         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9635         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9636         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9637         before casting to void *.
9638         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9639         * oacc-mem.c: Don't include config.h nor stdint.h.
9640         * target.c: Don't include config.h.
9641         * oacc-cuda.c: Likewise.
9642         * oacc-host.c: Don't include stdint.h.
9644 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9646         PR libgomp/90527
9647         * alloc.c (_GNU_SOURCE): Define.
9649 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9651         * acc_prof.h: New file.
9652         * oacc-profiling.c: Likewise.
9653         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9654         Add these, respectively.
9655         * Makefile.in: Regenerate.
9656         * env.c (initialize_env): Call goacc_profiling_initialize.
9657         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9658         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9659         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9660         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9661         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9662         acc_prof_register, acc_prof_unregister, and acc_register_library.
9663         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9664         GOMP_PLUGIN_goacc_thread.
9665         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9666         prof_callbacks_enabled members.
9667         (goacc_prof_enabled, goacc_profiling_initialize)
9668         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9669         (goacc_profiling_dispatch): Declare.
9670         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9671         (GOACC_PROFILING_SETUP_P): Define.
9672         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9673         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9674         OpenACC Profiling Interface.
9675         * oacc-cuda.c (acc_get_current_cuda_device)
9676         (acc_get_current_cuda_context, acc_get_cuda_stream)
9677         (acc_set_cuda_stream): Likewise.
9678         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9679         (acc_init, acc_set_device_type, acc_get_device_type)
9680         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9681         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9682         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9683         (acc_unmap_data, present_create_copy, delete_copyout)
9684         (update_dev_host): Likewise.
9685         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9686         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9687         Likewise.
9688         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9689         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9690         Likewise.
9691         * libgomp.texi: Update.
9692         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9693         file.
9694         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9695         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9696         Likewise.
9697         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9698         Likewise.
9699         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9700         Likewise.
9701         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9702         Likewise.
9704 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9706         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9707         (struct goacc_asyncqueue_list): Likewise.
9708         (goacc_aq): Likewise.
9709         (goacc_aq_list): Likewise.
9710         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9711         (GOMP_OFFLOAD_openacc_async_test): Remove.
9712         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9713         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9714         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9715         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9716         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9717         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9718         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9719         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9720         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9721         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9722         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9723         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9724         (GOMP_OFFLOAD_openacc_async_test): Declare.
9725         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9726         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9727         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9728         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9729         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9731         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9732         (gomp_acc_insert_pointer): Adjust declaration.
9733         (gomp_copy_host2dev): New declaration.
9734         (gomp_copy_dev2host): Likewise.
9735         (gomp_map_vars_async): Likewise.
9736         (gomp_unmap_tgt): Likewise.
9737         (gomp_unmap_vars_async): Likewise.
9738         (gomp_fini_device): Likewise.
9740         * oacc-async.c (get_goacc_thread): New function.
9741         (get_goacc_thread_device): New function.
9742         (lookup_goacc_asyncqueue): New function.
9743         (get_goacc_asyncqueue): New function.
9744         (acc_async_test): Adjust code to use new async design.
9745         (acc_async_test_all): Likewise.
9746         (acc_wait): Likewise.
9747         (acc_wait_async): Likewise.
9748         (acc_wait_all): Likewise.
9749         (acc_wait_all_async): Likewise.
9750         (goacc_async_free): New function.
9751         (goacc_init_asyncqueues): Likewise.
9752         (goacc_fini_asyncqueues): Likewise.
9753         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9754         design.
9755         (acc_set_cuda_stream): Likewise.
9756         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9757         (host_openacc_register_async_cleanup): Remove.
9758         (host_openacc_async_exec): New function.
9759         (host_openacc_async_test): Adjust parameters.
9760         (host_openacc_async_test_all): Remove.
9761         (host_openacc_async_wait): Remove.
9762         (host_openacc_async_wait_async): Remove.
9763         (host_openacc_async_wait_all): Remove.
9764         (host_openacc_async_wait_all_async): Remove.
9765         (host_openacc_async_set_async): Remove.
9766         (host_openacc_async_synchronize): New function.
9767         (host_openacc_async_serialize): New function.
9768         (host_openacc_async_host2dev): New function.
9769         (host_openacc_async_dev2host): New function.
9770         (host_openacc_async_queue_callback): New function.
9771         (host_openacc_async_construct): New function.
9772         (host_openacc_async_destruct): New function.
9773         (struct gomp_device_descr host_dispatch): Remove initialization of old
9774         interface, add initialization of new async sub-struct.
9775         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9776         (goacc_attach_host_thread_to_device): Remove old async code usage.
9777         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9778         (goacc_fini_asyncqueues): Likewise.
9779         (goacc_async_copyout_unmap_vars): Likewise.
9780         (goacc_async_free): Likewise.
9781         (get_goacc_asyncqueue): Likewise.
9782         (lookup_goacc_asyncqueue): Likewise.
9783         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9784         design.
9785         (present_create_copy): Adjust code to use new async design.
9786         (delete_copyout): Likewise.
9787         (update_dev_host): Likewise.
9788         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9789         async design.
9790         (gomp_acc_remove_pointer): Adjust code to use new async design.
9791         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9792         design.
9793         (GOACC_enter_exit_data): Likewise.
9794         (goacc_wait): Likewise.
9795         (GOACC_update): Likewise.
9796         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9797         when called, warn as obsolete in comment.
9798         * target.c (goacc_device_copy_async): New function.
9799         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9800         add goacc_device_copy_async case.
9801         (gomp_copy_dev2host): Likewise.
9802         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9803         (gomp_map_pointer): Likewise.
9804         (gomp_map_fields_existing): Likewise.
9805         (gomp_map_vars_internal): New always_inline function, renamed from
9806         gomp_map_vars.
9807         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9808         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9809         passing goacc_asyncqueue argument.
9810         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9811         (gomp_unref_tgt): New function.
9812         (gomp_unmap_vars_internal): New always_inline function, renamed from
9813         gomp_unmap_vars.
9814         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9815         (gomp_unmap_vars_async): Implement by calling
9816         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9817         (gomp_fini_device): New function.
9818         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9819         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9820         new async interface.
9821         (gomp_target_fini): Adjust code to call gomp_fini_device.
9823         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9824         (struct ptx_stream): Remove.
9825         (struct nvptx_thread): Remove current_stream field.
9826         (cuda_map_create): Remove.
9827         (cuda_map_destroy): Remove.
9828         (map_init): Remove.
9829         (map_fini): Remove.
9830         (map_pop): Remove.
9831         (map_push): Remove.
9832         (struct goacc_asyncqueue): Define.
9833         (struct nvptx_callback): Define.
9834         (struct ptx_free_block): Define.
9835         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9836         stream_lock, and next fields.
9837         (enum ptx_event_type): Remove.
9838         (struct ptx_event): Remove.
9839         (ptx_event_lock): Remove.
9840         (ptx_events): Remove.
9841         (init_streams_for_device): Remove.
9842         (fini_streams_for_device): Remove.
9843         (select_stream_for_async): Remove.
9844         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9845         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9846         case.
9847         (nvptx_open_device): Add free_blocks initialization, remove
9848         init_streams_for_device call.
9849         (nvptx_close_device): Remove fini_streams_for_device call, add
9850         free_blocks destruct code.
9851         (event_gc): Remove.
9852         (event_add): Remove.
9853         (nvptx_exec): Adjust parameters and code.
9854         (nvptx_free): Likewise.
9855         (nvptx_host2dev): Remove.
9856         (nvptx_dev2host): Remove.
9857         (nvptx_set_async): Remove.
9858         (nvptx_async_test): Remove.
9859         (nvptx_async_test_all): Remove.
9860         (nvptx_wait): Remove.
9861         (nvptx_wait_async): Remove.
9862         (nvptx_wait_all): Remove.
9863         (nvptx_wait_all_async): Remove.
9864         (nvptx_get_cuda_stream): Remove.
9865         (nvptx_set_cuda_stream): Remove.
9866         (GOMP_OFFLOAD_alloc): Adjust code.
9867         (GOMP_OFFLOAD_free): Likewise.
9868         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9869         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9870         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9871         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9872         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9873         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9874         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9875         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9876         (cuda_free_argmem): New function.
9877         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9878         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9879         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9880         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9881         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9882         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9883         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9884         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9885         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9886         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9887         (cuda_callback_wrapper): New function.
9888         (cuda_memcpy_sanity_check): New function.
9889         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9890         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9891         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9892         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9894 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9896         PR target/87835
9897         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9899 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9901         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9903 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9905         * team.c (gomp_team_start): Initialize pool->threads[0].
9907 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9909         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9910         "-foffload=$offload_target".
9911         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9912         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9913         * testsuite/lib/libgomp.exp
9914         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9915         as (conceptually) merged into
9916         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9917         users.
9919         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9920         * testsuite/libgomp-test-support.exp.in: Adjust.
9921         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9922         openacc_device_types_s.
9923         (offload_target_to_openacc_device_type): New proc.
9924         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9925         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9926         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9927         * Makefile.in: Regenerate.
9928         * configure: Likewise.
9929         * testsuite/Makefile.in: Likewise.
9931         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9932         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9933         instead of OFFLOAD_TARGETS.
9934         * target.c (gomp_target_init): Adjust.
9935         * testsuite/libgomp-test-support.exp.in: Likewise.
9936         * testsuite/lib/libgomp.exp: Likewise.  Populate
9937         openacc_device_types_s instead of offload_targets_s_openacc.
9938         (check_effective_target_openacc_nvidia_accel_selected)
9939         (check_effective_target_openacc_host_selected): Adjust.
9940         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9941         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9942         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9943         * Makefile.in: Regenerate.
9944         * config.h.in: Likewise.
9945         * configure: Likewise.
9946         * testsuite/Makefile.in: Likewise.
9948         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9949         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9950         "offloading: supported, but hardware not accessible".
9951         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9952         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9954 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9956         PR c/87924
9957         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9958         goacc_wait().
9959         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9960         and related adjustment.
9962 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9964         PR c++/88988
9965         * testsuite/libgomp.c++/pr88988.C: New test.
9967 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9969         PR middle-end/89002
9970         * testsuite/libgomp.c/pr89002.c: New test.
9972 2019-01-28  Richard Biener  <rguenther@suse.de>
9974         PR testsuite/89064
9975         PR tree-optimization/86865
9976         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9978 2019-01-24  Tom de Vries  <tdevries@suse.de>
9980         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9981         once instantiated_devices drops to 0.
9983 2019-01-23  Tom de Vries  <tdevries@suse.de>
9985         PR target/PR88946
9986         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9987         cuMemFree.
9988         (nvptx_exec): Don't call map_push if mapnum == 0.
9989         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9991 2019-01-23  Tom de Vries  <tdevries@suse.de>
9993         PR target/88941
9994         PR target/88939
9995         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9996         (map_fini): Remove "assert (!s->map->active)".
9997         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9999 2019-01-23  Tom de Vries  <tdevries@suse.de>
10001         PR target/87835
10002         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10003         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10005 2019-01-15  Tom de Vries  <tdevries@suse.de>
10007         PR target/80547
10008         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10009         New test.
10011 2019-01-12  Tom de Vries  <tdevries@suse.de>
10013         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10014         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10015         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10016         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10018 2019-01-12  Tom de Vries  <tdevries@suse.de>
10020         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10022 2019-01-12  Tom de Vries  <tdevries@suse.de>
10024         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10025         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10026         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10028 2019-01-12  Tom de Vries  <tdevries@suse.de>
10030         PR target/85486
10031         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10032         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10034 2019-01-12  Tom de Vries  <tdevries@suse.de>
10036         PR target/85381
10037         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10038         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10040 2019-01-12  Tom de Vries  <tdevries@suse.de>
10042         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10043         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10044         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10046 2019-01-12  Tom de Vries  <tdevries@suse.de>
10048         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10049         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10050         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10052 2019-01-12  Tom de Vries  <tdevries@suse.de>
10054         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10055         resources diagnostic.
10057 2019-01-12  Tom de Vries  <tdevries@suse.de>
10059         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10060         vector length to be 128.
10061         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10062         length 2097152 to be reduced to 1024 instead of 32.
10064 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
10065             James Norris  <jnorris@codesourcery.com>
10067         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10068         Library Routines", and "Environment Variables".
10070 2019-01-11  Tom de Vries  <tdevries@suse.de>
10072         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10073         num_workers 16.
10075 2019-01-11  Tom de Vries  <tdevries@suse.de>
10077         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10078         -foffload=-w.
10079         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10080         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10081         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10082         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10084 2019-01-11  Tom de Vries  <tdevries@suse.de>
10086         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10087         test.
10089 2019-01-10  Nathan Sidwell  <nathan@acm.org>
10090             Julian Brown  <julian@codesourcery.com>
10092         PR lto/71959
10093         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10094         * testsuite/libgomp.oacc-c++/pr71959.C: New.
10096 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10098         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10099         and paste code.
10101 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10103         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
10104         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10105         write.
10107 2019-01-09  Tom de Vries  <tdevries@suse.de>
10109         PR target/88756
10110         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10111         #define instead of "const int".
10112         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10113         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10114         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10115         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10117 2019-01-09  Tom de Vries  <tdevries@suse.de>
10119         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10120         one worker.
10122 2019-01-07  Tom de Vries  <tdevries@suse.de>
10124         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10125         GOMP_OPENACC_DIM argument.
10127 2019-01-03  Tom de Vries  <tdevries@suse.de>
10129         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10130         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10132 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10134         Update copyright years.
10136 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10138         * libgomp.texi: Bump @copying's copyright year.
10140 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10142         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10143         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10144         (GOACC_declare): Redefine the "device" argument to "flags".
10146 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10147             Cesar Philippidis  <cesar@codesourcery.com>
10149         * target.c (struct gomp_coalesce_chunk): New structure.
10150         (struct gomp_coalesce_buf): Update the chunks member to use that
10151         type.  Adjust all users.
10153 2018-12-19  Tom de Vries  <tdevries@suse.de>
10155         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10156         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10157         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10159 2018-12-19  Tom de Vries  <tdevries@suse.de>
10161         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10162         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10163         gcc/testsuite/gcc.dg/goacc.
10164         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10166 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10167             Chung-Lin Tang  <cltang@codesourcery.com>
10169         * oacc-mem.c (acc_present_or_create): Remove definition and change
10170         to alias of acc_create.
10171         (acc_present_or_copyin): Remove definition and change to alias of
10172         acc_copyin.
10173         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10174         of acc_present_or_create.
10175         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10176         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10177         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10178         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10179         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10180         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10181         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10182         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10183         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10184         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10185         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10186         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10187         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10188         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10189         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10190         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10192 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10194         PR libgomp/88495
10195         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10196         "identical parameters".
10197         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10198         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10200         PR libgomp/88484
10201         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10202         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10204         PR libgomp/88407
10205         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10206         (nvptx_wait_async): Unseen async-argument is a no-op.
10207         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10208         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10209         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10210         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10211         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10212         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10213         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
10214         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10215         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
10217         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10218         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10220 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
10222         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10223         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10224         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10226 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10228         PR libgomp/88370
10229         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10230         (acc_set_cuda_stream): Clarify.
10231         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10232         "async_valid_p".
10233         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10234         acc_async_sync".
10235         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10236         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10237         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10238         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10240 2018-12-14  Tom de Vries  <tdevries@suse.de>
10242         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10243         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10244         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10245         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10246         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10248 2018-12-13  Tom de Vries  <tdevries@suse.de>
10250         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10251         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10252         * fortran.c (omp_display_affinity_): ... here.
10253         * libgomp.h (gomp_print_string): Declare.
10254         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
10255         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10256         write.
10258 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
10260         PR libgomp/88460
10261         * testsuite/libgomp.c++/for-24.C (results): Include it in
10262         omp declare target region.
10263         (main): Use map (always, tofrom: results) instead of
10264         map (tofrom: results).
10266 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
10268         PR fortran/88463
10269         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10270         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10272         * testsuite/libgomp.c-c++-common/for-16.c: New test.
10274 2018-12-12  Andreas Schwab  <schwab@suse.de>
10276         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10277         clobbered.
10279 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
10281         PR fortran/88411
10282         * testsuite/libgomp.fortran/async_io_8.f90: New test.
10284 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
10285             Jakub Jelinek  <jakub@redhat.com>
10287         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10288         devicep->host2dev_func.
10290 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
10292         PR libgomp/87995
10293         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10294         tls_runtime effective target.
10295         (t): New threadprivate variable.
10296         (main): Set t in threads which execute iterations of the worksharing
10297         loop.  Propagate that to the task after the loop and don't abort
10298         if the current taskgroup hasn't been cancelled.
10300 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
10302         * testsuite/libgomp.c/task-reduction-3.c: New test.
10304         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10306 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
10308         PR libgomp/88288
10309         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10310         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10312 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
10314         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10316 2018-10-19  Richard Biener  <rguenther@suse.de>
10318         PR tree-optimization/88182
10319         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10321 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
10323         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10324         (RUNTEST): Don't define.
10325         (RUNTESTDEFAULTFLAGS): Add.
10326         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10327         (distclean-am): Depend on distclean-DEJAGNU.
10328         (check-am): If -j% option is present in MFLAGS and if
10329         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10330         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10331         * testsuite/Makefile.in: Regenerated.
10333 2018-11-26  Richard Biener  <rguenther@suse.de>
10335         PR tree-optimization/88182
10336         * testsuite/libgomp.c++/pr88182.C: New testcase.
10338 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
10340         PR bootstrap/88106
10341         * config/mingw32/affinity-fmt.c: New file.
10343 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
10345         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10346         (gomp_display_affinity): Use __builtin_choose_expr to handle
10347         properly handle argument having integral, or pointer or some other
10348         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
10349         with uint64_t type instead of %llx and unsigned long long.
10351         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10352         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10354 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10356         * affinity.c: Include <string.h>, <stdio.h>.
10357         (gomp_display_affinity_place): Remove cpusetp.
10358         * teams.c: Include <limits.h>.
10360 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
10362         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10363         in_reduction clause for s[0].
10365         * affinity.c (gomp_display_affinity_place): New function.
10366         * affinity-fmt.c: New file.
10367         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10368         * config/linux/affinity.c (gomp_display_affinity_place): New function.
10369         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10370         Move these functions to ...
10371         * config/nvptx/teams.c: ... here.  New file.
10372         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10373         New functions.
10374         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10375         functions.
10376         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10377         and _aligned_malloc.
10378         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10379         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10380         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10381         gomp_affinity_format_len): New variables.
10382         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10383         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
10384         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10385         modifiers.  Display (non-default) chunk sizes.  Print
10386         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10387         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
10388         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10389         * fortran.c: Include stdio.h and string.h.
10390         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10391         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10392         (omp_set_affinity_format_, omp_get_affinity_format_,
10393         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10394         omp_pause_resource_all_): New functions.
10395         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10396         switch.
10397         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10398         functions to ...
10399         * teams.c: ... here.  New file.
10400         * libgomp_g.h: Include gstdint.h.
10401         (GOMP_loop_nonmonotonic_runtime_start,
10402         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10403         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10404         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10405         GOMP_parallel_loop_nonmonotonic_runtime,
10406         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10407         GOMP_loop_ull_nonmonotonic_runtime_start,
10408         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10409         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10410         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10411         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10412         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10413         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10414         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10415         GOMP_teams_reg): Declare.
10416         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10417         gomp_aligned_alloc uses fallback implementation.
10418         (gomp_aligned_alloc, gomp_aligned_free): Declare.
10419         (enum gomp_schedule_type): Add GFS_MONOTONIC.
10420         (struct gomp_doacross_work_share): Add extra field.
10421         (struct gomp_work_share): Add task_reductions field.
10422         (struct gomp_taskgroup): Add workshare and reductions fields.
10423         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10424         (gomp_thread_handle): New typedef.
10425         (gomp_display_affinity_place, gomp_set_affinity_format,
10426         gomp_display_string, gomp_display_affinity,
10427         gomp_display_affinity_thread): Declare.
10428         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10429         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10430         gomp_workshare_task_reduction_register): Declare.
10431         (gomp_team_start): Add taskgroup argument.
10432         (gomp_pause_host): Declare.
10433         (gomp_init_work_share, gomp_work_share_start): Change bool argument
10434         to size_t.
10435         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10436         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10437         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10438         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10439         GOMP_loop_ull_doacross_start,
10440         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10441         GOMP_loop_maybe_nonmonotonic_runtime_next,
10442         GOMP_loop_maybe_nonmonotonic_runtime_start,
10443         GOMP_loop_nonmonotonic_runtime_next,
10444         GOMP_loop_nonmonotonic_runtime_start,
10445         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10446         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10447         GOMP_loop_ull_nonmonotonic_runtime_next,
10448         GOMP_loop_ull_nonmonotonic_runtime_start,
10449         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10450         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10451         GOMP_taskgroup_reduction_register,
10452         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10453         GOMP_teams_reg and GOMP_taskwait_depend.
10454         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10455         omp_{capture,display}_affinity{,_}, and
10456         omp_[gs]et_affinity_format{,_}.
10457         * loop.c: Include string.h.
10458         (GOMP_loop_runtime_next): Add ialias.
10459         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10460         (gomp_loop_static_start, gomp_loop_dynamic_start,
10461         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10462         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10463         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10464         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10465         or gomp_doacross_init callers.
10466         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10467         GOMP_loop_doacross_start): New functions.
10468         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10469         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10470         Mask off GFS_MONOTONIC bit.
10471         (GOMP_loop_maybe_nonmonotonic_runtime_next,
10472         GOMP_loop_maybe_nonmonotonic_runtime_start,
10473         GOMP_loop_nonmonotonic_runtime_next,
10474         GOMP_loop_nonmonotonic_runtime_start,
10475         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10476         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10477         functions.
10478         (gomp_parallel_loop_start): Pass NULL as taskgroup to
10479         gomp_team_start.
10480         * loop_ull.c: Include string.h.
10481         (GOMP_loop_ull_runtime_next): Add ialias.
10482         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10483         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10484         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10485         gomp_loop_ull_ordered_dynamic_start,
10486         gomp_loop_ull_ordered_guided_start,
10487         gomp_loop_ull_doacross_static_start,
10488         gomp_loop_ull_doacross_dynamic_start,
10489         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10490         and gomp_doacross_ull_init callers.
10491         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10492         GOMP_loop_ull_doacross_start): New functions.
10493         (GOMP_loop_ull_runtime_start,
10494         GOMP_loop_ull_ordered_runtime_start,
10495         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10496         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10497         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10498         GOMP_loop_ull_nonmonotonic_runtime_next,
10499         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10500         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10501         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10502         (omp_pause_resource_t, omp_depend_t): New typedefs.
10503         (enum omp_lock_hint_t): Renamed to ...
10504         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
10505         enumerators using numbers and omp_lock_hint_* as their aliases.
10506         (omp_lock_hint_t): New typedef.  Rename to ...
10507         (omp_sync_hint_t): ... this.
10508         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10509         omp_sync_hint_t instead of omp_lock_hint_t.
10510         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10511         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10512         Declare.
10513         (omp_target_is_present, omp_target_disassociate_ptr):
10514         Change first argument from void * to const void *.
10515         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10516         from void * to const void *.
10517         (omp_target_associate_ptr): Change first and second arguments from
10518         void * to const void *.
10519         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10520         omp_pause_hard): New parameters.
10521         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10522         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10523         New interfaces.
10524         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10525         omp_pause_hard): New parameters.
10526         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10527         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10528         New externals.
10529         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10530         EXTRA argument.  If not needed to prepare array, if extra is 0,
10531         clear ws->doacross, otherwise allocate just doacross structure and
10532         extra payload.  If array is needed, allocate also extra payload.
10533         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10534         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10535         doacross == NULL.
10536         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10537         gomp_team_start.
10538         (GOMP_parallel): Likewise.  Formatting fix.
10539         (GOMP_parallel_reductions): New function.
10540         (GOMP_cancellation_point): If taskgroup has workshare
10541         flag set, check cancelled of prev taskgroup if any.
10542         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10543         on prev taskgroup if any.
10544         * sections.c: Include string.h.
10545         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10546         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10547         (GOMP_sections2_start): New function.
10548         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10549         Pass NULL as taskgroup to gomp_team_start.
10550         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10551         gomp_work_share_start callers.
10552         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10553         If taskgroup has workshare flag set, check cancelled on prev
10554         taskgroup if any.  Guard all cancellation tests with
10555         gomp_cancel_var test.
10556         (omp_target_is_present, omp_target_disassociate_ptr):
10557         Change ptr argument from void * to const void *.
10558         (omp_target_memcpy): Change src argument from void * to const void *.
10559         (omp_target_memcpy_rect): Likewise.
10560         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10561         instead of char * where needed.
10562         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10563         from void * to const void *.
10564         (omp_pause_resource, omp_pause_resource_all): New functions.
10565         * task.c (gomp_task_handle_depend): Handle new depend array format
10566         in addition to the old.  Handle mutexinoutset kinds the same as
10567         inout for now, handle unspecified kinds.
10568         (gomp_create_target_task): If taskgroup has workshare flag set, check
10569         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10570         gomp_cancel_var test.  Handle new depend array format count in
10571         addition to the old.
10572         (GOMP_task): Likewise.  Adjust function comment.
10573         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10574         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10575         gomp_cancel_var test.
10576         (GOMP_taskwait_depend): New function.
10577         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10578         format in addition to the old.  Handle mutexinoutset kinds the same as
10579         inout for now, handle unspecified kinds.  Fix a function comment typo.
10580         (gomp_taskgroup_init): New function.
10581         (GOMP_taskgroup_start): Use it.
10582         (gomp_reduction_register, gomp_create_artificial_team,
10583         GOMP_taskgroup_reduction_register,
10584         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10585         gomp_parallel_reduction_register,
10586         gomp_workshare_task_reduction_register,
10587         gomp_workshare_taskgroup_start,
10588         GOMP_workshare_task_reduction_unregister): New functions.
10589         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10590         check cancelled on prev taskgroup if any.  Guard all cancellation
10591         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10592         by calling GOMP_taskgroup_reduction_register.
10593         * team.c (gomp_thread_attr): Remove comment.
10594         (struct gomp_thread_start_data): Add handle field.
10595         (gomp_thread_start): Call pthread_detach.
10596         (gomp_new_team): Adjust gomp_init_work_share caller.
10597         (gomp_free_pool_helper): Call pthread_detach.
10598         (gomp_team_start): Add taskgroup argument, initialize implicit
10599         tasks' taskgroup field to that.  Don't call
10600         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10601         (gomp_team_end): Determine nesting by thr->ts.level != 0
10602         rather than thr->ts.team != NULL.
10603         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10604         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10605         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10606         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10607         if more than 1 allocate also extra payload at the end of array.  Never
10608         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10609         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10610         return true instead of ws.
10611         * Makefile.in: Regenerated.
10612         * configure: Regenerated.
10613         * config.h.in: Regenerated.
10614         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10615         in some cases.
10616         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10617         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10618         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10619         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10620         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10621         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10622         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10623         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10624         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10625         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10626         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10627         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10628         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10629         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10630         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10631         define a different N(test), don't define N(f0) to N(f14), but instead
10632         define N(f20) to N(f34) using != comparisons.
10633         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10634         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10635         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10636         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10637         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10638         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10639         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10640         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10641         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10642         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10643         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10644         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10645         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10646         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10647         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10648         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10649         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10650         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10651         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10652         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10653         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10654         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10655         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10656         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10657         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10658         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10659         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10660         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10661         * testsuite/libgomp.c++/depend-1.C: New test.
10662         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10663         * testsuite/libgomp.c++/depobj-1.C: New test.
10664         * testsuite/libgomp.c++/for-16.C: New test.
10665         * testsuite/libgomp.c++/for-21.C: New test.
10666         * testsuite/libgomp.c++/for-22.C: New test.
10667         * testsuite/libgomp.c++/for-23.C: New test.
10668         * testsuite/libgomp.c++/for-24.C: New test.
10669         * testsuite/libgomp.c++/for-25.C: New test.
10670         * testsuite/libgomp.c++/for-26.C: New test.
10671         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10672         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10673         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10674         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10675         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10676         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10677         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10678         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10679         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10680         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10681         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10682         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10683         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10684         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10685         * testsuite/libgomp.c/task-reduction-1.c: New test.
10686         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10687         * testsuite/libgomp.c/task-reduction-2.c: New test.
10688         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10689         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10690         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10691         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10692         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10693         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10694         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10695         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10696         * testsuite/libgomp.c/teams-1.c: New test.
10697         * testsuite/libgomp.c/teams-2.c: New test.
10698         * testsuite/libgomp.c/thread-limit-4.c: New test.
10699         * testsuite/libgomp.c/thread-limit-5.c: New test.
10700         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10702 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10704         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10705         acc_memcpy_to/from_device functions, now with async parameter.
10706         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10707         (acc_memcpy_from_device): Likewise.
10708         (acc_memcpy_to_device_async): New API function.
10709         (acc_memcpy_from_device_async): Likewise.
10710         (present_create_copy): Add async parameter and async setting/unsetting.
10711         (acc_create): Adjust present_create_copy call.
10712         (acc_copyin): Likewise.
10713         (acc_present_or_create): Likewise.
10714         (acc_present_or_copyin): Likewise.
10715         (acc_create_async): New API function.
10716         (acc_copyin_async): New API function.
10717         (delete_copyout): Add async parameter and async setting/unsetting.
10718         (acc_delete): Adjust delete_copyout call.
10719         (acc_copyout): Likewise.
10720         (acc_delete_async): New API function.
10721         (acc_copyout_async): Likewise.
10722         (update_dev_host): Add async parameter and async setting/unsetting.
10723         (acc_update_device): Adjust update_dev_host call.
10724         (acc_update_self): Likewise.
10725         (acc_update_device_async): New API function.
10726         (acc_update_self_async): Likewise.
10727         * openacc.h (acc_copyin_async): Declare new API function.
10728         (acc_create_async): Likewise.
10729         (acc_copyout_async): Likewise.
10730         (acc_delete_async): Likewise.
10731         (acc_update_device_async): Likewise.
10732         (acc_update_self_async): Likewise.
10733         (acc_memcpy_to_device_async): Likewise.
10734         (acc_memcpy_from_device_async): Likewise.
10735         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10736         (acc_copyin_async_64_h): New subroutine.
10737         (acc_copyin_async_array_h): New subroutine.
10738         (acc_create_async_32_h): New subroutine.
10739         (acc_create_async_64_h): New subroutine.
10740         (acc_create_async_array_h): New subroutine.
10741         (acc_copyout_async_32_h): New subroutine.
10742         (acc_copyout_async_64_h): New subroutine.
10743         (acc_copyout_async_array_h): New subroutine.
10744         (acc_delete_async_32_h): New subroutine.
10745         (acc_delete_async_64_h): New subroutine.
10746         (acc_delete_async_array_h): New subroutine.
10747         (acc_update_device_async_32_h): New subroutine.
10748         (acc_update_device_async_64_h): New subroutine.
10749         (acc_update_device_async_array_h): New subroutine.
10750         (acc_update_self_async_32_h): New subroutine.
10751         (acc_update_self_async_64_h): New subroutine.
10752         (acc_update_self_async_array_h): New subroutine.
10753         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10754         (acc_copyin_async_64_h): New subroutine.
10755         (acc_copyin_async_array_h): New subroutine.
10756         (acc_create_async_32_h): New subroutine.
10757         (acc_create_async_64_h): New subroutine.
10758         (acc_create_async_array_h): New subroutine.
10759         (acc_copyout_async_32_h): New subroutine.
10760         (acc_copyout_async_64_h): New subroutine.
10761         (acc_copyout_async_array_h): New subroutine.
10762         (acc_delete_async_32_h): New subroutine.
10763         (acc_delete_async_64_h): New subroutine.
10764         (acc_delete_async_array_h): New subroutine.
10765         (acc_update_device_async_32_h): New subroutine.
10766         (acc_update_device_async_64_h): New subroutine.
10767         (acc_update_device_async_array_h): New subroutine.
10768         (acc_update_self_async_32_h): New subroutine.
10769         (acc_update_self_async_64_h): New subroutine.
10770         (acc_update_self_async_array_h): New subroutine.
10771         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10772         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10773         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10774         acc_memcpy_to_device_async*, acc_update_device_async*, and
10775         acc_update_self_async* entries.
10776         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10777         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10778         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10780 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10782         PR bootstrap/82856
10783         * Makefile.am: Include multilib.am
10784         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10785         (CLEANFILES): Remove libgomp.info.
10786         * configure.ac: Remove AC_PREREQ.
10787         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10788         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10789         Regenerate.
10791 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10792             Julian Brown  <julian@codesourcery.com>
10794         * testsuite/libgomp.oacc-c++/this.C: New.
10796 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10798         * plugin/plugin-nvptx.c (struct cuda_map): New.
10799         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10800         h_tail with (cuda_map *) map.
10801         (cuda_map_create): New function.
10802         (cuda_map_destroy): New function.
10803         (map_init): Update to use a linked list of cuda_map objects.
10804         (map_fini): Likewise.
10805         (map_pop): Likewise.
10806         (map_push): Likewise.  Return CUdeviceptr instead of void.
10807         (init_streams_for_device): Remove stales references to ptx_stream
10808         members.
10809         (select_stream_for_async): Likewise.
10810         (nvptx_exec): Update call to map_init.
10812 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10813             Julian Brown  <julian@codesourcery.com>
10815         PR middle-end/86336
10816         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10818 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10819         Thomas Koenig <tkoenig@gcc.gnu.org>
10821         PR fortran/25829
10822         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10823         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10824         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10825         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10826         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10827         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10828         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10830 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10831             Tom de Vries  <tdevries@suse.de>
10833         PR target/85590
10834         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10835         (cuOccupancyMaxPotentialBlockSize): Declare.
10836         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10837         CUDA_ONE_CALL_MAYBE_NULL.
10838         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10839         CUoccupancyB2DSize and declare
10840         cuOccupancyMaxPotentialBlockSize.
10841         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10842         default num_gangs and num_workers when the driver supports it.
10844 2018-08-08  Tom de Vries  <tdevries@suse.de>
10846         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10847         CUDA_ONE_CALL_MAYBE_NULL.
10848         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10849         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10850         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10851         are not found.
10853 2018-08-08  Tom de Vries  <tdevries@suse.de>
10855         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10856         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10857         present.
10859 2018-08-08  Tom de Vries  <tdevries@suse.de>
10861         * plugin/plugin-nvptx.c
10862         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10863         (nvptx_open_device): Use
10864         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10866 2018-08-08  Tom de Vries  <tdevries@suse.de>
10868         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10869         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10871 2018-08-07  Tom de Vries  <tdevries@suse.de>
10873         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10874         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10875         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10876         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10877         CUDA_ONE_CALL_MAYBE_NULL.
10878         (CUDA_CALL_EXISTS): Define.
10880 2018-08-07  Tom de Vries  <tdevries@suse.de>
10882         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10883         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10884         corresponding undefs right after.
10886 2018-08-04  Tom de Vries  <tdevries@suse.de>
10888         * plugin/configfrag.ac: For --without-cuda-driver, set
10889         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10890         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10891         * configure: Regenerate.
10893 2018-08-02  Tom de Vries  <tdevries@suse.de>
10895         PR target/86660
10896         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10897         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10898         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10899         Same.
10900         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10901         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10902         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10904 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10905             Thomas Schwinge <thomas@codesourcery.com>
10907         * config/nvptx/oacc-parallel.c: Truncate.
10909 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10910             James Norris <jnorris@codesourcery.com>
10912         * plugin/plugin-nvptx.c (struct map): Removed.
10913         (map_init, map_pop): Remove use of struct map.
10914         (map_push): Likewise and change argument list.
10915         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10917 2018-08-01  Tom de Vries  <tdevries@suse.de>
10919         * plugin/cuda-lib.def: New file.  Factor out of ...
10920         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10921         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10922         using CUDA_CALLS.
10924 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10926         Revert 'AsyncI/O patch committed'.
10927         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10928                 Thomas Koenig <tkoenig@gcc.gnu.org>
10930         PR fortran/25829
10931         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10932         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10933         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10934         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10935         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10936         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10937         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10939 2018-07-30  Tom de Vries  <tdevries@suse.de>
10941         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10942         (nvptx_exec): Ensure worker and vector default dims don't exceed
10943         targ_fn->max_threads_per_block.
10945 2018-07-30  Tom de Vries  <tdevries@suse.de>
10947         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10948         (nvptx_open_device): Init default_dims for device.
10949         (nvptx_exec): Use default_dims from device.
10951 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10953         PR testsuite/86660
10954         * testsuite/libgomp.c++/for-15.C (results): Include it in
10955         omp declare target region.
10956         (main): Use map (always, tofrom: results) instead of
10957         map (tofrom: results).
10959         PR middle-end/86660
10960         * testsuite/libgomp.c/pr86660.c: New test.
10962 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10963             Tom de Vries  <tdevries@suse.de>
10965         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10966         sufficient resources to launch a kernel, and give a hint on how to fix
10967         it.
10969 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10970             Tom de Vries  <tdevries@suse.de>
10972         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10973         max_threads_per_block and max_threads_per_multiprocessor fields.
10974         (nvptx_open_device): Initialize new fields.
10975         (nvptx_exec): Use num_sms, and new fields.
10977 2018-07-26  Tom de Vries  <tdevries@suse.de>
10979         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10980         to correct locations.  Remove xfail.
10982 2018-07-26  Tom de Vries  <tdevries@suse.de>
10984         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10985         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10986         xfail.
10988 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10989         Thomas Koenig <tkoenig@gcc.gnu.org>
10991         PR fortran/25829
10992         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10993         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10994         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10995         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10996         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10997         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10998         * testsuite/libgomp.fortran/async_io_7.f90: New test.
11000 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
11002         PR middle-end/86542
11003         * testsuite/libgomp.c++/pr86542.C: New test.
11005         PR middle-end/86539
11006         * testsuite/libgomp.c++/pr86539.C: New test.
11008 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
11010         PR c++/86443
11011         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11012         (results): Make sure the variable is not inside declare target region.
11013         (qux): Remove unused function.
11015 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
11017         PR c++/86443
11018         * testsuite/libgomp.c++/for-15.C: New test.
11020 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
11022         PR c++/86291
11023         * testsuite/libgomp.c++/pr86291.C: New test.
11025 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
11027         * libgomp.texi (Top): Move www.openmp.org to https.
11028         (Enabling OpenMP): Ditto.
11029         (omp_get_active_level): Ditto.
11030         (omp_get_ancestor_thread_num): Ditto.
11031         (omp_get_cancellation): Ditto.
11032         (omp_get_default_device): Ditto.
11033         (omp_get_dynamic): Ditto.
11034         (omp_get_level): Ditto.
11035         (omp_get_max_active_levels): Ditto.
11036         (omp_get_max_task_priority): Ditto.
11037         (omp_get_max_threads): Ditto.
11038         (omp_get_nested): Ditto.
11039         (omp_get_num_devices): Ditto.
11040         (omp_get_num_procs): Ditto.
11041         (omp_get_num_teams): Ditto.
11042         (omp_get_num_threads): Ditto.
11043         (omp_get_proc_bind): Ditto.
11044         (omp_get_schedule): Ditto.
11045         (omp_get_team_num): Ditto.
11046         (omp_get_team_size): Ditto.
11047         (omp_get_thread_limit): Ditto.
11048         (omp_get_thread_num): Ditto.
11049         (omp_in_parallel): Ditto.
11050         (omp_in_final): Ditto.
11051         (omp_is_initial_device): Ditto.
11052         (omp_set_default_device): Ditto.
11053         (omp_set_dynamic): Ditto.
11054         (omp_set_max_active_levels): Ditto.
11055         (omp_set_nested): Ditto.
11056         (omp_set_num_threads): Ditto.
11057         (omp_set_schedule): Ditto.
11058         (omp_init_lock): Ditto.
11059         (omp_set_lock): Ditto.
11060         (omp_test_lock): Ditto.
11061         (omp_unset_lock): Ditto.
11062         (omp_destroy_lock): Ditto.
11063         (omp_init_nest_lock): Ditto.
11064         (omp_set_nest_lock): Ditto.
11065         (omp_test_nest_lock): Ditto.
11066         (omp_unset_nest_lock): Ditto.
11067         (omp_destroy_nest_lock): Ditto.
11068         (omp_get_wtick): Ditto.
11069         (omp_get_wtime): Ditto.
11070         (OMP_CANCELLATION): Ditto.
11071         (OMP_DISPLAY_ENV): Ditto.
11072         (OMP_DEFAULT_DEVICE): Ditto.
11073         (OMP_DYNAMIC): Ditto.
11074         (OMP_MAX_ACTIVE_LEVELS): Ditto.
11075         (OMP_MAX_TASK_PRIORITY): Ditto.
11076         (OMP_NESTED): Ditto.
11077         (OMP_NUM_THREADS): Ditto.
11078         (OMP_PROC_BIND): Ditto.
11079         (OMP_PLACES): Ditto.
11080         (OMP_STACKSIZE): Ditto.
11081         (OMP_SCHEDULE): Ditto.
11082         (OMP_THREAD_LIMIT): Ditto.
11083         (OMP_WAIT_POLICY): Ditto.
11085 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
11086             James Norris  <jnorris@codesourcery.com>
11087             Julian Brown  <julian@codesourcery.com>
11088             Thomas Schwinge  <thomas@codesourcery.com>
11089             Tom de Vries  <tom@codesourcery.com>
11091         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11092         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11093         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11094         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11095         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11096         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11097         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11098         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11099         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11100         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11101         Likewise.
11102         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11103         Likewise.
11104         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11105         Likewise.
11106         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11107         Likewise.
11108         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11109         Likewise.
11110         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11111         Likewise.
11112         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11113         Likewise.
11114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11115         Likewise.
11116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11117         Likewise.
11118         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11119         Likewise.
11120         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11121         Likewise.
11122         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11123         Likewise.
11124         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11125         Likewise.
11126         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11127         Likewise.
11128         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11129         Likewise.
11130         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11131         Likewise.
11132         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11133         Likewise.
11134         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11135         Likewise.
11136         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11137         Likewise.
11138         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11139         Likewise.
11140         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11141         Likewise.
11142         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11143         Likewise.
11144         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11145         Likewise.
11146         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11147         Likewise.
11148         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11149         Likewise.
11150         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11151         Likewise.
11152         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11153         Likewise.
11154         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11155         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11156         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11157         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11158         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11159         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11160         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11161         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11162         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11163         Likewise.
11164         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11165         Likewise.
11166         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11167         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11168         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11169         Likewise.
11170         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11171         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11172         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11173         Likewise.
11174         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11175         Likewise.
11176         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11177         Likewise.
11178         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11179         Likewise.
11180         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11181         Likewise.
11182         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11183         Likewise.
11184         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11185         Likewise.
11186         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11187         Likewise.
11188         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11189         Likewise.
11190         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11191         Likewise.
11192         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11193         Likewise.
11194         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11195         Likewise.
11196         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11197         Likewise.
11198         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11199         Likewise.
11200         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11201         Likewise.
11202         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11203         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11204         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11205         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11206         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11207         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11208         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11210 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
11211             Thomas Schwinge <thomas@codesourcery.com>
11212             Cesar Philippidis  <cesar@codesourcery.com>
11214         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11215         (gomp_acc_remove_pointer): Update declaration.
11216         (gomp_acc_declare_allocate): Declare.
11217         (gomp_remove_var): Declare.
11218         * libgomp.map (OACC_2.5): Define.
11219         * oacc-mem.c (acc_map_data): Update refcount.
11220         (acc_unmap_data): Likewise.
11221         (present_create_copy): Likewise.
11222         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11223         (acc_copyin): Likewise.
11224         (FLAG_FINALIZE): Define.
11225         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11226         (acc_delete_finalize): New function.
11227         (acc_delete_finalize_async): New function.
11228         (acc_copyout_finalize): New function.
11229         (acc_copyout_finalize_async): New function.
11230         (gomp_acc_insert_pointer): Update refcounts.
11231         (gomp_acc_remove_pointer): Return if data is not present on the
11232         accelerator.
11233         * oacc-parallel.c (find_pset): Rename to find_pointer.
11234         (find_pointer): Add support for GOMP_MAP_POINTER.
11235         (handle_ftn_pointers): New function.
11236         (GOACC_parallel_keyed): Update refcounts of variables.
11237         (GOACC_enter_exit_data): Add support for finalized data mappings.
11238         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11239         of fortran arrays.
11240         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11241         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11242         for GOMP_MAP_FORCE_FROM.
11243         * openacc.f90 (module openacc_internal): Add
11244         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11245         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11246         acc_copyout_finalize and acc_delete_finalize.
11247         (acc_copyout_finalize_32_h): New subroutine.
11248         (acc_copyout_finalize_64_h): New subroutine.
11249         (acc_copyout_finalize_array_h): New subroutine.
11250         (acc_delete_finalize_32_h): New subroutine.
11251         (acc_delete_finalize_64_h): New subroutine.
11252         (acc_delete_finalize_array_h): New subroutine.
11253         * openacc.h (acc_copyout_finalize): Declare.
11254         (acc_copyout_finalize_async): Declare.
11255         (acc_delete_finalize): Declare.
11256         (acc_delete_finalize_async): Declare.
11257         * openacc_lib.h (acc_copyout_finalize): New interface.
11258         (acc_delete_finalize): New interface.
11259         * target.c (gomp_map_vars): Update dynamic_refcount.
11260         (gomp_remove_var): New function.
11261         (gomp_unmap_vars): Use it.
11262         (gomp_unload_image_from_device): Likewise.
11263         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11264         case to utilize OpenACC 2.5 data clause semantics.
11265         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11266         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11267         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11268         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11269         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11270         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11271         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11272         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11273         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11274         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11275         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11276         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11277         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11278         utilize OpenACC 2.5 data clause semantics.
11279         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11280         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11281         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11282         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11283         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11284         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11285         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11286         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11287         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11289 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
11291         PR fortran/85841
11292         PR testsuite/85865
11293         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11294         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11295         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11296         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11297         * testsuite/libgomp.fortran/task2.f90: Ditto.
11298         * testsuite/libgomp.fortran/vla1.f90: Ditto.
11299         * testsuite/libgomp.fortran/vla2.f90: Ditto.
11300         * testsuite/libgomp.fortran/vla3.f90: Ditto.
11301         * testsuite/libgomp.fortran/vla4.f90: Ditto.
11302         * testsuite/libgomp.fortran/vla5.f90: Ditto.
11303         * testsuite/libgomp.fortran/vla6.f90: Ditto.
11304         * testsuite/libgomp.fortran/vla8.f90: Ditto.
11305         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11306         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11308 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
11310         PR c++/85782
11311         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11313 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11315         PR libgomp/82901
11316         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11317         to GOACC_enter_exit_data.
11319 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11321         PR libgomp/83792
11322         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11323         (async_synchronous_p): New function.
11324         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11325         async_valid_p.
11326         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11327         async_valid_stream_id_p.
11328         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11329         * oacc-parallel.c (GOACC_parallel_keyed): Same.
11331 2018-05-07  Tom de Vries  <tom@codesourcery.com>
11333         PR testsuite/85677
11334         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11335         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11337 2018-05-03  Tom de Vries  <tom@codesourcery.com>
11339         PR testsuite/85106
11340         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11341         extra_tool_flags if it contains an -foffload=-fdump-* flag.
11342         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11343         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11345 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11347         PR libgomp/85411
11348         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11349         GOMP_OPENACC_DIM ...
11350         * env.c (parse_gomp_openacc_dim): ... here.  New function.
11351         (initialize_env): Call parse_gomp_openacc_dim.
11352         (goacc_default_dims): Define.
11353         * libgomp.h (goacc_default_dims): Declare.
11354         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11355         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11356         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11357         GOMP_PLUGIN_acc_default_dim.
11358         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11359         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11361 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11363         PR testsuite/83791
11364         * testsuite/libgomp.c++/udr-9.C: Update.
11365         * testsuite/libgomp.c++/atomic-16.C: Remove.
11366         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11367         * testsuite/libgomp.c++/loop-13.C: Remove.
11368         * testsuite/libgomp.c++/loop-14.C: Remove.
11369         * testsuite/libgomp.c++/loop-15.C: Remove.
11370         * testsuite/libgomp.c++/monotonic-1.C: Remove.
11371         * testsuite/libgomp.c++/monotonic-2.C: Remove.
11372         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11373         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11374         * testsuite/libgomp.c++/ordered-1.C: Remove.
11375         * testsuite/libgomp.c++/pr45784.C: Remove.
11376         * testsuite/libgomp.c++/pr64824.C: Remove.
11377         * testsuite/libgomp.c++/pr64868.C: Remove.
11378         * testsuite/libgomp.c++/pr66199-1.C: Remove.
11379         * testsuite/libgomp.c++/pr66199-2.C: Remove.
11380         * testsuite/libgomp.c++/pr66199-3.C: Remove.
11381         * testsuite/libgomp.c++/pr66199-4.C: Remove.
11382         * testsuite/libgomp.c++/pr66199-5.C: Remove.
11383         * testsuite/libgomp.c++/pr66199-6.C: Remove.
11384         * testsuite/libgomp.c++/pr66199-7.C: Remove.
11385         * testsuite/libgomp.c++/pr66199-8.C: Remove.
11386         * testsuite/libgomp.c++/pr66199-9.C: Remove.
11387         * testsuite/libgomp.c++/pr69389.C: Remove.
11388         * testsuite/libgomp.c++/simd10.C: Remove.
11389         * testsuite/libgomp.c++/simd11.C: Remove.
11390         * testsuite/libgomp.c++/simd12.C: Remove.
11391         * testsuite/libgomp.c++/simd13.C: Remove.
11392         * testsuite/libgomp.c++/target-1.C: Remove.
11393         * testsuite/libgomp.c++/target-3.C: Remove.
11394         * testsuite/libgomp.c++/target-4.C: Remove.
11395         * testsuite/libgomp.c++/target-5.C: Remove.
11396         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11397         * testsuite/libgomp.c++/taskloop-1.C: Remove.
11398         * testsuite/libgomp.c++/taskloop-2.C: Remove.
11399         * testsuite/libgomp.c++/taskloop-3.C: Remove.
11400         * testsuite/libgomp.c++/taskloop-4.C: Remove.
11401         * testsuite/libgomp.c++/udr-9.C: Remove.
11402         * testsuite/libgomp.c++/for-10.C: Remove.
11403         * testsuite/libgomp.c++/for-11.C: Remove.
11404         * testsuite/libgomp.c++/for-12.C: Remove.
11405         * testsuite/libgomp.c++/for-13.C: Remove.
11406         * testsuite/libgomp.c++/for-14.C: Remove.
11407         * testsuite/libgomp.c++/for-9.C: Remove.
11408         * testsuite/libgomp.c/atomic-18.c: Move ...
11409         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11410         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11411         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11412         * testsuite/libgomp.c/loop-13.c: Move ...
11413         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11414         * testsuite/libgomp.c/loop-14.c: Move ...
11415         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11416         * testsuite/libgomp.c/loop-15.c: Remove.
11417         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11418         * testsuite/libgomp.c/monotonic-1.c: Move ...
11419         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11420         * testsuite/libgomp.c/monotonic-2.c: Move ...
11421         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11422         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11423         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11424         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11425         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11426         * testsuite/libgomp.c/ordered-4.c: Move ...
11427         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11428         * testsuite/libgomp.c/pr45784.c: Move ...
11429         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11430         * testsuite/libgomp.c/pr64824.c: Move ...
11431         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11432         * testsuite/libgomp.c/pr64868.c: Move ...
11433         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11434         * testsuite/libgomp.c/pr66199-1.c: Move ...
11435         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11436         * testsuite/libgomp.c/pr66199-2.c: Move ...
11437         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11438         * testsuite/libgomp.c/pr66199-3.c: Move ...
11439         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11440         * testsuite/libgomp.c/pr66199-4.c: Move ...
11441         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11442         * testsuite/libgomp.c/pr66199-5.c: Move ...
11443         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11444         * testsuite/libgomp.c/pr66199-6.c: Move ...
11445         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11446         * testsuite/libgomp.c/pr66199-7.c: Move ...
11447         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11448         * testsuite/libgomp.c/pr66199-8.c: Move ...
11449         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11450         * testsuite/libgomp.c/pr66199-9.c: Move ...
11451         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11452         * testsuite/libgomp.c/pr69389.c: Move ...
11453         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11454         * testsuite/libgomp.c/simd-14.c: Move ...
11455         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11456         * testsuite/libgomp.c/simd-15.c: Move ...
11457         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11458         * testsuite/libgomp.c/simd-16.c: Move ...
11459         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11460         * testsuite/libgomp.c/simd-17.c: Move ...
11461         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11462         * testsuite/libgomp.c/target-1.c: Move ...
11463         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11464         * testsuite/libgomp.c/target-10.c: Move ...
11465         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11466         * testsuite/libgomp.c/target-13.c: Move ...
11467         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11468         * testsuite/libgomp.c/target-2.c: Move ...
11469         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11470         * testsuite/libgomp.c/taskgroup-1.c: Move ...
11471         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11472         * testsuite/libgomp.c/taskloop-1.c: Move ...
11473         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11474         * testsuite/libgomp.c/taskloop-2.c: Move ...
11475         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11476         * testsuite/libgomp.c/taskloop-3.c: Move ...
11477         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11478         * testsuite/libgomp.c/taskloop-4.c: Move ...
11479         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11480         * testsuite/libgomp.c/udr-1.c: Move ...
11481         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11482         * testsuite/libgomp.c/for-1.c: Move ...
11483         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11484         * testsuite/libgomp.c/for-1.h: Move ...
11485         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11486         * testsuite/libgomp.c/for-2.c: Move ...
11487         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11488         * testsuite/libgomp.c/for-2.h: Move ...
11489         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11490         * testsuite/libgomp.c/for-3.c: Move ...
11491         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11492         * testsuite/libgomp.c/for-4.c: Move ...
11493         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11494         * testsuite/libgomp.c/for-5.c: Move ...
11495         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11496         * testsuite/libgomp.c/for-6.c: Move ...
11497         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11499 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11501         PR libgomp/82428
11502         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11503         __builtin_goacc_parlevel_{id,size}.
11504         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11505         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11506         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11507         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11508         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11509         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11510         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11511         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11512         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11513         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11514         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11515         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11516         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11517         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11518         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11519         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11520         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11521         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11522         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11523         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11524         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11525         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11526         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11528 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11530         PR testsuite/85106
11531         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11533 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11535         PR testsuite/85106
11536         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11538 2018-04-29  Julian Brown  <julian@codesourcery.com>
11539             Tom de Vries  <tom@codesourcery.com>
11541         PR testsuite/85527
11542         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11543         arbitrary order for iterations of atomic subtract check.
11545 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11547         PR testsuite/85527
11548         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11549         atomic capture results obtained in parallel loop to an array, instead of
11550         to a scalar.
11552 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11554         PR libgomp/84020
11555         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11556         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11557         (process_GOMP_NVPTX_JIT): New function.
11558         (link_ptx): Use process_GOMP_NVPTX_JIT.
11560 2018-04-26  Richard Biener <rguenther@suse.de>
11561             Tom de Vries  <tom@codesourcery.com>
11563         PR lto/85422
11564         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11566 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11568         PR target/85519
11569         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11570         recursion depth from 25 to 23.
11571         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11573 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11575         * configure: Regenerated.
11577 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11578             Tom de Vries  <tom@codesourcery.com>
11580         PR target/85445
11581         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11583 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11585         PR libgomp/85463
11586         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11587         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11588         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11589         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11590         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11591         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11593         PR libfortran/85166
11594         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11595         abort".
11596         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11598 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11600         * configure: Regenerated.
11602 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11604         PR jit/85384
11605         * configure: Regenerate.
11607 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11608             Tom de Vries  <tom@codesourcery.com>
11610         PR middle-end/84955
11611         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11612         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11614 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11616         PR fortran/83064
11617         PR testsuite/85346
11618         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11619         test from gfortran.dg to here.
11621 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11623         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11624         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11626 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11628         PR middle-end/84955
11629         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11630         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11632 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11634         PR target/85204
11635         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11637 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11639         PR tree-optimization/85063
11640         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11641         * testsuite/libgomp.c/switch-conversion.c: New test.
11642         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11643         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11645 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11647         PR fortran/84381
11648         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11649         call abort by STOP n.
11650         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11651         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11652         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11653         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11654         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11655         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11656         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11657         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11658         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11659         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11660         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11661         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11662         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11663         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11664         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11665         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11666         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11667         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11668         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11669         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11670         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11671         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11672         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11673         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11674         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11675         * testsuite/libgomp.fortran/character1.f90: Likewise.
11676         * testsuite/libgomp.fortran/character2.f90: Likewise.
11677         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11678         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11679         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11680         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11681         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11682         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11683         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11684         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11685         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11686         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11687         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11688         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11689         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11690         * testsuite/libgomp.fortran/do1.f90: Likewise.
11691         * testsuite/libgomp.fortran/do2.f90: Likewise.
11692         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11693         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11694         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11695         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11696         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11697         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11698         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11699         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11700         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11701         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11702         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11703         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11704         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11705         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11706         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11707         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11708         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11709         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11710         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11711         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11712         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11713         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11714         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11715         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11716         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11717         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11718         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11719         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11720         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11721         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11722         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11723         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11724         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11725         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11726         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11727         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11728         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11729         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11730         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11731         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11732         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11733         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11734         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11735         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11736         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11737         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11738         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11739         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11740         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11741         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11742         * testsuite/libgomp.fortran/lib2.f: Likewise.
11743         * testsuite/libgomp.fortran/lib3.f: Likewise.
11744         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11745         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11746         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11747         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11748         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11749         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11750         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11751         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11752         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11753         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11754         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11755         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11756         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11757         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11758         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11759         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11760         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11761         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11762         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11763         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11764         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11765         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11766         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11767         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11768         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11769         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11770         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11771         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11772         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11773         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11774         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11775         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11776         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11777         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11778         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11779         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11780         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11781         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11782         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11783         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11784         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11785         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11786         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11787         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11788         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11789         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11790         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11791         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11792         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11793         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11794         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11795         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11796         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11797         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11798         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11799         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11800         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11801         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11802         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11803         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11804         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11805         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11806         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11807         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11808         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11809         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11810         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11811         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11812         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11813         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11814         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11815         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11816         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11817         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11818         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11819         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11820         * testsuite/libgomp.fortran/stack.f90: Likewise.
11821         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11822         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11823         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11824         * testsuite/libgomp.fortran/target1.f90: Likewise.
11825         * testsuite/libgomp.fortran/target2.f90: Likewise.
11826         * testsuite/libgomp.fortran/target3.f90: Likewise.
11827         * testsuite/libgomp.fortran/target4.f90: Likewise.
11828         * testsuite/libgomp.fortran/target5.f90: Likewise.
11829         * testsuite/libgomp.fortran/target6.f90: Likewise.
11830         * testsuite/libgomp.fortran/target7.f90: Likewise.
11831         * testsuite/libgomp.fortran/target8.f90: Likewise.
11832         * testsuite/libgomp.fortran/task1.f90: Likewise.
11833         * testsuite/libgomp.fortran/task2.f90: Likewise.
11834         * testsuite/libgomp.fortran/task3.f90: Likewise.
11835         * testsuite/libgomp.fortran/task4.f90: Likewise.
11836         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11837         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11838         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11839         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11840         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11841         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11842         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11843         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11844         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11845         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11846         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11847         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11848         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11849         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11850         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11851         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11852         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11853         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11854         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11855         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11856         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11857         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11858         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11859         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11860         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11861         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11862         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11863         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11864         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11865         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11866         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11867         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11868         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11869         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11870         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11871         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11872         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11873         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11874         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11875         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11876         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11877         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11878         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11879         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11880         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11881         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11882         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11883         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11884         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11885         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11886         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11887         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11888         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11889         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11890         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11891         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11892         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11893         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11894         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11895         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11896         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11897         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11898         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11899         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11900         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11901         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11902         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11903         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11904         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11905         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11906         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11907         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11908         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11909         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11910         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11911         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11912         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11913         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11914         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11915         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11916         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11917         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11918         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11919         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11920         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11921         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11922         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11923         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11924         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11925         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11926         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11927         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11928         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11929         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11930         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11931         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11932         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11933         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11934         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11935         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11936         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11937         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11938         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11939         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11940         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11941         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11942         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11943         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11944         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11945         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11946         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11947         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11948         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11949         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11950         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11951         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11952         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11953         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11954         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11955         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11956         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11957         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11958         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11959         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11960         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11961         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11963 2018-03-20  Richard Biener  <rguenther@suse.de>
11965         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11966         parallelizable loop.
11968 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11970         PR target/84148
11971         * configure: Regenerate.
11973 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11975         PR fortran/84418
11976         * libgomp.fortran/pr84418-1.f90: New test.
11977         * libgomp.fortran/pr84418-2.f90: New test.
11979 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11981         PR fortran/84313
11982         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11983         -std=f2003 -fall-intrinsics into dg-additional-options.
11985 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11987         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11988         clonable.
11990 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11992         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11994 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11996         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11997         [__cplusplus]: Declare extern "C".
11999 2018-02-07  Tom de Vries  <tom@codesourcery.com>
12001         PR libgomp/84217
12002         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12004 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
12005             Jakub Jelinek  <jakub@redhat.com>
12007         PR libgomp/84096
12008         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12009         instead of omp_lock_t.
12011 2018-01-25  Tom de Vries  <tom@codesourcery.com>
12013         PR target/84028
12014         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12016 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12018         PR target/83589
12019         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12021 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12023         PR target/81352
12024         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12026 2018-01-19  Tom de Vries  <tom@codesourcery.com>
12027             Cesar Philippidis  <cesar@codesourcery.com>
12029         PR target/83920
12030         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12031         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12033 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
12035         Update copyright years.
12037         * libgomp.texi: Bump @copying's copyright year.
12039 2017-12-30  Tom de Vries  <tom@codesourcery.com>
12041         PR libgomp/83046
12042         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12043         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12045 2017-12-27  Tom de Vries  <tom@codesourcery.com>
12047         PR c++/83046
12048         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12049         (test_nonstatic): Fix return type to workaround PR83046.
12051 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
12053         PR testsuite/83281
12054         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12055         j suffix instead of i.
12056         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12057         Likewise.
12059 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
12061         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12062         call to acc_wait (1).
12064 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
12066         PR fortran/81304
12067         * testsuite/libgomp.fortran/pr81304.f90: New test.
12069 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
12071         PR fortran/81841
12072         * libgomp.fortran/pr81841.f90: New test.
12074 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
12076         PR libgomp/83106
12077         * target.c (gomp_target_init): Compute lengths just once and
12078         use them in both malloc size and subsequent copying.
12080 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12082         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12083         * acinclude.m4: Add cet.m4.
12084         * configure: Regenerate.
12085         * Makefile.in: Likewise.
12086         * testsuite/Makefile.in: Likewise.
12088 2017-11-15  Tom de Vries  <tom@codesourcery.com>
12090         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12091         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
12092         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12093         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
12094         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12095         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
12097 2017-11-14  Tom de Vries  <tom@codesourcery.com>
12099         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12100         non-nvidia devices.
12102 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
12104         PR c++/82835
12105         * testsuite/libgomp.c++/pr82835.C: New test.
12107 2017-11-06  Martin Liska  <mliska@suse.cz>
12109         * testsuite/libgomp.c++/loop-2.C: Return a value
12110         for functions with non-void return type, or change type to void,
12111         or add -Wno-return-type for test.
12112         * testsuite/libgomp.c++/loop-4.C: Likewise.
12113         * testsuite/libgomp.c++/parallel-1.C: Likewise.
12114         * testsuite/libgomp.c++/shared-1.C: Likewise.
12115         * testsuite/libgomp.c++/single-1.C: Likewise.
12116         * testsuite/libgomp.c++/single-2.C: Likewise.
12118 2017-10-31  Tom de Vries  <tom@codesourcery.com>
12120         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12121         "do {} while (false)".
12122         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12123         after HSA_DEBUG call.
12125 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
12127         * target.c (struct gomp_coalesce_buf): New type.
12128         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12129         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12130         (gomp_copy_host2dev): Add CBUF argument, if copying into
12131         the cached ranges, memcpy into buffer instead of copying
12132         into device.
12133         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12134         Add CBUF argument, pass it through to other calls.
12135         (gomp_map_vars): Aggregate copies from host to device if small enough
12136         and with small enough gaps in between into memcpy into a buffer and
12137         fewer host to device copies from the buffer.
12138         (gomp_update): Adjust gomp_copy_host2dev caller.
12140 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
12142         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12143         run" directive.
12144         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12145         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12146         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12147         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12149 2017-10-16  Tom de Vries  <tom@codesourcery.com>
12151         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12152         openacc_nvidia_accel_selected.
12153         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12154         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12155         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12156         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12157         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12158         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12159         openacc_nvidia_accel_selected. Skip for shared memory device.
12160         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12161         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12163 2017-10-09  Martin Jambor  <mjambor@suse.cz>
12165         PR hsa/82416
12166         * testsuite/libgomp.hsa.c/pr82416.c: New test.
12168 2017-10-07  Tom de Vries  <tom@codesourcery.com>
12170         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12171         Remove acc_device_nvidia references.
12172         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12173         Same.
12175 2017-10-05  Tom de Vries  <tom@codesourcery.com>
12177         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12178         vector_length(32) clause from acc parallel directive.
12179         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12181 2017-10-04  Tom de Vries  <tom@codesourcery.com>
12183         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12184         (main): Reduce sum of arr elements.  Assert that hres is exactly
12185         representable in 32-bit floating point.
12186         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12187         (main): Reduce sum of arr elements.  Assert that hres and hmres are
12188         exactly representable in 32-bit floating point.
12189         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12191 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12193         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12194         setting.
12195         * testsuite/libgomp.c++/pr69393.C: Same.
12196         * testsuite/libgomp.c++/taskloop-1.C: Same.
12197         * testsuite/libgomp.c++/taskloop-3.C: Same.
12198         * testsuite/libgomp.c++/taskloop-4.C: Same.
12199         * testsuite/libgomp.c/for-4.c: Same.
12200         * testsuite/libgomp.c/pr66199-3.c: Same.
12201         * testsuite/libgomp.c/pr66199-4.c: Same.
12202         * testsuite/libgomp.c/pr66199-6.c: Same.
12203         * testsuite/libgomp.c/taskloop-1.c: Same.
12204         * testsuite/libgomp.c/taskloop-3.c: Same.
12205         * testsuite/libgomp.c/taskloop-4.c: Same.
12206         * testsuite/libgomp.fortran/aligned1.f03: Same.
12207         * testsuite/libgomp.fortran/condinc1.f: Same.
12208         * testsuite/libgomp.fortran/condinc3.f90: Same.
12209         * testsuite/libgomp.fortran/crayptr1.f90: Same.
12210         * testsuite/libgomp.fortran/crayptr2.f90: Same.
12211         * testsuite/libgomp.fortran/crayptr3.f90: Same.
12212         * testsuite/libgomp.fortran/omp_cond1.f: Same.
12213         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12214         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12215         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12216         * testsuite/libgomp.fortran/recursion1.f90: Same.
12217         * testsuite/libgomp.fortran/target2.f90: Same.
12218         * testsuite/libgomp.fortran/target5.f90: Same.
12219         * testsuite/libgomp.fortran/task3.f90: Same.
12221 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12223         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12224         vector_length(32) clause from acc parallel directive.
12225         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12227 2017-09-27  Tom de Vries  <tom@codesourcery.com>
12229         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12230         Remove acc_device_nvidia references.
12232 2017-09-16  Tom de Vries  <tom@codesourcery.com>
12234         PR c/81875
12235         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12237 2017-09-14  Tom de Vries  <tom@codesourcery.com>
12239         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12240         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12241         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12242         * testsuite/libgomp.c/c.exp: Include test-cases from
12243         libgomp.c-c++-common.
12244         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
12245         files.
12247 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
12249         PR c++/81314
12250         * testsuite/libgomp.c++/pr81314.C: New test.
12252 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
12254         * libgomp.texi (Top): www.openacc.org now uses https.
12255         (Enabling OpenACC): Ditto.
12256         (acc_get_num_devices): Ditto.
12257         (acc_set_device_type): Ditto.
12258         (acc_get_device_type): Ditto.
12259         (acc_set_device_num): Ditto.
12260         (acc_get_device_num): Ditto.
12261         (acc_async_test): Ditto.
12262         (acc_async_test_all): Ditto.
12263         (acc_wait): Ditto.
12264         (acc_wait_all): Ditto.
12265         (acc_wait_all_async): Ditto.
12266         (acc_wait_async): Ditto.
12267         (acc_init): Ditto.
12268         (acc_shutdown): Ditto.
12269         (acc_on_device): Ditto.
12270         (acc_malloc): Ditto.
12271         (acc_free): Ditto.
12272         (acc_copyin): Ditto.
12273         (acc_present_or_copyin): Ditto.
12274         (acc_create): Ditto.
12275         (acc_present_or_create): Ditto.
12276         (acc_copyout): Ditto.
12277         (acc_delete): Ditto.
12278         (acc_update_device): Ditto.
12279         (acc_update_self): Ditto.
12280         (acc_map_data): Ditto.
12281         (acc_unmap_data): Ditto.
12282         (acc_deviceptr): Ditto.
12283         (acc_hostptr): Ditto.
12284         (acc_is_present): Ditto.
12285         (acc_memcpy_to_device): Ditto.
12286         (acc_memcpy_from_device): Ditto.
12287         (acc_get_current_cuda_device): Ditto.
12288         (acc_get_current_cuda_context): Ditto.
12289         (acc_get_cuda_stream): Ditto.
12290         (acc_set_cuda_stream): Ditto.
12291         (ACC_DEVICE_TYPE): Ditto.
12292         (ACC_DEVICE_NUM): Ditto.
12293         (OpenACC Library Interoperability): Ditto.
12295 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
12297         PR c/81687
12298         * testsuite/libgomp.c/pr81687-1.c: New test.
12299         * testsuite/libgomp.c/pr81687-2.c: New test.
12301 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
12303         PR c/69389
12304         * testsuite/libgomp.c/pr69389.c: New test.
12305         * testsuite/libgomp.c++/pr69389.C: New test.
12307 2017-08-07  Tom de Vries  <tom@codesourcery.com>
12309         PR middle-end/78266
12310         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12311         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12313 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
12315         PR c/45784
12316         * testsuite/libgomp.c/pr45784.c: New test.
12317         * testsuite/libgomp.c++/pr45784.C: New test.
12319 2017-07-19  Tom de Vries  <tom@codesourcery.com>
12321         * testsuite/libgomp.oacc-c/vec.c: New test.
12323 2017-07-03  Tom de Vries  <tom@codesourcery.com>
12325         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12327 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12329         * plugin/plugin-nvptx.c (notify_var): New function.
12330         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12332 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12334         * env.c (parse_unsigned_long_1): Factor out of ...
12335         (parse_unsigned_long): ... here.
12336         (parse_int_1): Factor out of ...
12337         (parse_int): ... here.
12338         (parse_int_secure): New function.
12339         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12340         * secure_getenv.h: Factor out of ...
12341         * plugin/plugin-hsa.c: ... here.
12342         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12344 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
12346         PR c++/81130
12347         * testsuite/libgomp.c++/pr81130.C: New test.
12349 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12351         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12352         default args.
12353         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12354         dg-xfail-run-if default args.
12356 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12358         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12359         * testsuite/libgomp.c/pr39591-3.c: Likewise.
12361 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
12363         PR libgomp/80822
12364         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12365         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
12366         sibling lists, depending on level just pick up what CPUs to put
12367         together into a place vs. whether add multiple ordered places.
12369 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
12371         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12372         * libgomp.map (OACC_2.0.1): Add these.
12373         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12374         for "acc_wait", and "acc_wait_all", respectively.
12375         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12376         for "acc_wait", and "acc_wait_all", respectively.
12377         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12378         * libgomp.texi (acc_wait, acc_wait_all): Update.
12379         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12380         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12381         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12383         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12384         acc_present_or_copyin and acc_present_or_create procedures,
12385         respectively.
12386         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12387         generally different variants of OpenACC Runtime Library functions.
12388         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12390         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12391         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12393         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12394         of preprocessor definitions.
12395         * libgomp.h (strong_alias): Guard by "#ifdef
12396         HAVE_ATTRIBUTE_ALIAS".
12397         * oacc-mem.c: Provide "acc_pcreate" as alias for
12398         "acc_present_or_create", and "acc_pcopyin" as alias for
12399         "acc_present_or_copyin".
12400         * libgomp.map: New version "OACC_2.0.1".
12401         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12402         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12403         its content into...
12404         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12405         Extend testing.
12407         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12408         when disabling nvptx offloading.
12410 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
12412         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12413         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12414         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12416         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12417         * testsuite/lib/libgomp.exp
12418         (check_effective_target_openacc_nvidia_accel_configured): New
12419         proc.
12420         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12421         (check_effective_target_c++): New procs.
12422         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12423         (check_effective_target_c++): Likewise.
12425 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
12427         PR middle-end/80809
12428         * testsuite/libgomp.c/pr80809-2.c: New test.
12429         * testsuite/libgomp.c/pr80809-3.c: New test.
12431         PR middle-end/80809
12432         * testsuite/libgomp.c/pr80809-1.c: New test.
12434         PR middle-end/80853
12435         * testsuite/libgomp.c/pr80853.c: New test.
12437 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
12439         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12440         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12441         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12442         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12443         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12445         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12446         Debug output for failure.
12448 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12450         * testsuite/lib/libgomp.exp: Load scanlang.exp.
12452 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
12454         PR bootstrap/80531
12455         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12456         bootstrap compare failures.
12458 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
12460         * testsuite/libgomp.c/target-36.c: New testcase.
12462 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
12464         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12465         instead of char.
12467 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
12469         PR libgomp/80394
12470         * testsuite/libgomp.c/pr80394.c: New test.
12472 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12474         PR libgomp/79876
12475         * config/posix/thread-stacksize.h: New file.
12476         * config/darwin/thread-stacksize.h: New file.
12477         * config/nvptx/thread-stacksize.h: New file.
12478         * env.c: Include thread-stacksize.h.
12479         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12480         instead of 0.  Call pthread_attr_setstacksize even if
12481         GOMP_DEFAULT_STACKSIZE is non-zero.
12483 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12485         * env.c (initialize_env): Initialize stacksize to 0.
12487 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
12489         PR c++/80029
12490         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12492 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
12494         PR c/79940
12495         * testsuite/libgomp.c/pr79940.c: New test.
12497 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12499         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12500         targets.
12501         Add __float128 options.
12503 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
12505         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12506         hppa*-*-* dg-skip-if directive.
12508 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
12510         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12511         dg-skip-if directive into a comment.
12513 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
12514             Chung-Lin Tang  <cltang@codesourcery.com>
12516         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12517         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12518         add additional case.
12519         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12520         "openacc_nvidia_accel_selected".
12521         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12522         Add num_workers(8) clause.
12524 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
12526         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12527         hppa*-*-*.
12528         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12529         include complex.h on hppa*-*-hpux*.
12530         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12532 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12534         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12536         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12537         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12538         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12539         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12540         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12541         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12542         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12543         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12544         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12545         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12547 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12549         * libgomp-plugin.h: #include <stdbool.h>.
12550         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12551         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12552         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12553         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12554         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12555         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12556         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12557         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12558         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12559         (GOMP_OFFLOAD_openacc_async_test)
12560         (GOMP_OFFLOAD_openacc_async_test_all)
12561         (GOMP_OFFLOAD_openacc_async_wait)
12562         (GOMP_OFFLOAD_openacc_async_wait_async)
12563         (GOMP_OFFLOAD_openacc_async_wait_all)
12564         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12565         (GOMP_OFFLOAD_openacc_async_set_async)
12566         (GOMP_OFFLOAD_openacc_create_thread_data)
12567         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12568         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12569         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12570         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12571         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12572         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12573         these.
12574         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12575         (GOMP_OFFLOAD_unload_image): Fix argument types.
12577 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12579         * testsuite/lib/libgomp.exp
12580         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12581         check_compile invocation.  Fix up removal of executable.  Drop
12582         bogus "2>&1" argument.
12584         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12585         directive.
12587 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12588             Martin Jambor  <mjambor@suse.cz>
12590         * plugin/hsa.h: Moved to top level include.
12591         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12593 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12595         PR other/79046
12596         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12597         of cat to get version from BASE-VER file.
12598         * testsuite/Makefile.in: Regenerated.
12600 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12602         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12603         for _WIN64.
12605 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12607         * plugin/hsa.h: Add GCC runtime library exception.
12608         * plugin/hsa_ext_finalize.h: Likewise.
12610         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12611         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12612         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12613         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12614         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12615         library to link ptx plugin against.
12616         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12617         (CUDA_CALLS): Define.
12618         (cuda_lib, cuda_lib_inited): New variables.
12619         (init_cuda_lib): New function.
12620         (CUDA_CALL_PREFIX): Define.
12621         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12622         (CUDA_CALL): Use FN instead of (FN).
12623         (CUDA_CALL_NOCHECK): Define.
12624         (cuda_error, fini_streams_for_device, select_stream_for_async,
12625         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12626         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12627         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12628         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12629         CUDA_CALL_NOCHECK.
12630         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12631         CUDA_CALL_NOCHECK.
12632         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12633         Use CUDA_CALL_NOCHECK.
12634         * plugin/cuda/cuda.h: New file.
12635         * config.h.in: Regenerated.
12636         * configure: Regenerated.
12638         PR other/79046
12639         * configure.ac: Add GCC_BASE_VER.
12640         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12641         get version from BASE-VER file.
12642         * testsuite/Makefile.in: Regenerated.
12643         * configure: Regenerated.
12644         * Makefile.in: Regenerated.
12646 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12648         PR libgomp/60670
12649         * Makefile.am: Make fincludedir multilib-aware.
12650         * Makefile.in: Regenerate.
12652 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12654         Update copyright years.
12656         * libgomp.texi: Bump @copying's copyright year.
12658 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12660         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12661         pthread_spinlock_t instead of gomp_mutex_t lock.
12662         (gomp_get_thread_pool): Likewise.
12663         (gomp_release_thread_pool): Likewise.
12664         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12665         Likewise.
12667 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12669         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12670         thread pool in case nthreads == 1.
12672 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12674         * config/nvptx/env.c: Delete.
12675         * icv.c: Move definitions of ICV variables back ...
12676         * env.c: ...here.  Do not compile environment-related functionality if
12677         LIBGOMP_OFFLOADED_ONLY is set.
12679 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12681         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12682         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12683         * configure: Regenerate.
12684         * config.h.in: Likewise.
12686 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12688         * Makefile.in: Regenerate with automake-1.11.6.
12689         * aclocal.m4: Likewise.
12690         * configure: Likewise.
12691         * testsuite/Makefile.in: Likewise.
12693 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12695         * config/nvptx/critical.c: Delete to use generic implementation.
12697 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12699         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12700         ../../affinity.c as fallback.
12701         * config/nvptx/affinity.c: Delete to use fallback implementation.
12703 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12704             Jakub Jelinek  <jakub@redhat.com>
12705             Dmitry Melnik  <dm@ispras.ru>
12707         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12708         * Makefile.in. Regenerate.
12709         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12710         (LIBGOMP_USE_PTHREADS): ...here; new define.
12711         * configure: Regenerate.
12712         * config.h.in: Likewise.
12713         * config/posix/affinity.c: Move to...
12714         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12715         interface by LIBGOMP_USE_PTHREADS. 
12716         * critical.c: Split out GOMP_atomic_{start,end} into...
12717         * atomic.c: ...here (new file).
12718         * env.c: Split out ICV definitions into...
12719         * icv.c: ...here (new file) and...
12720         * icv-device.c: ...here. New file.
12721         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12722         (gomp_destroy_lock_30): Ditto.
12723         (gomp_set_lock_30): Ditto.
12724         (gomp_unset_lock_30): Ditto.
12725         (gomp_test_lock_30): Ditto.
12726         (gomp_init_nest_lock_30): Ditto.
12727         (gomp_destroy_nest_lock_30): Ditto.
12728         (gomp_set_nest_lock_30): Ditto.
12729         (gomp_unset_nest_lock_30): Ditto.
12730         (gomp_test_nest_lock_30): Ditto.
12731         * lock.c: New.
12732         * config/nvptx/lock.c: New.
12733         * config/nvptx/bar.c: New.
12734         * config/nvptx/bar.h: New.
12735         * config/nvptx/doacross.h: New.
12736         * config/nvptx/error.c: New.
12737         * config/nvptx/icv-device.c: New.
12738         * config/nvptx/mutex.h: New.
12739         * config/nvptx/pool.h: New.
12740         * config/nvptx/proc.c: New.
12741         * config/nvptx/ptrlock.h: New.
12742         * config/nvptx/sem.h: New.
12743         * config/nvptx/simple-bar.h: New.
12744         * config/nvptx/target.c: New.
12745         * config/nvptx/task.c: New.
12746         * config/nvptx/team.c: New.
12747         * config/nvptx/time.c: New.
12748         * config/posix/simple-bar.h: New.
12749         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12750         (gomp_num_teams_var): Declare.
12751         (struct gomp_thread_pool): Change threads_dock member to
12752         gomp_simple_barrier_t.
12753         [__nvptx__] (gomp_thread): New implementation.
12754         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12755         (gomp_thread_destructor): Ditto.
12756         (gomp_init_thread_affinity): Ditto.
12757         * team.c: Guard uses of Pthreads-specific interfaces by
12758         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12759         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12760         * config/nvptx/alloc.c: Delete.
12761         * config/nvptx/barrier.c: Ditto.
12762         * config/nvptx/fortran.c: Ditto.
12763         * config/nvptx/iter.c: Ditto.
12764         * config/nvptx/iter_ull.c: Ditto.
12765         * config/nvptx/loop.c: Ditto.
12766         * config/nvptx/loop_ull.c: Ditto.
12767         * config/nvptx/ordered.c: Ditto.
12768         * config/nvptx/parallel.c: Ditto.
12769         * config/nvptx/priority_queue.c: Ditto.
12770         * config/nvptx/sections.c: Ditto.
12771         * config/nvptx/single.c: Ditto.
12772         * config/nvptx/splay-tree.c: Ditto.
12773         * config/nvptx/work.c: Ditto.
12774         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12775         -foffload=-lgfortran in addition to -lgfortran.
12776         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12777         * plugin/plugin-nvptx.c: Include <limits.h>.
12778         (struct targ_fn_descriptor): Add new fields.
12779         (struct ptx_device): Ditto.  Set them...
12780         (nvptx_open_device): ...here.
12781         (nvptx_adjust_launch_bounds): New.
12782         (nvptx_host2dev): Allow NULL 'nvthd'.
12783         (nvptx_dev2host): Ditto.
12784         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12785         (link_ptx): Adjust log sizes.
12786         (nvptx_host2dev): Allow NULL 'nvthd'.
12787         (nvptx_dev2host): Ditto.
12788         (nvptx_set_clocktick): New.  Use it...
12789         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12790         fields.
12791         (GOMP_OFFLOAD_dev2dev): New.
12792         (nvptx_adjust_launch_bounds): New.
12793         (nvptx_stacks_size): New.
12794         (nvptx_stacks_alloc): New.
12795         (nvptx_stacks_free): New.
12796         (GOMP_OFFLOAD_run): New.
12797         (GOMP_OFFLOAD_async_run): New (stub).
12799 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12801         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12802         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12803         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12805 2016-11-23  Martin Liska  <mliska@suse.cz>
12806             Martin Jambor  <mjambor@suse.cz>
12808         * plugin/hsa.h: New file.
12809         * plugin/hsa_ext_finalize.h: New file.
12810         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12811         header file unistd.h, and functions secure_getenv, __secure_getenv,
12812         getuid, geteuid, getgid and getegid.
12813         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12814         -D_GNU_SOURCE.
12815         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12816         Handle various cases of secure_getenv presence, add an implementation
12817         when we can test effective UID and GID.
12818         (struct hsa_runtime_fn_info): New structure.
12819         (hsa_runtime_fn_info hsa_fns): New variable.
12820         (hsa_runtime_lib): Likewise.
12821         (support_cpu_devices): Likewise.
12822         (init_enviroment_variables): Load newly introduced ENV
12823         variables.
12824         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12825         (hsa_fatal): Likewise.
12826         (DLSYM_FN): New macro.
12827         (init_hsa_runtime_functions): New function.
12828         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12829         structure.  Depending on environment, also allow CPU devices.
12830         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12831         (get_kernarg_memory_region): Likewise.
12832         (GOMP_OFFLOAD_init_device): Likewise.
12833         (destroy_hsa_program): Likewise.
12834         (init_basic_kernel_info): New function.
12835         (GOMP_OFFLOAD_load_image): Use it.
12836         (create_and_finalize_hsa_program): Call hsa run-time functions via
12837         hsa_fns structure.
12838         (create_single_kernel_dispatch): Likewise.
12839         (release_kernel_dispatch): Likewise.
12840         (init_single_kernel): Likewise.
12841         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12842         (get_group_size): New function.
12843         (run_kernel): Likewise.
12844         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12845         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12846         structure.
12847         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12848         * testsuite/libgomp-test-support.exp.in: Likewise.
12849         * Makefile.in: Regenerated.
12850         * aclocal.m4: Likewise.
12851         * config.h.in: Likewise.
12852         * configure: Likewise.
12853         * testsuite/Makefile.in: Likewise.
12855 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12856             Alexander Monakov  <amonakov@ispras.ru>
12858         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12859         mapping clauses to target constructs.
12860         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12862 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12864         * configure: Regenerate.
12866 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12868         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12869         * omp_lib.h.in (openmp_version): Likewise.
12870         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12871         of 201307.
12872         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12874         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12875         (fib_wrapper): Add map(from: x) clause.
12876         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12877         (e_53_2): Likewise.
12878         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12879         (accum): Add map(tmp) clause.
12880         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12881         (accum): Add map(tofrom: tmp) clause.
12882         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12883         (gramSchmidt): Likewise.
12884         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12885         map(tofrom: sum) clause.
12886         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12887         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12888         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12889         only allowed on the loop iterator.
12890         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12891         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12892         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12893         * testsuite/libgomp.fortran/doacross1.f90: New test.
12894         * testsuite/libgomp.fortran/doacross3.f90: New test.
12895         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12896         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12897         * testsuite/libgomp.fortran/doacross2.f90: New test.
12898         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12899         #pragma omp atomic read.
12900         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12901         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12903 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12904             Nathan Sidwell  <nathan@acm.org>
12906         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12907         to determine default geometry.
12908         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12909         dimension.
12911 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12913         * hashtab.h: Use standard GPLv3 with runtime exception
12914         boilerplate.
12916 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12918         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12919         size when allocating new thread.
12921 2016-09-14  Marek Polacek  <polacek@redhat.com>
12923         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12925 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12927         PR fortran/71014
12928         * testsuite/libgomp.fortran/pr71014.f90: New test.
12930 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12932         PR middle-end/70895
12933         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12934         firstprivate clauses.
12935         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12936         copy clauses.
12937         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12938         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12939         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12940         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12941         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12942         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12943         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12944         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12945         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12946         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12947         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12948         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12950 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12952         PR fortran/70598
12953         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12955 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12957         PR c++/58706
12958         * testsuite/libgomp.c++/pr58706.C: New test.
12960 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12962         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12963         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12964         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12965         Likewise.
12966         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12967         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12968         Likewise.
12969         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12971         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12972         test, and don't hardcode -O0.
12974 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12976         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12978 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12980         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12981         test.
12983 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12985         PR middle-end/71734
12986         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12987         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12989 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12991         PR fortran/71717
12992         * testsuite/libgomp.fortran/associate3.f90: New test.
12994 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12996         * testsuite/libgomp.c++/target-21.C: New test.
12998 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
13000         * testsuite/libgomp.c++/target-20.C: New test.
13002 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13003             Cesar Philippidis  <cesar@codesourcery.com>
13005         PR middle-end/71373
13006         * libgomp.oacc-c/nested-function-1.c: New file.
13007         * libgomp.oacc-c/nested-function-2.c: Likewise.
13008         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13009         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13010         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13012 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13014         PR c/71381
13015         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13016         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13017         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13019 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
13021         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13022         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13024 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
13026         PR c/70688
13027         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13029 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13031         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13032         instead of invalid schedule(static, 0).
13033         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13035 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13037         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13038         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13039         parameter, use to set async stream around call to gomp_unmap_vars,
13040         call gomp_unmap_vars() with 'do_copyfrom' set to true.
13041         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13042         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13043         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13044         (event_add): Add int parameter, initialize 'val' field when
13045         adding new ptx_event struct.
13046         (nvptx_evec): Adjust event_add() call arguments.
13047         (nvptx_host2dev): Likewise.
13048         (nvptx_dev2host): Likewise.
13049         (nvptx_wait_async): Likewise.
13050         (nvptx_wait_all_async): Likewise.
13051         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13052         pass to event_add() call.
13053         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13054         parameter.
13055         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13056         call openacc.register_async_cleanup_func() hook.
13057         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13058         * target.c (gomp_copy_from_async): Delete function.
13059         (gomp_map_vars): Remove async_refcount.
13060         (gomp_unmap_vars): Likewise.
13061         (gomp_load_image_to_device): Likewise.
13062         (omp_target_associate_ptr): Likewise.
13063         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13064         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13065         (gomp_copy_from_async): Remove.
13067 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13069         * target.c (gomp_device_copy): New function.
13070         (gomp_copy_host2dev): Likewise.
13071         (gomp_copy_dev2host): Likewise.
13072         (gomp_free_device_memory): Likewise.
13073         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13074         (gomp_map_pointer): Likewise.
13075         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13076         NULL value from alloc_func plugin hook.
13077         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13078         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13079         (gomp_unmap_vars): Likewise.
13080         (gomp_update): Adjust to call gomp_copy_dev2host and
13081         gomp_copy_host2dev functions.
13082         (gomp_unload_image_from_device): Handle false value from
13083         unload_image_func plugin hook.
13084         (gomp_init_device): Handle false value from init_device_func
13085         plugin hook.
13086         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13087         (omp_target_free): Adjust to call gomp_free_device_memory.
13088         (omp_target_memcpy): Handle return values from host2dev_func,
13089         dev2host_func, and dev2dev_func plugin hooks.
13090         (omp_target_memcpy_rect_worker): Likewise.
13091         (gomp_target_fini): Handle false value from fini_device_func
13092         plugin hook.
13093         * libgomp.h (struct gomp_device_descr): Adjust return type of
13094         init_device_func, fini_device_func, unload_image_func, free_func,
13095         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13096         * oacc-init.c (acc_shutdown_1): Handle false value from
13097         fini_device_func plugin hook.
13098         * oacc-host.c (host_init_device): Change return type to bool.
13099         (host_fini_device): Likewise.
13100         (host_unload_image): Likewise.
13101         (host_free): Likewise.
13102         (host_dev2host): Likewise.
13103         (host_host2dev): Likewise.
13104         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13105         (acc_memcpy_to_device): Likewise.
13106         (acc_memcpy_from_device): Likewise.
13107         (delete_copyout): Add libfnname parameter, handle free_func
13108         hook fatal error case.
13109         (acc_delete): Adjust delete_copyout call.
13110         (acc_copyout): Likewise.
13111         (update_dev_host): Move gomp_mutex_unlock to after
13112         host2dev/dev2host hook calls.
13114         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13115         to 'hsa_error_msg', for clarity.
13116         (hsa_fatal): Likewise.
13117         (hsa_error): New function.
13118         (init_hsa_context): Change return type to bool, adjust to return
13119         false on error.
13120         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13121         return value.
13122         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13123         return false on error.
13124         (get_agent_info): Adjust to return NULL on error.
13125         (destroy_hsa_program): Change return type to bool, adjust to
13126         return false on error.
13127         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13128         (destroy_module): Change return type to bool, adjust to
13129         return false on error.
13130         (GOMP_OFFLOAD_unload_image): Likewise.
13131         (GOMP_OFFLOAD_fini_device): Likewise.
13132         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13133         (GOMP_OFFLOAD_free): Change to return false when called.
13134         (GOMP_OFFLOAD_dev2host): Likewise.
13135         (GOMP_OFFLOAD_host2dev): Likewise.
13136         (GOMP_OFFLOAD_dev2dev): Likewise.
13138         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13139         (CUDA_CALL): Likewise.
13140         (CUDA_CALL_ASSERT): Likewise.
13141         (map_init): Change return type to bool, use CUDA_CALL* macros.
13142         (map_fini): Likewise.
13143         (init_streams_for_device): Change return type to bool, adjust
13144         call to map_init.
13145         (fini_streams_for_device): Change return type to bool, adjust
13146         call to map_fini.
13147         (select_stream_for_async): Release stream_lock before calls to
13148         GOMP_PLUGIN_fatal, adjust call to map_init.
13149         (nvptx_init): Use CUDA_CALL* macros.
13150         (nvptx_attach_host_thread_to_device): Change return type to bool,
13151         use CUDA_CALL* macros.
13152         (nvptx_open_device): Use CUDA_CALL* macros.
13153         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13154         macros.
13155         (nvptx_get_num_devices): Use CUDA_CALL* macros.
13156         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13157         (nvptx_exec): Use CUDA_CALL* macros.
13158         (nvptx_alloc): Use CUDA_CALL* macros.
13159         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13160         (nvptx_host2dev): Likewise.
13161         (nvptx_dev2host): Likewise.
13162         (nvptx_wait): Use CUDA_CALL* macros.
13163         (nvptx_wait_async): Likewise.
13164         (nvptx_wait_all): Likewise.
13165         (nvptx_wait_all_async): Likewise.
13166         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13167         use CUDA_CALL* macros, adjust call to map_fini.
13168         (GOMP_OFFLOAD_init_device): Change return type to bool,
13169         adjust code accordingly.
13170         (GOMP_OFFLOAD_fini_device): Likewise.
13171         (GOMP_OFFLOAD_load_image): Adjust calls to
13172         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13173         use CUDA_CALL* macros.
13174         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13175         return code.
13176         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13177         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13178         handle error return.
13179         (GOMP_OFFLOAD_dev2host): Likewise.
13180         (GOMP_OFFLOAD_host2dev): Likewise.
13181         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13182         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13184 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13186         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13187         (acc_free): Likewise.
13188         (acc_memcpy_to_device): Likewise.
13189         (acc_memcpy_from_device): Likewise.
13190         (acc_deviceptr): Likewise.
13191         (acc_hostptr): Likewise.
13192         (acc_is_present): Likewise.
13193         (acc_map_data): Likewise.
13194         (acc_unmap_data): Likewise.
13195         (present_create_copy): Likewise.
13196         (delete_copyout): Likewise.
13197         (update_dev_host): Likewise.
13198         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13199         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13200         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13201         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13202         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13203         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13204         it only runs on nvptx targets.
13205         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13206         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13207         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13208         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13209         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13210         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13211         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13212         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13213         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13214         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13215         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13216         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13217         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13218         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13219         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13220         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13221         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13222         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13223         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13224         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13225         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13226         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13227         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13229 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13231         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13233 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
13235         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13236         to gomp_init_targets_once.
13237         (acc_set_device_type): Remove !cached_base_dev condition on call to
13238         gomp_init_targets_once, move call to before acc_device_lock acquire,
13239         to avoid deadlock.
13240         (acc_get_device_num): Remove !cached_base_dev condition on call to
13241         gomp_init_targets_once.
13242         (acc_set_device_num): Likewise.
13244 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13246         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13248 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
13250         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13251         expected partitioning.
13253 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
13255         PR middle-end/70626
13256         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13257         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13258         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13260 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
13262         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13263         non-fatal.
13265 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
13267         PR middle-end/70680
13268         * testsuite/libgomp.c/pr70680-1.c: New test.
13269         * testsuite/libgomp.c/pr70680-2.c: New test.
13271 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13273         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13274         pass parameter variables to subroutines.
13276 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13278         PR middle-end/70643
13279         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13281 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
13283         PR testsuite/68242
13284         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13285         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13287 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
13289         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13290         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13291         GOACC_declare prototype.
13293         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13294         Merge this file, and...
13295         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13296         ... this file, and...
13297         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13298         ... this file, and...
13299         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13300         ... this file, and...
13301         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13302         ... this file, and...
13303         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13304         ... this file, and...
13305         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13306         ... this file, and...
13307         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13308         ... this file, and...
13309         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13310         ... this file, and...
13311         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13312         ... this file, and...
13313         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13314         ... this file, and...
13315         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13316         ... this file, and...
13317         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13318         ... this file into...
13319         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13320         file.
13322         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13323         Make failure observable.
13325 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
13327         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13328         field.
13329         * target.c (gomp_target_fallback_firstprivate,
13330         gomp_target_unshare_firstprivate): Removed.
13331         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13332         before waiting for dependencies.
13333         (gomp_target_task_fn): Don't copy firstprivate vars here.
13334         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13335         firstprivate_copies here.
13336         (gomp_create_target_task): Don't initialize firstprivate_copies field.
13337         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13338         explicit/implicit firstprivate.
13340 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
13342         PR lto/70289
13343         PR ipa/70348
13344         PR tree-optimization/70373
13345         PR middle-end/70533
13346         PR middle-end/70534
13347         PR middle-end/70535
13348         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13349         test.
13350         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13351         test.
13352         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13353         test.
13354         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13355         test.
13356         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13357         test.
13358         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13359         test.
13360         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13361         test.
13362         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13363         test.
13364         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13365         test.
13366         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13367         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13368         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13369         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13370         test.
13371         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13372         test.
13373         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13374         test.
13375         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13376         test.
13377         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13378         coverage.
13379         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13380         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13381         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13382         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13383         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13384         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13385         coverage.
13386         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13387         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13388         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13389         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13390         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13391         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13392         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13393         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13394         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13395         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13396         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13397         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13398         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13399         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13400         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13402 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
13403             James Norris  <jnorris@codesourcery.com>
13404             Nathan Sidwell  <nathan@codesourcery.com>
13405             Julian Brown  <julian@codesourcery.com>
13406             Cesar Philippidis  <cesar@codesourcery.com>
13407             Chung-Lin Tang  <cltang@codesourcery.com>
13408             Tom de Vries  <tom@codesourcery.com>
13410         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13411         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13412         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13413         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13414         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13415         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13416         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13417         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13418         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13419         XFAIL.
13420         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13421         Incorporate...
13422         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13423         file.
13424         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13425         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13426         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13427         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13428         Likewise.
13429         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13430         Likewise.
13431         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13432         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13433         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13434         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13435         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13436         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13437         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13438         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13439         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13440         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13441         Likewise.
13442         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13443         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13444         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13445         file...
13446         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13447         file into...
13448         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13449         file.  Update.
13450         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13451         file.
13452         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13453         Likewise.
13454         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13455         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13456         ... this new file.  Update.
13457         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13458         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13459         ... this new file.  Update.
13460         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13461         file.  Incorporate...
13462         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13463         file, and...
13464         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13465         file, and...
13466         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13467         file.
13468         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13470 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13472         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13473         set-torture-options.
13475 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
13477         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13478         gcc-dg-runtest.
13479         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13480         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13481         -fno-builtin-acc_on_device instead of -O0.
13482         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13483         -O0.
13484         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13485         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13486         Likewise.
13487         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13488         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13489         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13490         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13491         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13492         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13493         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13494         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13495         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13496         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13497         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13498         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13499         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13500         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13501         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13502         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13503         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13504         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13505         Don't specify -O2.
13506         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13507         Likewise.
13508         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13509         Likewise.
13511 2016-03-24  Martin Liska  <mliska@suse.cz>
13513         * plugin/plugin-hsa.c (packet_store_release): New function
13514         that is taken from the HSA runtime manual.
13515         (GOMP_OFFLOAD_run): Use the function.
13517 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13519         PR c++/70376
13520         * testsuite/libgomp.c++/pr70376.C: New test.
13522 2016-03-23  Tom de Vries  <tom@codesourcery.com>
13524         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13525         initialization of lresult and lvresult.
13526         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13528 2016-03-23  James Norris  <jnorris@codesourcery.com>
13529             Daichi Fukuoka <dc-fukuoka@sgi.com>
13531         PR libgomp/69414
13532         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13533         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13534         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13535         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13537 2016-03-23  Martin Liska  <mliska@suse.cz>
13539         PR hsa/70337
13540         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13541         argument just in case a dispatched kernel uses that argument.
13543 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13545         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13546         -ftree-parallelize-loops/-fopenacc changes.
13547         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13548         Likewise.
13549         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13550         Likewise.
13551         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13552         Likewise.
13553         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13554         Likewise.
13555         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13556         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13558 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13560         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13561         always_ld_library_path the path to libgcc_s.
13563 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13565         PR testsuite/70009
13566         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13568 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13570         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13571         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13572         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13573         Same.
13574         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13575         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13576         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13577         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13579 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13581         * testsuite/lib/libgomp.exp
13582         (check_effective_target_hsa_offloading_selected_nocache): New.
13583         (check_effective_target_hsa_offloading_selected): Likewise.
13584         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13585         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13586         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13587         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13588         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13589         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13590         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13591         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13592         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13593         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13594         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13595         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13596         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13597         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13598         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13599         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13600         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13602 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13604         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13605         non-shared memory accelerators.
13606         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13607         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13608         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13609         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13610         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13611         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13612         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13613         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13614         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13616 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13618         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13619         ALWAYS_CFLAGS.
13621 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13623         PR libgomp/69555
13624         * testsuite/libgomp.c++/pr69555-1.C: New test.
13625         * testsuite/libgomp.c++/pr69555-2.C: New test.
13627 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13628             Martin Jambor  <mjambor@suse.cz>
13630         * testsuite/lib/libgomp.exp
13631         (check_effective_target_offload_device_shared_as): New proc.
13632         * testsuite/libgomp.c++/declare_target-1.C: New test.
13634 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13636         PR driver/68463
13637         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13639 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13641         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13642         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13643         dims.
13644         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13645         -ftree-parallelize-loops/-fopenacc changes.
13646         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13647         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13648         Likewise.
13649         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13650         Likewise.
13651         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13652         Likewise.
13653         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13654         Likewise.
13655         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13656         Likewise.
13657         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13658         Likewise.
13659         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13660         Likewise.
13661         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13662         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13663         Likewise.
13664         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13665         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13666         Likewise.
13667         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13668         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13669         Likewise.
13671 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13673         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13675 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13677         PR driver/69805
13678         * testsuite/libgomp.c/pr69805.c: New test.
13680 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13682         PR lto/67709
13683         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13685 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13687         PR tree-optimization/69599
13688         * testsuite/libgomp.c/omp-nested-3.c: New test.
13689         * testsuite/libgomp.c/pr46032-2.c: New test.
13690         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13691         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13693 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13695         PR lto/69707
13696         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13698 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13700         * testsuite/libgomp.c/target-31.c: Fix testcase.
13702 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13704         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13705         clause.
13706         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13707         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13708         reduction and map clauses.
13709         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13711 2016-02-02  James Norris  <jnorris@codesourcery.com>
13713         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13715 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13717         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13718         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13720         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13721         cases.
13723         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13724         variables.
13725         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13726         (hsa_kmt_lib): Set variables.
13727         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13728         always_ld_library_path.
13729         * Makefile.in: Regenerate.
13730         * configure: Likewise.
13731         * testsuite/Makefile.in: Likewise.
13733         * plugin/configfrag.ac (offload_additional_options)
13734         (offload_additional_lib_paths): Don't amend for hsa offloading.
13735         * configure: Regenerate.
13737         * plugin/configfrag.ac: Don't configure for offloading target if
13738         we don't build the corresponding plugin.
13739         * configure: Regenerate.
13741 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13743         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13744         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13746 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13748         PR tree-optimization/69110
13749         * testsuite/libgomp.c/pr69110.c: New test.
13751 2016-01-25  Richard Biener  <rguenther@suse.de>
13753         PR lto/69393
13754         * testsuite/libgomp.c++/pr69393.C: New testcase.
13756 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13758         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13759         function wasn't mapped to the device with non-shared memory.
13761 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13763         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13765 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13766             Martin Liska  <mliska@suse.cz>
13768         * plugin/Makefrag.am: Add HSA plugin requirements.
13769         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13770         (HSA_RUNTIME_LIB): Likewise.
13771         (HSA_RUNTIME_CPPFLAGS): Likewise.
13772         (HSA_RUNTIME_INCLUDE): New substitution.
13773         (HSA_RUNTIME_LIB): Likewise.
13774         (HSA_RUNTIME_LDFLAGS): Likewise.
13775         (hsa-runtime): New configure option.
13776         (hsa-runtime-include): Likewise.
13777         (hsa-runtime-lib): Likewise.
13778         (PLUGIN_HSA): New substitution variable.
13779         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13780         configure options.
13781         (PLUGIN_HSA_CPPFLAGS): Likewise.
13782         (PLUGIN_HSA_LDFLAGS): Likewise.
13783         (PLUGIN_HSA_LIBS): Likewise.
13784         Check that we have access to HSA run-time.
13785         * libgomp-plugin.h (offload_target_type): New element
13786         OFFLOAD_TARGET_TYPE_HSA.
13787         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13788         args.
13789         (bool gomp_create_target_task): Updated.
13790         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13791         new field can_run_func.
13792         * libgomp_g.h (GOMP_target_ext): Update prototype.
13793         * oacc-host.c (host_run): Added a new parameter args.
13794         * target.c (calculate_firstprivate_requirements): New function.
13795         (copy_firstprivate_data): Likewise.
13796         (gomp_target_fallback_firstprivate): Use them.
13797         (gomp_target_unshare_firstprivate): New function.
13798         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13799         devices.
13800         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13801         pass any args to plugins.
13802         (GOMP_target_ext): Introduce device-specific argument parameter args.
13803         Allow host fallback if device shares memory.  Do not remap data if
13804         device has shared memory.
13805         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13806         like host fallback for mappings.
13807         (GOMP_target_data): Treat shared memory devices like host fallback.
13808         (GOMP_target_data_ext): Likewise.
13809         (GOMP_target_update): Likewise.
13810         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13811         gomp_create_target_task.
13812         (GOMP_target_enter_exit_data): Likewise.
13813         (omp_target_alloc): Treat shared memory devices like host fallback.
13814         (omp_target_free): Likewise.
13815         (omp_target_is_present): Likewise.
13816         (omp_target_memcpy): Likewise.
13817         (omp_target_memcpy_rect): Likewise.
13818         (omp_target_associate_ptr): Likewise.
13819         (gomp_load_plugin_for_device): Also load can_run.
13820         * task.c (GOMP_PLUGIN_target_task_completion): Free
13821         firstprivate_copies.
13822         (gomp_create_target_task): Accept new argument args and store it to
13823         ttask.
13824         * plugin/plugin-hsa.c: New file.
13826 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13828         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13829         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13830         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13831         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13832         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13833         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13834         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13835         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13836         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13837         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13838         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13839         Same.
13840         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13841         Same.
13842         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13843         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13844         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13845         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13846         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13847         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13848         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13849         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13850         Same.
13851         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13853 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13855         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13857 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13859         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13861 2016-01-12  James Norris  <jnorris@codesourcery.com>
13863         * libgomp.texi: Updates for OpenACC.
13865 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13867         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13869 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13871         PR fortran/66680
13872         * testsuite/libgomp.fortran/pr66680.f90: New test.
13874 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13876         PR middle-end/68960
13877         * testsuite/libgomp.c/pr68960.c: New test.
13879 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13881         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13882         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13884 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13886         Update copyright years.
13888         * libgomp.texi: Bump @copying's copyright year.
13890 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13892         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13893         dg-additional-options syntax.
13894         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13895         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13896         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13897         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13898         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13899         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13900         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13901         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13902         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13903         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13904         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13905         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13906         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13907         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13908         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13909         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13910         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13911         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13913 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13915         * libgomp.h (REFCOUNT_LINK): Define.
13916         (struct splay_tree_key_s): Add link_key.
13917         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13918         Replace target address of the pointer with target address of newly
13919         mapped object in the splay tree.  Set link pointer on target to the
13920         device address of the mapped object.
13921         (gomp_unmap_vars): Restore target address of the pointer in the splay
13922         tree for REFCOUNT_LINK objects after unmapping.
13923         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13924         declare target link" objects.
13925         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13926         "omp declare target link" objects, which were mapped for the image.
13927         (gomp_exit_data): Restore target address of the pointer in the splay
13928         tree for REFCOUNT_LINK objects after unmapping.
13929         * testsuite/libgomp.c/target-link-1.c: New file.
13931 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13933         * libgomp.h (gomp_device_state): New enum.
13934         (struct gomp_device_descr): Replace is_initialized with state.
13935         (gomp_fini_device): Remove declaration.
13936         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13937         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13938         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13939         (acc_set_device_type): Use state instead of is_initialized.
13940         (acc_set_device_num): Likewise.
13941         * target.c (resolve_device): Use state instead of is_initialized.
13942         Do not initialize finalized device.
13943         (gomp_map_vars): Do nothing if device is finalized.
13944         (gomp_unmap_vars): Likewise.
13945         (gomp_update): Likewise.
13946         (GOMP_offload_register_ver): Use state instead of is_initialized.
13947         (GOMP_offload_unregister_ver): Likewise.
13948         (gomp_init_device): Likewise.
13949         (gomp_unload_device): Likewise.
13950         (gomp_fini_device): Remove.
13951         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13952         (GOMP_target): Go to host fallback if device is finalized.
13953         (GOMP_target_ext): Likewise.
13954         (gomp_exit_data): Do nothing if device is finalized.
13955         (gomp_target_task_fn): Go to host fallback if device is finalized.
13956         (gomp_target_fini): New static function.
13957         (gomp_target_init): Use state instead of is_initialized.
13958         Call gomp_target_fini at exit.
13960 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13962         PR tree-optimization/68716
13963         * testsuite/libgomp.c/omp-nested-2.c: New test.
13965 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13967         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13968         target openacc_nvidia_accel_selected.
13969         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13970         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13971         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13972         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13974 2015-12-01  Julian Brown  <julian@codesourcery.com>
13975             James Norris  <James_Norris@mentor.com>
13977         * oacc-parallel.c (GOACC_host_data): New function.
13978         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13979         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13980         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13981         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13982         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13983         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13984         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13986 2015-11-30  James Norris  <jnorris@codesourcery.com>
13987             Cesar Philippidis  <cesar@codesourcery.com>
13989         libgomp/
13990         * libgomp.oacc-fortran/routine-5.f90: New test.
13991         * libgomp.oacc-fortran/routine-7.f90: New test.
13992         * libgomp.oacc-fortran/routine-9.f90: New test.
13994 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13996         PR tree-optimization/46032
13997         * testsuite/libgomp.c/pr46032.c: New test.
13999 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
14001         PR libgomp/68579
14002         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14003         (gomp_create_target_task): Call it before freeing
14004         GOMP_TARGET_TASK_DATA tasks.
14006         PR c/63326
14007         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14008         in between case label and OpenMP standalone directives.
14009         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14011 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
14013         * configure: Regenerate.
14015 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
14017         * testsuite/libgomp.c/target-35.c: New test.
14019 2015-11-22  James Norris  <jnorris@codesourcery.com>
14020             Cesar Philippidis  <cesar@codesourcery.com>
14022         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14023         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14024         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14025         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14026         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14028 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
14030         PR middle-end/68221
14031         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14032         * testsuite/libgomp.c/reduction-12.c: Likewise.
14033         * testsuite/libgomp.c++/reduction-11.C: Likewise.
14034         * testsuite/libgomp.c++/reduction-12.C: Likewise.
14036 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
14038         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14039         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14040         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14041         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14042         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14043         and fix.
14044         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14045         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14047 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
14049         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14050         worker & gang cases.
14051         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14053 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
14055         * config/nvptx/priority_queue.c: New file.
14057 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14059         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14060         sections.
14062 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14063             Aldy Hernandez  <aldyh@redhat.com>
14064             Ilya Verbin  <ilya.verbin@intel.com>
14066         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14067         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14068         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14069         iterators or IV by chunk size.
14070         * parallel.c (gomp_resolve_num_threads): Don't assume that
14071         if thr->ts.team is non-NULL, then pool must be non-NULL.
14072         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14073         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14074         GOMP_PLUGIN_target_task_completion.
14075         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14076         * Makefile.in: Regenerate.
14077         * libgomp.h: Shuffle prototypes and forward definitions around so
14078         priority queues can be defined.
14079         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14080         (enum gomp_target_task_state): New enum.
14081         (struct gomp_target_task): Add state, tgt, task and team fields.
14082         (gomp_create_target_task): Change return type to bool, add
14083         state argument.
14084         (gomp_target_task_fn): Change return type to bool.
14085         (struct gomp_device_descr): Add async_run_func.
14086         (struct gomp_task): Remove children, next_child, prev_child,
14087         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14088         Add pnode field.
14089         (struct gomp_taskgroup): Remove children.
14090         Add taskgroup_queue.
14091         (struct gomp_team): Change task_queue type to a priority queue.
14092         (splay_compare): Define inline.
14093         (priority_queue_offset): New.
14094         (priority_node_to_task): New.
14095         (task_to_priority_node): New.
14096         * oacc-mem.c: Do not include splay-tree.h.
14097         * priority_queue.c: New file.
14098         * priority_queue.h: New file.
14099         * splay-tree.c: Do not include splay-tree.h.
14100         (splay_tree_foreach_internal): New.
14101         (splay_tree_foreach): New.
14102         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14103         (splay_tree_callback): Define typedef.
14104         * target.c (splay_compare): Move to libgomp.h.
14105         (GOMP_target): Don't adjust *thr in any way around running offloaded
14106         task.
14107         (GOMP_target_ext): Likewise.  Handle target nowait.
14108         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14109         return value from gomp_create_target_task, if false, fallthrough
14110         as if no dependencies exist.
14111         (gomp_target_task_fn): Change return type to bool, return true
14112         if the task should have another part scheduled later.  Handle
14113         target nowait.
14114         (gomp_load_plugin_for_device): Initialize async_run.
14115         * task.c (gomp_init_task): Initialize children_queue.
14116         (gomp_clear_parent_in_list): New.
14117         (gomp_clear_parent_in_tree): New.
14118         (gomp_clear_parent): Handle priorities.
14119         (GOMP_task): Likewise.
14120         (priority_queue_move_task_first,
14121         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14122         New functions.
14123         (gomp_create_target_task): Use priority queues.  Change return type
14124         to bool, add state argument, return false if for async
14125         {{enter,exit} data,update} constructs no dependencies need to be
14126         waited for, handle target nowait.  Set task->fn to NULL instead of
14127         gomp_target_task_fn.
14128         (verify_children_queue): Remove.
14129         (priority_list_upgrade_task): New.
14130         (priority_queue_upgrade_task): New.
14131         (verify_task_queue): Remove.
14132         (priority_list_downgrade_task): New.
14133         (priority_queue_downgrade_task): New.
14134         (gomp_task_run_pre): Use priority queues.
14135         Abstract code out to priority_queue_downgrade_task.
14136         (gomp_task_run_post_handle_dependers): Use priority queues.
14137         (gomp_task_run_post_remove_parent): Likewise.
14138         (gomp_task_run_post_remove_taskgroup): Likewise.
14139         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
14140         tasks specially.
14141         (GOMP_taskwait): Likewise.
14142         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
14143         priority-queue_upgrade_task.
14144         (GOMP_taskgroup_start): Use priority queues.
14145         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
14146         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
14147         barrier.
14148         * taskloop.c (GOMP_taskloop): Handle priorities.
14149         * team.c (gomp_new_team): Call priority_queue_init.
14150         (free_team): Call priority_queue_free.
14151         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14152         team created for target nowait in implicit parallel region.
14153         (gomp_team_start): For nested check, test thr->ts.level instead of
14154         thr->ts.team != NULL.
14155         * testsuite/libgomp.c/doacross-3.c: New test.
14156         * testsuite/libgomp.c/ordered-5.c: New test.
14157         * testsuite/libgomp.c/priority.c: New test.
14158         * testsuite/libgomp.c/target-31.c: New test.
14159         * testsuite/libgomp.c/target-32.c: New test.
14160         * testsuite/libgomp.c/target-33.c: New test.
14161         * testsuite/libgomp.c/target-34.c: New test.
14163 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14165         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14167         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14168         loop is sequential.
14170 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14172         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14173         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14175 2015-11-12  James Norris  <jnorris@codesourcery.com>
14176             Joseph Myers  <joseph@codesourcery.com>
14178         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14179         * oacc-parallel.c (GOACC_declare): New function.
14180         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14181         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14182         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14183         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14184         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14186 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
14188         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14190 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
14192         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14193         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14195 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14197         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14198         inadvertent commit.
14200 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14202         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14203         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14204         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14205         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14206         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14208 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
14210         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14211         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14213 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
14214             Ilya Verbin  <ilya.verbin@intel.com>
14216         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14217         GOMP_loop_nonmonotonic_dynamic_start,
14218         GOMP_loop_nonmonotonic_guided_next,
14219         GOMP_loop_nonmonotonic_guided_start,
14220         GOMP_loop_ull_nonmonotonic_dynamic_next,
14221         GOMP_loop_ull_nonmonotonic_dynamic_start,
14222         GOMP_loop_ull_nonmonotonic_guided_next,
14223         GOMP_loop_ull_nonmonotonic_guided_start,
14224         GOMP_parallel_loop_nonmonotonic_dynamic,
14225         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14226         (GOMP_target_41): Renamed to ...
14227         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14228         arguments.
14229         (GOMP_target_data_41): Renamed to ...
14230         (GOMP_target_data_ext): ... this.
14231         (GOMP_target_update_41): Renamed to ...
14232         (GOMP_target_update_ext): ... this.
14233         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14234         GOMP_target_data_ext and GOMP_target_update_ext instead of
14235         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14236         Export GOMP_loop_nonmonotonic_dynamic_next,
14237         GOMP_loop_nonmonotonic_dynamic_start,
14238         GOMP_loop_nonmonotonic_guided_next,
14239         GOMP_loop_nonmonotonic_guided_start,
14240         GOMP_loop_ull_nonmonotonic_dynamic_next,
14241         GOMP_loop_ull_nonmonotonic_dynamic_start,
14242         GOMP_loop_ull_nonmonotonic_guided_next,
14243         GOMP_loop_ull_nonmonotonic_guided_start,
14244         GOMP_parallel_loop_nonmonotonic_dynamic and
14245         GOMP_parallel_loop_nonmonotonic_guided.
14246         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14247         GOMP_parallel_loop_nonmonotonic_guided,
14248         GOMP_loop_nonmonotonic_dynamic_start,
14249         GOMP_loop_nonmonotonic_guided_start,
14250         GOMP_loop_nonmonotonic_dynamic_next,
14251         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14252         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14253         GOMP_loop_ull_nonmonotonic_guided_start,
14254         GOMP_loop_ull_nonmonotonic_dynamic_next,
14255         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14256         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14257         functions.
14258         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
14259         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14260         Use gomp_map_val function.
14261         (gomp_target_fallback_firstprivate): New static function.
14262         (GOMP_target_41): Renamed to ...
14263         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14264         arguments.  Move firstprivate fallback handling into a new
14265         function.
14266         (GOMP_target_data_41): Renamed to ...
14267         (GOMP_target_data_ext): ... this.
14268         (GOMP_target_update_41): Renamed to ...
14269         (GOMP_target_update_ext): ... this.
14270         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14271         gomp_map_0len_lookup instead of gomp_map_lookup.
14272         (omp_target_is_present): Use gomp_map_0len_lookup instead of
14273         gomp_map_lookup.
14274         * testsuite/libgomp.c/target-28.c: Likewise.
14275         * testsuite/libgomp.c/monotonic-1.c: New test.
14276         * testsuite/libgomp.c/monotonic-2.c: New test.
14277         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14278         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14279         * testsuite/libgomp.c/pr66199-5.c: New test.
14280         * testsuite/libgomp.c/pr66199-6.c: New test.
14281         * testsuite/libgomp.c/pr66199-7.c: New test.
14282         * testsuite/libgomp.c/pr66199-8.c: New test.
14283         * testsuite/libgomp.c/pr66199-9.c: New test.
14284         * testsuite/libgomp.c/reduction-11.c: New test.
14285         * testsuite/libgomp.c/reduction-12.c: New test.
14286         * testsuite/libgomp.c/reduction-13.c: New test.
14287         * testsuite/libgomp.c/reduction-14.c: New test.
14288         * testsuite/libgomp.c/reduction-15.c: New test.
14289         * testsuite/libgomp.c/target-12.c (main): Adjust for
14290         omp_target_is_present change for one-past-last element.
14291         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14292         the same var is both mapped and privatized.
14293         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14294         handling of zero-length array sections.
14295         * testsuite/libgomp.c/target-28.c: New test.
14296         * testsuite/libgomp.c/target-29.c: New test.
14297         * testsuite/libgomp.c/target-30.c: New test.
14298         * testsuite/libgomp.c/target-teams-1.c: New test.
14299         * testsuite/libgomp.c++/member-6.C: New test.
14300         * testsuite/libgomp.c++/member-7.C: New test.
14301         * testsuite/libgomp.c++/monotonic-1.C: New test.
14302         * testsuite/libgomp.c++/monotonic-2.C: New test.
14303         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14304         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14305         * testsuite/libgomp.c++/pr66199-3.C: New test.
14306         * testsuite/libgomp.c++/pr66199-4.C: New test.
14307         * testsuite/libgomp.c++/pr66199-5.C: New test.
14308         * testsuite/libgomp.c++/pr66199-6.C: New test.
14309         * testsuite/libgomp.c++/pr66199-7.C: New test.
14310         * testsuite/libgomp.c++/pr66199-8.C: New test.
14311         * testsuite/libgomp.c++/pr66199-9.C: New test.
14312         * testsuite/libgomp.c++/reduction-11.C: New test.
14313         * testsuite/libgomp.c++/reduction-12.C: New test.
14314         * testsuite/libgomp.c++/target-13.C: New test.
14315         * testsuite/libgomp.c++/target-14.C: New test.
14316         * testsuite/libgomp.c++/target-15.C: New test.
14317         * testsuite/libgomp.c++/target-16.C: New test.
14318         * testsuite/libgomp.c++/target-17.C: New test.
14319         * testsuite/libgomp.c++/target-18.C: New test.
14320         * testsuite/libgomp.c++/target-19.C: New test.
14322 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14324         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14325         and reduction copy.
14326         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14327         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14328         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14329         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14330         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14331         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14332         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14333         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14334         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14335         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14336         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14337         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14338         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14339         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14341 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14343         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14344         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14345         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14346         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14347         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14348         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14349         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14350         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14352 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
14354         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14355         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14356         (GOMP_OFFLOAD_openacc_parallel): Likewise.
14357         * oacc-host.c (host_openacc_exec): Likewise.
14358         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14360 2015-11-03  Julian Brown  <julian@codesourcery.com>
14361             Thomas Schwinge  <thomas@codesourcery.com>
14363         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14364         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14365         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14366         Likewise.
14367         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14368         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14370 2015-11-03  James Norris  <jnorris@codesourcery.com>
14372         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14373         file.
14374         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14375         Likewise.
14376         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14377         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14378         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14379         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14380         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14382 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
14384         * openacc.h (enum acc_device_t): Reformat. Ensure layout
14385         compatibility.
14386         (enum acc_async_t): Reformat.
14387         (acc_on_device): Declare compatible with builtin and provide C++
14388         wrapper.
14389         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14391 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
14392             Cesar Philippidis  <cesar@codesourcery.com>
14394         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14395         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14396         ... this.  Add a description of the test at the top of the file.
14397         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14398         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14399         ... this.  Add a description of the test at the top of the file.
14401 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
14403         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14404         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14405         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14406         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14407         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14408         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14410 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
14412         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14413         dimensions.
14415 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
14417         PR testsuite/68063
14418         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14420 2015-10-27  James Norris  <jnorris@codesourcery.com>
14422         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14423         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14425 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
14427         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14428         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14430         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14431         acc_device_nvidia usage.
14432         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14433         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14434         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14436         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14437         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14439         PR libgomp/66518
14440         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14442         PR libgomp/65437
14443         PR libgomp/66518
14444         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14445         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14447 2015-10-23  Tom de Vries  <tom@codesourcery.com>
14449         PR testsuite/68063
14450         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14452 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
14454         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14455         vector_length.
14456         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14458 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
14459             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
14461         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14462         to 0 when mapnum is 0.
14464 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14466         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14467         Cast to int from int32_t.
14469 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
14470             Aldy Hernandez  <aldyh@redhat.com>
14471             Ilya Verbin  <ilya.verbin@intel.com>
14473         * config/linux/affinity.c (omp_get_place_num_procs,
14474         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14475         * config/linux/doacross.h: New file.
14476         * config/posix/affinity.c (omp_get_place_num_procs,
14477         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14478         * config/posix/doacross.h: New file.
14479         * env.c: Include gomp-constants.h.
14480         (struct gomp_task_icv): Rename run_sched_modifier to
14481         run_sched_chunk_size.
14482         (gomp_max_task_priority_var): New variable.
14483         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14484         (handle_omp_display_env): Change _OPENMP value from 201307 to
14485         201511.  Print OMP_MAX_TASK_PRIORITY.
14486         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14487         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14488         chunk_size and run_sched_modifier to run_sched_chunk_size.
14489         (omp_get_max_task_priority, omp_get_initial_device,
14490         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14491         omp_get_partition_place_nums): New functions.
14492         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14493         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14494         to chunk_size.
14495         (omp_get_num_places_, omp_get_place_num_procs_,
14496         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14497         omp_get_place_proc_ids_8_, omp_get_place_num_,
14498         omp_get_partition_num_places_, omp_get_partition_place_nums_,
14499         omp_get_partition_place_nums_8_, omp_get_initial_device_,
14500         omp_get_max_task_priority_): New functions.
14501         * libgomp_g.h (GOMP_loop_doacross_static_start,
14502         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14503         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14504         GOMP_loop_ull_doacross_dynamic_start,
14505         GOMP_loop_ull_doacross_guided_start,
14506         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14507         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14508         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14509         GOMP_target_data_41, GOMP_target_update_41,
14510         GOMP_target_enter_exit_data): New prototypes.
14511         (GOMP_task): Add prototype argument.
14512         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14513         (struct gomp_doacross_work_share): New type.
14514         (struct gomp_work_share): Add doacross field.
14515         (struct gomp_task_icv): Rename run_sched_modifier to
14516         run_sched_chunk_size.
14517         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14518         GOMP_TASK_UNDEFERRED.  Add comments.
14519         (struct gomp_task_depend_entry): Add comments.
14520         (struct gomp_task): Likewise.
14521         (struct gomp_taskgroup): Likewise.
14522         (struct gomp_target_task): New type.
14523         (struct gomp_team): Add comment.
14524         (gomp_get_place_proc_ids_8, gomp_doacross_init,
14525         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14526         gomp_create_target_task, gomp_target_task_fn): New prototypes.
14527         (struct target_var_desc): New type.
14528         (struct target_mem_desc): Adjust comment.  Use struct
14529         target_var_desc instead of splay_tree_key for list.
14530         (REFCOUNT_INFINITY): Define.
14531         (struct splay_tree_key_s): Remove copy_from field.
14532         (struct gomp_device_descr): Add dev2dev_func field.
14533         (enum gomp_map_vars_kind): New enum.
14534         (gomp_map_vars): Add one argument.
14535         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14536         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14537         omp_get_place_num_procs, omp_get_place_num_procs_,
14538         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14539         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14540         omp_get_place_num_, omp_get_partition_num_places,
14541         omp_get_partition_num_places_, omp_get_partition_place_nums,
14542         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14543         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14544         omp_target_free, omp_target_is_present, omp_target_memcpy,
14545         omp_target_memcpy_rect, omp_target_associate_ptr and
14546         omp_target_disassociate_ptr.
14547         (GOMP_4.0.2): Renamed to ...
14548         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14549         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14550         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14551         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14552         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14553         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14554         GOMP_loop_ull_doacross_guided_start,
14555         GOMP_loop_ull_doacross_runtime_start,
14556         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14557         GOMP_doacross_ull_wait.
14558         * libgomp.texi: Document omp_get_max_task_priority.
14559         Rename modifier argument to chunk_size for omp_set_schedule and
14560         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14561         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14562         to run_sched_chunk_size renaming.
14563         (GOMP_loop_ordered_runtime_start): Likewise.
14564         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14565         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14566         GOMP_parallel_loop_runtime_start): New functions.
14567         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14568         to run_sched_chunk_size renaming.
14569         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14570         GOMP_loop_doacross_guided_start): New functions or aliases.
14571         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14572         run_sched_modifier to run_sched_chunk_size renaming.
14573         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14574         (gomp_loop_ull_doacross_static_start,
14575         gomp_loop_ull_doacross_dynamic_start,
14576         gomp_loop_ull_doacross_guided_start,
14577         GOMP_loop_ull_doacross_runtime_start): New functions.
14578         (GOMP_loop_ull_doacross_static_start,
14579         GOMP_loop_ull_doacross_dynamic_start,
14580         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14581         * oacc-mem.c (acc_map_data, present_create_copy,
14582         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14583         to gomp_map_vars.
14584         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14585         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14586         instead of false to gomp_map_vars.
14587         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14588         * omp.h.in (omp_lock_hint_t): New type.
14589         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14590         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14591         omp_get_place_num, omp_get_partition_num_places,
14592         omp_get_partition_place_nums, omp_get_initial_device,
14593         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14594         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14595         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14596         prototypes.
14597         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14598         (omp_lock_hint_none, omp_lock_hint_uncontended,
14599         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14600         omp_lock_hint_speculative): New parameters.
14601         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14602         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14603         omp_get_place_num, omp_get_partition_num_places,
14604         omp_get_partition_place_nums, omp_get_initial_device,
14605         omp_get_max_task_priority): New interfaces.
14606         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14607         to chunk_size.
14608         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14609         (omp_lock_hint_none, omp_lock_hint_uncontended,
14610         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14611         omp_lock_hint_speculative): New parameters.
14612         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14613         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14614         omp_get_place_num, omp_get_partition_num_places,
14615         omp_get_partition_place_nums, omp_get_initial_device,
14616         omp_get_max_task_priority): New functions and subroutines.
14617         * ordered.c: Include stdarg.h and string.h.
14618         (MAX_COLLAPSED_BITS): Define.
14619         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14620         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14621         GOMP_doacross_ull_wait): New functions.
14622         * target.c: Include errno.h.
14623         (resolve_device): If device is not initialized, call
14624         gomp_init_device on it.
14625         (gomp_map_lookup): New function.
14626         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14627         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14628         GOMP_MAP_ALWAYS_TO_P.
14629         (get_kind): Rename is_openacc argument to short_mapkind.
14630         (gomp_map_pointer): Use gomp_map_lookup.
14631         (gomp_map_fields_existing): New function.
14632         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14633         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14634         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14635         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14636         Adjust for tgt->list changed type and copy_from living in there.
14637         (gomp_copy_from_async): Adjust for tgt->list changed type and
14638         copy_from living in there.
14639         (gomp_unmap_vars): Likewise.
14640         (gomp_update): Likewise.  Rename is_openacc argument to
14641         short_mapkind.  Don't fail if object is not mapped.
14642         (gomp_load_image_to_device): Initialize refcount to
14643         REFCOUNT_INFINITY.
14644         (gomp_target_fallback): New function.
14645         (gomp_get_target_fn_addr): Likewise.
14646         (GOMP_target): Adjust gomp_map_vars caller, use
14647         gomp_get_target_fn_addr and gomp_target_fallback.
14648         (GOMP_target_41): New function.
14649         (gomp_target_data_fallback): New function.
14650         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14651         (GOMP_target_data_41): New function.
14652         (GOMP_target_update): Adjust gomp_update caller.
14653         (GOMP_target_update_41): New function.
14654         (gomp_exit_data, GOMP_target_enter_exit_data,
14655         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14656         omp_target_is_present, omp_target_memcpy,
14657         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14658         omp_target_associate_ptr, omp_target_disassociate_ptr,
14659         gomp_load_plugin_for_device): New functions.
14660         * task.c: Include gomp-constants.h.  Include taskloop.c
14661         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14662         (gomp_task_handle_depend): New function.
14663         (GOMP_task): Use it.  Add priority argument.  Use
14664         gomp-constant.h constants instead of hardcoded numbers.
14665         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14666         (gomp_create_target_task): New function.
14667         (verify_children_queue, verify_taskgroup_queue,
14668         verify_task_queue): New functions.
14669         (gomp_task_run_pre): Call verify_*_queue functions.
14670         If an upcoming tied task is about to leave the sibling or
14671         taskgroup queues in an invalid state, adjust appropriately.
14672         Remove taskgroup argument.  Add comments.
14673         (gomp_task_run_post_handle_dependers): Add comments.
14674         (gomp_task_run_post_remove_parent): Likewise.
14675         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14676         (GOMP_taskwait): Likewise.  Add comments.
14677         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14678         problem such that the first non parent_depends_on task does not
14679         end up at the end of the children queue.
14680         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14681         GOMP_TASK_UNDEFERRED.
14682         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14683         * taskloop.c: New file.
14684         * testsuite/lib/libgomp.exp
14685         (check_effective_target_offload_device_nonshared_as): New proc.
14686         * testsuite/libgomp.c/affinity-2.c: New test.
14687         * testsuite/libgomp.c/doacross-1.c: New test.
14688         * testsuite/libgomp.c/doacross-2.c: New test.
14689         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14690         Add map clause to target.
14691         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14692         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14693         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14694         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14695         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14696         Likewise.
14697         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14698         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14699         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14700         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14701         not defined.  Use those where needed.
14702         * testsuite/libgomp.c/for-4.c: New test.
14703         * testsuite/libgomp.c/for-5.c: New test.
14704         * testsuite/libgomp.c/for-6.c: New test.
14705         * testsuite/libgomp.c/linear-1.c: New test.
14706         * testsuite/libgomp.c/ordered-4.c: New test.
14707         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14708         only allowed on the loop iterator.
14709         * testsuite/libgomp.c/pr66199-3.c: New test.
14710         * testsuite/libgomp.c/pr66199-4.c: New test.
14711         * testsuite/libgomp.c/reduction-7.c: New test.
14712         * testsuite/libgomp.c/reduction-8.c: New test.
14713         * testsuite/libgomp.c/reduction-9.c: New test.
14714         * testsuite/libgomp.c/reduction-10.c: New test.
14715         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14716         map(tofrom:s).
14717         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14718         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14719         * testsuite/libgomp.c/target-11.c: New test.
14720         * testsuite/libgomp.c/target-12.c: New test.
14721         * testsuite/libgomp.c/target-13.c: New test.
14722         * testsuite/libgomp.c/target-14.c: New test.
14723         * testsuite/libgomp.c/target-15.c: New test.
14724         * testsuite/libgomp.c/target-16.c: New test.
14725         * testsuite/libgomp.c/target-17.c: New test.
14726         * testsuite/libgomp.c/target-18.c: New test.
14727         * testsuite/libgomp.c/target-19.c: New test.
14728         * testsuite/libgomp.c/target-20.c: New test.
14729         * testsuite/libgomp.c/target-21.c: New test.
14730         * testsuite/libgomp.c/target-22.c: New test.
14731         * testsuite/libgomp.c/target-23.c: New test.
14732         * testsuite/libgomp.c/target-24.c: New test.
14733         * testsuite/libgomp.c/target-25.c: New test.
14734         * testsuite/libgomp.c/target-26.c: New test.
14735         * testsuite/libgomp.c/target-27.c: New test.
14736         * testsuite/libgomp.c/taskloop-1.c: New test.
14737         * testsuite/libgomp.c/taskloop-2.c: New test.
14738         * testsuite/libgomp.c/taskloop-3.c: New test.
14739         * testsuite/libgomp.c/taskloop-4.c: New test.
14740         * testsuite/libgomp.c++/ctor-13.C: New test.
14741         * testsuite/libgomp.c++/doacross-1.C: New test.
14742         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14743         Replace offload_device with offload_device_nonshared_as.
14744         * testsuite/libgomp.c++/for-12.C: New test.
14745         * testsuite/libgomp.c++/for-13.C: New test.
14746         * testsuite/libgomp.c++/for-14.C: New test.
14747         * testsuite/libgomp.c++/linear-1.C: New test.
14748         * testsuite/libgomp.c++/member-1.C: New test.
14749         * testsuite/libgomp.c++/member-2.C: New test.
14750         * testsuite/libgomp.c++/member-3.C: New test.
14751         * testsuite/libgomp.c++/member-4.C: New test.
14752         * testsuite/libgomp.c++/member-5.C: New test.
14753         * testsuite/libgomp.c++/ordered-1.C: New test.
14754         * testsuite/libgomp.c++/reduction-5.C: New test.
14755         * testsuite/libgomp.c++/reduction-6.C: New test.
14756         * testsuite/libgomp.c++/reduction-7.C: New test.
14757         * testsuite/libgomp.c++/reduction-8.C: New test.
14758         * testsuite/libgomp.c++/reduction-9.C: New test.
14759         * testsuite/libgomp.c++/reduction-10.C: New test.
14760         * testsuite/libgomp.c++/reference-1.C: New test.
14761         * testsuite/libgomp.c++/simd14.C: New test.
14762         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14763         * testsuite/libgomp.c++/target-5.C: New test.
14764         * testsuite/libgomp.c++/target-6.C: New test.
14765         * testsuite/libgomp.c++/target-7.C: New test.
14766         * testsuite/libgomp.c++/target-8.C: New test.
14767         * testsuite/libgomp.c++/target-9.C: New test.
14768         * testsuite/libgomp.c++/target-10.C: New test.
14769         * testsuite/libgomp.c++/target-11.C: New test.
14770         * testsuite/libgomp.c++/target-12.C: New test.
14771         * testsuite/libgomp.c++/taskloop-1.C: New test.
14772         * testsuite/libgomp.c++/taskloop-2.C: New test.
14773         * testsuite/libgomp.c++/taskloop-3.C: New test.
14774         * testsuite/libgomp.c++/taskloop-4.C: New test.
14775         * testsuite/libgomp.c++/taskloop-5.C: New test.
14776         * testsuite/libgomp.c++/taskloop-6.C: New test.
14777         * testsuite/libgomp.c++/taskloop-7.C: New test.
14778         * testsuite/libgomp.c++/taskloop-8.C: New test.
14779         * testsuite/libgomp.c++/taskloop-9.C: New test.
14780         * testsuite/libgomp.fortran/affinity1.f90: New test.
14781         * testsuite/libgomp.fortran/affinity2.f90: New test.
14783 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14785         PR tree-optimization/67476
14786         * testsuite/libgomp.c/autopar-3.c: New test.
14787         * testsuite/libgomp.c/autopar-4.c: New test.
14788         * testsuite/libgomp.c/autopar-5.c: New test.
14789         * testsuite/libgomp.c/autopar-6.c: New test.
14790         * testsuite/libgomp.c/autopar-7.c: New test.
14791         * testsuite/libgomp.c/autopar-8.c: New test.
14793 2015-10-12  James Norris  <jnorris@codesourcery.com>
14795         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14796         initializer.
14798 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14800         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14801         using load_gcc_lib.
14803 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14805         * oacc-ptx.h: Remove file, moving its content into...
14806         * config/nvptx/fortran.c: ... here...
14807         * config/nvptx/oacc-init.c: ..., here...
14808         * config/nvptx/oacc-parallel.c: ..., and here.
14809         * config/nvptx/openacc.f90: New file.
14810         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14811         (link_ptx): Don't link in predefined bits of PTX code.
14813 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14814             Bernd Schmidt <bernds@codesourcery.com>
14816         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14817         (struct targ_ptx_obj): New.
14818         (nvptx_tdata): Move earlier, change data format.
14819         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14820         objects.
14821         (GOMP_OFFLOAD_load_image): Adjust.
14823 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14825         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14826         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14827         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14828         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14829         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14830         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14831         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14832         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14833         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14834         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14835         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14836         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14837         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14838         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14839         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14840         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14841         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14842         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14843         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14844         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14845         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14846         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14847         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14848         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14849         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14850         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14851         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14852         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14853         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14854         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14855         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14856         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14857         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14858         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14859         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14860         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14861         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14862         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14863         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14864         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14865         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14866         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14867         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14868         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14869         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14870         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14871         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14872         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14873         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14874         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14875         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14876         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14877         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14878         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14879         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14880         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14881         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14882         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14883         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14884         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14885         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14886         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14887         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14889 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14891         * oacc-init.c (acc_on_device): Force optimization level.
14893 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14895         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14896         (cuda_errlist): Delete.
14897         (cuda_error): Reimplement.
14899 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14901         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14902         array.
14903         * libgomp.map (GOACC_parallel_keyed): New.
14904         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14905         all callers.
14906         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14907         and take keyed varargs list.  Adjust call to exec_func.
14908         (GOACC_parallel): Force host fallback.
14909         * libgomp_g.h (GOACC_parallel): Remove.
14910         (GOACC_parallel_keyed): Declare.
14911         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14912         (struct targ_gn_descriptor): Replace name field with launch field.
14913         (nvptx_exec): Lose separate geometry args, take array.  Process
14914         dynamic dimensions and adjust.
14915         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14916         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14917         data.
14918         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14919         passing.
14920         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14921         passing.
14923 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14925         PR libgomp/67141
14926         * oacc-int.h (goacc_host_init): Add declaration.
14927         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14928         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14930 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14931             Sebastian Pop  <s.pop@samsung.com>
14933         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14934         match o/p.
14935         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14936         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14937         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14938         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14939         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14941 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14943         * configure.tgt: Add missing ;; in between nvptx and rtems
14944         snippets.
14946 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14948         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14949         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14950         (gomp_thread_pool_reservoir): Add priority member.
14951         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14952         priority.
14953         (parse_thread_pools): Likewise.
14954         * team.c (gomp_team_start): Call configuration provided
14955         gomp_adjust_thread_attr(). Destroy thread attributes if
14956         necessary.
14957         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14959 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14961         * config/posix/pool.h: New.
14962         * config/rtems/pool.h: Likewise.
14963         * config/rtems/proc.c: Likewise.
14964         * libgomp.h (gomp_thread_destructor): Declare.
14965         * team.c: Include configuration provided "pool.h".
14966         (gomp_get_thread_pool): Define in configuration.
14967         (gomp_team_end): Call configuration defined
14968         gomp_release_thread_pool().
14970 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14972         * config/rtems/bar.c: New.
14973         * config/rtems/bar.h: Likewise.
14974         * config/rtems/mutex.c: Likewise.
14975         * config/rtems/mutex.h: Likewise.
14976         * config/rtems/sem.c: Likewise.
14977         * config/rtems/sem.h: Likewise.
14978         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14979         <sys/lock.h> header file.
14980         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14981         supported by Newlib.
14982         * configure: Regenerate.
14984 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14986         * team.c (gomp_new_thread_pool): Delete and move content to ...
14987         (gomp_get_thread_pool): ... new function.  Allocate and
14988         initialize thread pool on demand.
14989         (get_last_team): Use gomp_get_thread_pool().
14990         (gomp_team_start): Delete thread pool initialization.
14992 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14994         PR tree-optimization/65637
14995         * testsuite/libgomp.c/autopar-2.c: New test.
14997 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14999         PR tree-optimization/46193
15000         * testsuite/libgomp.c/pr46193.c: New test.
15002 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15004         libgomp/
15005         * libgomp.map: Add 4.0.2 version.
15006         * target.c (offload_image_descr): Add version field.
15007         (gomp_load_image_to_device): Add version argument.  Adjust plugin
15008         call.  Improve load mismatch diagnostic.
15009         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
15010         call.
15011         (GOMP_offload_regster): Make stub function, move bulk to ...
15012         (GOMP_offload_register_ver): ... here.  Process version argument.
15013         (GOMP_offload_unregister): Make stub function, move bulk to ...
15014         (GOMP_offload_unregister_ver): ... here.  Process version argument.
15015         (gomp_init_device): Process version field.
15016         (gomp_unload_device): Process version field.
15017         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15018         macros.  Check plugin version.
15019         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
15020         loader and unloader types.
15021         * oacc-host.c: Include gomp-constants.h.
15022         (host_version): New.
15023         (host_load_image, host_unload_image): Adjust.
15024         (host_dispatch): Add host_version.
15025         * plugin/plugin-nvptx.c: Include gomp-constants.h.
15026         (GOMP_OFFLOAD_version): New.
15027         (GOMP_OFFLOAD_load_image): Add version arg and check it.
15028         (GOMP_OFFLOAD_unload_image): Likewise.
15029         * plugin/plugin-host.c: Include gomp-constants.h.
15030         (GOMP_OFFLOAD_version): New.
15031         (GOMP_OFFLOAD_load_image): Add version arg.
15032         (GOMP_OFFLOAD_unload_image): Likewise.
15034 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15036         PR tree-optimization/65468
15037         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15039 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15041         PR tree-optimization/65468
15042         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15044 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
15046         PR libgomp/66761
15047         PR libgomp/67303
15048         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15049         (gomp_iter_guided_next): Idem.
15050         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15051         (gomp_iter_ull_guided_next): Idem.
15052         * config/linux/wait.h (do_spin): Idem.
15054 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15056         * libgomp-plugin.h (enum offload_target_type): Remove
15057         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15058         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15059         * openacc.h (enum acc_device_t): Likewise.
15060         * openacc_lib.h: Likewise.
15061         * oacc-init.c (name_of_acc_device_t): Don't handle it.
15062         (acc_on_device): Just use __builtin_acc_on_device.
15063         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15064         of acc_on_device builtin.
15065         * plugin/plugin-host.h: Remove file.
15066         * plugin/plugin-host.c: Likewise, but salvage some content into...
15067         * oacc-host.c: ... this file.
15068         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15069         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15070         * Makefile.in: Regenerate.
15071         * configure: Likewise.
15072         * testsuite/lib/libgomp.exp
15073         (check_effective_target_openacc_host_nonshm_selected): Remove.
15074         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15075         ACC_DEVICE_TYPE=host_nonshm.
15076         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15077         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15078         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15079         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15080         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15081         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15083 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15084             Jakub Jelinek  <jakub@redhat.com>
15086         * config/nvptx/affinity.c: New file.
15087         * config/nvptx/alloc.c: Likewise.
15088         * config/nvptx/bar.c: Likewise.
15089         * config/nvptx/barrier.c: Likewise.
15090         * config/nvptx/critical.c: Likewise.
15091         * config/nvptx/env.c: Likewise.
15092         * config/nvptx/error.c: Likewise.
15093         * config/nvptx/fortran.c: Likewise.
15094         * config/nvptx/iter.c: Likewise.
15095         * config/nvptx/iter_ull.c: Likewise.
15096         * config/nvptx/libgomp-plugin.c: Likewise.
15097         * config/nvptx/lock.c: Likewise.
15098         * config/nvptx/loop.c: Likewise.
15099         * config/nvptx/loop_ull.c: Likewise.
15100         * config/nvptx/mutex.c: Likewise.
15101         * config/nvptx/oacc-async.c: Likewise.
15102         * config/nvptx/oacc-cuda.c: Likewise.
15103         * config/nvptx/oacc-host.c: Likewise.
15104         * config/nvptx/oacc-init.c: Likewise.
15105         * config/nvptx/oacc-mem.c: Likewise.
15106         * config/nvptx/oacc-parallel.c: Likewise.
15107         * config/nvptx/oacc-plugin.c: Likewise.
15108         * config/nvptx/omp-lock.h: Likewise.
15109         * config/nvptx/ordered.c: Likewise.
15110         * config/nvptx/parallel.c: Likewise.
15111         * config/nvptx/proc.c: Likewise.
15112         * config/nvptx/ptrlock.c: Likewise.
15113         * config/nvptx/sections.c: Likewise.
15114         * config/nvptx/sem.c: Likewise.
15115         * config/nvptx/single.c: Likewise.
15116         * config/nvptx/splay-tree.c: Likewise.
15117         * config/nvptx/target.c: Likewise.
15118         * config/nvptx/task.c: Likewise.
15119         * config/nvptx/team.c: Likewise.
15120         * config/nvptx/time.c: Likewise.
15121         * config/nvptx/work.c: Likewise.
15122         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15123         * configure: Regenerate.
15124         * configure.tgt (config_path): Set to "nvptx" for target
15125         nvptx*-*-*.
15127 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15129         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15131 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
15133         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15134         (cuda_errlist): Constify.
15135         (errmsg):  Move into ...
15136         (cuda_error): ... here.  Make smaller.
15137         (_XSTR, _STR): Delete.
15138         (cuda_synames): Delete.
15139         (verify_device_library): Delete.
15140         (nvptx_init): Don't call it.
15142 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15144         * testsuite/libgomp.c/uns-outer-4.c: New test.
15146 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15148         * testsuite/libgomp.c/pr66714.c: New test.
15150 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15152         PR libgomp/66950
15153         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15154         (fib_ref): New function.
15155         (fib): Correct corner cases in the recursion.
15156         (main): Replace the non-simd loop with fib_ref call.
15157         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15158         subroutine.
15159         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
15160         for the last array element value.  Replace the non-simd loop with
15161         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
15162         of the last array element with according Fibonacci sequence element.
15163         (fib): Correct corner cases in the recursion.
15165 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15167         * target.c (gomp_offload_image_to_device): Rename to ...
15168         (gomp_load_image_to_device): ... here.
15169         (GOMP_offload_register): Adjust call.
15170         (gomp_init_device): Likewise.
15171         (gomp_unload_image_from_device): New.  Broken out of ...
15172         (GOMP_offload_unregister): ... here.  Call it.
15173         (gomp_unload_device): New.
15174         * libgomp.h (gomp_unload_device): Declare.
15175         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15176         mem maps.
15178 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
15180         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15181         wait=-specific if.
15182         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15183         !=0 condition.
15184         (goacc_waits): Move !num_waits handling to ...
15185         (GOACC_wait): ... here, the only caller that might have zero waits.
15187         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15188         (struct ptx_image_data): Move earlier, add fns field.
15189         (struct ptx_device): Add images and image_lock fields.
15190         (ptx_images, ptx_image_lock): Delete.
15191         (nvptx_open_device): Initialize images and image_lock fields.
15192         (nvptx_close_device): Destroy image_lock.
15193         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15194         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15195         fields.
15197 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15199         * target.c (GOMP_offload_register): Use int for device type arg.
15200         (GOMP_offload_unregister): Likewise.
15202         * target.c (struct_offload_image_descr): Constify host_table.
15203         (gomp_offload_image_to_device): Likewise.
15204         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15206         * libgomp.h (gomp_device_descr): Constify target data arguments.
15207         * target.c (struct offload_image_descr): Constify target_data.
15208         (gomp_offload_image_to_device): Likewise.
15209         (GOMP_offload_register): Likewise.
15210         (GOMP_offload_unregister): Likewise.
15211         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15212         GOMP_OFFLOAD_unload_image): Constify target data.
15213         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15214         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15216 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15218         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15219         Workaround driver library const error.
15220         (struct nvptx_tdata, nvptx_tdata_t): New.
15221         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15222         type.
15224 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15226         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15227         of EPS parameter from integer to real.
15228         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15229         type of EPS parameter from integer to real.
15231 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15233         * team.c (get_last_team): New.
15234         (gomp_new_team): Recycle last non-nested team if possible.
15235         (gomp_team_end): Move team work share list free lock destruction
15236         to ...
15237         (free_team): ... here.
15239 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15241         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15242         and ref from int to double.  Replaced their comparison with
15243         an inequality of their difference and EPS.
15244         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15245         comparison of pri and a reference number with an inequality of their
15246         difference and EPS.
15247         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15248         the comparison of sum and sum_ref with an inequality of their
15249         difference and EPS.
15250         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15251         the comparison of pri and a reference number with an inequality of
15252         their difference and EPS.
15254 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15256         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15257         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15258         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15259         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15260         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15261         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15262         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15263         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15264         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15265         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15266         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15267         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15268         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15269         variables.
15270         (vec_mult): Likewise.  Add #pragma omp taskwait.
15271         (main): Adjust caller.
15272         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15273         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15274         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15275         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15276         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15277         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15278         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15279         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15280         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15281         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15282         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15283         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15284         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15285         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15286         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15287         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15288         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15289         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15290         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15291         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15292         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15293         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15294         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15295         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15296         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15297         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15298         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15299         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15300         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15301         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15302         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15303         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15304         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15305         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15306         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15307         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15308         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15309         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15310         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15311         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15312         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15313         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15314         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15315         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15316         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15317         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15318         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15319         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15320         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15321         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15322         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15323         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15324         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15325         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15326         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15327         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15328         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15329         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15330         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15331         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15332         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15333         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15334         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15335         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15336         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15337         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15338         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15339         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15340         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15341         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15342         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15343         (vec_mult): Add !$omp taskwait.
15344         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15345         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15346         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15347         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15348         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15349         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15350         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15351         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15352         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15353         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15354         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15355         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15356         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15357         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15358         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15359         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15360         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15361         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15362         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15363         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15364         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15365         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15366         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15367         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15368         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15369         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15370         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15371         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15372         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15373         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15374         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15375         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15376         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15377         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15378         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15379         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15380         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15381         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15382         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15383         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15384         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15385         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15386         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15387         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15388         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15389         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15390         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15391         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15392         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15393         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15394         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15395         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15396         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15397         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15398         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15399         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15400         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15401         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15402         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15403         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15404         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15405         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15406         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15407         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15408         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15409         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15410         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15412 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15414         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15415         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15417 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15419         PR libgomp/65099
15420         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15421         in a 64-bit configuration.
15422         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15423         offloading testing if no such device is available.
15424         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15425         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15427 2015-07-08  Tom de Vries  <tom@codesourcery.com>
15429         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15430         second call to f.
15431         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15433 2015-07-07  Tom de Vries  <tom@codesourcery.com>
15435         PR tree-optimization/66642
15436         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15437         iteration count case.
15438         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15439         function, factor out of ...
15440         (main): ... here.  Test low iteration count case.
15442 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15444         * libgomp.h (gomp_thread_pool): Comment last_team field.
15446 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
15448         * testsuite/libgomp.c++/pr66702-1.C: Require
15449         vect_simd_clones effective target.
15450         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15452 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15454         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15455         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15456         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15457         "-O2".
15459 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15461         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15462         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15463         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15464         * testsuite/libgomp.c++/pr64824.C: Same.
15465         * testsuite/libgomp.c++/pr64868.C: Same.
15466         * testsuite/libgomp.c++/pr66199-1.C: Same.
15467         * testsuite/libgomp.c++/pr66199-2.C: Same.
15468         * testsuite/libgomp.c++/target-2.C: Same.
15469         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15470         -std=<standard> option.
15471         * testsuite/libgomp.c++/udr-11.C: Same.
15472         * testsuite/libgomp.c++/udr-12.C: Same.
15473         * testsuite/libgomp.c++/udr-13.C: Same.
15474         * testsuite/libgomp.c++/udr-14.C: Same.
15475         * testsuite/libgomp.c++/udr-15.C: Same.
15476         * testsuite/libgomp.c++/udr-16.C: Same.
15477         * testsuite/libgomp.c++/udr-17.C: Same.
15478         * testsuite/libgomp.c++/udr-18.C: Same.
15479         * testsuite/libgomp.c++/udr-19.C: Same.
15480         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15481         * testsuite/libgomp.c++/simd-1.C: Same.
15482         * testsuite/libgomp.c++/simd-2.C: Same.
15483         * testsuite/libgomp.c++/simd-3.C: Same.
15484         * testsuite/libgomp.c++/simd-4.C: Same.
15485         * testsuite/libgomp.c++/simd-5.C: Same.
15486         * testsuite/libgomp.c++/simd-6.C: Same.
15487         * testsuite/libgomp.c++/simd-7.C: Same.
15488         * testsuite/libgomp.c++/simd-8.C: Same.
15489         * testsuite/libgomp.c++/simd-9.C: Same.
15490         * testsuite/libgomp.c++/simd10.C: Same.
15491         * testsuite/libgomp.c++/simd11.C: Same.
15492         * testsuite/libgomp.c++/simd12.C: Same.
15493         * testsuite/libgomp.c++/simd13.C: Same.
15495 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15497         PR middle-end/66702
15498         * testsuite/libgomp.c++/pr66702-1.C: New test.
15499         * testsuite/libgomp.c++/pr66702-2.C: New test.
15501 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15503         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15504         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15505         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15506         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15508 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15510         PR tree-optimization/66652
15511         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15512         using restrict pointers.
15513         (main): Add arguments to calls to f.
15514         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15516 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
15518         * configure.ac: Fix check for header <sys/sysctl.h>.
15519         * configure: Regenerate.
15520         * config.h.in: Likewise.
15522 2015-06-23  Tom de Vries  <tom@codesourcery.com>
15524         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15525         abort.
15526         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15528 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15530         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15531         acc_device_nvidia.
15533         PR libgomp/66518
15534         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15535         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15537 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15539         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15540         dg-additional-options for any remaining options.
15541         * testsuite/libgomp.c/atomic-2.c: Same.
15542         * testsuite/libgomp.c/atomic-4.c: Same.
15543         * testsuite/libgomp.c/atomic-5.c: Same.
15544         * testsuite/libgomp.c/atomic-6.c: Same.
15545         * testsuite/libgomp.c/autopar-1.c: Same.
15546         * testsuite/libgomp.c/copyin-1.c: Same.
15547         * testsuite/libgomp.c/copyin-2.c: Same.
15548         * testsuite/libgomp.c/copyin-3.c: Same.
15549         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15550         * testsuite/libgomp.c/nestedfn-5.c: Same.
15551         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15552         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15553         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15554         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15555         * testsuite/libgomp.c/pr32362-1.c: Same.
15556         * testsuite/libgomp.c/pr32362-2.c: Same.
15557         * testsuite/libgomp.c/pr32362-3.c: Same.
15558         * testsuite/libgomp.c/pr39591-1.c: Same.
15559         * testsuite/libgomp.c/pr39591-2.c: Same.
15560         * testsuite/libgomp.c/pr39591-3.c: Same.
15561         * testsuite/libgomp.c/pr58392.c: Same.
15562         * testsuite/libgomp.c/pr58756.c: Same.
15563         * testsuite/libgomp.c/simd-1.c: Same.
15564         * testsuite/libgomp.c/simd-10.c: Same.
15565         * testsuite/libgomp.c/simd-11.c: Same.
15566         * testsuite/libgomp.c/simd-12.c: Same.
15567         * testsuite/libgomp.c/simd-13.c: Same.
15568         * testsuite/libgomp.c/simd-14.c: Same.
15569         * testsuite/libgomp.c/simd-15.c: Same.
15570         * testsuite/libgomp.c/simd-2.c: Same.
15571         * testsuite/libgomp.c/simd-3.c: Same.
15572         * testsuite/libgomp.c/simd-4.c: Same.
15573         * testsuite/libgomp.c/simd-5.c: Same.
15574         * testsuite/libgomp.c/simd-6.c: Same.
15575         * testsuite/libgomp.c/simd-7.c: Same.
15576         * testsuite/libgomp.c/simd-8.c: Same.
15577         * testsuite/libgomp.c/simd-9.c: Same.
15579 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15581         * testsuite/libgomp.c/pr35625.c: Fix typo.
15583 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15585         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15586         in dg-options.
15587         * testsuite/libgomp.c/atomic-3.c: Same.
15588         * testsuite/libgomp.c/debug-1.c: Same.
15589         * testsuite/libgomp.c/nqueens-1.c: Same.
15590         * testsuite/libgomp.c/pr26171.c: Same.
15591         * testsuite/libgomp.c/pr48591.c: Same.
15592         * testsuite/libgomp.c/pr64824.c: Same.
15593         * testsuite/libgomp.c/pr64868.c: Same.
15594         * testsuite/libgomp.c/pr66133.c: Same.
15595         * testsuite/libgomp.c/pr66199-1.c: Same.
15596         * testsuite/libgomp.c/pr66199-2.c: Same.
15597         * testsuite/libgomp.c/target-8.c: Same.
15599 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15601         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15602         -std={gnu99,c99}.
15603         * testsuite/libgomp.c/for-1.c: Same.
15604         * testsuite/libgomp.c/for-2.c: Same.
15605         * testsuite/libgomp.c/for-3.c: Same.
15606         * testsuite/libgomp.c/pr35625.c: Same.
15607         * testsuite/libgomp.c/pr39154.c: Same.
15608         * testsuite/libgomp.c/simd-16.c: Same.
15609         * testsuite/libgomp.c/simd-17.c: Same.
15611 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15613         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15615 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15617         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15618         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15619         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15620         (N): Define.
15621         (main): Use N instead of hardcoded constants.
15623 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15625         merge from gomp4 branch:
15626         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15628         PR tree-optimization/65443
15629         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15630         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15631         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15633 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15635         * testsuite/libgomp.graphite/bounds.c: Adjust for
15636         cleanup-tree-dump removal.
15637         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15638         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15639         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15640         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15641         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15642         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15643         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15644         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15645         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15646         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15648 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15650         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15651         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15652         (futex_wake) [!__x86_64__]: Ditto.
15654 2015-05-28  Julian Brown  <julian@codesourcery.com>
15656         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15657         function comment. Only call gomp_fatal if new argument is true.
15658         (acc_dev_num_out_of_range): New function.
15659         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15660         acc_dev_num_out_of_range as appropriate.
15661         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15662         (acc_get_device_num, acc_set_device_num): Update calls to
15663         resolve_device.
15664         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15665         output.
15667 2015-05-28  Julian Brown  <julian@codesourcery.com>
15669         PR libgomp/65742
15670         * oacc-init.c (plugin/plugin-host.h): Include.
15671         (acc_on_device): Check whether we're in an offloaded region for
15672         host_nonshm
15673         plugin. Don't use __builtin_acc_on_device.
15674         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15675         nonshm_exec flag in thread-local data.
15676         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15677         data for host_nonshm plugin.
15678         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15679         for host_nonshm plugin.
15680         * plugin/plugin-host.h: New.
15682 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15684         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15686 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15688         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15689         Declare as int.
15690         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15691         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15692         Declare as int.
15694 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15696         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15698 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15700         * target.c (gomp_map_pointer): New function abstracting out
15701         GOMP_MAP_POINTER handling.
15702         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15703         gomp_map_pointer().
15705 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15707         PR middle-end/66199
15708         * testsuite/libgomp.c/pr66199-1.c: New test.
15709         * testsuite/libgomp.c/pr66199-2.c: New test.
15710         * testsuite/libgomp.c++/pr66199-1.C: New test.
15711         * testsuite/libgomp.c++/pr66199-2.C: New test.
15712         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15713         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15715 2015-05-19  Julian Brown  <julian@codesourcery.com>
15717         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15718         on cuInit failure.
15720 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15722         PR middle-end/66133
15723         * testsuite/libgomp.c/pr66133.c: New test.
15725 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15727         * Makefile.in: Regenerated with automake-1.11.6.
15728         * aclocal.m4: Likewise.
15729         * config.h.in: Likewise.
15730         * configure: Likewise.
15731         * testsuite/Makefile.in: Likewise.
15733 2015-05-08  Jason Merrill  <jason@redhat.com>
15735         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15736         _Complex.
15738         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15740 2015-05-06  Julian Brown  <julian@codesourcery.com>
15742         * oacc-init.c (acc_device_lock): Add explanatory comment.
15743         (resolve_device): Add comment about locking requirement.
15744         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15745         gomp_init_device and gomp_fini_device calls.
15746         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15747         (acc_get_device_num, acc_set_device_num): Add locking around
15748         resolve_device and gomp_init_device calls.
15750 2015-05-06  Julian Brown  <julian@codesourcery.com>
15752         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15753         goacc_thread_lock on error paths.
15754         * oacc-mem.c (lookup_host): Remove locking from function. Note
15755         locking requirement for caller in function comment.
15756         (lookup_dev): Likewise.
15757         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15758         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15759         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15760         Add locking.
15762 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15764         PR testsuite/65205
15765         PR libgomp/65993
15766         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15767         don't expect "0x" prefix for "%p" format specifier, don't expect
15768         "(nil)" for NULL pointer.
15769         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15770         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15771         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15772         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15773         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15774         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15775         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15776         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15777         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15778         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15779         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15780         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15781         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15782         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15783         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15784         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15785         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15786         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15787         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15788         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15789         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15790         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15791         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15792         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15793         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15794         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15795         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15796         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15797         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15798         accurately specify what we're looking for.
15799         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15800         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15801         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15802         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15803         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15805 2015-04-30  James Norris  <jnorris@codesourcery.com>
15807         PR testsuite/65205
15808         * testsuite/lib/libgomp.exp
15809         (check_effective_target_openacc_host_selected)
15810         (check_effective_target_openacc_host_nonshm_selected): New
15811         procedures.
15812         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15813         dg-shouldfail.
15814         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15815         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15816         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15817         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15818         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15819         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15820         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15821         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15822         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15823         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15824         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15825         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15826         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15827         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15828         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15829         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15830         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15831         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15832         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15833         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15834         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15835         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15836         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15837         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15838         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15839         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15840         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15841         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15842         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15843         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15844         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15845         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15846         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15847         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15848         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15849         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15850         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15851         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15852         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15853         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15854         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15855         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15856         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15858 2015-04-08  Julian Brown  <julian@codesourcery.com>
15860         * libgomp.h (target_mem_desc: Remove mem_map field.
15861         (acc_dispatch_t): Remove open_device_func, close_device_func,
15862         get_device_num_func, set_device_num_func, target_data members.
15863         Change create_thread_data_func argument to device number instead of
15864         generic pointer.
15865         * oacc-async.c (assert.h): Include.
15866         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15867         (acc_wait_all, acc_wait_all_async): Use current host thread's
15868         active device, not base_dev.
15869         * oacc-cuda.c (acc_get_current_cuda_device)
15870         (acc_get_current_cuda_context, acc_get_cuda_stream)
15871         (acc_set_cuda_stream): Likewise.
15872         * oacc-host.c (host_dispatch): Don't set open_device_func,
15873         close_device_func, get_device_num_func or set_device_num_func.
15874         * oacc-init.c (base_dev, init_key): Remove.
15875         (cached_base_dev): New.
15876         (name_of_acc_device_t): New.
15877         (acc_init_1): Initialise default-numbered device, not zeroth.
15878         (acc_shutdown_1): Close all devices of a given type.
15879         (goacc_destroy_thread): Don't use base_dev.
15880         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15881         (goacc_attach_host_thread_to_device): New.
15882         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15883         (acc_get_num_devices): Don't use base_dev.
15884         (acc_set_device_type): Reimplement.
15885         (acc_get_device_type): Don't use base_dev.
15886         (acc_get_device_num): Tweak logic.
15887         (acc_set_device_num): Likewise.
15888         (acc_on_device): Use acc_get_device_type.
15889         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15890         (goacc_lazy_initialize): Reimplement with acc_init and
15891         goacc_attach_host_thread_to_device.
15892         * oacc-int.h (goacc_thread): Add base_dev field.
15893         (base_dev): Remove extern declaration.
15894         (goacc_attach_host_thread_to_device): Add prototype.
15895         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15896         base_dev.
15897         (acc_free): Likewise.
15898         (acc_memcpy_to_device): Likewise.
15899         (acc_memcpy_from_device): Likewise.
15900         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15901         goacc_lazy_initialize (throughout).
15902         (GOACC_parallel): Use tgt_offset to locate target functions.
15903         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15904         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15905         (gomp_load_plugin_for_device): Remove open_device, close_device,
15906         get_device_num, set_device_num openacc hook initialisation. Don't set
15907         openacc.target_data.
15908         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15909         (GOMP_OFFLOAD_openacc_close_device)
15910         (GOMP_OFFLOAD_openacc_get_device_num)
15911         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15912         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15913         to int.
15914         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15915         (instantiated_devices, ptx_dev_lock): New.
15916         (struct ptx_image_data): New.
15917         (ptx_devices, ptx_images, ptx_image_lock): New.
15918         (fini_streams_for_device): Reorder cuStreamDestroy call.
15919         (nvptx_get_num_devices): Remove forward declaration.
15920         (nvptx_init): Change return type to bool.
15921         (nvptx_fini): Remove.
15922         (nvptx_attach_host_thread_to_device): New.
15923         (nvptx_open_device): Return struct ptx_device* instead of void*.
15924         (nvptx_close_device): Change argument type to struct ptx_device*,
15925         return type to void.
15926         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15927         (kernel_target_data, kernel_host_table): Remove static globals.
15928         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15929         (GOMP_OFFLOAD_init_device): Reimplement.
15930         (GOMP_OFFLOAD_fini_device): Likewise.
15931         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15932         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15933         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15934         (GOMP_OFFLOAD_openacc_open_device)
15935         (GOMP_OFFLOAD_openacc_close_device)
15936         (GOMP_OFFLOAD_openacc_set_device_num)
15937         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15938         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15939         (device number).
15941         testsuite/
15942         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15944 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15946         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15947         * libgomp.h (struct gomp_memory_mapping): Remove.
15948         (struct target_mem_desc): Change type of mem_map from
15949         gomp_memory_mapping * to splay_tree_s *.
15950         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15951         Add load_image_func, unload_image_func.
15952         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15953         Remove offload_regions_registered.
15954         (gomp_init_tables): Remove.
15955         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15956         to splay_tree_s *.
15957         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15958         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15959         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15960         offload_regions_registered.
15961         Initialize load_image_func, unload_image_func, mem_map.root.
15962         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15963         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15964         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15965         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15966         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15967         (lookup_dev): Use dev's lock.
15968         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15969         (acc_is_present): Likewise.
15970         (acc_map_data): Likewise.
15971         (acc_unmap_data): Likewise.  Use dev's lock.
15972         (present_create_copy): Likewise.
15973         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15974         (update_dev_host): Likewise.
15975         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15976         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15977         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15978         (GOMP_OFFLOAD_get_table): Remove
15979         (GOMP_OFFLOAD_load_image): New function.
15980         (GOMP_OFFLOAD_unload_image): New function.
15981         * target.c (register_lock): New mutex for offload image registration.
15982         (num_devices): Do not guard with PLUGIN_SUPPORT.
15983         (gomp_realloc_unlock): New static function.
15984         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15985         before gomp_fatal.
15986         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15987         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15988         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15989         mem_map's.
15990         (gomp_unmap_vars): Likewise.
15991         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15992         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15993         (gomp_offload_image_to_device): New static function.
15994         (GOMP_offload_register): Add mutex lock.
15995         Call gomp_offload_image_to_device for all initialized devices.
15996         Replace gomp_realloc with gomp_realloc_unlock.
15997         (GOMP_offload_unregister): New function.
15998         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15999         get_table_func from the plugin with calls to init_device_func and
16000         gomp_offload_image_to_device.
16001         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16002         to splay_tree_s *.
16003         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
16004         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
16005         (GOMP_target_data): Do not call gomp_init_tables.
16006         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
16007         (gomp_load_plugin_for_device): Replace register_image and get_table
16008         with load_image and unload_image in DLSYM ().
16009         (gomp_register_images_for_device): Remove function.
16010         (gomp_target_init): Do not initialize current_device.mem_map.*,
16011         current_device.offload_regions_registered.
16012         Remove call to gomp_register_images_for_device.
16013         Do not free offload_images and num_offload_images.
16015 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16017         PR fortran/65597
16018         * testsuite/libgomp.fortran/pr65597.f90: New test.
16020 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16022         PR testsuite/65594
16023         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16024         (init, check): New function.
16025         (foo): Change return type to void.
16026         (main): Call init and check.
16028 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16030         PR testsuite/65594
16031         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16032         (foo): Use M for non-inner loops to scale down test-case.
16034 2015-03-25  Kai Tietz  <ktietz@redhat.com>
16036         PR libgomp/64972
16037         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16038         (GOACC_data_start): Likewise.
16039         * target.c (gomp_map_vars): Likewise.
16041 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
16043         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16044         hppa*-*-hpux*.
16046 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
16048         * testsuite/libgomp.c/target-10.c: New test.
16049         * testsuite/libgomp.c++/target-4.C: New test.
16051 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16053         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16054         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16056 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16058         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16059         * configure.ac (*-*-rtems*): Assume Pthread is supported.
16060         (pthread.h): Check for this header file.
16061         * configure: Regenerate.
16063 2015-02-25  Tom de Vries  <tom@codesourcery.com>
16065         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16066         (check_reduction_op, check_reduction_macro, max, min):
16067         Declare.
16068         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16069         function.
16070         (main): Use new functions.
16072 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
16074         * target.c (gomp_load_plugin_for_device): Use const char * instead of
16075         char * for variables holding dlerror return values.
16076         (DLSYM_OPT): Ditto.
16078 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16080         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16082 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16083             Cesar Philippidis  <cesar@codesourcery.com>
16085         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16086         GOACC_ctaid, and GOACC_nctaid routines.
16088 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16090         PR c/64824
16091         * testsuite/libgomp.c/atomic-18.c: New test.
16092         * testsuite/libgomp.c++/atomic-16.C: New test.
16094 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16096         PR c/64824
16097         PR c/64868
16098         * testsuite/libgomp.c/pr64824.c: New test.
16099         * testsuite/libgomp.c/pr64868.c: New test.
16100         * testsuite/libgomp.c++/pr64824.C: New test.
16101         * testsuite/libgomp.c++/pr64868.C: New test.
16103 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16105         PR libgomp/64635
16106         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16107         Link with -lpthread.
16108         * config/aix/plugin-suffix.h: Delete.
16110 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
16112         PR libgomp/64635
16113         * configure.tgt (*-*-aix*): Use config_path "aix posix".
16114         (*-*-darwin*): Use config_path "bsd darwin posix".
16115         (*-*-hpux*): Use config_path "hpux posix".
16116         * target.c: Add include of plugin-suffix.h and use
16117         SONAME_SUFFIX macro.
16118         * config/aix/plugin-suffix.h: New file.
16119         * config/darwin/plugin-suffix.h: New file.
16120         * config/hpux/plugin-suffix.h: New file.
16121         * config/posix/plugin-suffix.h: New file.
16123 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16125         PR middle-end/64734
16126         * libgomp.c/pr64734.c: New test.
16128 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16130         PR libgomp/64672
16131         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16133 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16135         PR libgomp/64707
16136         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16137         dg-options.
16139 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16141         PR libgomp/64625
16142         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16143         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16144         formal parameter.  Update all users.
16145         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16146         Document unused formal parameter.
16148 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
16150         * oacc-parallel.c: Don't include <alloca.h>.
16151         (GOACC_parallel): Use gomp_alloca instead of alloca.
16153 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
16155         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16157 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16158             James Norris  <jnorris@codesourcery.com>
16159             Tom de Vries  <tom@codesourcery.com>
16160             Julian Brown  <julian@codesourcery.com>
16161             Cesar Philippidis  <cesar@codesourcery.com>
16162             Nathan Sidwell  <nathan@codesourcery.com>
16163             Tobias Burnus  <burnus@net-b.de>
16165         * Makefile.am (search_path): Add $(top_srcdir)/../include.
16166         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16167         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16168         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16169         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16170         Include $(top_srcdir)/plugin/Makefrag.am.
16171         (nodist_libsubinclude_HEADERS): Add openacc.h.
16172         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16173         openacc.f90, openacc.mod, openacc_kinds.mod.
16174         (omp_lib.mod): Generalize into...
16175         (%.mod): ... this new rule.
16176         (openacc_kinds.mod, openacc.mod): New rules.
16177         * plugin/configfrag.ac: New file.
16178         * configure.ac: Move plugin/offloading support into it.  Include
16179         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
16180         * plugin/Makefrag.am: New file.
16181         * testsuite/Makefile.am (OFFLOAD_TARGETS)
16182         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16183         export.
16184         (libgomp-test-support.exp): New rule.
16185         (all-local): Depend on it.
16186         * Makefile.in: Regenerate.
16187         * testsuite/Makefile.in: Regenerate.
16188         * config.h.in: Likewise.
16189         * configure: Likewise.
16190         * configure.tgt: Harden shell syntax.
16191         * env.c: Include "oacc-int.h".
16192         (parse_acc_device_type): New function.
16193         (gomp_debug_var, goacc_device_type, goacc_device_num): New
16194         variables.
16195         (initialize_env): Initialize those.  Call
16196         goacc_runtime_initialize.
16197         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16198         (gomp_fatal): Call gomp_vfatal.
16199         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16200         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16201         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16202         (splay_tree_node, splay_tree, splay_tree_key)
16203         (struct target_mem_desc, struct splay_tree_key_s)
16204         (struct gomp_memory_mapping, struct acc_dispatch_t)
16205         (struct gomp_device_descr, gomp_acc_insert_pointer)
16206         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16207         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16208         (gomp_free_memmap, gomp_fini_device): New declarations.
16209         (gomp_vdebug, gomp_debug): New macros.
16210         Include "splay-tree.h".
16211         * libgomp.map (OACC_2.0): New symbol version.  Use for
16212         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16213         acc_set_device_type_h_, acc_get_device_type,
16214         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16215         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16216         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16217         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16218         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16219         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16220         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16221         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16222         acc_copyin_array_h_, acc_present_or_copyin,
16223         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16224         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16225         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16226         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16227         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16228         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16229         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16230         acc_update_device, acc_update_device_32_h_,
16231         acc_update_device_64_h_, acc_update_device_array_h_,
16232         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16233         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16234         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16235         acc_is_present_64_h_, acc_is_present_array_h_,
16236         acc_memcpy_to_device, acc_memcpy_from_device,
16237         acc_get_current_cuda_device, acc_get_current_cuda_context,
16238         acc_get_cuda_stream, acc_set_cuda_stream.
16239         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
16240         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16241         GOACC_update, GOACC_wait, GOACC_get_thread_num,
16242         GOACC_get_num_threads.
16243         (GOMP_PLUGIN_1.0): New symbol version.  Use for
16244         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16245         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16246         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16247         GOMP_PLUGIN_acc_thread.
16248         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16249         environment variable.
16250         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16251         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16252         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16253         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16254         (splay_tree_remove): New declarations.
16255         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16256         (splay_tree_remove, splay_tree_lookup): Move into...
16257         * splay-tree.c: ... this new file.
16258         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16259         (splay_tree_node, splay_tree, splay_tree_key)
16260         (struct target_mem_desc, struct splay_tree_key_s)
16261         (struct gomp_device_descr): Don't declare.
16262         (num_devices_openmp): New variable.
16263         (gomp_get_num_devices ): Use it.
16264         (gomp_init_targets_once): New function.
16265         (gomp_get_num_devices ): Use it.
16266         (get_kind, gomp_copy_from_async, gomp_free_memmap)
16267         (gomp_fini_device, gomp_register_image_for_device): New functions.
16268         (gomp_map_vars): Add devaddrs parameter.
16269         (gomp_update): Add mm parameter.
16270         (gomp_init_device): Move most of it into...
16271         (gomp_init_tables): ... this new function.
16272         (gomp_register_images_for_device): Remove function.
16273         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16274         Make them hidden instead of static.
16275         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16276         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16277         (GOMP_target_end_data, GOMP_target_update)
16278         (gomp_load_plugin_for_device, gomp_target_init): Update for
16279         OpenACC changes.
16280         * oacc-async.c: New file.
16281         * oacc-cuda.c: Likewise.
16282         * oacc-host.c: Likewise.
16283         * oacc-init.c: Likewise.
16284         * oacc-int.h: Likewise.
16285         * oacc-mem.c: Likewise.
16286         * oacc-parallel.c: Likewise.
16287         * oacc-plugin.c: Likewise.
16288         * oacc-plugin.h: Likewise.
16289         * oacc-ptx.h: Likewise.
16290         * openacc.f90: Likewise.
16291         * openacc.h: Likewise.
16292         * openacc_lib.h: Likewise.
16293         * plugin/plugin-host.c: Likewise.
16294         * plugin/plugin-nvptx.c: Likewise.
16295         * libgomp-plugin.c: Likewise.
16296         * libgomp-plugin.h: Likewise.
16297         * libgomp_target.h: Remove file after merging content into the
16298         former file.  Update all users.
16299         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16300         (offload_targets_s, offload_targets_s_openacc): New variables.
16301         (check_effective_target_openacc_nvidia_accel_present)
16302         (check_effective_target_openacc_nvidia_accel_selected): New
16303         procedures.
16304         (libgomp_init): Update for OpenACC changes.
16305         * testsuite/libgomp-test-support.exp.in: New file.
16306         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16307         * testsuite/libgomp.oacc-c/c.exp: Likewise.
16308         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16309         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16310         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16311         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16312         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16313         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16314         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16315         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16316         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16317         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16318         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16319         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16320         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16321         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16322         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16323         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16324         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16325         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16326         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16327         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16328         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16329         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16330         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16331         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16332         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16333         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16334         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16335         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16336         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16337         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16338         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16339         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16340         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16341         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16342         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16343         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16344         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16345         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16346         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16347         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16348         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16349         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16350         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16351         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16352         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16353         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16354         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16355         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16356         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16357         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16358         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16359         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16360         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16361         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16362         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16363         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16364         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16365         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16366         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16367         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16368         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16369         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16370         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16371         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16372         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16373         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16374         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16375         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16376         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16377         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16378         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16379         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16380         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16381         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16382         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16383         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16384         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16385         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16386         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16387         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16388         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16389         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16390         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16391         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16392         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16393         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16394         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16395         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16396         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16397         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16398         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16399         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16400         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16401         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16402         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16403         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16404         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16405         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16406         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16407         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16408         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16409         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16410         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16411         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16412         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16413         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16414         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16415         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16416         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16417         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16418         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16419         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16420         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16421         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16422         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16423         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16424         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16425         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16426         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16427         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16428         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16429         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16430         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16431         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16432         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16433         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16434         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16435         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16436         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16437         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16438         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16439         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16440         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16441         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16442         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16443         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16444         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16445         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16446         Likewise.
16447         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16448         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16449         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16450         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16451         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16452         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16453         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16454         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16455         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16456         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16457         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16458         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16459         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16460         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16461         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16462         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16463         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16464         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16465         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16466         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16467         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16468         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16469         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16470         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16471         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16472         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16473         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16474         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16475         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16476         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16477         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16478         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16479         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16480         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16481         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16482         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16483         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16484         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16485         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16486         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16487         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16488         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16489         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16490         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16491         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16492         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16493         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16494         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16495         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16496         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16497         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16498         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16499         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16500         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16501         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16502         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16503         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16504         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16505         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16506         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16508 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16509             Julian Brown  <julian@codesourcery.com>
16510             David Malcolm  <dmalcolm@redhat.com>
16512         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16513         to "GNU Offloading and Multi Processing Runtime Library".  Change
16514         all users.
16515         * configure: Regenerate.
16516         * libgomp.texi: Update.
16518 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16520         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16521         "$tgt_dir/lib32".
16522         * configure: Regenerate.
16524         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16525         "intelmic" in $offload_targets.
16527 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16529         Update copyright years.
16531         * libgomp.texi: Bump @copying's copyright year.
16533 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16535         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16536         Move load of target-supports.exp earlier.
16538 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16540         * testsuite/libgomp.c/target-9.c: New test.
16542 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16544         * config.h.in: Regenerate.
16545         * configure: Regenerate.
16546         * configure.ac: Add GCC_CHECK_EMUTLS.
16547         * libgomp.h: Add check for USE_EMUTLS: this case
16548         is equal to HAVE_TLS.
16549         * team.c: Likewise.
16551 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16553         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16555 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16556             Ilya Verbin  <ilya.verbin@intel.com>
16558         * testsuite/libgomp.c/target-critical-1.c: New test.
16560 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16562         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16563         to dg-options unless expensive testing is on.
16564         (TESTITERS): Define to N if not defined.
16565         (main): Use TESTITERS instead of N.
16566         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16567         dg-additional-options depending on whether expensive testing is on.
16568         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16569         Decrease N to 100000 and CHUNKSZ to 10000.
16571 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16573         PR fortran/63938
16574         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16575         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16577 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16579         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16581 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16583         PR bootstrap/63784
16584         * configure: Regenerated.
16586 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16588         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16589         vect_simd_clones effective target.
16590         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16592 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16594         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16595         of 32 as block_size.
16596         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16597         instead of 32 as block_size.
16599 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16600             Ilya Verbin  <ilya.verbin@intel.com>
16602         * Makefile.in: Regenerate.
16603         * configure: Regenerate.
16604         * configure.ac: Set up offload_additional_options,
16605         offload_additional_lib_paths and offload_targets.
16606         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16607         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16608         * testsuite/Makefile.in: Regenerate.
16609         * testsuite/lib/libgomp.exp (libgomp_init): Append
16610         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16611         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16612         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16614 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16615             Ilya Verbin  <ilya.verbin@intel.com>
16616             Kirill Yukhin  <kirill.yukhin@intel.com>
16617             Ilya Tocar  <ilya.tocar@intel.com>
16619         * testsuite/lib/libgomp.exp
16620         (check_effective_target_offload_device): New.
16621         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16622         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16623         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16624         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16625         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16626         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16627         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16628         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16629         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16630         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16631         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16632         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16633         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16634         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16635         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16636         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16637         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16638         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16639         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16640         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16641         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16642         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16643         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16644         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16645         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16646         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16647         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16648         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16649         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16650         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16651         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16652         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16653         * testsuite/libgomp.c/target-7.c: Fix test.
16654         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16655         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16656         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16657         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16658         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16659         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16660         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16661         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16662         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16663         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16664         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16665         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16666         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16667         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16668         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16669         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16670         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16671         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16672         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16673         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16674         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16675         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16676         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16677         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16678         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16679         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16680         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16681         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16682         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16683         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16684         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16686 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16687             Ilya Verbin  <ilya.verbin@intel.com>
16688             Thomas Schwinge  <thomas@codesourcery.com>
16689             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16691         * libgomp.map (GOMP_4.0.1): New symbol version.
16692         Add GOMP_offload_register.
16693         * libgomp_target.h: New file.
16694         * splay-tree.h: New file.
16695         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16696         (gomp_target_init): New forward declaration.
16697         (gomp_is_initialized): New static variable.
16698         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16699         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16700         New structures.
16701         (offload_images, num_offload_images, devices, num_devices): New static
16702         variables.
16703         (splay_compare): New static function.
16704         (struct gomp_device_descr): New structure.
16705         (gomp_get_num_devices): Call gomp_target_init.
16706         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16707         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16708         (GOMP_offload_register): New function.
16709         (GOMP_target): Arrange for host callback to be performed in a separate
16710         initial thread and contention group, inheriting ICVs from
16711         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16712         Add device initialization and lookup for target function in splay tree.
16713         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16714         (GOMP_target_end_data): Call gomp_unmap_vars.
16715         (GOMP_target_update): Add device initialization and call gomp_update.
16716         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16717         (gomp_target_init): New static functions.
16719 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16720             Thomas Schwinge  <thomas@codesourcery.com>
16721             Ilya Verbin  <ilya.verbin@intel.com>
16722             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16724         * config.h.in: Regenerate.
16725         * configure: Regenerate.
16726         * configure.ac: Check for libdl, required for plugin support.
16727         (PLUGIN_SUPPORT): Define if plugins are supported.
16728         (enable_offload_targets): Support Intel MIC targets.
16729         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16731 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16733         PR target/63610
16734         * configure: Regenerate.
16736 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16738         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16740 2014-10-06  Marek Polacek  <polacek@redhat.com>
16742         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16743         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16744         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16745         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16747 2014-10-06  Marek Polacek  <polacek@redhat.com>
16749         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16750         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16751         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16752         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16753         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16754         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16755         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16756         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16757         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16758         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16759         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16760         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16761         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16762         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16763         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16764         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16765         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16766         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16767         declarations.
16769 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16771         PR libgomp/61200
16772         * testsuite/libgomp.c/pr61200.c: New test.
16774 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16776         PR c++/63248
16777         * testsuite/libgomp.c++/pr63248.C: New test.
16779 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16781         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16782         is not zero, but taskgroup->children is NULL and there are
16783         any task->children, schedule those instead of waiting.
16784         * testsuite/libgomp.c/depend-6.c: New test.
16785         * testsuite/libgomp.c/depend-7.c: New test.
16786         * testsuite/libgomp.c/depend-8.c: New test.
16787         * testsuite/libgomp.c/depend-9.c: New test.
16788         * testsuite/libgomp.c/depend-10.c: New test.
16790 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16792         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16793         (struct gomp_taskwait): New type.
16794         (struct gomp_task): Add taskwait and parent_depends_on, remove
16795         in_taskwait and taskwait_sem fields.
16796         (gomp_finish_task): Don't destroy taskwait_sem.
16797         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16798         taskwait and parent_depends_on.
16799         (GOMP_task): For if (0) tasks with depend clause that depend on
16800         earlier tasks don't defer them, instead call
16801         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16802         Initialize redundant_out field, for redundant out entries just
16803         move them at the end of linked list instead of removing them
16804         completely, and set redundant_out flag instead of redundant.
16805         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16806         that task.
16807         (gomp_task_run_post_handle_dependers): If parent is in
16808         gomp_task_maybe_wait_for_dependencies and newly runnable task
16809         is not parent_depends_on, queue it in parent->children linked
16810         list after all runnable tasks with parent_depends_on set.
16811         Adjust for addition of taskwait indirection.
16812         (gomp_task_run_post_remove_parent): If parent is in
16813         gomp_task_maybe_wait_for_dependencies and task to be removed
16814         is parent_depends_on, decrement n_depend and if needed awake
16815         parent.  Adjust for addition of taskwait indirection.
16816         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16817         (gomp_task_maybe_wait_for_dependencies): New function.
16818         * testsuite/libgomp.c/depend-5.c: New test.
16820 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16822         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16823         with TS 18508/Fortran 2015.
16825 2014-07-06  Marek Polacek  <polacek@redhat.com>
16827         PR c/6940
16828         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16830 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16832         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16833         matches regex $lang_source_re, add $lang_include_flags to options.
16834         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16835         * testsuite/libgomp.c++/c++.exp: Likewise.
16836         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16837         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16838         ALWAYS_CFLAGS.
16839         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16841 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16843         * testsuite/libgomp.fortran/fortran.exp: Explain
16844         gfortran-dg-runtest usage.
16846 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16848         * testsuite/libgomp.fortran/simd5.f90: New test.
16849         * testsuite/libgomp.fortran/simd6.f90: New test.
16850         * testsuite/libgomp.fortran/simd7.f90: New test.
16852 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16854         * testsuite/libgomp.c/for-2.c: Define SC to static for
16855         #pragma omp for simd testing.
16856         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16857         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16858         SC macro.
16859         * testsuite/libgomp.c/simd-14.c: New test.
16860         * testsuite/libgomp.c/simd-15.c: New test.
16861         * testsuite/libgomp.c/simd-16.c: New test.
16862         * testsuite/libgomp.c/simd-17.c: New test.
16863         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16864         #pragma omp for simd testing.
16865         * testsuite/libgomp.c++/simd10.C: New test.
16866         * testsuite/libgomp.c++/simd11.C: New test.
16867         * testsuite/libgomp.c++/simd12.C: New test.
16868         * testsuite/libgomp.c++/simd13.C: New test.
16870         * testsuite/libgomp.fortran/aligned1.f03: New test.
16871         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16872         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16873         tasks with !$omp parallel !$omp single.
16874         * testsuite/libgomp.fortran/target8.f90: New test.
16875         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16876         not to use trim in the combiner, instead call elemental function.
16877         (fn): New elemental function.
16878         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16879         Make elemental.
16880         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16881         omp_in): Likewise.
16882         * testsuite/libgomp.fortran/udr12.f90: New test.
16883         * testsuite/libgomp.fortran/udr13.f90: New test.
16884         * testsuite/libgomp.fortran/udr14.f90: New test.
16885         * testsuite/libgomp.fortran/udr15.f90: New test.
16887 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16889         * omp_lib.f90.in (openmp_version): Set to 201307.
16890         * omp_lib.h.in (openmp_version): Likewise.
16891         * testsuite/libgomp.c/target-8.c: New test.
16892         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16893         and inbranch clauses.
16894         * testsuite/libgomp.fortran/depend-3.f90: New test.
16895         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16896         openmp_version.
16897         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16898         * testsuite/libgomp.fortran/target1.f90: New test.
16899         * testsuite/libgomp.fortran/target2.f90: New test.
16900         * testsuite/libgomp.fortran/target3.f90: New test.
16901         * testsuite/libgomp.fortran/target4.f90: New test.
16902         * testsuite/libgomp.fortran/target5.f90: New test.
16903         * testsuite/libgomp.fortran/target6.f90: New test.
16904         * testsuite/libgomp.fortran/target7.f90: New test.
16906 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16908         PR fortran/60928
16909         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16910         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16911         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16912         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16913         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16914         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16915         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16916         * testsuite/libgomp.fortran/associate1.f90: New test.
16917         * testsuite/libgomp.fortran/associate2.f90: New test.
16918         * testsuite/libgomp.fortran/procptr1.f90: New test.
16920 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16922         * testsuite/libgomp.fortran/simd1.f90: New test.
16923         * testsuite/libgomp.fortran/udr1.f90: New test.
16924         * testsuite/libgomp.fortran/udr2.f90: New test.
16925         * testsuite/libgomp.fortran/udr3.f90: New test.
16926         * testsuite/libgomp.fortran/udr4.f90: New test.
16927         * testsuite/libgomp.fortran/udr5.f90: New test.
16928         * testsuite/libgomp.fortran/udr6.f90: New test.
16929         * testsuite/libgomp.fortran/udr7.f90: New test.
16930         * testsuite/libgomp.fortran/udr8.f90: New test.
16931         * testsuite/libgomp.fortran/udr9.f90: New test.
16932         * testsuite/libgomp.fortran/udr10.f90: New test.
16933         * testsuite/libgomp.fortran/udr11.f90: New test.
16935 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16937         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16938         vect_simd_clones effective target.
16939         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16941 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16943         PR middle-end/61252
16944         * testsuite/libgomp.c++/simd-9.C: New test.
16946 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16948         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16949         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16950         texts according to their @menu entry positions.
16952 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16954         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16955         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16956         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16957         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16958         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16959         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16960         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16961         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16962         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16963         * testsuite/libgomp.fortran/depend-1.f90: New test.
16964         * testsuite/libgomp.fortran/depend-2.f90: New test.
16965         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16966         * testsuite/libgomp.fortran/simd1.f90: New test.
16967         * testsuite/libgomp.fortran/simd2.f90: New test.
16968         * testsuite/libgomp.fortran/simd3.f90: New test.
16969         * testsuite/libgomp.fortran/simd4.f90: New test.
16970         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16972 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16974         * testsuite/libgomp.c/simd-10.c: New test.
16975         * testsuite/libgomp.c/simd-11.c: New test.
16976         * testsuite/libgomp.c/simd-12.c: New test.
16977         * testsuite/libgomp.c/simd-13.c: New test.
16979 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16981         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16982         atomic type clauses in any order and optional comma in between.
16983         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16984         * testsuite/libgomp.c/atomic-17.c: Likewise.
16986         * testsuite/libgomp.c/simd-7.c: New test.
16987         * testsuite/libgomp.c/simd-8.c: New test.
16988         * testsuite/libgomp.c/simd-9.c: New test.
16989         * testsuite/libgomp.c/loop-16.c: New test.
16991 2014-04-02  Richard Henderson  <rth@redhat.com>
16993         * config/linux/futex.h (futex_wait): Get error value from errno.
16994         (futex_wake): Likewise.
16996 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16998         PR c++/60331
16999         * testsuite/libgomp.c++/udr-11.C: New test.
17000         * testsuite/libgomp.c++/udr-12.C: New test.
17001         * testsuite/libgomp.c++/udr-13.C: New test.
17002         * testsuite/libgomp.c++/udr-14.C: New test.
17003         * testsuite/libgomp.c++/udr-15.C: New test.
17004         * testsuite/libgomp.c++/udr-16.C: New test.
17005         * testsuite/libgomp.c++/udr-17.C: New test.
17006         * testsuite/libgomp.c++/udr-18.C: New test.
17007         * testsuite/libgomp.c++/udr-19.C: New test.
17009 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17011         Update copyright years
17013 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17015         * hashtab.h: Use the standard form for the copyright notice.
17017 2014-01-02  Tobias Burnus  <burnus@net-b.de>
17019         * libgomp.texi: Bump @copying's copyright year.
17021 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
17023         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17024         alloca () with __builtin_alloca ().
17025         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17026         * testsuite/libgomp.c/lock-3.c: Likewise.
17027         * testsuite/libgomp.c/pr48591.c: Likewise.
17029 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
17031         PR testsuite/59534
17032         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17033         comparisons.
17035 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
17037         PR libgomp/58756
17038         * testsuite/libgomp.c/pr58756.c: New test.
17040 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
17042         PR libgomp/59467
17043         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17044         !$omp parallel.
17046 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
17048         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17049         ALWAYS_CFLAGS.
17050         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17051         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17052         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17053         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17054         Likewise.
17056         * libgomp_g.h: Include <stddef.h> for size_t.
17058         * libgomp.spec.in: Update comment about libgomp's dependencies.
17059         * configure.ac: Likewise.
17060         * configure: Regenerate.
17062 2013-10-16  Tobias Burnus  <burnus@net-b.de>
17064         * libgomp.texi: (Runtime Library Routines): Update references for
17065         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17066         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17067         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17068         (Environment Variables): Update references for OpenMP 4.0. Add
17069         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17070         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17071         order.
17073 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
17075         * env.c (parse_bind_var): Initialize value to avoid
17076         (false positive) warning.
17078 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
17080         PR libgomp/58691
17081         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17082         to check variable.
17083         (gomp_init_num_threads): Move i variable declaration into
17084         #ifdef CPU_ALLOC_SIZE block.
17085         * config/linux/affinity.c (gomp_affinity_init_level): Test
17086         gomp_places_list_len == 0 rather than gomp_places_list == 0
17087         when checking for topology reading error.
17088         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17089         * env.c (parse_affinity): Add ignore argument, if true, don't populate
17090         gomp_places_list, only parse env var and always return false.
17091         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
17092         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17093         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17094         and either of these variables were parsed correctly into a places
17095         list.
17097 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17098             Jakub Jelinek  <jakub@redhat.com>
17100         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17101         of 5 loopfn matches.
17102         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17103         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17104         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17105         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17106         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17107         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17108         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17109         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17111 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17113         * Makefile.am (omp_lib.mod): Streamline rule.
17114         * Makefile.in: Regenerate.
17116         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17117         exceptions.
17119         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17120         * testsuite/libgomp.fortran/lib1.f90: Likewise.
17121         * testsuite/libgomp.fortran/lib2.f: Likewise.
17122         * testsuite/libgomp.fortran/lib3.f: Likewise.
17124         * configure.ac: Typo fix.
17125         * configure: Regenerate.
17127         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17128         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17130         * omp.h.in: Don't touch the user's namespace.
17132 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
17133             Tobias Burnus  <burnus@net-b.de>
17134             Richard Henderson  <rth@redhat.com>
17136         * target.c: New file.
17137         * Makefile.am (libgomp_la_SOURCES): Add target.c.
17138         * Makefile.in: Regenerated.
17139         * libgomp_g.h (GOMP_task): Add depend argument.
17140         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17141         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17142         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17143         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17144         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17145         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17146         GOMP_taskgroup_start, GOMP_taskgroup_end,
17147         GOMP_parallel_sections): New prototypes.
17148         * fortran.c (omp_is_initial_device): Add ialias_redirect.
17149         (omp_is_initial_device_): New function.
17150         (ULP, STR1, STR2, ialias_redirect): Removed.
17151         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17152         omp_set_default_device_8_, omp_get_default_device_,
17153         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17154         functions.
17155         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17156         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17157         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17158         @@GOMP_4.0.
17159         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17160         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17161         omp_set_default_device, omp_set_default_device_,
17162         omp_set_default_device_8_, omp_get_default_device,
17163         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17164         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17165         omp_get_team_num_): Export @@OMP_4.0.
17166         * team.c (struct gomp_thread_start_data): Add place field.
17167         (gomp_thread_start): Clear thr->thread_pool and
17168         thr->task before returning.  Use gomp_team_barrier_wait_final
17169         instead of gomp_team_barrier_wait.  Initialize thr->place.
17170         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17171         team_cancelled and task_queued_count fields.
17172         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17173         before calling pthread_exit.
17174         (gomp_free_thread): No longer static.  Use
17175         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17176         (gomp_team_start): Add flags argument.  Set
17177         thr->thread_pool->threads_busy to nthreads immediately after creating
17178         new pool.  Use gomp_managed_threads_lock instead of
17179         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
17180         (gomp_team_end): Use gomp_managed_threads_lock instead of
17181         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
17182         of gomp_team_barrier_wait.  If team->team_cancelled, call
17183         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17184         rather than thr->ts.work_share.
17185         (initialize_team): Don't call gomp_sem_init here.
17186         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17187         caller.
17188         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17189         * env.c (gomp_global_icv): Add default_device_var, target_data and
17190         bind_var initializers.
17191         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17192         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17193         gomp_places_list_len): New variables.
17194         (parse_bind_var, parse_one_place, parse_places_var): New functions.
17195         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17196         sized places.
17197         (gomp_cancel_var): New global variable.
17198         (parse_int): New function.
17199         (handle_omp_display_env): New function.
17200         (initialize_env): Use it.  Initialize default_device_var.
17201         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
17202         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
17203         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
17204         been successfully parsed (and call gomp_init_affinity in that case).
17205         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17206         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17207         omp_get_team_num, omp_is_initial_device): New functions.
17208         * libgomp.h: Include stdlib.h.
17209         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17210         Define.
17211         (struct target_mem_desc): Forward declare.
17212         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17213         and thread_limit_var fields.
17214         (gomp_get_num_devices): New prototype.
17215         (gomp_cancel_var): New extern decl.
17216         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17217         team_cancelled and task_queued_count fields.  Add comments about
17218         task_{,queued_,running_}count.
17219         (gomp_cancel_kind): New enum.
17220         (gomp_work_share_end_cancel): New prototype.
17221         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17222         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17223         and depend fields.
17224         (struct gomp_taskgroup): New type.
17225         (struct gomp_task_depend_entry,
17226         struct gomp_dependers_vec): New types.
17227         (gomp_finish_task): Free depend_hash if non-NULL.
17228         (struct gomp_team_state): Add place_partition_off
17229         and place_partition_len fields.
17230         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17231         gomp_places_list_len): New extern decls.
17232         (struct gomp_thread): Add place field.
17233         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17234         (gomp_init_thread_affinity): Add place argument.
17235         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17236         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17237         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17238         gomp_affinity_init_level, gomp_affinity_print_place): New
17239         prototypes.
17240         (gomp_team_start): Add flags argument.
17241         (gomp_thread_limit_var, gomp_remaining_threads_count,
17242         gomp_remaining_threads_lock): Remove.
17243         (gomp_managed_threads_lock): New variable.
17244         (struct gomp_thread_pool): Add threads_busy field.
17245         (gomp_free_thread): New prototype.
17246         * task.c: Include hashtab.h.
17247         (hash_entry_type): New typedef.
17248         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17249         (gomp_init_task): Clear dependers, depend_hash, depend_count,
17250         copy_ctors_done and taskgroup fields.
17251         (GOMP_task): Add depend argument, handle depend clauses.  If
17252         gomp_team_barrier_cancelled or if it's taskgroup has been
17253         cancelled, don't queue or start new tasks.  Set copy_ctors_done
17254         field if needed.  Initialize taskgroup field.  If copy_ctors_done
17255         and already cancelled, don't discard the task.  If taskgroup is
17256         non-NULL, enqueue the task into taskgroup queue.  Increment
17257         num_children field in taskgroup.  Increment task_queued_count.
17258         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17259         gomp_task_run_post_remove_taskgroup): New inline functions.
17260         (gomp_task_run_post_handle_depend_hash,
17261         gomp_task_run_post_handle_dependers,
17262         gomp_task_run_post_handle_depend): New functions.
17263         (GOMP_taskwait): Use them.  If more than one new tasks
17264         have been queued, wake other threads if needed.
17265         (gomp_barrier_handle_tasks): Likewise.  If
17266         gomp_team_barrier_cancelled, don't start any new tasks, just free
17267         all tasks.
17268         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17269         * omp_lib.f90.in
17270         (omp_proc_bind_kind, omp_proc_bind_false,
17271         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17272         omp_proc_bind_spread): New params.
17273         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17274         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17275         omp_get_team_num, omp_is_initial_device): New interfaces.
17276         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17277         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17278         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17279         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17280         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17281         useless use omp_lib_kinds.
17282         * omp.h.in (omp_proc_bind_t): New typedef.
17283         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17284         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17285         omp_get_team_num, omp_is_initial_device): New prototypes.
17286         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17287         through to gomp_team_start.
17288         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17289         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17290         Adjust gomp_parallel_loop_start callers.
17291         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17292         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17293         GOMP_loop_end_cancel): New functions.
17294         (GOMP_parallel_end): Add ialias_redirect.
17295         * hashtab.h: New file.
17296         * libgomp.texi (Environment Variables): Minor cleanup,
17297         update section refs to OpenMP 4.0rc2.
17298         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17299         environment variables.
17300         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17301         team->work_shares_to_free to thr->ts.work_share before calling
17302         free_work_share.
17303         (gomp_work_share_end_cancel): New function.
17304         * config/linux/proc.c: Include errno.h.
17305         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17306         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17307         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
17308         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
17309         gomp_cpuset_size is sizeof (cpu_set_t).
17310         (gomp_init_num_threads): Initialize gomp_cpuset_size,
17311         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17312         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17313         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
17314         contain any logical CPUs.
17315         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17316         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
17317         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17318         pthread_getaffinity_np.  Check gomp_places_list instead of
17319         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
17320         * config/linux/bar.c (gomp_barrier_wait_end,
17321         gomp_barrier_wait_last): Use BAR_* defines.
17322         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
17323         from state where needed.  Set work_share_cancelled to 0 on last
17324         thread.
17325         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17326         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17327         functions.
17328         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17329         Add cpusetsize argument.
17330         (gomp_cpuset_size, gomp_cpusetp): Declare.
17331         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17332         (affinity_counter): Remove.
17333         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17334         if CPU_ALLOC_SIZE isn't defined.
17335         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17336         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17337         bind current thread to the first place.
17338         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
17339         pthread_setaffinity_np to gomp_places_list[place].
17340         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17341         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17342         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17343         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17344         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17345         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17346         (gomp_barrier_t): Add awaited_final field.
17347         (gomp_barrier_init): Initialize awaited_final field.
17348         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17349         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17350         prototypes.
17351         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
17352         defines.
17353         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17354         gomp_team_barrier_cancelled): New inline functions.
17355         (gomp_barrier_last_thread,
17356         gomp_team_barrier_set_task_pending,
17357         gomp_team_barrier_clear_task_pending,
17358         gomp_team_barrier_set_waiting_for_tasks,
17359         gomp_team_barrier_waiting_for_tasks,
17360         gomp_team_barrier_done): Use BAR_* defines.
17361         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17362         (gomp_barrier_wait_end): Use BAR_* defines.
17363         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17364         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17365         Use BAR_* defines.
17366         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17367         gomp_team_barrier_cancel): New functions.
17368         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17369         argument.
17370         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17371         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17372         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17373         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17374         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17375         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17376         (gomp_barrier_t): Add cancellable field.
17377         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17378         gomp_team_barrier_cancel): New prototypes.
17379         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17380         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17381         gomp_team_barrier_cancelled): New inline functions.
17382         (gomp_barrier_wait_start, gomp_barrier_last_thread,
17383         gomp_team_barrier_set_task_pending,
17384         gomp_team_barrier_clear_task_pending,
17385         gomp_team_barrier_set_waiting_for_tasks,
17386         gomp_team_barrier_waiting_for_tasks,
17387         gomp_team_barrier_done): Use BAR_* defines.
17388         * barrier.c (GOMP_barrier_cancel): New function.
17389         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17390         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17391         omp_proc_bind_spread): New params.
17392         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17393         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17394         omp_get_team_num, omp_is_initial_device): New externals.
17395         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17396         New functions.
17397         (gomp_resolve_num_threads): Adjust for thread_limit now being in
17398         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17399         infinity.  If not nested, just return minimum of max_num_threads
17400         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17401         to the returned value.  Otherwise, don't update atomically
17402         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17403         (GOMP_parallel_end): Adjust for thread_limit now being in
17404         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17405         infinity.  Adjust threads_busy in the pool rather than
17406         gomp_remaining_threads_count.  Remember team->nthreads and call
17407         gomp_team_end before adjusting threads_busy, if not nested
17408         afterwards, just set it to 1 non-atomically.  Add ialias.
17409         (GOMP_parallel_start): Adjust gomp_team_start caller.
17410         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17411         * testsuite/libgomp.c/affinity-1.c: New test.
17412         * testsuite/libgomp.c/atomic-15.c: New test.
17413         * testsuite/libgomp.c/atomic-16.c: New test.
17414         * testsuite/libgomp.c/atomic-17.c: New test.
17415         * testsuite/libgomp.c/cancel-for-1.c: New test.
17416         * testsuite/libgomp.c/cancel-for-2.c: New test.
17417         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17418         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17419         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17420         * testsuite/libgomp.c/cancel-sections-1.c: New test.
17421         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17422         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17423         * testsuite/libgomp.c/depend-1.c: New test.
17424         * testsuite/libgomp.c/depend-2.c: New test.
17425         * testsuite/libgomp.c/depend-3.c: New test.
17426         * testsuite/libgomp.c/depend-4.c: New test.
17427         * testsuite/libgomp.c/for-1.c: New test.
17428         * testsuite/libgomp.c/for-1.h: New file.
17429         * testsuite/libgomp.c/for-2.c: New test.
17430         * testsuite/libgomp.c/for-2.h: New file.
17431         * testsuite/libgomp.c/for-3.c: New test.
17432         * testsuite/libgomp.c/pr58392.c: New test.
17433         * testsuite/libgomp.c/simd-1.c: New test.
17434         * testsuite/libgomp.c/simd-2.c: New test.
17435         * testsuite/libgomp.c/simd-3.c: New test.
17436         * testsuite/libgomp.c/simd-4.c: New test.
17437         * testsuite/libgomp.c/simd-5.c: New test.
17438         * testsuite/libgomp.c/simd-6.c: New test.
17439         * testsuite/libgomp.c/target-1.c: New test.
17440         * testsuite/libgomp.c/target-2.c: New test.
17441         * testsuite/libgomp.c/target-3.c: New test.
17442         * testsuite/libgomp.c/target-4.c: New test.
17443         * testsuite/libgomp.c/target-5.c: New test.
17444         * testsuite/libgomp.c/target-6.c: New test.
17445         * testsuite/libgomp.c/target-7.c: New test.
17446         * testsuite/libgomp.c/taskgroup-1.c: New test.
17447         * testsuite/libgomp.c/thread-limit-1.c: New test.
17448         * testsuite/libgomp.c/thread-limit-2.c: New test.
17449         * testsuite/libgomp.c/thread-limit-3.c: New test.
17450         * testsuite/libgomp.c/udr-1.c: New test.
17451         * testsuite/libgomp.c/udr-2.c: New test.
17452         * testsuite/libgomp.c/udr-3.c: New test.
17453         * testsuite/libgomp.c++/affinity-1.C: New test.
17454         * testsuite/libgomp.c++/atomic-10.C: New test.
17455         * testsuite/libgomp.c++/atomic-11.C: New test.
17456         * testsuite/libgomp.c++/atomic-12.C: New test.
17457         * testsuite/libgomp.c++/atomic-13.C: New test.
17458         * testsuite/libgomp.c++/atomic-14.C: New test.
17459         * testsuite/libgomp.c++/atomic-15.C: New test.
17460         * testsuite/libgomp.c++/cancel-for-1.C: New test.
17461         * testsuite/libgomp.c++/cancel-for-2.C: New test.
17462         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17463         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17464         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17465         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17466         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17467         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17468         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17469         * testsuite/libgomp.c++/cancel-test.h: New file.
17470         * testsuite/libgomp.c++/for-9.C: New test.
17471         * testsuite/libgomp.c++/for-10.C: New test.
17472         * testsuite/libgomp.c++/for-11.C: New test.
17473         * testsuite/libgomp.c++/simd-1.C: New test.
17474         * testsuite/libgomp.c++/simd-2.C: New test.
17475         * testsuite/libgomp.c++/simd-3.C: New test.
17476         * testsuite/libgomp.c++/simd-4.C: New test.
17477         * testsuite/libgomp.c++/simd-5.C: New test.
17478         * testsuite/libgomp.c++/simd-6.C: New test.
17479         * testsuite/libgomp.c++/simd-7.C: New test.
17480         * testsuite/libgomp.c++/simd-8.C: New test.
17481         * testsuite/libgomp.c++/target-1.C: New test.
17482         * testsuite/libgomp.c++/target-2.C: New test.
17483         * testsuite/libgomp.c++/target-2-aux.cc: New file.
17484         * testsuite/libgomp.c++/target-3.C: New test.
17485         * testsuite/libgomp.c++/taskgroup-1.C: New test.
17486         * testsuite/libgomp.c++/udr-1.C: New test.
17487         * testsuite/libgomp.c++/udr-2.C: New test.
17488         * testsuite/libgomp.c++/udr-3.C: New test.
17489         * testsuite/libgomp.c++/udr-4.C: New test.
17490         * testsuite/libgomp.c++/udr-5.C: New test.
17491         * testsuite/libgomp.c++/udr-6.C: New test.
17492         * testsuite/libgomp.c++/udr-7.C: New test.
17493         * testsuite/libgomp.c++/udr-8.C: New test.
17494         * testsuite/libgomp.c++/udr-9.C: New test.
17496 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
17498         PR testsuite/57605
17499         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17500         ALWAYS_CFLAGS.
17502 2013-09-20  Alan Modra  <amodra@gmail.com>
17504         * configure: Regenerate.
17506 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17508         * testsuite/libgomp.c/sections-2.c: New test.
17510 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17512         * testsuite/libgomp.fortran/strassen.f90:
17513         Add dg-skip-if aarch64_tiny.
17515 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
17516             Cesar Philippidis  <cesar@codesourcery.com>
17518         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17519         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17520         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17521         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17522         * testsuite/libgomp.graphite/graphite.exp: Likewise.
17523         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17524         Use dg-runtest rather than gfortran-dg-runtest.
17526 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17528         * testsuite/libgomp.c/icv-2.c: Extend current handling of
17529         Linux-based x86 systems to cover all GNU systems.
17530         * testsuite/libgomp.c/lock-3.c: Likewise.
17531         * testsuite/libgomp.c/pr48591.c: Likewise.
17533 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17535         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17536         GNU/Hurd, as done for Linux-based systems.
17538         * config/posix/ptrlock.h: Fix comment.
17540 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17542         PR fortran/57423
17543         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17544         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17545         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17546         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17547         omp_destroy_nest_lock): Correct arguments to match the one in
17548         the OpenMP spec.
17549         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17550         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17551         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17552         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17554 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17556         * testsuite/libgomp.c/loop-13.c: New test.
17557         * testsuite/libgomp.c/loop-14.c: New test.
17558         * testsuite/libgomp.c/loop-15.c: New test.
17559         * testsuite/libgomp.c++/loop-13.C: New test.
17560         * testsuite/libgomp.c++/loop-14.C: New test.
17561         * testsuite/libgomp.c++/loop-15.C: New test.
17563 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17565         PR middle-end/56217
17566         * testsuite/libgomp.c++/pr56217.C: New test.
17568 2013-02-01  Alan Modra  <amodra@gmail.com>
17570         * task.c (GOMP_task, GOMP_taskwait): Comment.
17572 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17573             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17575         PR libgomp/55561
17576         * config/linux/wait.h (do_spin): Use atomic load for addr.
17577         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17578         for intptr and ptrlock.
17579         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17580         for ptrlock.
17582 2013-01-22  Alan Modra  <amodra@gmail.com>
17584         PR libgomp/51376
17585         PR libgomp/56073
17586         * task.c (GOMP_task): Revert 2011-12-09 change.
17587         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17588         barrier to read task->children..
17589         (gomp_barrier_handle_tasks): ..and matching atomic store with
17590         release barrier here when setting parent->children to NULL.
17592 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17593             Tobias Burnus  <burnus@net-b.de>
17595         PR driver/55884
17596         * testsuite/libgomp.fortran/fortran.exp: Use
17597         -fintrinsic-modules-path= instead of
17598         -fintrinsic-modules-path.
17600 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17602         Update copyright years.
17604 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17606         * testsuite/libgomp.fortran/fortran.exp: Set
17607         -fintrinsic-modules-path.
17609 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17611         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17612         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17614 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17616         PR libgomp/55411
17617         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17618         if pool had any threads_used.
17620 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17622         * testsuite/libgomp.c++/pr24455.C: Use
17623         -Wl,-undefined,dynamic_lookup on darwin.
17625 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17627         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17629 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17631         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17633 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17634             Jim MacArthur  <jim.macarthur@arm.com>
17635             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17636             Nigel Stephens  <nigel.stephens@arm.com>
17637             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17638             Richard Earnshaw  <rearnsha@arm.com>
17639             Sofiane Naci  <sofiane.naci@arm.com>
17640             Stephen Thomas  <stephen.thomas@arm.com>
17641             Tejas Belagod  <tejas.belagod@arm.com>
17642             Yufeng Zhang  <yufeng.zhang@arm.com>
17644         * configure.tgt: Add AArch64.
17646 2012-10-04  Jason Merrill  <jason@redhat.com>
17648         * testsuite/libgomp.c++/tls-init1.C: New.
17650 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17652         * configure: Regenerated.
17654 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17656         * config/linux/mips/futex.h (sys_futex0): Change to static
17657         function with noinline, nomips16 attributes under MIPS16. Adjust
17658         asm statement to place 'li v0,SYS_futex' immediately before
17659         syscall insn.
17661 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17663         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17664         conflict with index.html on case-insensitive file systems.
17666 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17668         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17669         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17671 2012-07-02  Richard Guenther  <rguenther@suse.de>
17672             Michael Matz  <matz@suse.de>
17673             Tobias Grosser <tobias@grosser.es>
17674             Sebastian Pop <sebpop@gmail.com>
17676         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17677         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17678         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17679         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17681 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17683         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17685 2012-06-22  Richard Guenther  <rguenther@suse.de>
17687         Merge from graphite branch
17688         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17690         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17691         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17693 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17695         PR middle-end/53580
17696         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17697         use GOMP_barrier () call instead.
17698         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17699         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17700         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17701         call GOMP_barrier instead.
17702         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17704 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17706         PR libgomp/52993
17707         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17708         argument to memset call.
17710 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17712         * configure: Regenerated.
17714 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17716         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17718 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17720         PR bootstrap/52812
17721         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17723 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17725         PR middle-end/52547
17726         * testsuite/libgomp.c/pr52547.c: New test.
17728 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17730         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17732 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17734         * configure.tgt (mips-sgi-irix6*): Remove.
17736 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17738         * configure.tgt (alpha*-dec-osf*): Remove.
17740         * config/osf/sem.h: Remove.
17741         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17743 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17745         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17747 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17749         PR libstdc++/52188
17750         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17751         Remove ENABLE_SYMVERS_SOL2.
17752         * configure: Regenerate.
17753         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17754         (PREPROCESS): New variable.
17755         (libgomp.ver): New target.
17756         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17757         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17758         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17759         Use libgomp.ver.
17760         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17761         * Makefile.in: Regenerate.
17763 2012-02-14  Walter Lee  <walt@tilera.com>
17765         * configure.tgt: Handle tilegx and tilepro.
17766         * config/linux/tile/futex.h: New file.
17768 2012-02-08  Richard Guenther  <rguenther@suse.de>
17770         PR tree-optimization/46886
17771         * testsuite/libgomp.c/pr46886.c: New testcase.
17773 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17775         * config/linux/arm: Remove empty directory.
17776         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17778 2011-12-09  Alan Modra  <amodra@gmail.com>
17780         PR libgomp/51376
17781         * task.c (GOMP_taskwait): Don't access task->children outside of
17782         task_lock mutex region.
17783         (GOMP_task): Likewise.
17785 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17787         PR libgomp/51132
17788         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17789         to file scope.
17790         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17791         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17792         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17793         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17794         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17796 2011-12-02  Alan Modra  <amodra@gmail.com>
17798         * config/linux/affinity.c: Use atomic rather than sync builtin.
17799         * config/linux/lock.c: Likewise.
17800         * config/linux/ptrlock.h: Likewise.
17801         * config/linux/ptrlock.c: Likewise.
17802         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17803         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17804         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17805         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17806         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17807         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17808         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17809         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17810         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17811         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17813 2011-11-30  Alan Modra  <amodra@gmail.com>
17815         PR libgomp/51298
17816         * config/linux/bar.h: Use atomic rather than sync builtins.
17817         * config/linux/bar.c: Likewise.  Add missing acquire
17818         synchronisation on generation field.
17819         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17820         double unlock.
17822 2011-11-30  Alan Modra  <amodra@gmail.com>
17824         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17825         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17826         * config/linux/mutex.h: Use atomic rather than sync builtins.
17827         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17828         * config/linux/omp-lock.h: Comment fix.
17829         * config/linux/arm/mutex.h: Delete.
17830         * config/linux/powerpc/mutex.h: Delete.
17831         * config/linux/ia64/mutex.h: Delete.
17832         * config/linux/mips/mutex.h: Delete.
17834 2011-11-30  Alan Modra  <amodra@gmail.com>
17836         PR libgomp/51249
17837         * config/linux/sem.h: Rewrite.
17838         * config/linux/sem.c: Rewrite.
17840 2011-11-28  Richard Henderson  <rth@redhat.com>
17842         * libgomp.h (enum memmodel): New.
17844 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17846         * configure: Regenerate.
17848 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17850         * config/posix95: Remove empty directory.
17852 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17854         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17856 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17858         PR fortran/49792
17859         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17860         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17862 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17864         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17866 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17868         PR libgomp/49965
17869         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17871 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17873         * config/linux/proc.h: New.
17874         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17875         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17876         (gomp_init_num_threads): Update call to cpuset_popcount.
17877         (get_num_procs): Ditto.
17878         * config/linux/affinity.c (gomp_init_affinity): Call
17879         gomp_cpuset_popcount.
17881 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17883         PR fortran/42041
17884         PR fortran/46752
17885         * omp.h.in (omp_in_final): New prototype.
17886         * omp_lib.f90.in (omp_in_final): New interface.
17887         (omp_integer_kind, omp_logical_kind): Remove
17888         and replace all its uses in the module with 4.
17889         (openmp_version): Change to 201107.
17890         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17891         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17892         kind for the parameters.
17893         (omp_in_final): New external.
17894         (openmp_version): Change to 201107.
17895         * task.c (omp_in_final): New function.
17896         (gomp_init_task): Initialize final_task.
17897         (GOMP_task): Remove unused attribute from flags.  Handle final
17898         tasks.
17899         (GOMP_taskyield): New function.
17900         (omp_in_final): Return true if if (false) or final (true) task
17901         or descendant of final (true).
17902         * fortran.c (omp_in_final_): New function.
17903         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17904         (GOMP_3.0): Export GOMP_taskyield.
17905         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17906         variables.
17907         (parse_unsigned_long_list): New function.
17908         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17909         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17910         even if parse_affinity returned false.
17911         * config/linux/affinity.c (gomp_init_affinity): Handle
17912         gomp_cpu_affinity_len == 0.
17913         * libgomp_g.h (GOMP_taskyield): New prototype.
17914         * libgomp.h (struct gomp_task): Add final_task field.
17915         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17916         * team.c (gomp_team_start): Override new task's nthreads_var icv
17917         if list form OMP_NUM_THREADS has been used and it has value for
17918         the new nesting level.
17920         * testsuite/libgomp.c/atomic-11.c: New test.
17921         * testsuite/libgomp.c/atomic-12.c: New test.
17922         * testsuite/libgomp.c/atomic-13.c: New test.
17923         * testsuite/libgomp.c/atomic-14.c: New test.
17924         * testsuite/libgomp.c/reduction-6.c: New test.
17925         * testsuite/libgomp.c/task-5.c: New test.
17926         * testsuite/libgomp.c++/atomic-2.C: New test.
17927         * testsuite/libgomp.c++/atomic-3.C: New test.
17928         * testsuite/libgomp.c++/atomic-4.C: New test.
17929         * testsuite/libgomp.c++/atomic-5.C: New test.
17930         * testsuite/libgomp.c++/atomic-6.C: New test.
17931         * testsuite/libgomp.c++/atomic-7.C: New test.
17932         * testsuite/libgomp.c++/atomic-8.C: New test.
17933         * testsuite/libgomp.c++/atomic-9.C: New test.
17934         * testsuite/libgomp.c++/task-8.C: New test.
17935         * testsuite/libgomp.c++/reduction-4.C: New test.
17936         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17937         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17938         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17939         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17940         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17941         * testsuite/libgomp.fortran/pointer1.f90: New test.
17942         * testsuite/libgomp.fortran/pointer2.f90: New test.
17943         * testsuite/libgomp.fortran/task4.f90: New test.
17945 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17947         * libgomp.texi: Update OpenMP spec references to 3.1.
17948         (omp_in_final,OMP_PROC_BIND): New sections.
17949         (OMP_NUM_THREADS): Document that the value can be now a list.
17950         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17952 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17954         * config/linux/x86/futex.h: Check __x86_64__ instead of
17955         __LP64__.
17957 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17959         PR middle-end/49897
17960         PR middle-end/49898
17961         * testsuite/libgomp.c/pr49897-1.c: New test.
17962         * testsuite/libgomp.c/pr49897-2.c: New test.
17963         * testsuite/libgomp.c/pr49898-1.c: New test.
17964         * testsuite/libgomp.c/pr49898-2.c: New test.
17966 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17968         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17969         for ia32 instead of ilp32.
17971         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17972         * testsuite/libgomp.c/atomic-6.c: Likewise.
17974 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17976         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17977         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17979 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17981         PR libgomp/45351
17982         * config/osf/sem.h: New file.
17983         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17985 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17987         PR target/49541
17988         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17989         ldflags.
17991 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17993         * config/linux/wait.h (do_spin): New inline, largely copied
17994         from do_wait, just don't do futex_wait here, instead return true if
17995         it should be done.
17996         (do_wait): Implement using do_spin.
17997         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17998         to prototype.
17999         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18000         __sync_bool_compare_and_swap, pass the oldval to
18001         gomp_mutex_lock_slow.
18002         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18003         If all mutex contenders are just spinning and not sleeping, don't
18004         change state to 2 unnecessarily.  Optimize the loop when state has
18005         already become 2 to use just one atomic operation per loop instead
18006         of two.
18007         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18008         to prototype.
18009         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18010         __sync_bool_compare_and_swap, pass the oldval to
18011         gomp_mutex_lock_slow.
18013 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18015         PR libgomp/49490
18016         * iter.c (gomp_iter_static_next): For chunk size 0
18017         only use n ceil/ nthreads size for the first
18018         n % nthreads threads in the team instead of
18019         all threads except for the last few ones which
18020         get less work or none at all.
18021         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18022         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18023         chunk argument, set run_sched_modifier to 0 for static
18024         resp. 1 for other kinds.  If chunk argument is 0
18025         and not static, set value to 1.
18027 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
18029         PR c++/49043
18030         * testsuite/libgomp.c++/pr49043.C: New test.
18032         PR c++/48869
18033         * testsuite/libgomp.c++/pr48869.C: New test.
18035 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18037         PR fortran/48894
18038         * fortran.c: Include limits.h.
18039         (TO_INT): Define.
18040         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18041         *set.
18042         (omp_set_num_threads_8_, omp_set_schedule_8_,
18043         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18044         omp_get_team_size_8_): Use TO_INT macro.
18045         * testsuite/libgomp.fortran/pr48894.f90: New test.
18047 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18049         PR middle-end/48591
18050         * testsuite/libgomp.c/pr48591.c: New test.
18052 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18054         PR bootstrap/48135
18055         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18056         * configure: Regenerate.
18058 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18060         PR fortran/47886
18061         * testsuite/libgomp.fortran/task3.f90: New test.
18063 2011-02-24  Tobias Burnus  <burnus@net-b.de>
18065         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18067 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
18069         PR libgomp/47854
18070         * libgomp.texi (omp_get_wtime): Don't say time in the past
18071         must be Unix Epoch.
18073 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18075         PR libgomp/47804
18076         * testsuite/libgomp.fortran/fortran.exp: Check for both
18077         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
18078         but $blddir != "", still append ${blddir}/${lang_library_path}
18079         to ld_library_path.
18081 2011-02-16  Tobias Burnus  <burnus@net-b.de>
18083         PR libgomp/47758
18084         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18085         of libquadmath.a before adding its libpath to ldflags.
18087 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
18089         PR libgomp/47731
18090         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18091         to FUTEX_WAIT futex syscall.
18092         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18094 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18096         * configure: Regenerate.
18098 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
18100         PR libstdc++/36104
18101         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18103 2011-01-16  Gerald Pfeifer
18105         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18107 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
18109         PR fortran/46874
18110         * libgomp.fortran/allocatable6.f90: New test.
18112 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18114         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18115         * configure: Regenerate.
18117 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18119         PR target/40125
18120         PR lto/46695
18121         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18122         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18123         * aclocal.m4: Regenerate.
18124         * configure: Regenerate.
18125         * Makefile.in: Regenerate.
18126         * testsuite/Makefile.in: Regenerate.
18128 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
18130         PR fortran/46753
18131         * libgomp.fortran/pr46753.f90: New test.
18133         PR libgomp/43706
18134         * env.c (initialize_env): Default to spin count 300000
18135         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18136         is specified.
18138         PR libgomp/45240
18139         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18140         at the end if sync builtins aren't supported.
18142 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18144         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18146 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18148         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18150 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
18152         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18154 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18155             Tobias Burnus  <burnus@net-b.de>
18157         PR fortran/32049
18158         * configure.ac:
18159         * configure: Regenerate.
18161 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18163         * config/linux/futex.h: New.
18164         * config/linux/arm/mutex.h: New.
18165         * configure.tgt (arm*-*-linux*): Add config path.
18167 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
18169         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18171 2010-09-23  Tobias Burnus  <burnus@net-b.de>
18173         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18174         Change Fortran datatype to LOGICAL.
18175         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18176         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18178 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18180         * configure: Regenerate.
18182 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
18184         * libgomp.texi: Add function keyword to a couple of Fortran
18185         interfaces, use integer instead of int for Fortran.
18187 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
18189         * libgomp.texi: Fix spelling and pasto problems throughout.
18190         Adjust prototypes to match code.
18192 2010-07-24  Tobias Burnus  <burnus@net-b.de>
18194         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18195         silence -fwhole-file warning.
18197 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18199         * configure.tgt (*-*-solaris2.[56]*): Removed.
18201 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18203         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18204         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18205         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18206         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18207         targetting solaris2*.
18208         * configure: Regenerate.
18209         * config.h.in: Regenerate.
18211         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18212         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18213         Add libgomp_version_dep.
18214         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18215         versioning.
18216         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18217         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18218         * Makefile.in: Regenerate.
18220         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18221         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18222         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18223         to common block, protected by
18224         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18226 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
18228         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
18230 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
18232         PR bootstrap/43170
18233         * configure: Regenerate.
18235 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18237         PR other/43620
18238         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18239         * configure: Regenerate.
18240         * Makefile.in: Regenerate.
18241         * testsuite/Makefile.in: Regenerate.
18243 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18245         PR c/43893
18246         * testsuite/libgomp.c/pr43893.c: New test.
18247         * testsuite/libgomp.c++/pr43893.C: New test.
18249 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18251         PR middle-end/43570
18252         * testsuite/libgomp.fortran/vla8.f90: New test.
18254 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18256         PR libgomp/43706
18257         * config/linux/affinity.c (gomp_init_affinity): Decrease
18258         gomp_available_cpus if affinity mask confines the process to fewer
18259         CPUs.
18260         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18261         non-NULL, just return gomp_available_cpus.
18263         PR libgomp/43569
18264         * sections.c (gomp_sections_init): Initialize ws->mode.
18266 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18268         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18269         not unused bar variable.
18270         * configure: Regenerate.
18272 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18274         * Makefile.in: Regenerate.
18275         * aclocal.m4: Regenerate.
18276         * testsuite/Makefile.in: Regenerate.
18278 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18280         PR libgomp/42942
18281         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18282         (initialize_env): Adjust callers.
18283         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18284         when the argument is 0.
18286         * testsuite/libgomp.c/pr42942.c: New test.
18288 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18290         PR middle-end/42644
18291         PR middle-end/42130
18292         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18293         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18295 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18297         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18298         * testsuite/libgomp.c++/task-6.C: Likewise.
18300 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
18302         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18304 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
18306         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18307         * configure: Regenerate.
18309 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18311         PR fortran/42866
18312         * testsuite/libgomp.fortran/allocatable5.f90: New test.
18314 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
18316         * configure.ac: Test for executability of GFORTRAN.
18317         * configure: Regenerate.
18319 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18321         * configure: Regenerate.
18323 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18325         PR libgomp/42602
18326         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18328 2010-01-03  Richard Guenther  <rguenther@suse.de>
18330         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18332 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
18334         * testsuite/libgomp.graphite/pr4118.c: New.
18336 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18338         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18339         for darwin, protect the test with require-effective-target tls_runtime.
18340         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18342 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18344         PR target/41605
18345         * testsuite/lib/libgomp.exp: Provide -B options to allow for
18346         link spec %s substitutions for static libraries.
18348 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
18350         PR testsuite/42135
18351         * libgomp.graphite/force-parallel-2.c: Reduce array size.
18353 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18355         * Makefile.in: Regenerate.
18356         * configure: Regenerate.
18357         * testsuite/Makefile.in: Regenerate.
18359 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18361         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18362         settings for LC_ALL and LANG.
18364 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
18366         PR fortran/42162
18367         * testsuite/libgomp.fortran/pr42162.f90: New test.
18369 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
18371         PR middle-end/42029
18372         * testsuite/libgomp.c/pr42029.c: New test.
18374 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
18376         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18377         *s.  Accept ld version without text in ()s.
18378         * configure: Regenerated.
18380 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
18382         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18384 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18386         PR libgomp/41418
18387         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18388         or a hyphen (happens with fortran language disabled).
18389         * configure: Regenerate.
18391 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18393         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18394         use sed script portable to Solaris /bin/sed for extracting ld
18395         version.
18396         * configure: Regenerate.
18398 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
18400         * testsuite/libgomp.graphite/bounds.c: New test.
18402 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18404         * Makefile.am (libgomp_la_LINK): New.
18405         * Makefile.in: Regenerate.
18407 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18409         * configure.ac (AC_PREREQ): Bump to 2.64.
18411 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18413         * Makefile.am (install-html, install-pdf): Remove.
18414         * Makefile.in: Regenerate.
18416         * Makefile.in: Regenerate.
18417         * aclocal.m4: Regenerate.
18418         * config.h.in: Regenerate.
18419         * configure: Regenerate.
18420         * testsuite/Makefile.in: Regenerate.
18422 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18424         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18425         * Makefile.in: Regenerate.
18427 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
18429         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18430         * Makefile.in: Regenerate.
18432 2009-08-19  Tobias Burnus  <burnus@net-b.de>
18434         PR fortran/41102
18435         omp_lib.h.in: Fix -std=f95 errors.
18437 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
18439         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18440         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18441         * testsuite/libgomp.graphite/graphite.exp: New.
18443 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
18445         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18446         only build.
18448 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
18450         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18451         needed memory barrier semantics.
18452         * config/linux/mips/mutex.h: New file.
18454 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18456         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18458 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
18460         * configure: Regenerate.
18462 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
18464         PR testsuite/40699
18465         PR testsuite/40707
18466         PR testsuite/40709
18467         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18468         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18469         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18471 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
18473         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18474         options when choosing a multilib.
18476 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
18478         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18479         ld_library_path.  Use add_path.  Add just find_libgcc_s to
18480         ld_library_path, not every libgcc multilib directory.
18481         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18482         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18483         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18484         Use add_path.
18485         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18487 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
18489         * Makefile.am (LTLDFLAGS): Define.
18490         (LINK): Define.
18491         * Makefile.in: Regenerate.
18493 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
18495         PR fortran/39718
18496         * testsuite/libgomp.fortran/fortran.exp: Don't link with
18497         libgfortranbegin, check existence of libgfortran.a instead of
18498         libgfortranbegin.a.
18500 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18502         PR libgomp/40174
18503         * team.c (gomp_thread_start): Destroy thr->release semaphore.
18504         (gomp_free_pool_helper): Likewise.
18506 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
18507             Jakub Jelinek  <jakub@redhat.com>
18509         PR fortran/35423
18510         * testsuite/libgomp.fortran/workshare2.f90: New test.
18512 2009-04-09  Nick Clifton  <nickc@redhat.com>
18514         * iter.c: Change copyright header to refer to version 3 of the
18515         GNU General Public License with version 3.1 of the GCC Runtime
18516         Library Exception and to point readers at the COPYING3 and
18517         COPYING3.RUNTIME files and the FSF's license web page.
18518         * alloc.c: Likewise.
18519         * barrier.c: Likewise.
18520         * config/bsd/proc.c: Likewise.
18521         * config/linux/affinity.c: Likewise.
18522         * config/linux/alpha/futex.h: Likewise.
18523         * config/linux/bar.c: Likewise.
18524         * config/linux/bar.h: Likewise.
18525         * config/linux/ia64/futex.h: Likewise.
18526         * config/linux/ia64/mutex.h: Likewise.
18527         * config/linux/lock.c: Likewise.
18528         * config/linux/mips/futex.h: Likewise.
18529         * config/linux/mutex.c: Likewise.
18530         * config/linux/mutex.h: Likewise.
18531         * config/linux/powerpc/futex.h: Likewise.
18532         * config/linux/proc.c: Likewise.
18533         * config/linux/ptrlock.c: Likewise.
18534         * config/linux/ptrlock.h: Likewise.
18535         * config/linux/s390/futex.h: Likewise.
18536         * config/linux/sem.c: Likewise.
18537         * config/linux/sem.h: Likewise.
18538         * config/linux/sparc/futex.h: Likewise.
18539         * config/linux/wait.h: Likewise.
18540         * config/linux/x86/futex.h: Likewise.
18541         * config/mingw32/proc.c: Likewise.
18542         * config/mingw32/time.c: Likewise.
18543         * config/posix/affinity.c: Likewise.
18544         * config/posix/bar.c: Likewise.
18545         * config/posix/bar.h: Likewise.
18546         * config/posix/lock.c: Likewise.
18547         * config/posix/mutex.h: Likewise.
18548         * config/posix/proc.c: Likewise.
18549         * config/posix/ptrlock.h: Likewise.
18550         * config/posix/sem.c: Likewise.
18551         * config/posix/sem.h: Likewise.
18552         * config/posix/time.c: Likewise.
18553         * config/posix95/lock.c: Likewise.
18554         * critical.c: Likewise.
18555         * env.c: Likewise.
18556         * error.c: Likewise.
18557         * fortran.c: Likewise.
18558         * iter_ull.c: Likewise.
18559         * libgomp.h: Likewise.
18560         * libgomp_f.h.in: Likewise.
18561         * libgomp_g.h: Likewise.
18562         * loop.c: Likewise.
18563         * loop_ull.c: Likewise.
18564         * omp.h.in: Likewise.
18565         * omp_lib.f90.in: Likewise.
18566         * omp_lib.h.in: Likewise.
18567         * ordered.c: Likewise.
18568         * parallel.c: Likewise.
18569         * sections.c: Likewise.
18570         * single.c: Likewise.
18571         * task.c: Likewise.
18572         * team.c: Likewise.
18573         * work.c: Likewise.
18575 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18577         * testsuite/config/default.exp: Change copyright header to refer to
18578         version 3 of the GNU General Public License and to point readers
18579         at the COPYING3 file and the FSF's license web page.
18581 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18583         PR middle-end/39573
18584         * libgomp.c++/pr39573.C: New test.
18586 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18588         PR other/39591
18589         * testsuite/libgomp.c/pr39591-1.c: New test.
18590         * testsuite/libgomp.c/pr39591-2.c: New test.
18591         * testsuite/libgomp.c/pr39591-3.c: New test.
18593 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18595         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18596         * testsuite/libgomp.c/atomic-6.c: Ditto.
18598 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18600         PR c/39495
18601         * testsuite/libgomp.c/loop-12.c: New test.
18602         * testsuite/libgomp.c/loop-11.c: New test.
18603         * testsuite/libgomp.c++/loop-11.C: New test.
18604         * testsuite/libgomp.c++/loop-12.C: New test.
18605         * testsuite/libgomp.c++/for-8.C: New test.
18607 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18609         * configure: Regenerate.
18611 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18613         PR middle-end/39154
18614         * testsuite/libgomp.c/pr39154.c: New test.
18616 2009-01-30  Ian Lance Taylor  <iant@google.com>
18618         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18619         libgomp_ld_is_gold.  Get gold version number.
18620         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18621         * configure: Rebuild.
18623 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18625         * testsuite/lib/libgomp.exp: Add -B option for targets that
18626         use libgfortran.a%s in their specs.
18628 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18630         PR libgomp/38086
18631         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18632         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18633         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18634         * configure: Regenerated.
18635         * config.h.in: Likewise.
18637 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18639         PR c++/38650
18640         * testsuite/libgomp.c/pr38650.c: New test.
18641         * testsuite/libgomp.c++/pr38650.C: New test.
18643 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18645         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18647 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18649         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18651 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18653         * configure: Regenerate.
18655 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18657         PR middle-end/36802
18658         * testsuite/libgomp.c/pr36802-1.c: New test.
18659         * testsuite/libgomp.c/pr36802-2.c: New test.
18660         * testsuite/libgomp.c/pr36802-3.c: New test.
18662 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18664         PR libgomp/38270
18665         * config/linux/powerpc/mutex.h: New.
18667 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18669         PR c++/38257
18670         * testsuite/libgomp.c++/for-7.C: New test.
18672         PR c++/38348
18673         * testsuite/libgomp.c++/for-6.C: New test.
18675 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18677         PR testsuite/28870
18678         * testsuite/lib/libgomp.exp: Include new timeout library files.
18679         (libgomp_target_compile): Set timeout value from new proc.
18681 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18683         PR libgomp/37938
18684         * config/linux/ia64/mutex.h: New.
18686 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18688         PR libgomp/37935
18689         * libgomp.texi (Runtime library routines, environment variables):
18690         Update for OpenMP version 3.0.
18692 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18693             Steve Ellcey  <sje@cup.hp.com>
18695         * configure: Regenerate for new libtool.
18696         * Makefile.in: Ditto.
18697         * testsuite/Makefile.in: Ditto.
18699 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18700             Andreas Tobler  <a.tobler@schweiz.org>
18702         * config/bsd/proc.c: New file.
18703         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18704         * configure.ac: Check for header <sys/sysctl.h>
18705         * configure: Regenerate.
18706         * config.h.in: Likewise.
18708 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18710         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18712 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18714         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18715         * Makefile.in: Regenerated.
18716         * testsuite/Makefile.in: Regenerated.
18718 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18720         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18721         depend on blddir if blddir exists.
18722         (libgomp_target_compile): Likewise.
18723         * testsuite/libgomp.c++/c++.exp: Likewise.
18724         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18726 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18728         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18729         Do not list GPL as Invariant Section.
18731 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18732             Chao-ying Fu  <fu@mips.com>
18734         * configure.tgt: Enable futex for MIPS.
18735         * config/linux/mips/futex.h: New file.
18737 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18739         * team.c (gomp_team_end): Free team immediately if it has
18740         just one thread.
18742 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18744         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18745         * testsuite/libgomp.fortran/fortran.exp: Same.
18746         * testsuite/libgomp.c/c.exp: Same.
18747         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18748         directory to library path first.
18750 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18752         * env.c (parse_stacksize): Add cast to avoid warning.
18753         (parse_spincount): Likewise.
18755 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18757         * testsuite/libgomp.c/loop-10.c: New test.
18758         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18759         * libgomp.c++/loop-6.C (main): Likewise.
18761         PR debug/36617
18762         * testsuite/libgomp.c/debug-1.c: New test.
18764 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18766         * testsuite/libgomp.c/nqueens-1.c: New test.
18768         PR c++/36523
18769         * testsuite/libgomp.c++/task-7.C: New function.
18771 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18773         * configure: Regenerate.
18775 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18777         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18778         mutex when HAVE_SYNC_BUILTINS isn't defined.
18780 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18782         * libgomp.texi (omp_test_lock): Fix typo.
18784 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18786         * omp_lib.f90.in: Add "implicit none".
18788 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18790         PR middle-end/36506
18791         * testsuite/libgomp.c/reduction-5.c: New test.
18793 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18795         * libgomp.h (struct gomp_task): Add in_tied_task field.
18796         * task.c (gomp_init_task): Initialize it.
18797         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18798         unconditionally.  Don't call gomp_team_barrier_wake if
18799         current task is implicit or if(0) from implicit and number of
18800         running tasks is equal to nthreads - 1.
18802         PR libgomp/36471
18803         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18804         omp_get_team_size_8): Fix pastos.
18806         PR libgomp/36469
18807         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18808         * configure: Regenerated.
18809         * config.h.in: Regenerated.
18810         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18811         defined.
18813 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18815         PR bootstrap/36452
18816         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18817         (GOMP_loop_ull_dynamic_start): Likewise.
18818         (GOMP_loop_ull_guided_start): Likewise.
18819         (GOMP_loop_ull_ordered_static_start): Likewise.
18820         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18821         (GOMP_loop_ull_ordered_guided_start): Likewise.
18823 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18824             Richard Henderson  <rth@redhat.com>
18825             Ulrich Drepper  <drepper@redhat.com>
18826             Jakob Blomer  <jakob.blomer@ira.uka.de>
18828         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18829         Substitute also OMP_*LOCK_25*.
18830         * configure: Regenerated.
18831         * config.h.in: Regenerated.
18832         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18833         ptrlock.c and task.c.
18834         * Makefile.in: Regenerated.
18835         * testsuite/Makefile.in: Regenerated.
18836         * task.c: New file.
18837         * loop_ull.c: New file.
18838         * iter_ull.c: New file.
18839         * libgomp.h: Include ptrlock.h.
18840         (enum gomp_task_kind): New type.
18841         (struct gomp_team): Add task_lock, task_queue, task_count,
18842         task_running_count, single_count fields.  Add
18843         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18844         Remove work_share_lock, generation_mask,
18845         oldest_live_gen, num_live_gen and init_work_shares fields, add
18846         work work_share_list_alloc, work_share_list_free and work_share_chunk
18847         fields.  Change work_shares from pointer to pointers into an array.
18848         Change ordered_release field into gomp_sem_t ** from flexible array
18849         member.  Add implicit_task and initial_work_shares fields.
18850         Move close to the end of the struct.
18851         (struct gomp_team_state): Add single_count, last_work_share,
18852         active_level and level fields, remove work_share_generation.
18853         (gomp_barrier_handle_tasks): New prototype.
18854         (gomp_finish_task): New inline function.
18855         (struct gomp_work_share): Move chunk_size, end, incr into
18856         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18857         next_ll fields.  Reshuffle fields.  Add next_alloc,
18858         next_ws, next_free and inline_ordered_team_ids fields, change
18859         ordered_team_ids into pointer from flexible array member.
18860         Add mode field.  Put lock and next into a different cache line
18861         from most of the write-once fields.
18862         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18863         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18864         gomp_iter_ull_guided_next): New prototypes.
18865         (gomp_new_icv): New prototype.
18866         (struct gomp_thread): Add thread_pool and task fields.
18867         (struct gomp_thread_pool): New type.
18868         (gomp_new_team): New prototype.
18869         (gomp_team_start): Change type of last argument.
18870         (gomp_new_work_share): Removed.
18871         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18872         (gomp_work_share_init_done): New static inline.
18873         (gomp_throttled_spin_count_var, gomp_available_cpus,
18874         gomp_managed_threads): New extern decls.
18875         (gomp_init_task): New prototype.
18876         (gomp_spin_count_var): New extern var decl.
18877         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18878         or no alias support, or if not PIC.
18879         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18880         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18881         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18882         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18883         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18884         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18885         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18886         gomp_test_nest_lock_25): New prototypes.
18887         (omp_lock_symver, strong_alias): Define.
18888         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18889         decls.
18890         (gomp_end_task): New.
18891         (struct gomp_task_icv, gomp_global_icv): New.
18892         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18893         (struct gomp_task): New.
18894         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18895         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18896         (gomp_icv): New.
18897         (gomp_schedule_type): Reorder enum to match
18898         omp_sched_t.
18899         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18900         fields.
18901         (gomp_thread_start): Add gomp_team_barrier_wait call.
18902         For non-nested case remove clearing of docked thread thr fields.
18903         Use pool fields instead of global gomp_* variables.  Use
18904         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18905         Create tasks for each member thread.
18906         (free_team): Only destroy team barrier, task_lock here and free it.
18907         (gomp_free_thread): Free last_team if non-NULL.
18908         (gomp_team_end): Call gomp_team_barrier_wait instead of
18909         gomp_barrier_wait.  For nested case call one extra
18910         gomp_barrier_wait.  Move here some destruction from free_team.
18911         Call free_team on pool->last_team if any, rather than freeing
18912         current team.  Destroy work_share_list_free_lock ifndef
18913         HAVE_SYNC_BUILTINS.
18914         (gomp_new_icv): New function.
18915         (gomp_threads, gomp_threads_size, gomp_threads_used,
18916         gomp_threads_dock): Removed.
18917         (gomp_thread_destructor): New variable.
18918         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18919         functions.
18920         (gomp_team_start): Create new pool if current thread doesn't have
18921         one.  Use pool fields instead of global gomp_* variables.
18922         Initialize thread_pool field for new threads.  Clear single_count.
18923         Change last argument from ws to team, don't create
18924         new team, set ts.work_share to &team->work_shares[0] and clear
18925         ts.last_work_share.  Don't clear ts.work_share_generation.
18926         If number of threads changed, adjust atomically gomp_managed_threads.
18927         Use gomp_init_task instead of gomp_new_task,
18928         set thr->task to the corresponding implicit_task array entry.
18929         Create tasks for each member thread.  Initialize ts.level.
18930         (initialize_team): Call pthread_key_create on
18931         gomp_thread_destructor.
18932         (team_destructor): New function.
18933         (new_team): Removed.
18934         (gomp_new_team): New function.
18935         (free_team): Free gomp_work_share blocks chained through next_alloc,
18936         instead of freeing work_shares and destroying work_share_lock.
18937         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18938         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18939         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18940         of gomp_barrier_wait.
18941         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18942         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18943         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18944         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18945         of gomp_barrier_wait.
18946         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18947         gomp_work_share_init_done if gomp_work_share_start returned true.
18948         Don't unlock ws->lock.
18949         * work.c: Include stddef.h.
18950         (free_work_share): Use work_share_list_free_lock instead
18951         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18952         Call gomp_fini_work_share and then either free ws if orphaned, or
18953         put it into work_share_list_free list of the current team.
18954         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18955         functions.
18956         (gomp_work_share_start, gomp_work_share_end,
18957         gomp_work_share_end_nowait): Rewritten.
18958         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18959         (openmp_version): Set to 200805.
18960         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18961         omp_sched_guided, omp_sched_auto): New parameters.
18962         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18963         omp_set_max_active_levels, omp_get_max_active_levels,
18964         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18965         omp_get_active_level): New interfaces.
18966         * omp_lib.h.in (openmp_version): Set to 200805.
18967         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18968         omp_sched_guided, omp_sched_auto): New parameters.
18969         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18970         omp_set_max_active_levels, omp_get_max_active_levels,
18971         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18972         omp_get_active_level): New externals.
18973         * loop.c: Include limits.h.
18974         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18975         GFS_AUTO.
18976         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18977         Likewise.  Use gomp_icv.
18978         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18979         ts.static_trip here.
18980         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18981         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18982         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18983         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18984         don't unlock ws->lock, otherwise lock it.
18985         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18986         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18987         (gomp_parallel_loop_start): Call gomp_new_team instead of
18988         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18989         Adjust gomp_team_start caller.  Pass 0 as second argument to
18990         gomp_resolve_num_threads.
18991         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18992         If adding ws->chunk_size nthreads + 1 times after end won't
18993         overflow, set ws->mode to 1.
18994         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18995         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18996         GOMP_loop_ull_ordered_static_start,
18997         GOMP_loop_ull_ordered_dynamic_start,
18998         GOMP_loop_ull_ordered_guided_start,
18999         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19000         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19001         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19002         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19003         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19004         prototypes.
19005         * libgomp.map: Export lock routines also @@OMP_2.0.
19006         (GOMP_loop_ordered_dynamic_first,
19007         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19008         GOMP_loop_ordered_static_first): Remove.
19009         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19010         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19011         GOMP_loop_ull_ordered_dynamic_next,
19012         GOMP_loop_ull_ordered_dynamic_start,
19013         GOMP_loop_ull_ordered_guided_next,
19014         GOMP_loop_ull_ordered_guided_start,
19015         GOMP_loop_ull_ordered_runtime_next,
19016         GOMP_loop_ull_ordered_runtime_start,
19017         GOMP_loop_ull_ordered_static_next,
19018         GOMP_loop_ull_ordered_static_start,
19019         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19020         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19021         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19022         (omp_set_schedule, omp_get_schedule,
19023         omp_get_thread_limit, omp_set_max_active_levels,
19024         omp_get_max_active_levels, omp_get_level,
19025         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19026         omp_set_schedule_, omp_set_schedule_8_,
19027         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19028         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19029         omp_get_max_active_levels_, omp_get_level_,
19030         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19031         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19032         New exports @@OMP_3.0.
19033         * omp.h.in (omp_sched_t): New type.
19034         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19035         omp_set_max_active_levels, omp_get_max_active_levels,
19036         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19037         omp_get_active_level): New prototypes.
19038         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19039         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19040         gomp_thread_limit_var, gomp_remaining_threads_count,
19041         gomp_remaining_threads_lock): New variables.
19042         (parse_spincount): New function.
19043         (initialize_env): Call gomp_init_num_threads unconditionally.
19044         Initialize gomp_available_cpus.  Call parse_spincount,
19045         initialize gomp_{,throttled_}spin_count_var
19046         depending on presence and value of OMP_WAIT_POLICY and
19047         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
19048         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19049         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
19050         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
19051         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
19052         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19053         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19054         (gomp_global_icv): New.
19055         (parse_schedule): Use it.  Parse "auto".
19056         (omp_set_num_threads): Use gomp_icv.
19057         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19058         Likewise.
19059         (omp_get_max_threads): Move from parallel.c.
19060         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19061         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19062         add ialias.
19063         (parse_stacksize, parse_wait_policy): New functions.
19064         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19065         both wrappers for compatibility and new locks.
19066         (omp_set_schedule, omp_get_schedule,
19067         omp_get_thread_limit, omp_set_max_active_levels,
19068         omp_get_max_active_levels, omp_get_level,
19069         omp_get_ancestor_thread_num, omp_get_team_size,
19070         omp_get_active_level): New ialias_redirect.
19071         (omp_set_schedule_, omp_set_schedule_8_,
19072         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19073         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19074         omp_get_max_active_levels_, omp_get_level_,
19075         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19076         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19077         New functions.
19078         * parallel.c: Include limits.h.
19079         (gomp_resolve_num_threads): Add count argument.  Rewritten.
19080         (GOMP_parallel_start): Call gomp_new_team and pass that as last
19081         argument to gomp_team_start.  Pass 0 as second argument to
19082         gomp_resolve_num_threads.
19083         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19084         if gomp_thread_limit_var != ULONG_MAX.
19085         (omp_in_parallel): Implement using ts.active_level.
19086         (omp_get_max_threads): Move to env.c.
19087         (omp_get_level, omp_get_ancestor_thread_num,
19088         omp_get_team_size, omp_get_active_level): New functions,
19089         add ialias.
19090         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19091         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
19092         gomp_iter_dynamic_next instead of the _locked variant and don't take
19093         lock around it, otherwise acquire it before calling
19094         gomp_iter_dynamic_next_locked.
19095         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19096         gomp_iter_dynamic_next instead of the _locked variant and don't take
19097         lock around it.
19098         (GOMP_parallel_sections_start): Call gomp_new_team instead of
19099         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
19100         Adjust gomp_team_start caller.  Pass count as second argument to
19101         gomp_resolve_num_threads, don't adjust num_threads after the call.
19102         Use gomp_icv.
19103         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19104         ws->chunk_size by incr.
19105         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
19106         code.
19107         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19108         types.
19109         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19110         (omp_check_defines): Check even the compat defines.
19111         * config/linux/ptrlock.c: New file.
19112         * config/linux/ptrlock.h: New file.
19113         * config/linux/wait.h: New file.
19114         * config/posix/ptrlock.c: New file.
19115         * config/posix/ptrlock.h: New file.
19116         * config/linux/bar.h (gomp_team_barrier_wait,
19117         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19118         (gomp_team_barrier_set_task_pending,
19119         gomp_team_barrier_clear_task_pending,
19120         gomp_team_barrier_set_waiting_for_tasks,
19121         gomp_team_barrier_waiting_for_tasks,
19122         gomp_team_barrier_done): New inlines.
19123         (gomp_barrier_t): Rewritten.
19124         (gomp_barrier_state_t): New typedef.
19125         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19126         gomp_barrier_wait_start): Rewritten.
19127         (gomp_barrier_wait_end): Change second argument to
19128         gomp_barrier_state_t.
19129         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19130         inlines.
19131         * config/linux/bar.c: Include wait.h instead of libgomp.h and
19132         futex.h.
19133         (gomp_barrier_wait_end): Rewritten.
19134         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19135         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19136         * config/posix/bar.h (gomp_barrier_t): Add generation field.
19137         (gomp_barrier_state_t): New typedef.
19138         (gomp_team_barrier_wait,
19139         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19140         (gomp_barrier_wait_start): Or all but low 2 bits from generation
19141         into the return value.  Return gomp_barrier_state_t.
19142         (gomp_team_barrier_set_task_pending,
19143         gomp_team_barrier_clear_task_pending,
19144         gomp_team_barrier_set_waiting_for_tasks,
19145         gomp_team_barrier_waiting_for_tasks,
19146         gomp_team_barrier_done): New inlines.
19147         (gomp_barrier_wait_end): Change second argument to
19148         gomp_barrier_state_t.
19149         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19150         inlines.
19151         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19152         (gomp_barrier_wait_end): Change second argument to
19153         gomp_barrier_state_t.
19154         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19155         gomp_team_barrier_wake): New functions.
19156         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19157         futex.h.
19158         (gomp_futex_wake, gomp_futex_wait): New variables.
19159         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19160         * config/linux/lock.c: Rewrite to make locks task owned,
19161         for backwards compatibility provide the old entrypoints
19162         if symbol versioning.  Include wait.h instead of libgomp.h and
19163         futex.h.
19164         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19165         * config/posix95/lock.c: Rewrite to make locks task owned,
19166         for backwards compatibility provide the old entrypoints
19167         if symbol versioning.
19168         * config/posix/lock.c: Rewrite to make locks task owned,
19169         for backwards compatibility provide the old entrypoints
19170         if symbol versioning.
19171         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19172         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19173         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19174         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19175         (sys_futex0): Return error code.
19176         (futex_wake, futex_wait): If ENOSYS was returned, clear
19177         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19178         (cpu_relax, atomic_write_barrier): New static inlines.
19179         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19180         (futex_wake, futex_wait): If ENOSYS was returned, clear
19181         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19182         (cpu_relax, atomic_write_barrier): New static inlines.
19183         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19184         (sys_futex0): Return error code.
19185         (futex_wake, futex_wait): If ENOSYS was returned, clear
19186         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19187         (cpu_relax, atomic_write_barrier): New static inlines.
19188         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19189         (sys_futex0): Return error code.
19190         (futex_wake, futex_wait): If ENOSYS was returned, clear
19191         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19192         (cpu_relax, atomic_write_barrier): New static inlines.
19193         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19194         (sys_futex0): Return error code.
19195         (futex_wake, futex_wait): If ENOSYS was returned, clear
19196         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19197         (cpu_relax, atomic_write_barrier): New static inlines.
19198         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19199         (sys_futex0): Return error code.
19200         (futex_wake, futex_wait): If ENOSYS was returned, clear
19201         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19202         (cpu_relax, atomic_write_barrier): New static inlines.
19203         * config/linux/sem.c: Include wait.h instead of libgomp.h and
19204         futex.h.
19205         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19206         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19207         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19208         types.
19209         (omp_nest_lock_t): Change owner into void *, add lock field.
19210         * config/posix95/omp-lock.h: Include semaphore.h.
19211         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19212         (omp_lock_t): Use sem_t instead of mutex if semaphores
19213         aren't broken.
19214         (omp_nest_lock_t): Likewise.  Change owner to void *.
19215         * config/posix/omp-lock.h: Include semaphore.h.
19216         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19217         (omp_lock_t): Use sem_t instead of mutex if semaphores
19218         aren't broken.
19219         (omp_nest_lock_t): Likewise.  Add owner field.
19221 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19223         * testsuite/libgomp.c/collapse-1.c: New test.
19224         * testsuite/libgomp.c/collapse-2.c: New test.
19225         * testsuite/libgomp.c/collapse-3.c: New test.
19226         * testsuite/libgomp.c/icv-1.c: New test.
19227         * testsuite/libgomp.c/icv-2.c: New test.
19228         * testsuite/libgomp.c/lib-2.c: New test.
19229         * testsuite/libgomp.c/lock-1.c: New test.
19230         * testsuite/libgomp.c/lock-2.c: New test.
19231         * testsuite/libgomp.c/lock-3.c: New test.
19232         * testsuite/libgomp.c/loop-4.c: New test.
19233         * testsuite/libgomp.c/loop-5.c: New test.
19234         * testsuite/libgomp.c/loop-6.c: New test.
19235         * testsuite/libgomp.c/loop-7.c: New test.
19236         * testsuite/libgomp.c/loop-8.c: New test.
19237         * testsuite/libgomp.c/loop-9.c: New test.
19238         * testsuite/libgomp.c/nested-3.c: New test.
19239         * testsuite/libgomp.c/nestedfn-6.c: New test.
19240         * testsuite/libgomp.c/sort-1.c: New test.
19241         * testsuite/libgomp.c/task-1.c: New test.
19242         * testsuite/libgomp.c/task-2.c: New test.
19243         * testsuite/libgomp.c/task-3.c: New test.
19244         * testsuite/libgomp.c/task-4.c: New test.
19245         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19246         to C++ testsuite default compiler options.
19247         * testsuite/libgomp.c++/collapse-1.C: New test.
19248         * testsuite/libgomp.c++/collapse-2.C: New test.
19249         * testsuite/libgomp.c++/ctor-10.C: New test.
19250         * testsuite/libgomp.c++/for-1.C: New test.
19251         * testsuite/libgomp.c++/for-2.C: New test.
19252         * testsuite/libgomp.c++/for-3.C: New test.
19253         * testsuite/libgomp.c++/for-4.C: New test.
19254         * testsuite/libgomp.c++/for-5.C: New test.
19255         * testsuite/libgomp.c++/loop-8.C: New test.
19256         * testsuite/libgomp.c++/loop-9.C: New test.
19257         * testsuite/libgomp.c++/loop-10.C: New test.
19258         * testsuite/libgomp.c++/task-1.C: New test.
19259         * testsuite/libgomp.c++/task-2.C: New test.
19260         * testsuite/libgomp.c++/task-3.C: New test.
19261         * testsuite/libgomp.c++/task-4.C: New test.
19262         * testsuite/libgomp.c++/task-5.C: New test.
19263         * testsuite/libgomp.c++/task-6.C: New test.
19264         * testsuite/libgomp.fortran/allocatable1.f90: New test.
19265         * testsuite/libgomp.fortran/allocatable2.f90: New test.
19266         * testsuite/libgomp.fortran/allocatable3.f90: New test.
19267         * testsuite/libgomp.fortran/allocatable4.f90: New test.
19268         * testsuite/libgomp.fortran/collapse1.f90: New test.
19269         * testsuite/libgomp.fortran/collapse2.f90: New test.
19270         * testsuite/libgomp.fortran/collapse3.f90: New test.
19271         * testsuite/libgomp.fortran/collapse4.f90: New test.
19272         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19273         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19274         * testsuite/libgomp.fortran/lib4.f90: New test.
19275         * testsuite/libgomp.fortran/lock-1.f90: New test.
19276         * testsuite/libgomp.fortran/lock-2.f90: New test.
19277         * testsuite/libgomp.fortran/nested1.f90: New test.
19278         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19279         * testsuite/libgomp.fortran/strassen.f90: New test.
19280         * testsuite/libgomp.fortran/tabs1.f90: New test.
19281         * testsuite/libgomp.fortran/tabs2.f: New test.
19282         * testsuite/libgomp.fortran/task1.f90: New test.
19283         * testsuite/libgomp.fortran/task2.f90: New test.
19284         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19285         * testsuite/libgomp.fortran/vla5.f90: Likewise.
19286         * testsuite/libgomp.c/pr26943-2.c: Likewise.
19287         * testsuite/libgomp.c/pr26943-3.c: Likewise.
19288         * testsuite/libgomp.c/pr26943-4.c: Likewise.
19290 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
19292         PR c++/36308
19293         * testsuite/libgomp.c++/ctor-11.C: New test.
19294         * testsuite/libgomp.c++/ctor-12.C: New test.
19296 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
19298         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19300 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19302         PR middle-end/36106
19303         * testsuite/libgomp.c/atomic-5.c: New test.
19304         * testsuite/libgomp.c/atomic-6.c: New test.
19305         * testsuite/libgomp.c/autopar-1.c: New test.
19307 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19309         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19310         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19311         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19312         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19313         * configure: Regenerate.
19314         * Makefile.in, testsuite/Makefile.in: Likewise.
19316 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19318         PR bootstrap/35457
19319         * aclocal.m4: Regenerate.
19320         * configure: Regenerate.
19322 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19324         PR middle-end/35611
19325         * testsuite/libgomp.c/atomic-4.c: New test.
19327         PR libgomp/35625
19328         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19329         (gomp_iter_guided_next): Likewise.
19330         * testsuite/libgomp.c/pr35625.c: New test.
19332 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19334         * aclocal.m4: Regenerate.
19335         * configure: Likewise.
19336         * Makefile.in: Likewise.
19337         * testsuite/Makefile.in: Likewise.
19339 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19341         PR middle-end/35185
19342         * testsuite/libgomp.c++/pr35185.C: New test.
19344 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19346         PR middle-end/35549
19347         * testsuite/libgomp.c/pr35549.c: New test.
19349 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19351         * testsuite/libgomp.c/atomic-3.c: New test.
19353 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19355         PR fortran/33197
19356         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19357         .F08 file suffixes.
19359 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
19361         PR libgomp/33131
19362         * configure.ac: Add ACX_HEADER_STRING.
19363         * env.c: Include strings.h.
19364         * aclocal.m4: Regenerate.
19365         * config.h.in: Regenerate.
19366         * configure: Regenerate.
19367         * Makefile.in: Regenerate.
19368         * testsuite/Makefile.in: Regenerate.
19370 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19372         PR middle-end/35196
19373         * testsuite/libgomp.c/pr35196.c: New test.
19375         PR middle-end/35130
19376         * testsuite/libgomp.fortran/pr35130.f90: New test.
19377         * testsuite/libgomp.c/pr35130.c: New test.
19379 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
19381         PR middle-end/33880
19382         * testsuite/libgomp.c/pr33880.c: New test.
19383         * testsuite/libgomp.fortran/pr33880.f90: New test.
19385 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
19387         * configure: Regenerate.
19389 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
19391         * configure.ac: Move futex checking into ../config/futex.m4.
19392         * configure: Rebuilt.
19393         * aclocal.m4: Rebuilt.
19394         * Makefile.in: Rebuilt.
19396         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19397         2007-10-15 ../config/tls.m4 change.
19399 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
19401         PR c++/34513
19402         * testsuite/libgomp.c/pr34513.c: New test.
19403         * testsuite/libgomp.c++/pr34513.C: New test.
19405 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
19407         PR target/32765
19408         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19410 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
19412         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
19414 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
19416         * testsuite/libgomp.c/private-1.c: New test.
19418 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
19419             Paolo Bonzini  <bonzini@gnu.org>
19421         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
19422         instead of 'VPATH ='.
19423         * Makefile.in: Regenerate.
19425 2007-11-23  Matthias Klose  <doko@ubuntu.com>
19427         * configure.ac: Adjust makeinfo version check.
19428         * configure: Regenerate.
19430 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
19432         PR fortran/34020
19433         * testsuite/libgomp.fortran/pr34020.f90: New test.
19435 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
19437         PR c++/33894
19438         * testsuite/libgomp.c++/atomic-1.C: New test.
19440 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
19442         PR libgomp/33275
19443         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19444         Make x and y integers rather than (implicit) reals.  Add private (j)
19445         clause to the last omp parallel.
19447 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
19449         * configure: Regenerate following changes to ../config/tls.m4.
19451 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
19453         * testsuite/libgomp.fortran/stack.f90: New test.
19455 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
19457         * config/mingw32/proc.c: New file.
19459 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
19461         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19462         (main): Use __get_cpuid to get i386 target fetaures.
19463         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19464         (main): Use __get_cpuid to get x86_64 target fetaures.
19466 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
19468         PR target/32765
19469         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19470         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19472 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
19474         PR fortran/32550
19475         * testsuite/libgomp.fortran/pr32550.f90: New test.
19476         * testsuite/libgomp.fortran/crayptr2.f90: New test.
19478 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19480         * aclocal.m4: Regenerated.
19482 2007-07-05  Tobias Burnus  <burnus@net-b.de>
19484         PR fortran/32359
19485         * testsuite/libgomp.fortran/pr32359.f90: New.
19487 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
19489         PR libgomp/32468
19490         * sections.c (GOMP_parallel_sections_start): Only decrease
19491         number of threads to COUNT if dyn_var is true.
19492         * testsuite/libgomp.c/pr32468.c: New test.
19494 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19496         PR libgomp/26308
19497         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19499 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
19501         PR middle-end/32362
19502         * testsuite/libgomp.c/pr32362-1.c: New test.
19503         * testsuite/libgomp.c/pr32362-2.c: New test.
19504         * testsuite/libgomp.c/pr32362-3.c: New test.
19506 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
19508         * team.c (gomp_team_start): Fix setting up thread_attr
19509         stack size.
19511 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
19513         * configure: Regenerate.
19515 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
19517         * Makefile.in: Regenerate.
19518         * configure: Regenerate.
19519         * aclocal.m4: Regenerate.
19520         * testsuite/Makefile.in: Regenerate.
19522 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
19524         * config/linux/proc.c: New file.
19526         PR libgomp/28482
19527         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19529 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
19531         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19533 2007-04-16  Matthias Klose  <doko@debian.org>
19535         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19536         flags if not building with -m64.
19537         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19538         flag for i?86-*-* targets, if current target matches -m64.
19540 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19542         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19543         * Makefile.in: Regenerate.
19545 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19547         PR testsuite/31369
19548         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19549         ld_library_path.
19550         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19552 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19554         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19555         decls.
19556         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19557         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19558         (parse_affinity): New function.
19559         (initialize_env): Call it and gomp_init_affinity.
19560         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19561         create new pthread_attr_t and call gomp_init_thread_affinity
19562         on it for each thread before passing the attribute to pthread_create.
19563         * config/linux/affinity.c: New file.
19564         * config/posix/affinity.c: New file.
19565         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19566         * configure: Rebuilt.
19567         * config.h.in: Rebuilt.
19568         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19569         * Makefile.in: Rebuilt.
19571 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19573         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19574         *-*-darwin*.
19575         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19576         and use it if found.
19578 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19580         * testsuite/config/default.exp: New file.
19581         * testsuite/lib/libgomp.exp: New file.
19582         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19583         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19584         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19585         (libgomp_load): Remove.
19586         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19587         always_ld_library_path, not ld_library_path.  Set additional_flags
19588         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19589         (target_compile): Do not call libgomp_init.  Append lang_library_path
19590         and lang_link_flags to options.
19591         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19592         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19593         here.
19594         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19595         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19596         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19597         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19598         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19599         CX8 flag.
19600         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19601         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19602         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19603         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19604         * testsuite/libgomp.c/atomic-10.c: Ditto.
19606 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19608         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19609         dg-final cleanup-modules line.
19610         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19611         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19612         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19613         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19614         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19615         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19616         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19618 2007-03-18  Andreas Schwab  <schwab@suse.de>
19620         * acinclude.m4: Adjust regular expression for ld version
19621         extraction.
19622         * configure: Regenerate.
19624 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19626         * Makefile.am: Add install-pdf target as copied from
19627         automake v1.10 rules.
19628         * Makefile.in: Regenerate
19630 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19632         PR libgomp/28486
19633         * configure: Regenerate.
19635         PR c++/30703
19636         * testsuite/libgomp.c++/pr30703.C: New test.
19638 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19640         Revert:
19641         2006-07-05  Eric Christopher  <echristo@apple.com>
19642         * configure.ac: Depend addition of -pthread on host OS.
19643         * configure: Regenerate.
19645 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19647         * libgomp.texi: Fix spacing after abbreviations.
19649 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19651         PR libgomp/30546
19652         * configure.ac: Add check for makeinfo
19653         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19654         if an appropriate version of makeinfo is found.
19655         * aclocal.m4: Regenerated.
19656         * configure: Regenerated.
19657         * Makefile.in: Regenerated.
19658         * testsuite/Makefile.in: Regenerated.
19660 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19662         PR libgomp/30540
19663         * libgomp.texi: More about implementation-dependent settings.
19665 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19667         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19669 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19671         PR middle-end/30494
19672         * testsuite/libgomp.c/pr30494.c: New test.
19674 2007-01-15  Tom Tromey  <tromey@redhat.com>
19676         * configure: Rebuilt.
19677         * configure.ac: Fixed comment.
19679 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19681         * libgomp.texi: Document implementation specific default values of
19682         environment variables.
19684 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19686         PR libgomp/28209
19687         * libgomp.texi: New file.
19688         * configure.ac: Add --enable-generated-files-in-srcdir option.
19689         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19690         files to srcdir.
19691         * Makefile.in: Regenerated.
19692         * config.h.in: Regenerated.
19693         * testsuite/Makefile.in: Regenerated.
19694         * NOTES: Removed.
19696 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19698         PR libgomp/29949
19699         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19701 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19703         * configure: Regenerate.
19705 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19707         PR libgomp/29947
19708         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19709         start if there shouldn't be any loop iterations.
19710         (gomp_loop_ordered_static_start): Remove start == end test.
19711         * testsuite/libgomp.c/pr29947-1.c: New test.
19712         * testsuite/libgomp.c/pr29947-2.c: New test.
19714 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19716         * configure.tgt: Force initial-exec TLS model on Linux only.
19718 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19720         * configure: Regenerated.
19722 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19724         * env.c (parse_schedule): Reject out of range values.
19725         (parse_unsigned_long): Reject out of range, negative or zero values.
19727 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19729         PR fortran/29629
19730         * testsuite/libgomp.fortran/pr29629.f90: New test.
19732 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19734         PR libgomp/29494
19735         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19736         * config/posix95: New directory.
19737         * config/posix95/omp-lock.h: New file.
19738         * config/posix95/lock.c: Likewise.
19740 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19742         * aclocal.m4: Regenerate.
19743         * configure: Regenerate.
19745 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19747         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19748         '<' to '<='.
19750 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19752         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19753         test.
19754         * configure: Regenerate.
19755         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19757 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19759         PR middle-end/25261
19760         PR middle-end/28790
19761         * testsuite/libgomp.c/nestedfn-4.c: New test.
19762         * testsuite/libgomp.c/nestedfn-5.c: New test.
19763         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19765         PR fortran/29097
19766         * testsuite/libgomp.fortran/condinc1.f: New test.
19767         * testsuite/libgomp.fortran/condinc2.f: New test.
19768         * testsuite/libgomp.fortran/condinc3.f90: New test.
19769         * testsuite/libgomp.fortran/condinc4.f90: New test.
19770         * testsuite/libgomp.fortran/condinc1.inc: New file.
19772 2006-09-18  Tom Tromey  <tromey@redhat.com>
19774         * configure: Rebuilt.
19776 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19778         PR c/28768
19779         PR preprocessor/14634
19780         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19781         to AC_DEFINE.
19782         * configure: Regenerate.
19784 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19786         * testsuite/libgomp.fortran/reduction3.f90: Change
19787         -2147483648 to -huge(i)-1 to avoid overflow.
19788         * testsuite/libgomp.fortran/reduction4.f90: Change
19789         Z'ffffffff' to not(0) to avoid overflow.
19791 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19793         PR libgomp/25938
19794         * Makefile.am (libsubincludedir): New.
19795         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19796         * Makefile.in: Regenerate.
19798 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19800         PR libgomp/28725
19801         * env.c: Include ctype.h.
19802         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19803         leading and/or trailing whitespace and compare strings case
19804         insensitively.
19806 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19808         PR fortran/28390
19809         * testsuite/libgomp.fortran/pr28390.f: New test.
19811 2006-07-05  Eric Christopher  <echristo@apple.com>
19813         * configure.ac: Depend addition of -pthread on host OS.
19814         * configure: Regenerate.
19816 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19818         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19819         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19820         defined.
19822 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19824         PR libgomp/26175
19825         PR libgomp/26477
19826         * configure.ac: If neither --enable-linux-futex nor
19827         --disable-linux-futex is passed, determine the default by checking
19828         for compiling and/or running against NPTL.  With --enable-linux-futex,
19829         check if SYS_gettid and SYS_futex are defined.
19830         * configure: Rebuilt.
19832 2006-06-14  Richard Henderson  <rth@redhat.com>
19834         PR libgomp/28008
19835         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19836         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19838 2006-06-09  Richard Henderson  <rth@redhat.com>
19840         * env.c (gomp_nthreads_var): Change to unsigned long.
19841         (gomp_run_sched_chunk): Likewise.
19842         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19843         (initialize_env): Initialize gomp_thread_attr.
19844         * libgomp.h (gomp_nthreads_var): Update decl.
19845         (gomp_run_sched_chunk): Likewise.
19846         (gomp_thread_attr): Declare.
19847         * team.c (gomp_thread_attr): Export.
19848         (initialize_team): Don't initialize it.
19850 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19852         PR fortran/27916
19853         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19854         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19856 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19858         * config/mingw32/time.c: New file.
19859         * configure.tgt: Use it.
19861 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19863         * Makefile.am: Add install-html target. Add install-html to .PHONY
19864         * Makefile.in: Regenerate.
19866 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19868         PR libgomp/27612
19869         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19870         * testsuite/libgomp.c/critical-1.c: Likewise.
19871         * testsuite/libgomp.c/loop-1.c: Likewise.
19872         * testsuite/libgomp.c/loop-2.c: Likewise.
19873         * testsuite/libgomp.c/single-1.c: Likewise.
19874         * testsuite/libgomp.c/ordered-1.c: Likewise.
19875         * testsuite/libgomp.c/ordered-2.c: Likewise.
19877 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19879         PR middle-end/27416
19880         * libgomp.fortran/pr27416-1.f90: New test.
19882 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19884         PR fortran/27395
19885         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19886         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19888 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19890         PR c++/26943
19891         * testsuite/libgomp.c/pr26943-1.c: New test.
19892         * testsuite/libgomp.c/pr26943-2.c: New test.
19893         * testsuite/libgomp.c/pr26943-3.c: New test.
19894         * testsuite/libgomp.c/pr26943-4.c: New test.
19895         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19896         * testsuite/libgomp.c++/pr26943.C: New test.
19898 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19900         PR middle-end/27337
19901         * testsuite/libgomp.c++/pr27337.C: New test.
19903 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19905         PR c/26171
19906         * testsuite/libgomp.c/pr26171.c: New test.
19908 2006-04-25  Richard Henderson  <rth@redhat.com>
19910         PR libgomp/25865
19911         * configure.ac: Use GCC_CHECK_TLS.
19912         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19913         * Makefile.in, aclocal.m4, configure: Regenerate.
19915 2006-04-10  Matthias Klose  <doko@debian.org>
19917         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19918         directory names containing underscores.
19920 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19922         PR c++/26691
19923         * testsuite/libgomp.c++/pr26691.C: New test.
19925 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19927         * testsuite/libgomp.fortran/retval2.f90: New test.
19929 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19931         * testsuite/libgomp.c++: New directory.
19933 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19935         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19936         * config/posix/sem.c: Implement the above.
19938 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19940         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19941         define HAVE_BROKEN_POSIX_SEMAPHORES.
19942         * configure: Rebuilt.
19943         * config.h.in: Rebuilt.
19945 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19947         PR bootstrap/26161
19948         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19949         for the other pthread check.
19950         * configure: Regenerate.
19951         * config.h.in: Regenerate.
19953 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19955         PR libgomp/25938
19956         PR libgomp/25984
19957         * Makefile.am (fincludedir): New variable.
19958         (nodist_include_HEADERS): Remove Fortran files.
19959         (nodist_finclude_HEADERS): New variable.
19960         * Makefile.in: Regenerated.
19962 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19964         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19965         Remove tests for returning assumed character length arrays.
19967 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19968             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19970         PR libgomp/25936
19971         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19973 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19975         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19977 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19979         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19980         part of LD_LIBRARY_PATH manually.
19982 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19984         PR libgomp/25852
19985         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19986         libgomp_init.
19988 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19990         PR libgomp/25884
19991         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19992         * configure.ac (PERL): Don't set.
19993         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19994         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19995         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19996         * omp.h.in: Wrap the new configure substitutions with @ characters.
19997         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19998         * aclocal.m4, configure, Makefile.in: Regenerate.
19999         * mkomp_h.pl: Delete.
20001 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
20003         PR libgomp/25259
20004         * configure.ac: Use GCC_HEADER_STDINT.
20005         * libgomp.h: Include gstdint.h.
20006         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20007         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20009 2006-01-24  Richard Henderson  <rth@redhat.com>
20011         PR libgomp/25942
20012         * configure.ac: Add AM_MAINTAINER_MODE.
20013         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20015 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
20017         * Makefile.in: Regenerate.
20018         * testsuite/Makefile.in: Regenerate.
20019         * aclocal.m4: Regenerate.
20021 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
20023         * config/posix/proc.c: Conditional include of sys/loadavg.h for
20024         Solaris.
20025         * configure.ac: Add check for loadavg.h.
20026         (link_gomp): Adjust comment.
20027         * configure: Regenerate.
20028         * config.h.in: Regenerate.
20030 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
20032         PR libgomp/25877
20033         * configure.ac: Remove check for alloca.h.
20034         * configure: Regenerate.
20035         * config.h.in: Regenerate.
20036         * libgomp.h: define gomp_alloca to be __builtin_alloca.
20037         * team.c: Remove use of alloca.h.
20038         Call gomp_alloca instead of alloca.
20040 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
20042         PR libgomp/25877
20043         * team.c: Add include of alloca.h.
20044         * configure.ac: Add check for alloca.h.
20045         * configure: Regenerate.
20046         * config.h.in: Regenerate.
20048 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
20050         PR fortran/25219
20051         * testsuite/libgomp.fortran/pr25219.f90: New test.
20053 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
20055         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20056         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20057         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20058         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20059         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20060         testsuite/libgomp.fortran/threadprivate1.f90,
20061         testsuite/libgomp.fortran/threadprivate2.f90,
20062         testsuite/libgomp.fortran/threadprivate3.f90,
20063         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20064         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20065         testsuite/libgomp.fortran/omp_parse3.f90: Change required
20066         effective-target to TLS runtime.
20068         * testsuite/libgomp.fortran/pr25162.f: Require
20069         effective-target TLS runtime.
20071 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
20073         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20074         * testsuite/libgomp.c/nestedfn-3.c: New test.
20076 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
20078         PR fortran/25162
20079         * testsuite/libgomp.fortran/pr25162.f: New test.
20081 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
20083         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20084         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20086 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
20088         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20089         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20090         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20091         single.c, team.c, work.c, config/linux/alpha/futex.h,
20092         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20093         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20094         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20095         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20096         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20097         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20098         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20099         FSF address.
20101 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20103         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20104         to nodist_noinst_HEADERS.
20105         * Makefile.in: Rebuilt.
20107         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20108         add integer count field.
20109         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20110         omp_nest_lock_t type change.
20111         (omp_init_nest_lock): Likewise.  Initialize count to 0.
20112         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20113         Increment count.
20114         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20115         Decrement count.
20116         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20117         Increment count if successful and return the new nesting level.
20118         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20119         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20120         * testsuite/libgomp.c/lib-1.c: New test.
20121         * testsuite/libgomp.fortran/lib1.f90: New test.
20122         * testsuite/libgomp.fortran/lib2.f: New test.
20123         * testsuite/libgomp.fortran/lib3.f: New test.
20125 2005-11-17  Richard Henderson  <rth@redhat.com>
20127         PR 24845
20128         * Makefile.am (nodist_toolexeclib_HEADERS): New.
20129         * configure.ac (link_gomp): New.  Substitute it.
20130         (AC_CONFIG_FILES): Add libgomp.spec.
20131         * libgomp.spec.in: New file.
20132         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20133         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20135 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20137         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20138         reduction(-:var) behaving the same as reduction(+:var).
20139         * testsuite/libgomp.c/reduction-4.c: New test.
20141 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
20143         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20144         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20145         testsuite/libgomp.c/copyin-3.c,
20146         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20147         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20148         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20149         testsuite/libgomp.c++/pr24455.C,
20150         testsuite/libgomp.fortran/threadprivate1.f90,
20151         testsuite/libgomp.fortran/threadprivate2.f90,
20152         testsuite/libgomp.fortran/threadprivate3.f90,
20153         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20154         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20155         testsuite/libgomp.fortran/omp_parse3.f90: Require
20156         effective-target TLS.
20158 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
20160         * HEADER: Remove.
20162 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
20164         PR libgomp/24797
20165         * team.c (initialize_team): Pass NULL rather than free as
20166         pthread_key_create destructor.  Initialize thread specific data
20167         pointer in initial thread to a static local variable rather than
20168         malloced memory.
20170 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
20172         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20173         its location to ld_library_path.
20175 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20177         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20179 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20181         * testsuite/libgomp.c: Rename from libgomp.dg.
20183 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
20185         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20186         threadprivate variable 'i'.
20188 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
20190         * config/linux/s390/futex.h: New file.
20191         * configure.tgt: Use it.
20193         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20194         before the parallel.
20196 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
20198         PR c++/24734
20199         * testsuite/libgomp.c++/master-1.C: New test.
20201 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20203         * testsuite/libgomp.dg/copyin-3.c: New test.
20205 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20207         * testsuite/libgomp.fortran/retval1.f90: New test.
20208         * testsuite/libgomp.fortran/vla7.f90: New test.
20210 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
20212         * testsuite/libgomp.fortran/vla2.f90: New test.
20213         * testsuite/libgomp.fortran/vla3.f90: New test.
20214         * testsuite/libgomp.fortran/vla4.f90: New test.
20215         * testsuite/libgomp.fortran/vla5.f90: New test.
20216         * testsuite/libgomp.fortran/vla6.f90: New test.
20218 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
20220         * config/linux/sparc/futex.h: New file.
20221         * configure.tgt: Use it.
20222         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20224         * critical.c: Include stdlib.h.
20225         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20226         ignoring return value.
20227         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20228         LIBGOMP_CHECK_SYNC_BUILTINS check.
20229         * configure: Rebuilt.
20231 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20233         * testsuite/libgomp.fortran/vla1.f90: New test.
20235 2005-10-31  Richard Henderson  <rth@redhat.com>
20237         * testsuite/libgomp.fortran/character2.f90: Fix race condition
20238         setting 's' in different threads.
20240 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20242         * libgomp.h (attribute_hidden, ialias): Define.
20243         * config/posix/proc.c (omp_get_num_procs): Add ialias.
20244         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20245         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20246         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20247         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20248         omp_test_lock, omp_test_nest_lock): Likewise.
20249         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20250         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20251         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20252         omp_test_lock, omp_test_nest_lock): Likewise.
20253         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20254         omp_get_dynamic, omp_get_nested): Likewise.
20255         * parallel.c (omp_get_num_threads, omp_get_max_threads,
20256         omp_get_thread_num, omp_in_parallel): Likewise.
20257         * fortran.c (ialias_redirect): Define.
20258         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20259         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20260         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20261         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20262         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20263         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20264         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20265         omp_get_wtime): Add ialias_redirect.
20267 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
20269         * fortran.c: Include stdlib.h.
20271 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
20273         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20274         * Makefile.in: Regenerated.
20276 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
20278         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20279         * libgomp_f.h.in (omp_check_defines): New function.
20280         * env.c: Include libgomp_f.h.
20281         (initialize_env): Call omp_check_defines.
20283         * testsuite/libgomp.dg/copyin-2.c: New test.
20284         * testsuite/libgomp.c++/copyin-2.C: New test.
20285         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20287         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20288         * testsuite/libgomp.fortran/sharing2.f90: New test.
20290         * testsuite/libgomp.dg/copyin-1.c: New test.
20291         * testsuite/libgomp.c++/copyin-1.C: New test.
20293 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
20295         * testsuite/libgomp.fortran/crayptr1.f90: New test.
20297         * testsuite/libgomp.fortran/workshare1.f90: New test.
20299         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20300         only test.
20301         * libgomp.fortran/sharing1.f90: New test.
20303 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
20305         PR c++/24502
20306         * testsuite/libgomp.c++/loop-7.C: New test.
20308         * testsuite/libgomp.dg/nestedfn-2.c: New test.
20310         * testsuite/libgomp.dg/nestedfn-1.c: New test.
20311         * testsuite/libgomp.fortran/reduction6.f90: New test.
20312         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20314 2005-10-23  Richard Henderson  <rth@redhat.com>
20316         * testsuite/libgomp.c++/ctor-1.C: New.
20317         * testsuite/libgomp.c++/ctor-2.C: New.
20318         * testsuite/libgomp.c++/ctor-3.C: New.
20319         * testsuite/libgomp.c++/ctor-4.C: New.
20320         * testsuite/libgomp.c++/ctor-5.C: New.
20321         * testsuite/libgomp.c++/ctor-6.C: New.
20322         * testsuite/libgomp.c++/ctor-7.C: New.
20323         * testsuite/libgomp.c++/ctor-8.C: New.
20324         * testsuite/libgomp.c++/ctor-9.C: New.
20326 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
20328         PR 24455
20329         * testsuite/libgomp.c++/pr24455-1.C: New test.
20330         * testsuite/libgomp.c++/pr24455.C: New test.
20331         * testsuite/libgomp.dg/pr24455-1.c: New test.
20332         * testsuite/libgomp.dg/pr24455.c: New test.
20334 2005-10-20  Richard Henderson  <rth@redhat.com>
20336         * testsuite/libgomp.c++/loop-6.C: New.
20337         * testsuite/libgomp.dg/loop-3.c: New.
20339 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
20341         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20342         explicitly private.
20343         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20344         explicitly shared.
20346 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
20348         * testsuite/libgomp.fortran/jacobi.f: New test.
20350 2005-10-19  Richard Henderson  <rth@redhat.com>
20352         * configure.tgt (i?86-linux): Default to with_arch instead of
20353         CFLAGS.  Add -mtune to match target_cpu.
20354         (x86_64-linux): Tune to i686.
20356         * fortran.c (omp_test_nest_lock_): Fix typo.
20358 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
20360         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20361         gomp_ordered_sync): Do nothing if team->nthreads == 1.
20362         * testsuite/libgomp.dg/ordered-3.c: New test.
20364         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20365         Remove volatile keyword.
20367         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20368         in COMMON block to avoid warnings on 64-bit targets.
20370 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
20372         * testsuite/libgomp.dg/shared-3.c: New test.
20374 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20376         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20377         * testsuite/libgomp.fortran/reduction5.f90: New test.
20379 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20381         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20382         dg-options.
20383         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
20384         flush loop now that __sync_synchronize has proper memory barrier.
20385         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20386         Add -ffixed-form to dg-options.
20388 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20390         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20391         from subdirectories.
20392         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20393         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20394         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20395         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20396         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20397         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20398         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20399         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20400         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20401         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20402         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20403         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20404         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20405         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20406         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20407         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20408         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20409         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20410         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20411         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20412         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20413         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20414         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20415         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20416         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20418 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
20420         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20421         lang_library_path exists.  Use find instead of glob to gather tests.
20422         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20424 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20426         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20427         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20428         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20429         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20430         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20431         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20432         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20433         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20434         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20435         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20436         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20437         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20438         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20440 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
20442         * testsuite/libgomp.dg/vla-1.c: New test.
20444         * testsuite/libgomp.fortran/reference2.f90: New test.
20446         * testsuite/libgomp.fortran/character2.f90: Remove explicit
20447         declaration of omp_get_thread_num.
20448         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
20449         use omp_lib.
20451         * testsuite/libgomp.fortran/reduction1.f90: New test.
20452         * testsuite/libgomp.fortran/reduction2.f90: New test.
20453         * testsuite/libgomp.fortran/reduction3.f90: New test.
20454         * testsuite/libgomp.fortran/reduction4.f90: New test.
20456 2005-10-13  Richard Henderson  <rth@redhat.com>
20458         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20459         * Makefile.in: Regenerate.
20460         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20461         * libgomp.h: Include bar.h.
20462         (struct gomp_barrier): Remove.
20463         (struct gomp_team): Add barrier.  Replace master_barrier with
20464         master_release.  Replace threads with ordered_release.
20465         (struct gomp_thread): Replace barrier with release.
20466         * ordered.c (gomp_ordered_first): Update for ordered_release change.
20467         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20468         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20469         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20470         (GOMP_single_copy_end): Likewise.
20471         * team.c (gomp_threads_dock): New.
20472         (gomp_barrier_init, gomp_barrier_destroy): Remove.
20473         (gomp_thread_start): Use gomp_barrier_wait.
20474         (new_team, free_team): Update for gomp_team changes.
20475         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20476         (gomp_team_end): Use gomp_barrier_wait.
20477         (initialize_team): Update for gomp_thread changes.
20478         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20479         (gomp_work_share_end_nowait): Use atomic ops when available.
20480         * config/linux/bar.c, config/linux/bar.h: New files.
20481         * config/posix/bar.c, config/posix/bar.h: New files.
20483 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
20485         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20486         * testsuite/libgomp.dg/single-2.c: New test.
20488         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20489         lang_link_flags): Unset, so that they aren't inherited from previously
20490         sourced *.exp.
20492         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20494 2005-10-12  Richard Henderson  <rth@redhat.com>
20496         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20497         (libgomp_init): Use lang_test_file, lang_library_path, and
20498         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
20500         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20501         (lang_test_file, lang_link_flags): New.
20502         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20504         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20505         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20506         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20507         testsuite/libgomp.c++/parallel-1.C,
20508         testsuite/libgomp.c++/reduction-1.C,
20509         testsuite/libgomp.c++/reduction-2.C,
20510         testsuite/libgomp.c++/reduction-3.C,
20511         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20512         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20513         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20514         New files, largely cribbed from the C testsuite.
20516 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
20518         * testsuite/libgomp.fortran/character1.f90: New test.
20519         * testsuite/libgomp.fortran/character2.f90: New test.
20521         * testsuite/libgomp.dg/nested-1.c: New test.
20522         * testsuite/libgomp.dg/nested-2.c: New test.
20523         * testsuite/libgomp.fortran/do1.f90: New test.
20524         * testsuite/libgomp.fortran/do2.f90: New test.
20526         * testsuite/libgomp.fortran/reference1.f90: New test.
20528 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
20530         * testsuite/libgomp.dg/reduction-1.c: New test.
20531         * testsuite/libgomp.dg/reduction-2.c: New test.
20532         * testsuite/libgomp.dg/reduction-3.c: New test.
20534 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20536         * testsuite/libgomp.dg/atomic-1.c: New test.
20537         * testsuite/libgomp.dg/atomic-2.c: New test.
20539 2005-10-09  Richard Henderson  <rth@redhat.com>
20541         * critical.c (atomic_lock): New.
20542         (initialize_critical): Initialize it.
20543         (GOMP_atomic_start, GOMP_atomic_end): New.
20544         * libgomp.map: Export them.
20545         * libgomp_g.h: Declare them.
20547         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20549 2005-10-02  Richard Henderson  <rth@redhat.com>
20551         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20552         to XCFLAGS instead of CFLAGS.
20554 2005-09-30  Richard Henderson  <rth@redhat.com>
20556         * configure.ac: Determine whether -pthread or -lpthread is needed.
20557         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20558         * Makefile.in, configure: Rebuild.
20560 2005-09-28  Richard Henderson  <rth@redhat.com>
20562         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20563         * testsuite/libgomp.dg/omp-single-3.c: New test.
20565 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20567         * testsuite/libgomp.dg/omp-single-2.c: New test.
20568         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20570 2005-09-27  Richard Henderson  <rth@redhat.com>
20572         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20573         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20575 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20577         * testsuite/libgomp.dg/omp-loop03.c: New test.
20579 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20581         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20583 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20585         * testsuite/libgomp.dg/omp-single-1.c: New test.
20586         * testsuite/libgomp.dg/shared-1.c: Return 0.
20587         Add prototype for abort.
20588         * testsuite/libgomp.dg/shared-2.c: Likewise.
20590 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20592         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20593         constructs.
20595 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20597         * testsuite/libgomp.dg/shared-1.c: New test.
20598         * testsuite/libgomp.dg/shared-2.c: New test.
20600 2005-09-24  Richard Henderson  <rth@redhat.com>
20602         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20604 2005-09-24  Richard Henderson  <rth@redhat.com>
20606         * iter.c (gomp_iter_static_next): Round up when computing number
20607         of iterations.  Don't bother distributing a remainder equally.
20609         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20610         Don't call srand.  Zero b before testing.
20611         (main): New.
20613 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20615         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20616         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20618 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20620         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20621         without !$omp end do, followed immediately by subroutine end.
20623 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20625         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20627 2005-09-22  Richard Henderson  <rth@redhat.com>
20629         * critical.c (GOMP_critical_name_start): Change argument to void**.
20630         Reuse the pointer space if the mutex fits.
20631         (GOMP_critical_name_end): Likewise.
20632         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20633         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20634         (GOMP_critical_name_end): Likewise.
20635         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20636         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20638 2005-09-20  Richard Henderson  <rth@redhat.com>
20640         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20641         (create_lock_lock): New.
20642         (initialize_critical): Initialize it.
20643         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20644         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20646 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20648         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20650 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20652         * testsuite/libgomp.dg/omp-loop01.c: New test.
20653         * testsuite/libgomp.dg/omp-loop02.c: New test.
20655 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20657         * configure.ac (AC_PROG_FC): Add.
20658         (USE_FORTRAN): New automake conditional.
20659         * configure: Rebuilt.
20660         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20661         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20662         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20663         Add rules to build them.
20664         * Makefile.in: Rebuilt.
20665         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20666         OMP_NEST_LOCK_KIND.
20667         * libgomp.map: Add Fortran wrappers.
20668         * libgomp_f.h.in: New file.
20669         * omp_lib.h.in: New file.
20670         * omp_lib.f90.in: New file.
20671         * fortran.c: New file.
20672         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20673         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20674         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20675         libgfortran has been built.
20676         * testsuite/libgomp.fortran/fortran.exp: New file.
20677         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20678         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20679         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20680         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20681         * testsuite/libgomp.fortran/omp_hello.f: New test.
20682         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20683         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20684         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20685         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20686         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20687         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20688         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20689         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20691 2005-08-30  Richard Henderson  <rth@redhat.com>
20693         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20694         function for when aliases are not usable.
20695         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20696         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20697         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20698         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20699         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20700         GOMP_loop_ordered_guided_next): Likewise.
20701         * ordered.c (GOMP_ordered_start): Likewise.
20703 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20705         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20706         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20707         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20708         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20709         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20710         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20711         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20712         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20713         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20715 2005-07-07  Eric Christopher  <echristo@redhat.com>
20716             Diego Novillo  <dnovillo@redhat.com>
20718         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20719         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20720         up code.
20721         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20722         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20723         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20724         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20725         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20726         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20727         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20729 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20731         * TOPLEVEL.patch: Remove.
20733 2005-05-16  Richard Henderson  <rth@redhat.com>
20735         * configure.ac: Test for clock_gettime.
20736         * config.h.in, configure: Rebuild.
20737         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20738         (omp_get_wtime): Use clock_gettime if available.
20739         (omp_get_wtick): Use clock_getres if available.
20741 2005-05-11  Richard Henderson  <rth@redhat.com>
20743         * config/linux/ia64/futex.h: New file.
20744         * configure.tgt: Use it.
20746         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20748 2005-05-07  Richard Henderson  <rth@redhat.com>
20750         * config/linux/powerpc/futex.h: New file.
20751         * configure.tgt: Use it.
20753         * config/linux/i486/futex.h: Merge ...
20754         * config/linux/x86_64/futex.h: ... into ...
20755         * config/linux/x86/futex.h: ... here.
20756         * configure.tgt: Update to match.
20758 2005-05-06  Richard Henderson  <rth@redhat.com>
20760         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20761         * config/linux/i486/futex.h: Likewise.
20762         * config/linux/x86_64/futex.h: Likewise.
20764         * config/linux/lock.c: New file.
20765         * config/linux/omp-lock.h: New file.
20767         * critical.c, env.h: Don't include omp.h
20768         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20769         * config/posix/time.c: Likewise.
20770         * config/posix/omp-lock.h: New file.
20771         * libgomp.h: Include omp-lock.h and omp.h.
20772         * Makefile.am (nodist_include_HEADERS): New.
20773         (omp.h): New rule.
20774         * configure.ac (PERL): New.
20775         * mkomp_h.pl: New file.
20776         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20777         with templates.
20778         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20780         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20781         build directory.  Re-add -march=i486 hack.
20783         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20784         (libgomp_link_flags): Remove.
20785         (libgomp_initialized): Remove.
20786         (libgomp_init): Don't protect from reinitialization.  Copy code
20787         from libstdc++ for getting the multilib set correctly.
20789 2005-05-05  Richard Henderson  <rth@redhat.com>
20791         * config/linux/alpha/futex.h: New file.
20792         * configure.tgt (alpha*-*-linux*): Use it.
20794         * config/posix/mutex.c: New file.
20795         * config/posix/sem.c: Use libgomp.h.
20797         * configure.tgt (x86_64-linux): Also test CC for -m32.
20798         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20800         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20801         after $gccpath.
20803         * Makefile.am (SUBDIRS): New.
20804         (libgomp_la_LDFLAGS): Add -lpthread.
20805         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20806         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20808         * libgomp_g.h: New file.
20809         * libgomp.h: Split out all public declarations to libgomp_g.h.
20810         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20811         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20812         * config/linux/sem.h: Likewise.
20813         * config/posix/sem.h: Likewise.
20815         * Makefile.am (AM_LDFLAGS): New.
20816         (libgomp_version_script): Split out from ...
20817         (libgomp_la_LDFLAGS): ... here.
20818         (libgomp_version_info): New.
20819         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20820         (LIBGOMP_ENABLE): New.
20821         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20822         (LIBGOMP_ENABLE_SYMVERS): New.
20823         * configure.ac (AC_INIT): Version 1.0.
20824         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20825         (enable-linux-futex): Likewise.  Rename from enable-futex.
20826         (libtool_VERSION): New.
20827         (LIBGOMP_ENABLE_SYMVERS): Use it.
20828         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20829         * Makefile.in, aclocal.m4, configure: Rebuild.
20831         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20832         (gomp_mutex_unlock_slow): Fix typo.
20833         * config/linux/sem.c: Similarly.
20834         (gomp_sem_post_slow): Fix typo.
20835         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20836         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20837         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20839         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20840         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20841         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20842         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20843         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20844         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20845         LDFLAGS.  Pull enable_futex check to top-level.
20846         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20847         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20849         First attempt at real configury.
20850         * Makefile, config.h: Remove file.
20851         * Makefile.am, Makefile.in: New file.
20852         * acinclude.m4 aclocal.m4: New file.
20853         * configure.ac, configure.tgt, configure: New file.
20855         * config/posix/lock.c: Rename from sys-lock.c.
20856         * config/posix/mutex.h: Rename from sys-mutex.h.
20857         * config/posix/sem.c: Rename from sys-sem.c.
20858         * config/posix/sem.h: Rename from sys-sem.h.
20859         * config/posix/proc.c: Rename from sys-proc.c.
20860         * config/posix/time.c: Rename from sys-proc.c.
20862         * config/linux/mutex.c: New file.
20863         * config/linux/mutex.h: New file.
20864         * config/linux/sem.c: New file.
20865         * config/linux/sem.h: New file.
20866         * config/linux/i486/futex.h: New file.
20867         * config/linux/x86_64/futex.h: New file.
20869 2005-05-04  Richard Henderson  <rth@redhat.com>
20871         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20872         * libgomp.h: Declare them.
20873         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20874         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20876 2005-05-04  Richard Henderson  <rth@redhat.com>
20878         * libgomp-1 code drop
20880 2005-05-04  Richard Henderson  <rth@redhat.com>
20882         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20883         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20884         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20885         (gomp_iter_static_next): Update.
20886         (gomp_ordered_static_next): Update.
20887         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20888         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20889         totally empty range.
20890         (gomp_loop_ordered_static_next): Refine test for calling
20891         gomp_ordered_static_next.
20892         * testsuite/ordered-1.c: Add case for more threads than iterations.
20894         * iter.c (gomp_iter_runtime_next_locked): Remove.
20895         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20896         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20897         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20898         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20899         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20900         gomp_loop_ordered_guided_next): Downcase name, make static, add
20901         an external alias with the old name.
20902         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20903         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20904         switch and call one of the above static functions.
20905         * libgomp.h: Update.
20907         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20908         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20909         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20910         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20911         GOMP_loop_ordered_guided_start): Update to match.
20912         * sections.c (GOMP_sections_start): Likewise.
20913         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20915         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20916         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20917         Use bounds check instead of modulus.
20918         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20919         (gomp_ordered_last): Don't sync with ordered_owner here.
20920         (gomp_ordered_next): Likewise.
20921         (gomp_ordered_static_loop_next): Likewise.
20922         * loop.c, libgomp.h: Update to match.
20924         * libgomp.h (GOMP_barrier): Declare.
20926         * testsuite/barrier-1.c: New file.
20927         * testsuite/critical-1.c: New file.
20928         * testsuite/ordered-2.c: New file.
20929         * testsuite/ordered-1.c: New file.
20930         * testsuite/sections-1.c: New file.
20931         * testsuite/single-1.c: New file.
20932         * testsuite/Makefile (TESTS): Add them.
20934 2005-05-04  Richard Henderson  <rth@redhat.com>
20936         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20937         * loop.c (GOMP_loop_static_start): If not the startup thread,
20938         acquire the mutex to wait for initialization complete.
20939         (GOMP_loop_ordered_static_start): Likewise.
20940         (GOMP_loop_ordered_runtime_start): Likewise.
20941         (GOMP_loop_ordered_static_first): Remove.
20942         (GOMP_loop_ordered_dynamic_first): Remove.
20943         (GOMP_loop_ordered_guided_first): Remove.
20944         (GOMP_loop_ordered_runtime_first): Remove.
20945         * ordered.c (gomp_ordered_loop_first): Post to own release when
20946         we're the first thread.
20947         (gomp_ordered_loop_last): Wait on release if not owner.
20948         (gomp_ordered_loop_next): Likewise.
20949         (gomp_ordered_static_loop_init): New.
20950         (gomp_ordered_static_loop_next): Use ordered_owner.
20951         (GOMP_ordered_start): Likewise.
20952         * work.c (gomp_new_work_share): Initialize ordered_owner.
20954 2005-05-03  Richard Henderson  <rth@redhat.com>
20956         * Makefile (OPT): New.
20957         (CFLAGS): Use it.
20959         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20960         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20961         * libgomp.h, libgomp.map, NOTES: Update to match.
20963         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20964         Add initialized and thr members.
20965         (gomp_thread_start): Pause when initially spawned to wait for
20966         the whole team to be created.
20967         (gomp_team_start): Release team members at the end.
20969         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20970         (f_foo_1): Use GOMP_loop_end.
20971         (f_foo_2): Use GOMP_loop_end_nowait.
20973         * testsuite/loop-2.c: New file.
20974         * testsuite/Makefile (TESTS): Add it.
20976 2005-05-03  Richard Henderson  <rth@redhat.com>
20978         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20979         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20980         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20981         initial work_share.
20983         * testsuite/Makefile: New file.
20984         * testsuite/loop-1.c: New file.
20986 2005-05-03  Richard Henderson  <rth@redhat.com>
20988         Initial implementation and checkin.
20990 Copyright (C) 2005-2024 Free Software Foundation, Inc.
20992 Copying and distribution of this file, with or without modification,
20993 are permitted in any medium without royalty provided the copyright
20994 notice and this notice are preserved.