Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / ChangeLog
blobc6bc1013e241573c45f14bc2fb018c3da55a00a3
1 2024-01-29  Tobias Burnus  <tburnus@baylibre.com>
3         * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
4         function not gfx90a for gfx1100/gfx1030 context selector.
6 2024-01-26  Richard Biener  <rguenther@suse.de>
8         * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
9         agents with unsupported ISA.
11 2024-01-26  Richard Biener  <rguenther@suse.de>
13         * plugin/plugin-gcn.c
14         (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
15         (isa_code): Return that instead of -1.
16         (GOMP_OFFLOAD_init_device): Adjust.
18 2024-01-26  Tobias Burnus  <tburnus@baylibre.com>
20         * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
21         for gfx1030 and gfx1100.
22         * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
23         * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
25 2024-01-26  Andrew Stubbs  <ams@baylibre.com>
27         * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
28         (omp_get_wtime): Add RDNA3-compatible variant.
29         * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
31 2024-01-24  Tobias Burnus  <tburnus@baylibre.com>
32             Sandra Loosemore  <sandra@codesourcery.com>
34         * libgomp.texi (Runtime Library Routines): Document
35         omp_pause_resource, omp_pause_resource_all and
36         omp_target_memcpy{,_rect}{,_async}.
38 2024-01-22  Tobias Burnus  <tburnus@baylibre.com>
40         * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
41         support is no longer enabled by default.
42         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
44 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
46         * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
47         timeout by 2 on hppa*-*-*.
49 2024-01-20  John David Anglin  <danglin@gcc.gnu.org>
51         * testsuite/libgomp.c/simd-math-1.c: Don't run on
52         hppa*-*-hpux*.
54 2024-01-17  Jakub Jelinek  <jakub@redhat.com>
56         PR middle-end/113409
57         * testsuite/libgomp.c/bitint-1.c: New test.
59 2024-01-11  Julian Brown  <julian@codesourcery.com>
61         * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
62         * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
63         * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
65 2024-01-10  Jakub Jelinek  <jakub@redhat.com>
67         PR libgomp/113192
68         * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
69         instead of \$(abs_top_srcdir)/testsuite/flock.
70         * configure: Regenerated.
72 2024-01-09  Julian Brown  <julian@codesourcery.com>
74         * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
75         now work.
76         * testsuite/libgomp.c++/baseptrs-6.C: New test.
77         * testsuite/libgomp.c++/ind-base-1.C: New test.
78         * testsuite/libgomp.c++/ind-base-2.C: New test.
79         * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
80         * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
81         * testsuite/libgomp.c++/map-comma-1.C: New test.
82         * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
83         * testsuite/libgomp.c++/struct-ref-1.C: New test.
84         * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
85         * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
86         * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
88 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
90         PR libgomp/113192
91         * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
92         rather than $srcdir/testsuite/flock.
93         * configure: Regenerated.
95 2024-01-08  Thomas Schwinge  <thomas@codesourcery.com>
97         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
98         'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
100 2024-01-08  Julian Brown  <julian@codesourcery.com>
102         * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
103         hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
104         hsa_amd_memory_async_copy_rect_fn function pointers.
105         (init_hsa_runtime_functions): Add above functions, with
106         DLSYM_OPT_FN.
107         (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
109 2024-01-08  Tobias Burnus  <tobias@codesourcery.com>
111         * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
112         (gcn_isa_name_len): Fix length.
113         (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
115 2024-01-06  Tobias Burnus  <tobias@codesourcery.com>
117         * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
118         (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
119         omp_target_is_accessible.
120         (Environment Display Routine): Uncomment and add
121         omp_display_env description.
122         (OMP_DISPLAY_ENV): Update wording, add 'see also'.
124 2024-01-06  Mark Wielaard  <mark@klomp.org>
126         * configure: Regenerate.
128 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
130         * libgomp.texi: Bump @copying's copyright year.
132 2023-12-21  Julian Brown  <julian@codesourcery.com>
134         * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
136 2023-12-20  Julian Brown  <julian@codesourcery.com>
138         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
139         avoid out-of-bounds array checks in CUDA runtime.
140         (GOMP_OFFLOAD_memcpy3d): Likewise.
141         * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
143 2023-12-18  Jakub Jelinek  <jakub@redhat.com>
145         * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
146         drop because of that unneeded target selector from other directives
147         and remove the aarch64 specific ones.
149 2023-12-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
151         * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
152         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
154 2023-12-15  Thomas Schwinge  <thomas@codesourcery.com>
156         * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
157         'dg-output's to 'target offload_device_nonshared_as'.
159 2023-12-15  Julian Brown  <julian@codesourcery.com>
161         * oacc-mem.c (find_group_last, goacc_enter_data_internal,
162         goacc_exit_data_internal, GOACC_enter_exit_data): Add
163         GOMP_MAP_STRUCT_UNORD support.
164         * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
165         Detect incorrect use of variable indexing of arrays of structs.
166         (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
167         GOMP_MAP_STRUCT_UNORD support.
168         * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
169         * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
170         * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
171         * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
173 2023-12-13  Julian Brown  <julian@codesourcery.com>
175         * testsuite/libgomp.fortran/map-subarray.f90: New test.
176         * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
177         * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
178         * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
179         * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
180         * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
181         * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
182         * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
183         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
184         descriptor-mapping changes.  Remove XFAIL.
186 2023-12-13  Julian Brown  <julian@codesourcery.com>
188         * target.c (gomp_map_pointer): Modify zero-length array section
189         pointer handling.
190         (gomp_attach_pointer): Likewise.
191         (gomp_map_fields_existing): Use gomp_map_0len_lookup.
192         (gomp_attach_pointer): Allow attaching null pointers (or Fortran
193         "unassociated" pointers).
194         (gomp_map_vars_internal): Handle zero-sized struct members.  Add
195         diagnostic for unmapped struct pointer members.
196         * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
197         * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
198         * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
199         * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
200         * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
201         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
202         "free".
203         * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
204         * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
205         * testsuite/libgomp.c++/class-array-1.C: New test.
206         * testsuite/libgomp.c++/baseptrs-3.C: New test.
207         * testsuite/libgomp.c++/baseptrs-4.C: New test.
208         * testsuite/libgomp.c++/baseptrs-5.C: New test.
209         * testsuite/libgomp.c++/baseptrs-8.C: New test.
210         * testsuite/libgomp.c++/baseptrs-9.C: New test.
211         * testsuite/libgomp.c++/ref-mapping-1.C: New test.
212         * testsuite/libgomp.c++/target-48.C: New test.
213         * testsuite/libgomp.c++/target-49.C: New test.
214         * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
215         * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
216         semantics.
217         * testsuite/libgomp.c++/target-this-3.C: Likewise.
218         * testsuite/libgomp.c++/target-this-4.C: Likewise.
219         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
220         * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
222 2023-12-13  Thomas Schwinge  <thomas@codesourcery.com>
224         * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
225         vs. '%ld' format string mismatch.
227 2023-12-13  Andrew Stubbs  <ams@codesourcery.com>
228             Thomas Schwinge  <thomas@codesourcery.com>
230         * allocator.c (MEMSPACE_ALLOC): Add PIN.
231         (MEMSPACE_CALLOC): Add PIN.
232         (MEMSPACE_REALLOC): Add PIN.
233         (MEMSPACE_FREE): Add PIN.
234         (MEMSPACE_VALIDATE): Add PIN.
235         (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
236         (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
237         (omp_aligned_calloc): Likewise.
238         (omp_realloc): Likewise.
239         (omp_free): Likewise.
240         * config/linux/allocator.c: New file.
241         * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
242         (MEMSPACE_CALLOC): Add PIN.
243         (MEMSPACE_REALLOC): Add PIN.
244         (MEMSPACE_FREE): Add PIN.
245         (MEMSPACE_VALIDATE): Add PIN.
246         * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
247         (MEMSPACE_CALLOC): Add PIN.
248         (MEMSPACE_REALLOC): Add PIN.
249         (MEMSPACE_FREE): Add PIN.
250         * libgomp.texi: Switch pinned trait to supported.
251         (MEMSPACE_VALIDATE): Add PIN.
252         * testsuite/libgomp.c/alloc-pinned-1.c: New test.
253         * testsuite/libgomp.c/alloc-pinned-2.c: New test.
254         * testsuite/libgomp.c/alloc-pinned-3.c: New test.
255         * testsuite/libgomp.c/alloc-pinned-4.c: New test.
257 2023-12-11  Lipeng Zhu  <lipeng.zhu@intel.com>
259         * testsuite/libgomp.fortran/rwlock_1.f90: New file.
260         * testsuite/libgomp.fortran/rwlock_2.f90: New file.
261         * testsuite/libgomp.fortran/rwlock_3.f90: New file.
263 2023-12-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
265         * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
266         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
268 2023-12-11  Tobias Burnus  <tobias@codesourcery.com>
270         * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
272 2023-12-08  Tobias Burnus  <tobias@codesourcery.com>
274         * allocator.c (struct fort_alloc_splay_tree_key_s,
275         fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
276         * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
277         * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
278         GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
279         (GOMP_5.1.1): ... here.
280         * libgomp.texi (Impl. Status, Memory management): Update for
281         allocators/allocate directives.
282         * splay-tree.c: Handle splay_tree_static define to declare all
283         functions as static.
284         (splay_tree_lookup_node): New.
285         * splay-tree.h: Handle splay_tree_decl_only define.
286         (splay_tree_lookup_node): New prototype.
287         * target.c: Define splay_tree_static for 'reverse'.
288         * testsuite/libgomp.fortran/allocators-1.f90: New test.
289         * testsuite/libgomp.fortran/allocators-2.f90: New test.
290         * testsuite/libgomp.fortran/allocators-3.f90: New test.
291         * testsuite/libgomp.fortran/allocators-4.f90: New test.
292         * testsuite/libgomp.fortran/allocators-5.f90: New test.
294 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
296         * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
297         (TEAM_ARENA_FREE): Likewise.
298         (TEAM_ARENA_END): Likewise.
299         (GCN_LOWLAT_HEAP): New.
300         * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
301         (__gcn_lowlat_init): New prototype.
302         (gomp_gcn_enter_kernel): Initialize the low-latency heap.
303         * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
304         (TEAM_ARENA_FREE): Likewise.
305         (TEAM_ARENA_END): Likewise.
306         * plugin/plugin-gcn.c (lowlat_size): New variable.
307         (print_kernel_dispatch): Label the group_segment_size purpose.
308         (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
309         (create_kernel_dispatch): Pass low-latency head allocation to kernel.
310         (run_kernel): Use shadow; don't assume values.
311         * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
312         * config/gcn/allocator.c: New file.
313         * libgomp.texi: Document low-latency implementation details.
315 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
317         * allocator.c (MEMSPACE_VALIDATE): New macro.
318         (omp_init_allocator): Use MEMSPACE_VALIDATE.
319         (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
320         (omp_aligned_calloc): Likewise.
321         (omp_realloc): Likewise.
322         * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
323         (MEMSPACE_VALIDATE): New macro.
324         (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
325         * libgomp.texi: Document low-latency implementation details.
326         * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
327         * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
328         * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
329         * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
330         * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
331         * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
332         * testsuite/libgomp.c/omp_alloc-traits.c: New test.
334 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
335             Kwok Cheung Yeung   <kcy@codesourcery.com>
336             Thomas Schwinge  <thomas@codesourcery.com>
338         * allocator.c (MEMSPACE_ALLOC): New macro.
339         (MEMSPACE_CALLOC): New macro.
340         (MEMSPACE_REALLOC): New macro.
341         (MEMSPACE_FREE): New macro.
342         (predefined_alloc_mapping): New array.  Add _Static_assert to match.
343         (ARRAY_SIZE): New macro.
344         (omp_aligned_alloc): Use MEMSPACE_ALLOC.
345         Implement fall-backs for predefined allocators.  Simplify existing
346         fall-backs.
347         (omp_free): Use MEMSPACE_FREE.
348         (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
349         predefined allocators.  Simplify existing fall-backs.
350         (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
351         Implement fall-backs for predefined allocators.  Simplify existing
352         fall-backs.
353         * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
354         (__nvptx_lowlat_init): New prototype.
355         (gomp_nvptx_main): Call __nvptx_lowlat_init.
356         * libgomp.texi: Update memory space table.
357         * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
358         (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
359         (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
360         * basic-allocator.c: New file.
361         * config/nvptx/allocator.c: New file.
362         * testsuite/libgomp.c/omp_alloc-1.c: New test.
363         * testsuite/libgomp.c/omp_alloc-2.c: New test.
364         * testsuite/libgomp.c/omp_alloc-3.c: New test.
365         * testsuite/libgomp.c/omp_alloc-4.c: New test.
366         * testsuite/libgomp.c/omp_alloc-5.c: New test.
367         * testsuite/libgomp.c/omp_alloc-6.c: New test.
369 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
371         * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
372         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
373         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
374         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
375         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
376         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
377         * testsuite/libgomp.c/declare-variant-4.h: Likewise.
378         * testsuite/libgomp.c/declare-variant-4.c: New.
380 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
382         * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
383         into 'dg-do link'.
384         * testsuite/libgomp.c/declare-variant-3.c: New.
385         * testsuite/libgomp.c/declare-variant-3.h: Extend.
387 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
389         * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
390         'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
391         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
392         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
393         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
394         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
395         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
396         * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
397         'scan-offload-tree-dump' to
398         'only_for_offload_target amdgcn-amdhsa'.
399         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
400         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
401         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
402         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
403         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
405 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
407         * testsuite/libgomp.c/declare-variant-3-sm30.c:
408         'dg-additional-options -foffload=nvptx-none'.
409         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
410         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
411         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
412         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
413         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
415 2023-11-29  Thomas Schwinge  <thomas@codesourcery.com>
417         * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
418         'scan-offload-ipa-dump's to
419         'only_for_offload_target amdgcn-amdhsa'.
420         * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
421         * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
423 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
425         * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
426         is now supported.
428 2023-11-22  Thomas Schwinge  <thomas@codesourcery.com>
430         * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
431         (f75, f80, f): Add '__attribute__ ((noipa))'.
432         * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
433         (gfx908, gfx90a, f): Likewise.
435 2023-11-15  Andrew Stubbs  <ams@codesourcery.com>
436             Andrew Jenner   <andrew@codesourcery.com>
438         * plugin/plugin-gcn.c (max_isa_vgprs): New.
439         (run_kernel): CDNA2 devices have more VGPRs.
441 2023-11-10  Tobias Burnus  <tobias@codesourcery.com>
443         * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
444         renamed section from TR11.
446 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
448         * config/linux/target-indirect.c: Move to...
449         * target-indirect.c: ...here.
451 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
453         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
454         * Makefile.in: Regenerate.
455         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
456         (GOMP_OFFLOAD_load_image): Add extra argument.
457         * libgomp.h (struct indirect_splay_tree_key_s): New.
458         (indirect_splay_tree_node, indirect_splay_tree,
459         indirect_splay_tree_key): New.
460         (indirect_splay_compare): New.
461         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
462         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
463         calls in target region and on indirect clause.
464         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
465         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
466         * oacc-host.c (host_load_image): Add extra argument.
467         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
468         enough, read host indirect functions table and pass to
469         load_image_func.
470         * config/accel/target-indirect.c: New.
471         * config/linux/target-indirect.c: New.
472         * config/gcn/team.c (build_indirect_map): Add prototype.
473         (gomp_gcn_enter_kernel): Initialize support for indirect
474         function calls on GCN target.
475         * config/nvptx/team.c (build_indirect_map): Add prototype.
476         (gomp_nvptx_main): Initialize support for indirect function
477         calls on NVPTX target.
478         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
479         indirect functions count.
480         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
481         is high enough, build address translation table and copy it to target
482         memory.
483         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
484         functions count.
485         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
486         is high enough, Build address translation table and copy it to target
487         memory.
488         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
489         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
490         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
492 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
494         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
495         supported also in C.
497 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
499         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
500         'acc_map_data' variant.
502 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
504         * oacc-parallel.c (GOACC_data_start): Handle
505         'GOACC_FLAG_LOCAL_DEVICE'.
506         (GOACC_parallel_keyed): Simplify accordingly.
507         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
509 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
511         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
512         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
513         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
514         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
515         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
517 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
519         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
520         GOACC_FLAG_LOCAL_DEVICE case.
521         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
523 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
525         * Makefile.am: Handle Darwin rpaths.
526         * Makefile.in: Regenerate.
527         * configure: Regenerate.
528         * configure.ac: Handle Darwin rpaths
530 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
532         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
533         (isa_hsa_name): Recognise gfx1030.
534         (isa_code): Likewise.
535         * team.c (defined): Remove s_endpgm.
537 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
539         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
540         _OPENMP >= 201811.
542 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
544         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
545         improve wording especially for Fortran; mention -fopenmp-simd.
546         (Enabling OpenACC): Minor cleanup; remove conditional compilation
547         sentinel.
549 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
551         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
552         Actually document what the function does.
553         (GCC_ACC_NOTIFY): Remove unused env var.
555 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
557         * libgomp.texi: Replace most future tense by present tense.
559 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
561         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
562         dg-additional-options "-fdump-tree-gimple"; fix scan.
564 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
566         * libgomp.texi: Fix some typos.
567         (Memory Management Routines): Document remaining 5.x routines.
568         (Memory allocation): Make clear when the section applies.
570 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
572         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
573         supports the allocate directive for stack variables.
574         * testsuite/libgomp.fortran/allocate-5.f90: New test.
575         * testsuite/libgomp.fortran/allocate-6.f90: New test.
576         * testsuite/libgomp.fortran/allocate-7.f90: New test.
577         * testsuite/libgomp.fortran/allocate-8.f90: New test.
579 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
581         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
582         OMP_TARGET_OFFLOAD.
583         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
584         clarify MANDATORY behavior.
586 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
588         * env.c (initialize_env): Use do_adjust_default_spincount.
589         * config/linux/x86/spincount.h: New file.
591 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
593         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
595 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
597         * libgomp.texi (Device Memory Routines): New.
599 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
601         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
602         and that other target archs have no 'arch'/'isa' traits implemented.
604 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
606         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
607         implemented for C only.
608         * testsuite/libgomp.c/allocate-4.c: New test.
609         * testsuite/libgomp.c/allocate-5.c: New test.
610         * testsuite/libgomp.c/allocate-6.c: New test.
612 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
614         PR c++/111392
615         * libgomp.texi: Mark decl attribute was added to the C++ attribute
616         syntax as implemented.
618 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
620         PR libgomp/111413
621         * env.c (initialize_env): Don't dereference environ if it is NULL.
622         Reindent.
624 2023-09-18  Richard Biener  <rguenther@suse.de>
626         PR tree-optimization/111294
627         * team.c (gomp_team_start): Assert alloca size to avoid false
628         positive alloc-size diagnostic.
630 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
631             Chung-Lin Tang  <cltang@codesourcery.com>
633         PR testsuite/91884
634         PR testsuite/109951
635         * configure.ac: Revert earlier changes, instead
636         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
637         * Makefile.in: Regenerate.
638         * configure: Likewise.
639         * testsuite/Makefile.in: Likewise.
640         * testsuite/lib/libgomp.exp (libgomp_init): Remove
641         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
642         If '--with-build-sysroot=[...]' was specified, use it for
643         build-tree testing.
644         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
645         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
646         (SYSROOT_CFLAGS_FOR_TARGET): Set.
647         * testsuite/libgomp.c++/c++.exp (lang_source_re)
648         (lang_include_flags): Set for build-tree testing.
649         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
650         (lang_include_flags): Likewise.
652 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
654         * libgomp.texi (Memory Management Routines): New; add documentation for
655         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
656         omp_get_default_allocator.
657         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
659 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
661         * target.c (gomp_unload_device): Remove tailing whitespace.
663 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
664             Thomas Schwinge  <thomas@codesourcery.com>
666         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
668 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
670         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
672 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
674         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
675         * testsuite/libgomp.fortran/imperfect1.f90: New.
676         * testsuite/libgomp.fortran/imperfect2.f90: New.
677         * testsuite/libgomp.fortran/imperfect3.f90: New.
678         * testsuite/libgomp.fortran/imperfect4.f90: New.
679         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
680         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
681         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
682         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
684 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
686         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
687         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
688         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
689         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
690         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
691         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
692         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
693         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
694         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
695         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
697 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
699         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
700         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
701         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
702         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
703         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
704         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
705         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
706         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
707         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
708         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
709         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
710         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
711         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
713 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
715         * testsuite/lib/libgomp.exp: Add effective target.
716         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
717         functions.
719 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
721         * libgomp.texi (OpenMP 5.2 status): Add depobj with
722         destroy-var argument as 'N'. Mark defaultmap with
723         'all' category as 'Y'.
725 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
727         PR middle-end/111017
728         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
730 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
732         PR libgomp/111024
733         * allocator.c (gomp_init_libnuma): Call numa_available; if
734         not available or not returning 0, disable libnuma usage.
736 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
738         * configure: Regenerate.
740 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
742         * configure: Regenerate.
744 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
746         * configure: Regenerate.
748 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
750         * configure: Regenerate.
752 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
754         * configure: Regenerate.
756 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
758         * configure: Regenerate.
760 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
762         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
763         GOMP_OFFLOAD_CAP_SHARED_MEM.
764         (omp_target_memcpy_rect_copy): Likewise for lock condition.
765         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
766         memcpy3d/memcpy2d.
767         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
768         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
769         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
771 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
773         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
774         GOMP_OFFLOAD_memcpy3d): New prototypes.
775         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
776         and memcpy3d_func.
777         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
778         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
779         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
780         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
781         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
782         GOMP_OFFLOAD_memcpy3d): New.
783         * target.c (omp_target_memcpy_rect_worker):
784         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
785         Permit all device-to-device copyies; invoke new plugins for
786         2D and 3D copying when available.
787         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
788         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
789         * testsuite/libgomp.fortran/target-12.f90: Likewise.
790         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
792 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
794         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
795         (Tasking Routines): Document omp_in_explicit_task.
796         (Implementation-defined ICV Initialization): Use @ref not @code.
798 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
800         * libgomp.texi (OpenMP Runtime Library Routines):
801         Split long list by adding sections and moving routines there.
802         (OMP_ALLOCATORS): Fix typo.
804 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
806         PR fortran/107424
807         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
808         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
809         commented tests.
810         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
811         test file; tests are in non-rectangular-loop-1.f90.
812         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
813         testcase to use a non-constant step to retain the 'sorry' test.
814         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
816 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
817             Chung-Lin Tang  <cltang@codesourcery.com>
819         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
820         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
822 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
824         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
825         the traits. Add crossref to 'Memory allocation'.
826         (Memory allocation): Refer to OMP_ALLOCATOR for the available
827         traits and allocators/mem spaces; document the default value
828         for the pool_size trait.
830 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
832         * allocator.c (omp_init_allocator): Check whether symbol from
833         dlopened libnuma is available before using libnuma for
834         allocations.
836 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
838         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
839         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
840         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
842 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
844         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
845         'Memory allocation' section which contains the full status.
846         (TR11): Remove differently worded duplicated entry.
848 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
850         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
851         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
852         add GOMP_MEMKIND_LIBNUMA.
853         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
854         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
855         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
856         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
857         needed.
858         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
859         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
860         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
861         updated for libnuma usage.
862         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
863         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
865 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
867         * allocator.c (omp_init_allocator): Use malloc for
868         omp_high_bw_mem_space when the memkind lib is unavailable
869         instead of returning omp_null_allocator.
870         * libgomp.texi (OpenMP 5.0): Fix typo.
871         (Memory allocation with libmemkind): Document implementation
872         in more detail.
874 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
876         * libgomp.texi: Use @var for ICV vars.
877         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
878         document which ICV is set and which scope the ICV has; extend/cleanup
879         some @ref.
880         (Implementation-defined ICV Initialization): New.
881         (nvptx): Document the implementation-defined used per-warp stack size.
883 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
885         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
886         error.
888 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
890         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
891         as expected dg-output.
893 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
895         PR middle-end/110270
896         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
897         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
898         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
899         * testsuite/libgomp.c/target-19.c: Update expected value.
900         * testsuite/libgomp.c++/target-18.C: Likewise.
901         * testsuite/libgomp.c++/target-19.C: Likewise.
902         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
903         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
904         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
906 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
908         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
909         gomp_init_targets_once was called before using default-device-var.
910         * testsuite/libgomp.c/target-55.c: New test.
911         * testsuite/libgomp.c/target-55a.c: New test.
913 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
915         * env.c (gomp_def_allocator_envvar): New var.
916         (parse_allocator): Handle OpenMP 5.1 syntax.
917         (cleanup_env): New.
918         (omp_display_env): Output gomp_def_allocator_envvar
919         for an allocator with traits.
920         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
921         OMP_DISPLAY_AFFINITY): New.
922         * testsuite/libgomp.c/allocator-1.c: New test.
923         * testsuite/libgomp.c/allocator-2.c: New test.
924         * testsuite/libgomp.c/allocator-3.c: New test.
925         * testsuite/libgomp.c/allocator-4.c: New test.
926         * testsuite/libgomp.c/allocator-5.c: New test.
927         * testsuite/libgomp.c/allocator-6.c: New test.
929 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
931         * target.c (resolve_device): Align a
932         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
933         * testsuite/libgomp.c/target-51.c: Adjust.
935 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
937         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
938         set.
939         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
940         Likewise.
941         * testsuite/libgomp.c/simd-math-1.c: Remove
942         '-foffload-options=-lm'.
943         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
944         Likewise.
945         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
946         Likewise.
948 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
950         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
951         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
952         Likewise.
954 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
956         * testsuite/libgomp.c/target-51.c: Fix typo.
958 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
960         * env.c (gomp_default_icv_values): Init default_device_var to
961         an nonconforming value - INT_MIN.
962         (initialize_env): After env-var parsing, set default_device_var to
963         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
964         (omp_display_env): If default_device_var is INT_MIN, call
965         gomp_init_targets_once.
966         * icv-device.c (omp_get_default_device): Likewise.
967         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
968         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
969         * target.c (resolve_device): Improve error message device-num < 0
970         with 'mandatory' and no no-host devices available.
971         (gomp_target_init): Set default-device-var if INT_MIN.
972         * testsuite/libgomp.c/target-48.c: New test.
973         * testsuite/libgomp.c/target-49.c: New test.
974         * testsuite/libgomp.c/target-50.c: New test.
975         * testsuite/libgomp.c/target-50a.c: New test.
976         * testsuite/libgomp.c/target-51.c: New test.
977         * testsuite/libgomp.c/target-52.c: New test.
978         * testsuite/libgomp.c/target-53.c: New test.
979         * testsuite/libgomp.c/target-54.c: New test.
981 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
983         PR libgomp/109837
984         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
985         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
987 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
989         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
990         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
991         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
992         error message.
993         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
994         changed error message.
995         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
996         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
997         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
998         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
999         extend testcase to check that data is copied when needed.
1000         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1001         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1003 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
1004             Tobias Burnus  <tobias@codesourcery.com>
1006         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1007         also for non-offload_device targets; check that it runs
1008         successfully for those and for all until a checkpoint for all
1009         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1010         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1011         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1012         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1013         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1014         add missing vars to map clause.
1016 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
1018         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1019         unified_address requirement as supported.
1020         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1021         'unified_address' from the not-supported requirements.
1023 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
1024             Tobias Burnus  <tobias@codesourcery.com>
1026         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1027         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1028         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1029         modifier.
1030         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1031         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1032         Emit runtime error if memory region not present.
1033         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1034         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1035         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1036         * testsuite/libgomp.fortran/target-present-1.f90: New test.
1037         * testsuite/libgomp.fortran/target-present-2.f90: New test.
1038         * testsuite/libgomp.fortran/target-present-3.f90: New test.
1040 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1042         PR testsuite/66005
1043         * testsuite/lib/libgomp.exp: 'flock' through stdout.
1044         * testsuite/flock: New.
1045         * configure.ac (FLOCK): Point to that if no 'flock' available, but
1046         'perl' is.
1047         * configure: Regenerate.
1049 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
1051         * configure.ac (PERL): Remove.
1052         * configure: Regenerate.
1053         * Makefile.in: Likewise.
1054         * testsuite/Makefile.in: Likewise.
1056 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
1058         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1060 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
1062         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1064 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
1066         PR libgomp/109875
1067         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1068         * config/nvptx/target.c (GOMP_teams4): Likewise.
1069         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1070         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1071         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1072         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1074 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
1076         PR libgomp/109904
1077         * configure.ac (link_gomp): Include also $DL_LIBS.
1078         * configure: Regenerated.
1080 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
1082         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1083         'target exit data'.
1084         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1085         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1086         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1087         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1089 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1091         PR testsuite/66005
1092         * configure.ac: Look for 'flock'.
1093         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1094         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1095         * testsuite/lib/libgomp.exp: ... but here, instead.
1096         (libgomp_load): Override for parallel testing.
1097         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1098         * configure: Regenerate.
1099         * Makefile.in: Regenerate.
1100         * testsuite/Makefile.in: Regenerate.
1102 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1103             Thomas Schwinge  <thomas@codesourcery.com>
1105         PR testsuite/66005
1106         * testsuite/Makefile.am (PWD_COMMAND): New variable.
1107         (%/site.exp): New target.
1108         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1109         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1110         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1111         (check_p_subdirs)
1112         (check_DEJAGNU_libgomp_targets): New variables.
1113         ($(check_DEJAGNU_libgomp_targets)): New target.
1114         ($(check_DEJAGNU_libgomp_targets)): New dependency.
1115         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1116         * testsuite/Makefile.in: Regenerate.
1117         * testsuite/lib/libgomp.exp: For parallel testing,
1118         'load_file ../libgomp-test-support.exp'.
1120 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1122         PR testsuite/91884
1123         * configure.ac: 'AC_SUBST(CXX)'.
1124         * configure: Regenerate.
1125         * Makefile.in: Likewise.
1126         * testsuite/Makefile.in: Likewise.
1127         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1128         (GFORTRAN_UNDER_TEST): Set.
1129         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1130         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1131         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1132         * testsuite/libgomp.fortran/fortran.exp: Use
1133         'GFORTRAN_UNDER_TEST'.
1134         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1136 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1138         PR testsuite/91884
1139         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1140         specify compiler.
1141         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1142         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1143         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1144         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1145         Likewise.
1146         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1147         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1148         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1149         Likewise.
1151 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
1153         PR libstdc++/109816
1154         * testsuite/libgomp.c++/target-map-class-1.C: New test.
1155         * testsuite/libgomp.c++/target-map-class-2.C: New test.
1157 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1159         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1160         'lang_library_path' into a list of 'lang_library_paths'.
1161         * testsuite/libgomp.c++/c++.exp: Adjust.
1162         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1163         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
1164         libquadmath, too.
1165         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1167 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1169         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1170         at 'lang_test_file_found'.
1171         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1172         'return' early if not able to test.  Simplify 'ld_library_path' setup.
1173         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1174         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1175         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1177 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1179         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1180         first.
1181         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1182         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1183         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1185 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1187         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1188         * testsuite/libgomp.c/c.exp: Likewise.
1189         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1190         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1191         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1192         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1193         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1195 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1197         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1198         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1199         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1200         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1201         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1202         'lang_test_file'.
1203         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1204         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1205         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1206         'lang_test_file_found' instead of 'lang_test_file'.
1208 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1210         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1211         set.
1212         * testsuite/libgomp.c++/c++.exp: Likewise.
1213         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1215 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1217         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1218         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1220 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1222         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1223         of 'libstdcxx_includes'.
1224         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1226 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1228         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1229         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1230         * libgomp.h (gomp_target_rev): Adjust.
1231         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1232         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1233         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1234         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1235         (rev_off_host_to_dev_cpy): Remove.
1236         (GOMP_OFFLOAD_run): Adjust.
1238 2023-05-04  Julian Brown  <julian@codesourcery.com>
1240         PR fortran/109622
1241         * testsuite/libgomp.fortran/pr109622.f90: Move test...
1242         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1243         vector length warning.
1244         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1245         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
1246         missing copyin/copyout variable. Ignore vector length warnings.
1247         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1248         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
1249         vector length warnings.
1250         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1252 2023-04-28  Julian Brown  <julian@codesourcery.com>
1254         PR fortran/109622
1255         * testsuite/libgomp.fortran/pr109622.f90: New test.
1256         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1257         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1259 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
1261         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1262         * testsuite/libgomp.c/scan-23.c: New test.
1263         * testsuite/libgomp.fortran/scan-2.f90: New test.
1265 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1267         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1268         weak_undefined options.
1270 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
1272         * libgomp.texi (Offload-Target Specifics): Grammar fix.
1274 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
1276         PR fortran/104949
1277         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1278         caveat/safeguard.
1280 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1282         PR libgomp/90596
1283         * target.c (gomp_map_vars_internal): Allow for
1284         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1285         * oacc-parallel.c (GOACC_parallel_keyed): Pass
1286         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1287         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1288         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1289         Adjust, simplify.
1290         (gomp_offload_free): Remove.
1291         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1292         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1293         (cuda_free_argmem): Remove.
1294         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1295         Adjust.
1297 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1299         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1300         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1301         data.
1303 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1305         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1306         'GOMP_MAP_IF_PRESENT'.
1307         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1308         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1309         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1310         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1311         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1312         testing.
1313         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1315 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1317         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1318         shortcut.
1320 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1322         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1323         another aspect of OpenACC 'async' semantics.
1325 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1327         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1328         position.
1329         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1330         Verify 'acc_ev_alloc', 'acc_ev_free'.
1332 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
1334         PR libgomp/109062
1335         * env.c (wait_policy): Initialize to -1.
1336         (initialize_icvs): Initialize icvs->wait_policy to -1.
1337         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1339 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
1341         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1343 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1344             Paul-Antoine Arras  <pa@codesourcery.com>
1346         * testsuite/libgomp.c/simd-math-1.c: New testcase.
1348 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
1350         PR middle-end/108546
1351         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1352         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1354 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1356         * testsuite/libgomp.fortran/alloc-10.f90: Use
1357         '-Wno-complain-wrong-lang'.
1358         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1359         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1360         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1361         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1362         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1363         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1364         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1365         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1366         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1367         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1368         Likewise.
1369         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1370         Likewise.
1371         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1372         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1373         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1374         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1375         'dg-prune-output'.
1377 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1379         * libgomp.texi: Fix typos - theads -> threads.
1381 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1383         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1384         comment typo and improve its wording.
1386 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1388         * target.c (gomp_target_rev): Dereference ptr
1389         to get device address.
1390         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1391         for unallocated allocatable.
1393 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1395         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1396         kind check.
1397         (GOMP_target_enter_exit_data): If the next map item is
1398         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1399         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1401 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
1403         PR fortran/107424
1404         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1405         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1406         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1407         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1408         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1409         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1411 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
1413         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1414         offloading compilation.
1416 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1418         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1419         freeing not allocated memory.
1420         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1422 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1424         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1425         reverse offload.
1426         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1427         reverse-offload requirement.
1429 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
1431         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1432         (DEFAULT_TEAM_ARENA_SIZE): New define.
1433         (struct heap): Move to this file.
1434         (struct kernargs_abi): Likewise.
1435         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1436         the kernargs.
1437         * libgomp.h: Include libgomp-gcn.h.
1438         (TEAM_ARENA_SIZE): Remove.
1439         (team_malloc): Update the error message.
1440         * plugin/plugin-gcn.c (struct kernargs): Move common content to
1441         struct kernargs_abi.
1442         (struct agent_info): Rename team arenas to ephemeral memories.
1443         (struct team_arena_list): Rename ....
1444         (struct ephemeral_memories_list): to this.
1445         (struct heap): Delete.
1446         (team_arena_size): New variable.
1447         (stack_size): New variable.
1448         (print_kernel_dispatch): Update debug messages.
1449         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1450         Read GCN_STACK_SIZE.
1451         (get_team_arena): Rename ...
1452         (configure_ephemeral_memories): ... to this, and set up stacks.
1453         (release_team_arena): Rename ...
1454         (release_ephemeral_memories): ... to this.
1455         (destroy_team_arenas): Rename ...
1456         (destroy_ephemeral_memories): ... to this.
1457         (create_kernel_dispatch): Add num_threads parameter.
1458         Adjust for kernargs_abi refactor and ephemeral memories.
1459         (release_kernel_dispatch): Adjust for ephemeral memories.
1460         (run_kernel): Pass thread-count to create_kernel_dispatch.
1461         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1462         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1464 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
1466         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1468 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1470         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1471         usage, remove unused -fdump-tree-original.
1472         * testsuite/libgomp.fortran/allocate-4.f90: New.
1474 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1476         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1477         (GCN): Add item about 'omp requires'.
1478         (nvptx): Likewise; add item about reverse offload.
1480 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
1482         PR fortran/108558
1483         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1485 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
1487         * libgomp.texi (OpenMP 5.0): Set non-rectangular
1488         loop nest back to 'P' as Fortran support is incomplete.
1490 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
1492         PR middle-end/108459
1493         * testsuite/libgomp.c/pr108459.c: New test.
1495 2023-01-17  Martin Liska  <mliska@suse.cz>
1497         * Makefile.in: Regenerate.
1498         * configure: Regenerate.
1500 2023-01-07  LIU Hao  <lh_mouse@126.com>
1502         PR middle-end/108300
1503         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1504         <windows.h>.
1506 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
1508         PR c++/108286
1509         * testsuite/libgomp.c++/pr108286.C: New test.
1511 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
1513         * libgomp.texi: Bump @copying's copyright year.
1515 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
1517         PR target/99555
1518         * config/nvptx/bar.c (generation_to_barrier): Remove.
1519         (futex_wait,futex_wake,do_spin,do_wait): Remove.
1520         (GOMP_WAIT_H): Remove.
1521         (#include "../linux/bar.c"): Remove.
1522         (gomp_barrier_wait_end): New function.
1523         (gomp_barrier_wait): Likewise.
1524         (gomp_barrier_wait_last): Likewise.
1525         (gomp_team_barrier_wait_end): Likewise.
1526         (gomp_team_barrier_wait): Likewise.
1527         (gomp_team_barrier_wait_final): Likewise.
1528         (gomp_team_barrier_wait_cancel_end): Likewise.
1529         (gomp_team_barrier_wait_cancel): Likewise.
1530         (gomp_team_barrier_cancel): Likewise.
1531         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1532         (gomp_barrier_init): Remove init of waiters, lock fields.
1533         (gomp_team_barrier_wake): Remove prototype, add new static inline
1534         function.
1536 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1538         PR c++/108180
1539         * testsuite/libgomp.c++/pr108180.C: New test.
1541 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1543         PR libfortran/108056
1544         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1545         accidentally added file.
1547 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1549         PR libfortran/108056
1550         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1552 2022-12-14  Julian Brown  <julian@codesourcery.com>
1554         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1555         test.
1557 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1559         * libgomp.h (struct target_mem_desc): Predeclare; move
1560         below after 'reverse_splay_tree_node' and add rev_array
1561         member.
1562         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1563         (reverse_splay_tree_node, reverse_splay_tree,
1564         reverse_splay_tree_key): New typedef.
1565         (struct gomp_device_descr): Add mem_map_rev member.
1566         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1567         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1568         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1569         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1570         splay_tree_callback but returning int not void.
1571         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1572         taking splay_tree_callback_stop as argument.
1573         * splay-tree.c (splay_tree_foreach_internal_lazy,
1574         splay_tree_foreach_lazy): New; but early exit if callback returns
1575         nonzero.
1576         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1577         (gomp_map_lookup_rev): New.
1578         (gomp_load_image_to_device): Handle reverse-offload function
1579         lookup table.
1580         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1581         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1582         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1583         gomp_map_cdata_lookup): New auxiliary structs and functions for
1584         gomp_target_rev.
1585         (gomp_target_rev): Implement reverse offloading and its mapping.
1586         (gomp_target_init): Init current_device.mem_map_rev.root.
1587         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1588         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1589         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1590         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1591         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1592         mapping of on-device allocated variables.
1594 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1596         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1597         item about 'align'; mark clause as 'Y' and directive as 'N'.
1598         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1599         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1601 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1603         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1604         allow processing of device-specific values.
1605         (omp_set_teams_thread_limit): Likewise.
1606         (ialias): Likewise.
1607         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1608         (omp_set_teams_thread_limit): Likewise.
1609         (ialias): Likewise.
1610         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1611         (ialias): Likewise.
1612         (omp_set_teams_thread_limit): Likewise.
1613         * icv.c (omp_set_teams_thread_limit): Removed.
1614         (omp_get_teams_thread_limit): Likewise.
1615         (ialias): Likewise.
1616         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1617         to the limitation of the number of teams.
1618         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1619         the number of teams by twice the number of compute units.
1620         (parse_target_attributes): Limit the number of teams on gcn offload
1621         devices.
1622         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1623         handling.
1624         (gomp_load_image_to_device): Added a size check for the ICVs struct
1625         variable.
1626         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1627         copy back the ICV values from device to host.
1628         (GOMP_target_ext): Update the number of teams and threads in the kernel
1629         args also considering device-specific values.
1630         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1631         of OMP_TEAMS_THREAD_LIMIT from the environment.
1632         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1633         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1634         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1635         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1636         * testsuite/libgomp.fortran/icv-5.f90: New test.
1637         * testsuite/libgomp.fortran/icv-6.f90: New test.
1639 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1641         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1642         (TR11): Add missing '@tab N @tab'.
1644 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1646         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1648 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1650         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1651         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1652         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1653         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1654         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1655         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1656         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1658 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1660         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1662 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1664         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1665         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1666         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1667         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1669 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1671         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1672         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1673         as valid and the code having no reverse-offload code.
1674         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1676 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1678         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1679         and status for Technical Report (TR) 11.
1681 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1683         * config/gcn/libgomp-gcn.h (struct output):
1684         Remove 'msg_u64' from the union, change
1685         value_u64[2] to value_u64[6].
1686         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1687         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1688         Likewise.
1690 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1692         * config/gcn/libgomp-gcn.h: New file; contains
1693         struct output, declared previously in plugin-gcn.c.
1694         * config/gcn/target.c: Include it.
1695         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1696         (GOMP_target_ext): Handle reverse offload.
1697         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1698         (struct kernargs): Replace struct def by the one
1699         from libgomp-gcn.h for output_data.
1700         (process_reverse_offload): New.
1701         (console_output): Call it.
1703 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1704             Andrew Stubbs  <ams@codesourcery.com>
1706         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1707         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1709 2022-11-14  Martin Liska  <mliska@suse.cz>
1711         Revert:
1712         2022-11-14  Martin Liska  <mliska@suse.cz>
1714         * doc/amd-radeon-gcn.rst: New file.
1715         * doc/conf.py: New file.
1716         * doc/copyright.rst: New file.
1717         * doc/cuda-streams-usage.rst: New file.
1718         * doc/enabling-openacc.rst: New file.
1719         * doc/enabling-openmp.rst: New file.
1720         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1721         * doc/first-invocation-openacc-library-api.rst: New file.
1722         * doc/funding.rst: New file.
1723         * doc/general-public-license-3.rst: New file.
1724         * doc/gnu-free-documentation-license.rst: New file.
1725         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1726         * doc/index.rst: New file.
1727         * doc/indices-and-tables.rst: New file.
1728         * doc/introduction.rst: New file.
1729         * doc/memory-allocation-with-libmemkind.rst: New file.
1730         * doc/nvptx.rst: New file.
1731         * doc/offload-target-specifics.rst: New file.
1732         * doc/openacc-environment-variables.rst: New file.
1733         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1734         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1735         * doc/openacc-environment-variables/accproflib.rst: New file.
1736         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1737         * doc/openacc-introduction.rst: New file.
1738         * doc/openacc-library-and-environment-variables.rst: New file.
1739         * doc/openacc-library-interoperability.rst: New file.
1740         * doc/openacc-profiling-interface.rst: New file.
1741         * doc/openacc-runtime-library-routines.rst: New file.
1742         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1743         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1744         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1745         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1746         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1747         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1748         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1749         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1750         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1751         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1752         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1753         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1754         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1755         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1756         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1757         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1758         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1759         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1760         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1761         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1762         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1763         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1764         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1765         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1766         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1767         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1768         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1769         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1770         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1771         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1772         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1773         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1774         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1775         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1776         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1777         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1778         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1779         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1780         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1781         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1782         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1783         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1784         * doc/openmp-context-selectors.rst: New file.
1785         * doc/openmp-environment-variables.rst: New file.
1786         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1787         * doc/openmp-environment-variables/gompdebug.rst: New file.
1788         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1789         * doc/openmp-environment-variables/gompspincount.rst: New file.
1790         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1791         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1792         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1793         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1794         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1795         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1796         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1797         * doc/openmp-environment-variables/ompnested.rst: New file.
1798         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1799         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1800         * doc/openmp-environment-variables/ompplaces.rst: New file.
1801         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1802         * doc/openmp-environment-variables/ompschedule.rst: New file.
1803         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1804         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1805         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1806         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1807         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1808         * doc/openmp-implementation-specifics.rst: New file.
1809         * doc/openmp-implementation-status.rst: New file.
1810         * doc/openmp-implementation-status/openmp-45.rst: New file.
1811         * doc/openmp-implementation-status/openmp-50.rst: New file.
1812         * doc/openmp-implementation-status/openmp-51.rst: New file.
1813         * doc/openmp-implementation-status/openmp-52.rst: New file.
1814         * doc/openmp-runtime-library-routines.rst: New file.
1815         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1816         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1817         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1818         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1819         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1820         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1821         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1822         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1823         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1824         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1825         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1826         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1827         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1828         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1829         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1830         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1831         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1832         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1833         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1834         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1835         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1836         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1837         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1838         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1839         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1840         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1841         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1842         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1843         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1844         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1845         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1846         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1847         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1848         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1849         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1850         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1851         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1852         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1853         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1854         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1855         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1856         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1857         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1858         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1859         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1860         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1861         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1862         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1863         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1864         * doc/reporting-bugs.rst: New file.
1865         * doc/the-libgomp-abi.rst: New file.
1866         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1867         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1868         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1869         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1870         New file.
1871         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1872         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1873         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1874         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1875         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1876         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1877         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1878         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1879         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1880         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1881         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1883 2022-11-14  Martin Liska  <mliska@suse.cz>
1885         Revert:
1886         2022-11-14  Martin Liska  <mliska@suse.cz>
1888         * Makefile.in: Support Sphinx based documentation.
1890 2022-11-14  Martin Liska  <mliska@suse.cz>
1892         Revert:
1893         2022-11-14  Martin Liska  <mliska@suse.cz>
1895         * libgomp.texi: Removed.
1897 2022-11-14  Martin Liska  <mliska@suse.cz>
1899         Revert:
1900         2022-11-14  Martin Liska  <mliska@suse.cz>
1902         * Makefile.in: Support --with-sphinx-build.
1903         * configure.ac: Likewise..
1904         * configure: Regenerate.
1906 2022-11-14  Martin Liska  <mliska@suse.cz>
1908         Revert:
1909         2022-11-09  Martin Liska  <mliska@suse.cz>
1911         * Makefile.in: Build info pages conditionally.
1913 2022-11-14  Martin Liska  <mliska@suse.cz>
1915         Revert:
1916         2022-11-14  Martin Liska  <mliska@suse.cz>
1918         * doc/amd-radeon-gcn.rst:
1919         Add trailing newline.
1920         * doc/copyright.rst:
1921         Add trailing newline.
1922         * doc/cuda-streams-usage.rst:
1923         Add trailing newline.
1924         * doc/enabling-openacc.rst:
1925         Add trailing newline.
1926         * doc/enabling-openmp.rst:
1927         Add trailing newline.
1928         * doc/first-invocation-nvidia-cublas-library-api.rst:
1929         Add trailing newline.
1930         * doc/first-invocation-openacc-library-api.rst:
1931         Add trailing newline.
1932         * doc/funding.rst:
1933         Add trailing newline.
1934         * doc/general-public-license-3.rst:
1935         Add trailing newline.
1936         * doc/gnu-free-documentation-license.rst:
1937         Add trailing newline.
1938         * doc/implementation-status-and-implementation-defined-behavior.rst:
1939         Add trailing newline.
1940         * doc/index.rst:
1941         Add trailing newline.
1942         * doc/indices-and-tables.rst:
1943         Add trailing newline.
1944         * doc/introduction.rst:
1945         Add trailing newline.
1946         * doc/memory-allocation-with-libmemkind.rst:
1947         Add trailing newline.
1948         * doc/nvptx.rst:
1949         Add trailing newline.
1950         * doc/offload-target-specifics.rst:
1951         Add trailing newline.
1952         * doc/openacc-environment-variables.rst:
1953         Add trailing newline.
1954         * doc/openacc-environment-variables/accdevicenum.rst:
1955         Add trailing newline.
1956         * doc/openacc-environment-variables/accdevicetype.rst:
1957         Add trailing newline.
1958         * doc/openacc-environment-variables/accproflib.rst:
1959         Add trailing newline.
1960         * doc/openacc-environment-variables/gccaccnotify.rst:
1961         Add trailing newline.
1962         * doc/openacc-introduction.rst:
1963         Add trailing newline.
1964         * doc/openacc-library-and-environment-variables.rst:
1965         Add trailing newline.
1966         * doc/openacc-library-interoperability.rst:
1967         Add trailing newline.
1968         * doc/openacc-profiling-interface.rst:
1969         Add trailing newline.
1970         * doc/openacc-runtime-library-routines.rst:
1971         Add trailing newline.
1972         * doc/openacc-runtime-library-routines/accasynctest.rst:
1973         Add trailing newline.
1974         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1975         Add trailing newline.
1976         * doc/openacc-runtime-library-routines/accattach.rst:
1977         Add trailing newline.
1978         * doc/openacc-runtime-library-routines/acccopyin.rst:
1979         Add trailing newline.
1980         * doc/openacc-runtime-library-routines/acccopyout.rst:
1981         Add trailing newline.
1982         * doc/openacc-runtime-library-routines/acccreate.rst:
1983         Add trailing newline.
1984         * doc/openacc-runtime-library-routines/accdelete.rst:
1985         Add trailing newline.
1986         * doc/openacc-runtime-library-routines/accdetach.rst:
1987         Add trailing newline.
1988         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1989         Add trailing newline.
1990         * doc/openacc-runtime-library-routines/accfree.rst:
1991         Add trailing newline.
1992         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1993         Add trailing newline.
1994         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1995         Add trailing newline.
1996         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1997         Add trailing newline.
1998         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1999         Add trailing newline.
2000         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2001         Add trailing newline.
2002         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2003         Add trailing newline.
2004         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2005         Add trailing newline.
2006         * doc/openacc-runtime-library-routines/acchostptr.rst:
2007         Add trailing newline.
2008         * doc/openacc-runtime-library-routines/accinit.rst:
2009         Add trailing newline.
2010         * doc/openacc-runtime-library-routines/accispresent.rst:
2011         Add trailing newline.
2012         * doc/openacc-runtime-library-routines/accmalloc.rst:
2013         Add trailing newline.
2014         * doc/openacc-runtime-library-routines/accmapdata.rst:
2015         Add trailing newline.
2016         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2017         Add trailing newline.
2018         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2019         Add trailing newline.
2020         * doc/openacc-runtime-library-routines/accondevice.rst:
2021         Add trailing newline.
2022         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2023         Add trailing newline.
2024         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2025         Add trailing newline.
2026         * doc/openacc-runtime-library-routines/accproflookup.rst:
2027         Add trailing newline.
2028         * doc/openacc-runtime-library-routines/accprofregister.rst:
2029         Add trailing newline.
2030         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2031         Add trailing newline.
2032         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2033         Add trailing newline.
2034         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2035         Add trailing newline.
2036         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2037         Add trailing newline.
2038         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2039         Add trailing newline.
2040         * doc/openacc-runtime-library-routines/accshutdown.rst:
2041         Add trailing newline.
2042         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2043         Add trailing newline.
2044         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2045         Add trailing newline.
2046         * doc/openacc-runtime-library-routines/accupdateself.rst:
2047         Add trailing newline.
2048         * doc/openacc-runtime-library-routines/accwait.rst:
2049         Add trailing newline.
2050         * doc/openacc-runtime-library-routines/accwaitall.rst:
2051         Add trailing newline.
2052         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2053         Add trailing newline.
2054         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2055         Add trailing newline.
2056         * doc/openmp-context-selectors.rst:
2057         Add trailing newline.
2058         * doc/openmp-environment-variables.rst:
2059         Add trailing newline.
2060         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2061         Add trailing newline.
2062         * doc/openmp-environment-variables/gompdebug.rst:
2063         Add trailing newline.
2064         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2065         Add trailing newline.
2066         * doc/openmp-environment-variables/gompspincount.rst:
2067         Add trailing newline.
2068         * doc/openmp-environment-variables/gompstacksize.rst:
2069         Add trailing newline.
2070         * doc/openmp-environment-variables/ompcancellation.rst:
2071         Add trailing newline.
2072         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2073         Add trailing newline.
2074         * doc/openmp-environment-variables/ompdisplayenv.rst:
2075         Add trailing newline.
2076         * doc/openmp-environment-variables/ompdynamic.rst:
2077         Add trailing newline.
2078         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2079         Add trailing newline.
2080         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2081         Add trailing newline.
2082         * doc/openmp-environment-variables/ompnested.rst:
2083         Add trailing newline.
2084         * doc/openmp-environment-variables/ompnumteams.rst:
2085         Add trailing newline.
2086         * doc/openmp-environment-variables/ompnumthreads.rst:
2087         Add trailing newline.
2088         * doc/openmp-environment-variables/ompplaces.rst:
2089         Add trailing newline.
2090         * doc/openmp-environment-variables/ompprocbind.rst:
2091         Add trailing newline.
2092         * doc/openmp-environment-variables/ompschedule.rst:
2093         Add trailing newline.
2094         * doc/openmp-environment-variables/ompstacksize.rst:
2095         Add trailing newline.
2096         * doc/openmp-environment-variables/omptargetoffload.rst:
2097         Add trailing newline.
2098         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2099         Add trailing newline.
2100         * doc/openmp-environment-variables/ompthreadlimit.rst:
2101         Add trailing newline.
2102         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2103         Add trailing newline.
2104         * doc/openmp-implementation-specifics.rst:
2105         Add trailing newline.
2106         * doc/openmp-implementation-status.rst:
2107         Add trailing newline.
2108         * doc/openmp-implementation-status/openmp-45.rst:
2109         Add trailing newline.
2110         * doc/openmp-implementation-status/openmp-50.rst:
2111         Add trailing newline.
2112         * doc/openmp-implementation-status/openmp-51.rst:
2113         Add trailing newline.
2114         * doc/openmp-implementation-status/openmp-52.rst:
2115         Add trailing newline.
2116         * doc/openmp-runtime-library-routines.rst:
2117         Add trailing newline.
2118         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2119         Add trailing newline.
2120         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2121         Add trailing newline.
2122         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2123         Add trailing newline.
2124         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2125         Add trailing newline.
2126         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2127         Add trailing newline.
2128         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2129         Add trailing newline.
2130         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2131         Add trailing newline.
2132         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2133         Add trailing newline.
2134         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2135         Add trailing newline.
2136         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2137         Add trailing newline.
2138         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2139         Add trailing newline.
2140         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2141         Add trailing newline.
2142         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2143         Add trailing newline.
2144         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2145         Add trailing newline.
2146         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2147         Add trailing newline.
2148         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2149         Add trailing newline.
2150         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2151         Add trailing newline.
2152         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2153         Add trailing newline.
2154         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2155         Add trailing newline.
2156         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2157         Add trailing newline.
2158         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2159         Add trailing newline.
2160         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2161         Add trailing newline.
2162         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2163         Add trailing newline.
2164         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2165         Add trailing newline.
2166         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2167         Add trailing newline.
2168         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2169         Add trailing newline.
2170         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2171         Add trailing newline.
2172         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2173         Add trailing newline.
2174         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2175         Add trailing newline.
2176         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2177         Add trailing newline.
2178         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2179         Add trailing newline.
2180         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2181         Add trailing newline.
2182         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2183         Add trailing newline.
2184         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2185         Add trailing newline.
2186         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2187         Add trailing newline.
2188         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2189         Add trailing newline.
2190         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2191         Add trailing newline.
2192         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2193         Add trailing newline.
2194         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2195         Add trailing newline.
2196         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2197         Add trailing newline.
2198         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2199         Add trailing newline.
2200         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2201         Add trailing newline.
2202         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2203         Add trailing newline.
2204         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2205         Add trailing newline.
2206         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2207         Add trailing newline.
2208         * doc/openmp-runtime-library-routines/omptestlock.rst:
2209         Add trailing newline.
2210         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2211         Add trailing newline.
2212         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2213         Add trailing newline.
2214         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2215         Add trailing newline.
2216         * doc/reporting-bugs.rst:
2217         Add trailing newline.
2218         * doc/the-libgomp-abi.rst:
2219         Add trailing newline.
2220         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2221         Add trailing newline.
2222         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2223         Add trailing newline.
2224         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2225         Add trailing newline.
2226         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2227         Add trailing newline.
2228         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2229         Add trailing newline.
2230         * doc/the-libgomp-abi/implementing-for-construct.rst:
2231         Add trailing newline.
2232         * doc/the-libgomp-abi/implementing-master-construct.rst:
2233         Add trailing newline.
2234         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2235         Add trailing newline.
2236         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2237         Add trailing newline.
2238         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2239         Add trailing newline.
2240         * doc/the-libgomp-abi/implementing-private-clause.rst:
2241         Add trailing newline.
2242         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2243         Add trailing newline.
2244         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2245         Add trailing newline.
2246         * doc/the-libgomp-abi/implementing-single-construct.rst:
2247         Add trailing newline.
2248         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2249         Add trailing newline.
2251 2022-11-14  Martin Liska  <mliska@suse.cz>
2253         Revert:
2254         2022-11-09  Martin Liska  <mliska@suse.cz>
2256         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2258 2022-11-14  Martin Liska  <mliska@suse.cz>
2260         Revert:
2261         2022-11-14  Martin Liska  <mliska@suse.cz>
2263         * doc/conf.py: Add newline at last line.
2265 2022-11-14  Martin Liska  <mliska@suse.cz>
2267         Revert:
2268         2022-11-14  Martin Liska  <mliska@suse.cz>
2270         PR other/107620
2271         * configure: Regenerate.
2272         * configure.ac: Always set sphinx-build.
2274 2022-11-13  Martin Liska  <mliska@suse.cz>
2276         PR other/107620
2277         * configure: Regenerate.
2278         * configure.ac: Always set sphinx-build.
2280 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
2282         PR libgomp/107641
2283         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2284         unsigned long.  Change type of upper from unsigned to unsigned long.
2286 2022-11-10  Martin Liska  <mliska@suse.cz>
2288         * doc/conf.py: Add newline at last line.
2290 2022-11-09  Martin Liska  <mliska@suse.cz>
2292         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2294 2022-11-09  Martin Liska  <mliska@suse.cz>
2296         * doc/amd-radeon-gcn.rst:
2297         Add trailing newline.
2298         * doc/copyright.rst:
2299         Add trailing newline.
2300         * doc/cuda-streams-usage.rst:
2301         Add trailing newline.
2302         * doc/enabling-openacc.rst:
2303         Add trailing newline.
2304         * doc/enabling-openmp.rst:
2305         Add trailing newline.
2306         * doc/first-invocation-nvidia-cublas-library-api.rst:
2307         Add trailing newline.
2308         * doc/first-invocation-openacc-library-api.rst:
2309         Add trailing newline.
2310         * doc/funding.rst:
2311         Add trailing newline.
2312         * doc/general-public-license-3.rst:
2313         Add trailing newline.
2314         * doc/gnu-free-documentation-license.rst:
2315         Add trailing newline.
2316         * doc/implementation-status-and-implementation-defined-behavior.rst:
2317         Add trailing newline.
2318         * doc/index.rst:
2319         Add trailing newline.
2320         * doc/indices-and-tables.rst:
2321         Add trailing newline.
2322         * doc/introduction.rst:
2323         Add trailing newline.
2324         * doc/memory-allocation-with-libmemkind.rst:
2325         Add trailing newline.
2326         * doc/nvptx.rst:
2327         Add trailing newline.
2328         * doc/offload-target-specifics.rst:
2329         Add trailing newline.
2330         * doc/openacc-environment-variables.rst:
2331         Add trailing newline.
2332         * doc/openacc-environment-variables/accdevicenum.rst:
2333         Add trailing newline.
2334         * doc/openacc-environment-variables/accdevicetype.rst:
2335         Add trailing newline.
2336         * doc/openacc-environment-variables/accproflib.rst:
2337         Add trailing newline.
2338         * doc/openacc-environment-variables/gccaccnotify.rst:
2339         Add trailing newline.
2340         * doc/openacc-introduction.rst:
2341         Add trailing newline.
2342         * doc/openacc-library-and-environment-variables.rst:
2343         Add trailing newline.
2344         * doc/openacc-library-interoperability.rst:
2345         Add trailing newline.
2346         * doc/openacc-profiling-interface.rst:
2347         Add trailing newline.
2348         * doc/openacc-runtime-library-routines.rst:
2349         Add trailing newline.
2350         * doc/openacc-runtime-library-routines/accasynctest.rst:
2351         Add trailing newline.
2352         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2353         Add trailing newline.
2354         * doc/openacc-runtime-library-routines/accattach.rst:
2355         Add trailing newline.
2356         * doc/openacc-runtime-library-routines/acccopyin.rst:
2357         Add trailing newline.
2358         * doc/openacc-runtime-library-routines/acccopyout.rst:
2359         Add trailing newline.
2360         * doc/openacc-runtime-library-routines/acccreate.rst:
2361         Add trailing newline.
2362         * doc/openacc-runtime-library-routines/accdelete.rst:
2363         Add trailing newline.
2364         * doc/openacc-runtime-library-routines/accdetach.rst:
2365         Add trailing newline.
2366         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2367         Add trailing newline.
2368         * doc/openacc-runtime-library-routines/accfree.rst:
2369         Add trailing newline.
2370         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2371         Add trailing newline.
2372         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2373         Add trailing newline.
2374         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2375         Add trailing newline.
2376         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2377         Add trailing newline.
2378         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2379         Add trailing newline.
2380         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2381         Add trailing newline.
2382         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2383         Add trailing newline.
2384         * doc/openacc-runtime-library-routines/acchostptr.rst:
2385         Add trailing newline.
2386         * doc/openacc-runtime-library-routines/accinit.rst:
2387         Add trailing newline.
2388         * doc/openacc-runtime-library-routines/accispresent.rst:
2389         Add trailing newline.
2390         * doc/openacc-runtime-library-routines/accmalloc.rst:
2391         Add trailing newline.
2392         * doc/openacc-runtime-library-routines/accmapdata.rst:
2393         Add trailing newline.
2394         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2395         Add trailing newline.
2396         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2397         Add trailing newline.
2398         * doc/openacc-runtime-library-routines/accondevice.rst:
2399         Add trailing newline.
2400         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2401         Add trailing newline.
2402         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2403         Add trailing newline.
2404         * doc/openacc-runtime-library-routines/accproflookup.rst:
2405         Add trailing newline.
2406         * doc/openacc-runtime-library-routines/accprofregister.rst:
2407         Add trailing newline.
2408         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2409         Add trailing newline.
2410         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2411         Add trailing newline.
2412         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2413         Add trailing newline.
2414         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2415         Add trailing newline.
2416         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2417         Add trailing newline.
2418         * doc/openacc-runtime-library-routines/accshutdown.rst:
2419         Add trailing newline.
2420         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2421         Add trailing newline.
2422         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2423         Add trailing newline.
2424         * doc/openacc-runtime-library-routines/accupdateself.rst:
2425         Add trailing newline.
2426         * doc/openacc-runtime-library-routines/accwait.rst:
2427         Add trailing newline.
2428         * doc/openacc-runtime-library-routines/accwaitall.rst:
2429         Add trailing newline.
2430         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2431         Add trailing newline.
2432         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2433         Add trailing newline.
2434         * doc/openmp-context-selectors.rst:
2435         Add trailing newline.
2436         * doc/openmp-environment-variables.rst:
2437         Add trailing newline.
2438         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2439         Add trailing newline.
2440         * doc/openmp-environment-variables/gompdebug.rst:
2441         Add trailing newline.
2442         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2443         Add trailing newline.
2444         * doc/openmp-environment-variables/gompspincount.rst:
2445         Add trailing newline.
2446         * doc/openmp-environment-variables/gompstacksize.rst:
2447         Add trailing newline.
2448         * doc/openmp-environment-variables/ompcancellation.rst:
2449         Add trailing newline.
2450         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2451         Add trailing newline.
2452         * doc/openmp-environment-variables/ompdisplayenv.rst:
2453         Add trailing newline.
2454         * doc/openmp-environment-variables/ompdynamic.rst:
2455         Add trailing newline.
2456         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2457         Add trailing newline.
2458         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2459         Add trailing newline.
2460         * doc/openmp-environment-variables/ompnested.rst:
2461         Add trailing newline.
2462         * doc/openmp-environment-variables/ompnumteams.rst:
2463         Add trailing newline.
2464         * doc/openmp-environment-variables/ompnumthreads.rst:
2465         Add trailing newline.
2466         * doc/openmp-environment-variables/ompplaces.rst:
2467         Add trailing newline.
2468         * doc/openmp-environment-variables/ompprocbind.rst:
2469         Add trailing newline.
2470         * doc/openmp-environment-variables/ompschedule.rst:
2471         Add trailing newline.
2472         * doc/openmp-environment-variables/ompstacksize.rst:
2473         Add trailing newline.
2474         * doc/openmp-environment-variables/omptargetoffload.rst:
2475         Add trailing newline.
2476         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2477         Add trailing newline.
2478         * doc/openmp-environment-variables/ompthreadlimit.rst:
2479         Add trailing newline.
2480         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2481         Add trailing newline.
2482         * doc/openmp-implementation-specifics.rst:
2483         Add trailing newline.
2484         * doc/openmp-implementation-status.rst:
2485         Add trailing newline.
2486         * doc/openmp-implementation-status/openmp-45.rst:
2487         Add trailing newline.
2488         * doc/openmp-implementation-status/openmp-50.rst:
2489         Add trailing newline.
2490         * doc/openmp-implementation-status/openmp-51.rst:
2491         Add trailing newline.
2492         * doc/openmp-implementation-status/openmp-52.rst:
2493         Add trailing newline.
2494         * doc/openmp-runtime-library-routines.rst:
2495         Add trailing newline.
2496         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2497         Add trailing newline.
2498         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2499         Add trailing newline.
2500         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2501         Add trailing newline.
2502         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2503         Add trailing newline.
2504         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2505         Add trailing newline.
2506         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2507         Add trailing newline.
2508         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2509         Add trailing newline.
2510         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2511         Add trailing newline.
2512         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2513         Add trailing newline.
2514         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2515         Add trailing newline.
2516         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2517         Add trailing newline.
2518         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2519         Add trailing newline.
2520         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2521         Add trailing newline.
2522         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2523         Add trailing newline.
2524         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2525         Add trailing newline.
2526         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2527         Add trailing newline.
2528         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2529         Add trailing newline.
2530         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2531         Add trailing newline.
2532         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2533         Add trailing newline.
2534         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2535         Add trailing newline.
2536         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2537         Add trailing newline.
2538         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2539         Add trailing newline.
2540         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2541         Add trailing newline.
2542         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2543         Add trailing newline.
2544         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2545         Add trailing newline.
2546         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2547         Add trailing newline.
2548         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2549         Add trailing newline.
2550         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2551         Add trailing newline.
2552         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2553         Add trailing newline.
2554         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2555         Add trailing newline.
2556         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2557         Add trailing newline.
2558         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2559         Add trailing newline.
2560         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2561         Add trailing newline.
2562         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2563         Add trailing newline.
2564         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2565         Add trailing newline.
2566         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2567         Add trailing newline.
2568         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2569         Add trailing newline.
2570         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2571         Add trailing newline.
2572         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2573         Add trailing newline.
2574         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2575         Add trailing newline.
2576         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2577         Add trailing newline.
2578         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2579         Add trailing newline.
2580         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2581         Add trailing newline.
2582         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2583         Add trailing newline.
2584         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2585         Add trailing newline.
2586         * doc/openmp-runtime-library-routines/omptestlock.rst:
2587         Add trailing newline.
2588         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2589         Add trailing newline.
2590         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2591         Add trailing newline.
2592         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2593         Add trailing newline.
2594         * doc/reporting-bugs.rst:
2595         Add trailing newline.
2596         * doc/the-libgomp-abi.rst:
2597         Add trailing newline.
2598         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2599         Add trailing newline.
2600         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2601         Add trailing newline.
2602         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2603         Add trailing newline.
2604         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2605         Add trailing newline.
2606         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2607         Add trailing newline.
2608         * doc/the-libgomp-abi/implementing-for-construct.rst:
2609         Add trailing newline.
2610         * doc/the-libgomp-abi/implementing-master-construct.rst:
2611         Add trailing newline.
2612         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2613         Add trailing newline.
2614         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2615         Add trailing newline.
2616         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2617         Add trailing newline.
2618         * doc/the-libgomp-abi/implementing-private-clause.rst:
2619         Add trailing newline.
2620         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2621         Add trailing newline.
2622         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2623         Add trailing newline.
2624         * doc/the-libgomp-abi/implementing-single-construct.rst:
2625         Add trailing newline.
2626         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2627         Add trailing newline.
2629 2022-11-09  Martin Liska  <mliska@suse.cz>
2631         * Makefile.in: Build info pages conditionally.
2633 2022-11-09  Martin Liska  <mliska@suse.cz>
2635         * Makefile.in: Support --with-sphinx-build.
2636         * configure.ac: Likewise..
2637         * configure: Regenerate.
2639 2022-11-09  Martin Liska  <mliska@suse.cz>
2641         * libgomp.texi: Removed.
2643 2022-11-09  Martin Liska  <mliska@suse.cz>
2645         * Makefile.in: Support Sphinx based documentation.
2647 2022-11-09  Martin Liska  <mliska@suse.cz>
2649         * doc/amd-radeon-gcn.rst: New file.
2650         * doc/conf.py: New file.
2651         * doc/copyright.rst: New file.
2652         * doc/cuda-streams-usage.rst: New file.
2653         * doc/enabling-openacc.rst: New file.
2654         * doc/enabling-openmp.rst: New file.
2655         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2656         * doc/first-invocation-openacc-library-api.rst: New file.
2657         * doc/funding.rst: New file.
2658         * doc/general-public-license-3.rst: New file.
2659         * doc/gnu-free-documentation-license.rst: New file.
2660         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2661         * doc/index.rst: New file.
2662         * doc/indices-and-tables.rst: New file.
2663         * doc/introduction.rst: New file.
2664         * doc/memory-allocation-with-libmemkind.rst: New file.
2665         * doc/nvptx.rst: New file.
2666         * doc/offload-target-specifics.rst: New file.
2667         * doc/openacc-environment-variables.rst: New file.
2668         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2669         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2670         * doc/openacc-environment-variables/accproflib.rst: New file.
2671         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2672         * doc/openacc-introduction.rst: New file.
2673         * doc/openacc-library-and-environment-variables.rst: New file.
2674         * doc/openacc-library-interoperability.rst: New file.
2675         * doc/openacc-profiling-interface.rst: New file.
2676         * doc/openacc-runtime-library-routines.rst: New file.
2677         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2678         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2679         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2680         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2681         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2682         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2683         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2684         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2685         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2686         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2687         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2688         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2689         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2690         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2691         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2692         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2693         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2694         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2695         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2696         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2697         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2698         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2699         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2700         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2701         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2702         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2703         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2704         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2705         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2706         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2707         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2708         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2709         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2710         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2711         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2712         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2713         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2714         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2715         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2716         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2717         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2718         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2719         * doc/openmp-context-selectors.rst: New file.
2720         * doc/openmp-environment-variables.rst: New file.
2721         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2722         * doc/openmp-environment-variables/gompdebug.rst: New file.
2723         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2724         * doc/openmp-environment-variables/gompspincount.rst: New file.
2725         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2726         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2727         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2728         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2729         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2730         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2731         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2732         * doc/openmp-environment-variables/ompnested.rst: New file.
2733         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2734         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2735         * doc/openmp-environment-variables/ompplaces.rst: New file.
2736         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2737         * doc/openmp-environment-variables/ompschedule.rst: New file.
2738         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2739         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2740         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2741         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2742         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2743         * doc/openmp-implementation-specifics.rst: New file.
2744         * doc/openmp-implementation-status.rst: New file.
2745         * doc/openmp-implementation-status/openmp-45.rst: New file.
2746         * doc/openmp-implementation-status/openmp-50.rst: New file.
2747         * doc/openmp-implementation-status/openmp-51.rst: New file.
2748         * doc/openmp-implementation-status/openmp-52.rst: New file.
2749         * doc/openmp-runtime-library-routines.rst: New file.
2750         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2751         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2752         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2753         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2754         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2755         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2756         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2757         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2758         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2759         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2760         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2761         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2762         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2763         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2764         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2765         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2766         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2767         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2768         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2769         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2770         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2771         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2772         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2773         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2774         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2775         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2776         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2777         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2778         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2779         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2780         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2781         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2782         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2783         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2784         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2785         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2786         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2787         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2788         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2789         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2790         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2791         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2792         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2793         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2794         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2795         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2796         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2797         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2798         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2799         * doc/reporting-bugs.rst: New file.
2800         * doc/the-libgomp-abi.rst: New file.
2801         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2802         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2803         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2804         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2805         New file.
2806         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2807         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2808         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2809         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2810         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2811         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2812         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2813         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2814         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2815         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2816         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2818 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2820         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2821         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2822         documentation.
2823         * plugin/configfrag.ac <enable_offload_targets>
2824         [*-intelmic-* | *-intelmicemul-*]: Remove.
2825         * configure: Regenerate.
2826         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2827         handling.
2828         (offload_target_to_openacc_device_type)
2829         [$offload_target = *-intelmic*]: Remove.
2830         (check_effective_target_offload_device_intel_mic)
2831         (check_effective_target_offload_device_any_intel_mic): Remove.
2832         * testsuite/libgomp.c-c++-common/on_device_arch.h
2833         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2834         (any_device_arch_intel_mic): Remove.
2835         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2836         'offload_device_any_intel_mic' XFAIL.
2837         * testsuite/libgomp.fortran/target10.f90: Likewise.
2839 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2841         * testsuite/libgomp.fortran/target-11.f90: New test.
2842         * testsuite/libgomp.fortran/target-13.f90: New test.
2844 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2846         PR libgomp/106643
2847         PR fortran/96668
2848         * oacc-mem.c (goacc_enter_data_internal): Support
2849         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2850         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2851         Adjust.
2852         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2854 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2856         PR libgomp/106643
2857         * oacc-mem.c (goacc_enter_data_internal): Support
2858         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2859         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2860         New.
2861         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2862         New.
2864 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2866         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2867         New.
2869 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2871         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2872         New.
2874 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2875             Thomas Schwinge  <thomas@codesourcery.com>
2877         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2879 2022-10-28  Julian Brown  <julian@codesourcery.com>
2880             Thomas Schwinge  <thomas@codesourcery.com>
2882         PR middle-end/90115
2883         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2884         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2885         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2886         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2887         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2889 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2891         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2892         'ptx_dev->rev_data'.
2894 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2896         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2897         'static' for this variable.
2898         * config/nvptx/libgomp-nvptx.h: New file.
2899         * config/nvptx/target.c: Include it.
2900         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2901         (GOMP_REV_OFFLOAD_VAR): Declare var.
2902         (GOMP_target_ext): Handle reverse offload.
2903         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2904         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2905         * target.c (gomp_target_rev): ... this new stub function.
2906         * libgomp.h (gomp_target_rev): Declare.
2907         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2908         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2909         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2910         (struct ptx_device): Add rev_data member.
2911         (nvptx_open_device): Remove async_engines query, last used in
2912         r10-304-g1f4c5b9b; add unified-address assert check.
2913         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2914         support.
2915         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2916         offload functions exist. Make offload var available
2917         on host and device.
2918         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2919         (GOMP_OFFLOAD_run): Handle reverse offload.
2921 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2923         PR tree-optimization/107195
2924         PR target/107344
2925         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2926         regions checking.
2928 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2930         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2931         New.
2932         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2933         on_device_arch_gcn): New.
2934         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2935         requires-4.c but using heap-allocated memory.
2937 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2939         PR target/105421
2940         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2942 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2944         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2945         '-foffload-options' syntax.
2947 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2949         * testsuite/libgomp.fortran/task-7.f90: New test.
2950         * testsuite/libgomp.fortran/task-8.f90: New test.
2951         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2952         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2953         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2954         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2955         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2957 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2959         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2960         in deprecation bullet.
2962 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2964         * omp.h.in (omp_in_explicit_task): Declare.
2965         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2966         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2967         * libgomp.map (OMP_5.2): New symbol version, export
2968         omp_in_explicit_task and omp_in_explicit_task_.
2969         * task.c (omp_in_explicit_task): New function.
2970         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2971         (omp_in_explicit_task_): New function.
2972         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2973         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2974         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2975         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2977 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2979         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2980         from within explicit task.
2981         * target.c (GOMP_target_ext): Likewise.
2982         * testsuite/libgomp.c/task-7.c: New test.
2983         * testsuite/libgomp.c/task-8.c: New test.
2984         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2985         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2987 2022-10-12  Martin Liska  <mliska@suse.cz>
2989         * configure: Regenerate.
2991 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2992             Olivier Hainque  <hainque@adacore.com>
2994         * configure: Regenerate.
2996 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2998         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3000 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
3002         * libgomp.texi (Support begin/end declare target syntax in C/C++):
3003         Mark as implemented.
3005 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
3007         PR fortran/105318
3008         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3010 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
3012         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3013         for C/C++. Remove duplicated 'begin declare target' entry.
3015 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
3017         PR c/106981
3018         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3020 2022-09-14  Julian Brown  <julian@codesourcery.com>
3022         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3023         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3024         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3025         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3026         test to here, make "run" test.
3028 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
3030         PR libgomp/106906
3031         * env.c (get_icv_member_addr): Cast false to void * before assigning
3032         it to icv_addr[1], and comment the whole assignment out.
3034 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
3036         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3037         (nvptx): ... here.
3039 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3041         * libgomp.texi (Offload-Target Specifics: nvptx): Document
3042         that reverse offload requires >= -march=sm_35.
3043         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3044         with -misa=sm_35.
3045         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3046         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3047         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3048         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3049         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3051 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
3053         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3054         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3056 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
3058         PR libgomp/106894
3059         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3060         (main): Avoid tests for which corresponding non-_ALL suffixed variable
3061         is in the environment, or for OMP_NUM_TEAMS on the device
3062         OMP_NUM_TEAMS_DEV_?.
3064 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
3066         * env.c (initialize_env): Include libiberty environ.h.
3068 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3070         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3071         function address table '$offload_func_table' if rev_fn_table
3072         is not NULL.
3074 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3076         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3077         .offload_func_table to populate rev_fn_table when requested.
3079 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3081         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3082         'uint64_t **rev_fn_table' argument.
3083         * oacc-host.c (host_load_image): Likewise.
3084         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3085         currently unused.
3086         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3087         * target.c (gomp_load_image_to_device): Update call but pass
3088         NULL for now.
3090 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
3092         PR libgomp/106894
3093         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3094         char * for dest[1] initialization from params[1].  Formatting fixes.
3096 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3098         PR fortran/106670
3099         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3101 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3103         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3104         section; move OpenMP Context Selectors from ...
3105         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3106         'nvptx' sections.
3108 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
3110         * config/gcn/icv-device.c (omp_get_default_device): Return device-
3111         specific ICV.
3112         (omp_get_max_teams): Added for GCN devices.
3113         (omp_set_num_teams): Likewise.
3114         (ialias): Likewise.
3115         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3116         specific ICV.
3117         (omp_get_max_teams): Added for NVPTX devices.
3118         (omp_set_num_teams): Likewise.
3119         (ialias): Likewise.
3120         * env.c (struct gomp_icv_list): New struct to store entries of initial
3121         ICV values.
3122         (struct gomp_offload_icv_list): New struct to store entries of device-
3123         specific ICV values that are copied to the device and back.
3124         (struct gomp_default_icv_values): New struct to store default values of
3125         ICVs according to the OpenMP standard.
3126         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3127         (print_env_var_error): Function that prints an error for invalid values
3128         for ICVs.
3129         (parse_unsigned_long_1): Removed getenv.  Generalized.
3130         (parse_unsigned_long): Likewise.
3131         (parse_int_1): Likewise.
3132         (parse_int): Likewise.
3133         (parse_int_secure): Likewise.
3134         (parse_unsigned_long_list): Likewise.
3135         (parse_target_offload): Likewise.
3136         (parse_bind_var): Likewise.
3137         (parse_stacksize): Likewise.
3138         (parse_boolean): Likewise.
3139         (parse_wait_policy): Likewise.
3140         (parse_allocator): Likewise.
3141         (omp_display_env): Extended to output different variants of environment
3142         variables.
3143         (print_schedule): New helper function for omp_display_env which prints
3144         the values of run_sched_var.
3145         (print_proc_bind): New helper function for omp_display_env which prints
3146         the values of proc_bind_var.
3147         (enum gomp_parse_type): Collection of types used for parsing environment
3148         variables.
3149         (ENTRY): Preprocess string lengths of environment variables.
3150         (OMP_VAR_CNT): Preprocess table size.
3151         (OMP_HOST_VAR_CNT): Likewise.
3152         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3153         number.
3154         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3155         (gomp_set_icv_flag): Sets a flag for a particular ICV.
3156         (print_device_specific_icvs): New helper function for omp_display_env to
3157         print device specific ICV values.
3158         (get_device_num): New helper function for parse_device_specific.
3159         Extracts the device number from an environment variable name.
3160         (get_icv_member_addr): Gets the memory address for a particular member
3161         of an ICV struct.
3162         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3163         (initialize_icvs): New function to initialize a gomp_initial_icvs
3164         struct.
3165         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3166         (startswith): Checks if a string starts with a given prefix.
3167         (initialize_env): Extended to parse the new syntax of environment
3168         variables.
3169         * icv-device.c (omp_get_max_teams): Added.
3170         (ialias): Likewise.
3171         (omp_set_num_teams): Likewise.
3172         * icv.c (omp_set_num_teams): Moved to icv-device.c.
3173         (omp_get_max_teams): Likewise.
3174         (ialias): Likewise.
3175         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3176         (GOMP_ADDITIONAL_ICVS): New target-side struct that
3177         holds the designated ICVs of the target device.
3178         * libgomp.h (enum gomp_icvs): Collection of ICVs.
3179         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3180         no suffix.
3181         (enum gomp_env_suffix): Collection of possible suffixes of environment
3182         variables.
3183         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3184         initial values.
3185         (struct gomp_default_icv):New struct to hold ICVs for which we need
3186         to store initial values.
3187         (struct gomp_icv_list): Definition of a linked list that is used for
3188         storing ICVs for the devices and also for _DEV, _ALL, and without
3189         suffix.
3190         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3191         a device.
3192         (struct gomp_offload_icv_list): Definition of a linked list that holds
3193         device-specific ICVs that are copied to devices.
3194         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3195         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3196         * libgomp.texi: Updated.
3197         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3198         further ICVs from the offload image.
3199         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3200         * target.c (gomp_get_offload_icv_item): Get a list item of
3201         gomp_offload_icv_list.
3202         (get_gomp_offload_icvs): New. Returns the ICV values
3203         depending on the device num and the variable hierarchy.
3204         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3205         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3206         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3207         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3208         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3209         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3210         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3212 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
3214         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3215         fully supported.
3216         * testsuite/libgomp.c/doacross-4.c: New test.
3217         * testsuite/libgomp.c/doacross-5.c: New test.
3218         * testsuite/libgomp.c/doacross-6.c: New test.
3219         * testsuite/libgomp.c/doacross-7.c: New test.
3221 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
3223         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3225 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
3227         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3228         refer to 'requires'.
3229         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3230         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3231         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3232         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3234 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3236         PR middle-end/106548
3237         * testsuite/libgomp.c/linear-2.c: New test.
3239 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3241         * splay-tree.h: Fix splay_* macro unsetting if
3242         splay_tree_prefix is defined.
3244 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
3246         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3248 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
3250         PR middle-end/106449
3251         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3253 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
3255         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3257 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
3259         PR middle-end/101551
3260         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3261         'offloading_enabled' diagnostics issue.
3263 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
3265         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3266         '_Pragma' diagnostics verification.
3268 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
3270         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3271         improved warning locations.
3272         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3274 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3276         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3277         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3278         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3279         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3280         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3282 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3284         * target.c (GOMP_offload_register, GOMP_offload_unregister):
3285         Denote as legacy entry points.
3286         * testsuite/lib/libgomp.exp
3287         (check_effective_target_offload_target_any): New proc.
3288         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3289         'offload_target_any'.
3290         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3291         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3292         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3294 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3296         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3297         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3299 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3301         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3303 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
3305         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3306         'data'.
3307         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
3309 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3310             Jakub Jelinek  <jakub@redhat.com>
3312         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3314 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3315             Chung-Lin Tang  <cltang@codesourcery.com>
3316             Thomas Schwinge  <thomas@codesourcery.com>
3318         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3319         omp_requires_mask arg.
3320         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3321         return -1 when device available but omp_requires_mask != 0.
3322         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3323         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3324         Update call.
3325         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3326         goacc_attach_host_thread_to_device, acc_get_num_devices,
3327         acc_set_device_num, get_property_any): Likewise.
3328         * target.c (omp_requires_mask): New global var.
3329         (gomp_requires_to_name): New.
3330         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3331         (gomp_target_init): Handle omp_requires_mask.
3332         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3333         (OpenMP 5.1): Add a missed item.
3334         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3335         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3336         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3337         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3338         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3339         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3340         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3341         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3342         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3343         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3344         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3345         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3346         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3347         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3348         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3349         * testsuite/libgomp.fortran/requires-1.f90: New test.
3351 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
3353         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3354         with fromto as implemented.
3356 2022-06-28  Martin Liska  <mliska@suse.cz>
3358         * acinclude.m4: Fix typo in mold linker detection.
3359         * Makefile.in: Regenerate.
3360         * configure: Regenerate.
3362 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
3363             Paul Iannetta  <piannetta@kalrayinc.com>
3365         PR libgomp/106045
3366         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3368 2022-06-17  Martin Liska  <mliska@suse.cz>
3370         * libgomp.texi: Add table header for new features of
3371         OpenMP 5.2.
3373 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
3375         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3376         q to ddress of an automatic variable.  Use -5 instead of -1 in
3377         omp_get_mapped_ptr call.  Add test with omp_initial_device.
3378         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3379         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
3380         Renumber stop arguments afterwards.
3382 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
3384         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3385         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3386         parameters.
3387         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3388         * target.c (resolve_device): Add remapped argument, handle
3389         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3390         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3391         if remapped, otherwise treat omp_initial_device that way.  For
3392         omp_invalid_device, always emit gomp_fatal, even when
3393         OMP_TARGET_OFFLOAD isn't mandatory.
3394         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3395         GOMP_target_update, GOMP_target_update_ext,
3396         GOMP_target_enter_exit_data): Pass true as remapped argument to
3397         resolve_device.
3398         (omp_target_alloc, omp_target_free, omp_target_is_present,
3399         omp_target_memcpy_check, omp_target_associate_ptr,
3400         omp_target_disassociate_ptr, omp_get_mapped_ptr,
3401         omp_target_is_accessible): Pass false as remapped argument to
3402         resolve_device.  Treat omp_initial_device the same as
3403         gomp_get_num_devices ().  Don't bypass resolve_device calls if
3404         device_num is negative.
3405         (omp_pause_resource): Treat omp_initial_device the same as
3406         gomp_get_num_devices ().  Call resolve_device.
3407         * icv-device.c (omp_set_default_device): Always set to device_num
3408         even when it is negative.
3409         * libgomp.texi: Document that Conforming device numbers,
3410         omp_initial_device and omp_invalid_device is implemented.
3411         * testsuite/libgomp.c/target-41.c (main): Add test with
3412         omp_initial_device.
3413         * testsuite/libgomp.c/target-45.c: New test.
3414         * testsuite/libgomp.c/target-46.c: New test.
3415         * testsuite/libgomp.c/target-47.c: New test.
3416         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3417         test with omp_initial_device.  Use -5 instead of -1 for negative value
3418         test.
3419         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3420         Likewise.  Reorder stop numbers.
3422 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
3424         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3425         rather than "libmemkind.so".
3427 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3429         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3430         * plugin/configfrag.ac (--with-cuda-driver)
3431         (--with-cuda-driver-include, --with-cuda-driver-lib)
3432         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3433         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3434         Remove.
3435         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3436         (cuda_driver_lib): Remove.
3437         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3438         * Makefile.in: Regenerate.
3439         * configure: Likewise.
3440         * testsuite/Makefile.in: Likewise.
3442 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3444         * config/linux/allocator.c: Fix up #include directive.
3446 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3448         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3449         (enum gomp_memkind_kind): New type.
3450         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3451         is defined.
3452         (struct gomp_memkind_data): New type.
3453         (memkind_data, memkind_data_once): New variables.
3454         (gomp_init_memkind, gomp_get_memkind): New functions.
3455         (omp_init_allocator): Initialize data.memkind, don't fail for
3456         omp_high_bw_mem_space if libmemkind supports it.
3457         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3458         memkind support of LIBGOMP_USE_MEMKIND is defined.
3459         * config/linux/allocator.c: New file.
3461 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
3463         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3464         * testsuite/libgomp.fortran/scope-2.f90: New test.
3466 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
3468         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3470 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
3472         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3473         scope construct with allocate clause.
3474         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3475         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3477 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
3479         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3480         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3481         explicit 'to' and 'enter' clause.
3482         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3484 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
3486         PR libgomp/105745
3487         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3488         defined(HAVE__ALIGNED_MALLOC) case.
3489         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3490         handling as last option before fallback instead of first.
3491         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3492         _aligned_free.
3494 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
3496         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3497         clauses to enter.
3498         * testsuite/libgomp.c/target-41.c: Likewise.
3500 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
3502         * libgomp.texi (Other new OpenMP 5.1 features): Add
3503         'begin declare target'.
3504         (Other new OpenMP 5.2 features): New.
3506 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
3508         * task.c (gomp_task_run_post_handle_dependers): If empty_task
3509         is the last task taskwait depend depends on, wake it up.
3510         Similarly if it is the last child of a taskgroup, use atomic
3511         store instead of decrement and awak taskgroup wait if any.
3512         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3514 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
3516         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3517         EF_AMDGPU_MACH_AMDGCN_GFX90a.
3518         (gcn_gfx90a_s): New.
3519         (isa_hsa_name): Support gfx90a.
3520         (isa_code): Likewise.
3522 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
3524         PR c/105378
3525         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3526         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3528 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3530         PR c/105378
3531         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3532         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3533         * task.c (empty_task): New function.
3534         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3535         (gomp_task_run_post_handle_depend): Declare.
3536         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3537         for.
3538         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3539         (GOMP_taskwait_depend_nowait): New function.
3540         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3542 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3544         PR fortran/104949
3545         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3546         Support attach for GOMP_MAP_FIRSTPRIVATE.
3547         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3548         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3549         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3551 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3553         * libgomp.map: Added omp_target_memcpy_async and
3554         omp_target_memcpy_rect_async.
3555         * libgomp.texi: Both functions are now supported.
3556         * omp.h.in: Added omp_target_memcpy_async and
3557         omp_target_memcpy_rect_async.
3558         * omp_lib.f90.in: Added interfaces for both new functions.
3559         * omp_lib.h.in: Likewise.
3560         * target.c (ialias_redirect): Added for GOMP_task.
3561         (omp_target_memcpy): Restructured into check and copy part.
3562         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3563         omp_target_memcpy_async that checks requirements.
3564         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3565         omp_target_memcpy_async that performs the memcpy.
3566         (omp_target_memcpy_async_helper): New helper function that is used in
3567         omp_target_memcpy_async for the asynchronous task.
3568         (omp_target_memcpy_async): Added.
3569         (omp_target_memcpy_rect): Restructured into check and copy part.
3570         (omp_target_memcpy_rect_check): New helper function for
3571         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3572         requirements.
3573         (omp_target_memcpy_rect_copy): New helper function for
3574         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3575         the memcpy.
3576         (omp_target_memcpy_rect_async_helper): New helper function that is used
3577         in omp_target_memcpy_rect_async for the asynchronous task.
3578         (omp_target_memcpy_rect_async): Added.
3579         * task.c (ialias): Added for GOMP_task.
3580         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3581         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3582         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3583         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3584         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3585         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3586         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3587         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3589 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3591         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3592         (OpenMP Context Selectors): Add missing comma.
3593         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3594         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3595         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3596         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3598 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3600         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3601         comment for omp_display_env feature.
3603 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3605         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3606         to document OpenMP context selectors.
3608 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3610         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3611         from bool to unsigned char.
3612         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3613         Ignore dependencies where
3614         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3615         rather than just task->depend[i].is_in && ent->is_in.  Remember
3616         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3617         conditional.
3618         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3619         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3620         rather than just elem.is_in && ent->is_in.
3621         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3622         inoutset depend-kind.
3623         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3624         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3625         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3627 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3629         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3631 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3633         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3634         * testsuite/libgomp.fortran/depend-5.f90: New test.
3635         * testsuite/libgomp.fortran/depend-6.f90: New test.
3636         * testsuite/libgomp.fortran/depend-7.f90: New test.
3638 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3640         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3641         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3642         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3644 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3646         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3648 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3650         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3652 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3654         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3655         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3656         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3657         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3658         * Makefile.in: Regenerate.
3660 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3662         * Makefile.am (libgomp_la_LIBADD): Initialize.
3663         * plugin/configfrag.ac (DL_LIBS): New.
3664         (PLUGIN_GCN_LIBS): Remove.
3665         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3666         * plugin/Makefrag.am (libgomp_la_LIBADD)
3667         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3668         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3669         * Makefile.in: Regenerate.
3670         * config.h.in: Likewise.
3671         * configure: Likewise.
3672         * testsuite/Makefile.in: Likewise.
3674 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3676         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3677         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3678         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3679         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3680         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3681         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3682         * Makefile.in: Regenerate.
3683         * config.h.in: Likewise.
3684         * configure: Likewise.
3686 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3688         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3689         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3690         * Makefile.in: Regenerate.
3691         * config.h.in: Likewise.
3692         * configure: Likewise.
3693         * testsuite/Makefile.in: Likewise.
3695 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3697         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3698         * task.c (gomp_init_task): Initialize depend_all_memory.
3699         (gomp_task_handle_depend): Handle omp_all_memory.
3700         (gomp_task_run_post_handle_depend_hash): Clear
3701         parent->depend_all_memory if equal to current task.
3702         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3703         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3704         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3705         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3707 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3709         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3710         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3711         * Makefile.in: Regenerate.
3712         * configure: Likewise.
3713         * testsuite/Makefile.in: Likewise.
3715 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3717         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3718         consider 'PLUGIN_GCN_CPPFLAGS'.
3719         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3720         'PLUGIN_GCN_LDFLAGS'.
3721         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3722         Remove.
3723         * Makefile.in: Regenerate.
3724         * configure: Likewise.
3725         * testsuite/Makefile.in: Likewise.
3727 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3729         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3730         (HSA_RUNTIME_LDFLAGS): Remove.
3731         * configure: Regenerate.
3733 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3735         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3736         'append always_ld_library_path ":$hsa_runtime_lib"'.
3737         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3739 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3741         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3742         multi-device testing.
3744 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3746         * libgomp.map: Added omp_target_is_accessible.
3747         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3748         * omp.h.in: Added omp_target_is_accessible.
3749         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3750         * omp_lib.h.in: Likewise.
3751         * target.c (omp_target_is_accessible): Added implementation of
3752         omp_target_is_accessible.
3753         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3754         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3756 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3758         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3760 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3762         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3764 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3766         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3768 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3770         * libgomp.map: Added omp_get_mapped_ptr.
3771         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3772         * omp.h.in: Added omp_get_mapped_ptr.
3773         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3774         * omp_lib.h.in: Likewise.
3775         * target.c (omp_get_mapped_ptr): Added implementation of
3776         omp_get_mapped_ptr.
3777         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3778         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3779         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3780         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3781         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3782         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3783         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3784         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3786 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3788         PR fortran/104717
3789         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3790         privatization scanning.  For GCN offloading compilation, raise
3791         '-mgang-private-size'.
3793 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3795         PR libgomp/105358
3796         * work.c (gomp_init_work_share): Don't mask of adjustment for
3797         dynamic long long realignment if struct gomp_work_share has smaller
3798         alignof than long long.
3799         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3800         struct gomp_work_share has smaller alignof than long long or if
3801         sizeof (struct gomp_work_share) is smaller than
3802         INLINE_ORDERED_TEAM_IDS_OFF.
3803         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3804         * sections.c (GOMP_sections2_start): Likewise.
3806 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3807             Thomas Schwinge  <thomas@codesourcery.com>
3809         PR fortran/104717
3810         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3812 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3814         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3816 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3818         * plugin/cuda/cuda.h: Remove file.
3819         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3820         "cuda/cuda.h" instead of <cuda.h>.
3821         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3822         'PLUGIN_NVPTX_CPPFLAGS'.
3823         * configure: Regenerate.
3825 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3827         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3829 2022-04-04  Tom de Vries  <tdevries@suse.de>
3831         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3832         on_device_arch_nvptx instead of offload_target_nvptx.
3833         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3835 2022-04-01  Tom de Vries  <tdevries@suse.de>
3837         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3838         and use REC_DEPTH.
3839         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3841 2022-04-01  Tom de Vries  <tdevries@suse.de>
3843         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3844         num_workers check.
3846 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3847             Lulu Cheng  <chenglulu@loongson.cn>
3849         * configure.tgt: Add LoongArch triplet.
3851 2022-03-28  Tom de Vries  <tdevries@suse.de>
3853         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3854         instead of /libexec/.
3855         * configure: Regenerate.
3857 2022-03-25  Tom de Vries  <tdevries@suse.de>
3859         PR libgomp/105042
3860         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3861         execution time.
3862         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3863         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3865 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3867         PR middle-end/104285
3868         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3869         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3870         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3871         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3872         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3873         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3875 2022-03-22  Tom de Vries  <tdevries@suse.de>
3877         PR target/104916
3878         PR target/104783
3879         * testsuite/libgomp.c/pr104783-2.c: New test.
3881 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3883         PR fortran/103039
3884         * testsuite/libgomp.fortran/associate4.f90: New test.
3886 2022-03-18  Tom de Vries  <tdevries@suse.de>
3888         PR target/104952
3889         * testsuite/libgomp.c/pr104952-1.c: New test.
3890         * testsuite/libgomp.c/pr104952-2.c: New test.
3892 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3894         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3895         variable next to pl variable.
3897 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3899         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3900         Enhance.
3901         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3902         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3904 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3906         PR middle-end/90115
3907         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3908         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3910 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3912         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3913         omp_set_max_active_levels.
3914         * testsuite/libgomp.fortran/icv-8.f90: New test.
3916 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3918         PR testsuite/102841
3919         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3921 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3923         * libgomp.texi: Fix typo.
3925 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3927         PR middle-end/100280
3928         PR middle-end/104892
3929         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3930         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3931         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3932         Likewise.
3933         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3934         Likewise.
3935         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3936         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3937         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3938         Likewise.
3940 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3942         PR middle-end/104892
3943         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3944         to PR104892.
3945         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3946         enable '--param=openacc-kernels=decompose' and adjust.
3947         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3948         Likewise.
3949         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3950         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3951         Likewise.
3953 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3955         PR middle-end/90115
3956         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3957         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3958         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3959         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3961 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3963         PR middle-end/100280
3964         PR middle-end/104086
3965         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3966         Merge this...
3967         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3968         ..., and this...
3969         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3970         this, and adjust.
3971         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3972         Extend.
3974 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3976         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3977         trait.  Test last index in w and v array.  Remove redundant
3978         assignment to V(1).  Move alignment checks at the end of
3979         parallel region.
3981 2022-03-10  Tom de Vries  <tdevries@suse.de>
3983         * testsuite/libgomp.c/pr104783.c: New test.
3985 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3987         PR middle-end/90115
3988         PR middle-end/102330
3989         PR middle-end/104774
3990         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3991         Enhance.
3992         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3993         Adjust.
3994         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3995         Likewise.
3996         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3997         Likewise.
3998         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3999         Likewise.
4000         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4001         Likewise.
4002         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4003         Likewise.
4004         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4005         Likewise.
4006         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4007         Likewise.
4008         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4009         Likewise.
4010         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4011         Likewise.
4012         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4013         Likewise.
4014         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4015         Likewise.
4016         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4017         Likewise.
4018         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4019         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4020         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4022 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
4024         PR middle-end/90115
4025         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4026         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4027         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4028         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4030 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4032         PR testsuite/104791
4033         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4034         expected diagnostics.
4036 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4038         PR middle-end/104784
4039         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4040         Test with '--param=openacc-kernels=decompose'.
4041         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4042         Likewise.
4043         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4044         Likewise.
4045         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4046         Likewise.
4047         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4048         Likewise.
4049         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4050         Likewise.
4051         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4052         Likewise.
4053         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4054         Likewise.
4055         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4056         Likewise.
4057         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4058         Likewise.
4059         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4060         Likewise.
4061         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4062         Likewise.
4063         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4064         Likewise.
4065         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4066         Likewise.
4067         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4068         Likewise.
4069         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4070         Likewise.
4071         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4072         Likewise.
4073         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4074         Likewise.
4075         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4076         Likewise.
4077         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4078         Likewise.
4079         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4080         Likewise.
4081         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4082         Likewise.
4083         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4084         Likewise.
4085         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4086         Likewise.
4087         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4088         Likewise.
4089         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4090         Likewise.
4091         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4092         Likewise.
4093         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4094         Likewise.
4095         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4096         Likewise.
4097         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4098         Likewise.
4099         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4100         Likewise.
4101         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4102         Likewise.
4103         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4104         Likewise.
4106 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4108         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4109         Test '-fopt-info-omp-all'.
4110         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4111         Likewise.
4112         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4113         Likewise.
4114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4115         Likewise.
4116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4117         Likewise.
4118         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4119         Likewise.
4120         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4121         Likewise.
4122         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4123         Likewise.
4124         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4125         Likewise.
4126         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4127         Likewise.
4128         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4129         Likewise.
4130         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4131         Likewise.
4132         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4133         Likewise.
4134         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4135         Likewise.
4136         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4137         Likewise.
4138         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4139         Likewise.
4140         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4141         Likewise.
4142         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4143         Likewise.
4144         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4145         Likewise.
4146         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4147         Likewise.
4148         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4149         Likewise.
4150         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4151         Likewise.
4152         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4153         Likewise.
4154         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4155         Likewise.
4156         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4157         Likewise.
4158         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4159         Likewise.
4160         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4161         Likewise.
4162         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4163         Likewise.
4164         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4165         Likewise.
4166         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4167         Likewise.
4168         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4169         Likewise.
4170         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4171         Likewise.
4172         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4173         Likewise.
4175 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4177         PR middle-end/100280
4178         PR middle-end/104132
4179         PR middle-end/104133
4180         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4181         Extend.
4183 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4185         PR middle-end/100280
4186         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4187         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4188         Likewise.
4190 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4192         PR middle-end/100280
4193         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4194         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4195         Likewise.
4197 2022-02-28  Tom de Vries  <tdevries@suse.de>
4199         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4200         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4201         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4202         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4203         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4204         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4206 2022-02-24  Tom de Vries  <tdevries@suse.de>
4208         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4209         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4210         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4211         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4212         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4213         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4214         * testsuite/libgomp.c/declare-variant-3.h: New header file.
4216 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
4218         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4219         gang-redundant execution.
4221 2022-02-22  Tom de Vries  <tdevries@suse.de>
4223         PR target/99555
4224         * config/nvptx/bar.c (generation_to_barrier): New function, copied
4225         from config/rtems/bar.c.
4226         (futex_wait, futex_wake): New function.
4227         (do_spin, do_wait): New function, copied from config/linux/wait.h.
4228         (gomp_barrier_wait_end, gomp_barrier_wait_last)
4229         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4230         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4231         and replace with include of config/linux/bar.c.
4232         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4233         (gomp_barrier_init): Init new fields.
4234         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4235         workarounds.
4236         * testsuite/libgomp.c/pr99555-1.c: Same.
4237         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4239 2022-02-22  Tom de Vries  <tdevries@suse.de>
4241         PR testsuite/104146
4242         * testsuite/libgomp.c++/pr96390.C: Add additional-option
4243         -foffload=-Wa,--verify for nvptx.
4244         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4246 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
4248         * testsuite/libgomp.fortran/depend-4.f90: New test.
4250 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
4252         PR c++/102204
4253         * testsuite/libgomp.c++/target-virtual-1.C: New test.
4255 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
4257         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4258         * target.c (copy_firstprivate_data): Copy only if host address is not
4259         NULL.
4260         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4261         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4262         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4263         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4264         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4265         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4266         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4267         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4268         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4269         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4271 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
4273         PR libgomp/104385
4274         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4275         clear task->parent.
4276         * testsuite/libgomp.c/pr104385.c: New test.
4278 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4280         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4281         STOP of previous commit.
4283 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4285         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4286         from is_64bit_aligned_.
4287         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4288         and use it, more implicit none, remove unused argument.
4290 2022-02-03  David Seifert  <soap@gentoo.org>
4291             Jakub Jelinek  <jakub@redhat.com>
4293         * configure.ac: Support --disable-werror.
4294         * configure: Regenerate.
4296 2022-02-01  Tom de Vries  <tdevries@suse.de>
4298         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4299         PR83812 workaround.
4300         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4301         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4303 2022-02-01  Tom de Vries  <tdevries@suse.de>
4305         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4306         num_workers for nvidia accelerator to fix libgomp error 'insufficient
4307         resources'.
4308         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4309         Same.
4310         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4312 2022-02-01  Tom de Vries  <tdevries@suse.de>
4314         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4315         recursion depth.
4316         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4318 2022-01-31  Martin Liska  <mliska@suse.cz>
4320         * acinclude.m4: Detect *_ld_is_mold and use it.
4321         * configure: Regenerate.
4323 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
4325         * libgomp.texi (OpenMP 5.0): Update implementation status.
4327 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
4329         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4330         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4331         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4332         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4333         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4334         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4335         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4336         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4337         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4338         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4339         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4340         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4341         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4342         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4343         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4345 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
4347         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4348         "static") to make the device num available in the offload image.
4350 2022-01-19  Martin Liska  <mliska@suse.cz>
4351             Thomas Schwinge  <thomas@codesourcery.com>
4353         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4354         patterns.
4355         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4356         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4357         Likewise.
4358         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4359         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4360         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4361         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4362         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4363         Likewise.
4364         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4365         Likewise.
4366         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4367         Likewise.
4368         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4369         Likewise.
4370         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4371         Likewise.
4372         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4373         Likewise.
4374         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4375         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4376         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4378 2022-01-18  Martin Liska  <mliska@suse.cz>
4380         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4381         in dg-warning.
4382         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4383         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4384         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4385         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4386         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4387         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4388         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4389         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4390         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4391         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4392         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4393         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4394         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4395         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4396         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4398 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
4400         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4401         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4402         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4404 2022-01-17  Julian Brown  <julian@codesourcery.com>
4405             Thomas Schwinge  <thomas@codesourcery.com>
4407         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4408         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4409         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4411 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
4412             Andrew Stubbs   <ams@codesourcery.com>
4414         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4415         the number of teams and threads if necessary.
4416         (gcn_exec): Automatically set the number of gangs and workers if
4417         necessary.
4419 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4421         * testsuite/libgomp.fortran/allocate-1.c: New test.
4422         * testsuite/libgomp.fortran/allocate-1.f90: New test.
4423         * libgomp.texi: Remove string that says that allocate clause
4424         support is for C/C++ only.
4426 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4428         * testsuite/libgomp.c-c++-common/on_device_arch.h
4429         (any_device_arch, any_device_arch_intel_mic): New.
4430         * testsuite/lib/libgomp.exp
4431         (check_effective_target_offload_device_any_intel_mic): New.
4432         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4433         * testsuite/libgomp.fortran/target10.f90: Likewise.
4435 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4437         PR tree-optimization/102192
4438         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4439         '-Wuninitialized' diagnostics.
4441 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4443         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4444         current '-Wuninitialized' diagnostics.
4445         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4446         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4447         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4448         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4449         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4450         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4451         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4452         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4453         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4454         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4455         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4456         Likewise.
4458 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4460         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4461         for 'offload_device_intel_mic'.
4463 2022-01-13  Julian Brown  <julian@codesourcery.com>
4464             Thomas Schwinge  <thomas@codesourcery.com>
4466         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4467         offloading execution XFAIL.
4469 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4471         PR middle-end/100280
4472         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4473         Update.
4474         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4475         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4476         Likewise.
4478 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4480         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4481         Enhance.
4482         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4483         Likewise.
4484         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4485         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4486         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4487         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4488         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4489         Likewise.
4490         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4491         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4492         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4493         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4495 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
4497         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4498         * testsuite/libgomp.fortran/target10.f90: Likewise.
4500 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
4502         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4503         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4504         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4506 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
4508         * libgomp.texi: Bump @copying's copyright year.
4510 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
4512         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4513         * testsuite/libgomp.fortran/atomic-19.f90: New test.
4515 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
4517         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4518         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4519         table, not individual symbols.
4521 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
4523         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4524         "target offload_device_nonshared_as"
4525         * testsuite/libgomp.c++/target-this-3.C: Likewise.
4526         * testsuite/libgomp.c++/target-this-4.C: Likewise.
4528 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4530         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4531         not overwritten during cross-host/device copying.
4532         (gomp_update): Likewise.
4533         (gomp_exit_data): Likewise.
4534         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4535         * testsuite/libgomp.c++/target-12.C: Likewise.
4536         * testsuite/libgomp.c++/target-15.C: Likewise.
4537         * testsuite/libgomp.c++/target-16.C: Likewise.
4538         * testsuite/libgomp.c++/target-17.C: Likewise.
4539         * testsuite/libgomp.c++/target-21.C: Likewise.
4540         * testsuite/libgomp.c++/target-23.C: Likewise.
4541         * testsuite/libgomp.c/target-23.c: Likewise.
4542         * testsuite/libgomp.c/target-29.c: Likewise.
4543         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4545 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4547         PR middle-end/92120
4548         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4549         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4550         (goacc_enter_data_internal): Likewise.
4551         * target.c (gomp_map_vars_existing): Update assert condition to
4552         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4553         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4554         parameter, add support for mapping a pointer with NULL target.
4555         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4556         parameter, add support for attaching a pointer with NULL target.
4557         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4558         gomp_attach_pointer, add handling for
4559         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4560         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4561         * testsuite/libgomp.c++/target-23.C: New testcase.
4562         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4563         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4564         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4565         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4566         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4567         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4568         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4570 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4572         * libgomp.texi (OpenMP 5.1): Update status.
4574 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4576         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4578 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4580         PR fortran/90030
4581         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4582         * testsuite/libgomp.fortran/pr90030.f90: New test.
4584 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4585             Thomas Schwinge  <thomas@codesourcery.com>
4587         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4588         temporary skip.
4590 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4591             Thomas Schwinge  <thomas@codesourcery.com>
4593         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4594         skip.
4596 2021-11-29  Richard Biener  <rguenther@suse.de>
4598         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4599         return.
4601 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4603         PR middle-end/103384
4604         * testsuite/libgomp.c/declare-variant-2.c: New test.
4606 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4608         * alloc.c (gomp_aligned_alloc): Fix typo.
4610 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4612         PR libgomp/102838
4613         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4614         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4615         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4616         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4617         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4618         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4619         gomp_aligned_alloc instead of team_malloc.
4621 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4623         PR libgomp/102838
4624         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4625         memalign over posix_memalign over aligned_alloc over fallback
4626         with malloc instead of aligned_alloc over _aligned_alloc over
4627         posix_memalign over memalign over fallback with malloc.  For
4628         aligned_alloc, round up size up to multiple of al.
4630 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4632         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4633         construct as implemented.
4635 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4637         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4639 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4641         * task.c (gomp_create_target_task): Copy args array as well.
4642         * target.c (gomp_target_fallback): Add args argument.
4643         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4644         (GOMP_target): Adjust gomp_target_fallback caller.
4645         (GOMP_target_ext): Likewise.
4646         (gomp_target_task_fn): Likewise.
4647         * config/nvptx/team.c (gomp_nvptx_main): Set
4648         gomp_global_icv.thread_limit_var.
4649         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4651 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4653         * config/nvptx/team.c (__gomp_team_num): Define as
4654         __attribute__((shared)) var.
4655         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4656         * config/nvptx/target.c (__gomp_team_num): Declare as
4657         extern __attribute__((shared)) var.
4658         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4659         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4660         is bigger than num_blocks, use num_teams_lower teams and arrange for
4661         bumping of __gomp_team_num if !first and returning false once we run
4662         out of teams.
4663         * config/nvptx/teams.c (__gomp_team_num): Declare as
4664         extern __attribute__((shared)) var.
4665         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4667 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4669         * testsuite/libgomp.c/teams-5.c: New test.
4671 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4673         PR target/103201
4674         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4675         to ...
4676         * config/gcn/teams.c: ... here.  New file.
4678 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4680         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4681         implicit map handling to allow a "superset" existing map as valid case.
4682         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4683         (get_implicit): New function to extract implicit status.
4684         (gomp_map_fields_existing): Adjust arguments in calls to
4685         gomp_map_vars_existing, and add uses of get_implicit.
4686         (gomp_map_vars_internal): Likewise.
4687         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4689 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4691         * libgomp_g.h (GOMP_teams4): Declare.
4692         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4693         * target.c (GOMP_teams4): New function.
4694         * config/nvptx/target.c (GOMP_teams): Remove.
4695         (GOMP_teams4): New function.
4696         * config/gcn/target.c (GOMP_teams): Remove.
4697         (GOMP_teams4): New function.
4698         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4699         teams instead of <= 2.
4700         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4702 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4704         * testsuite/libgomp.fortran/teams-1.f90: New test.
4706 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4708         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4709         * team.c (struct gomp_thread_start_data): Likewise.
4710         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4711         (gomp_team_start): Initialize start_data->num_teams and
4712         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4713         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4714         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4715         instead of gomp_num_teams and gomp_team_num.
4716         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4717         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4718         * testsuite/libgomp.c/teams-4.c: New test.
4720 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4722         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4724 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4726         * env.c (parse_gomp_openacc_dim): Restore parsing.
4728 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4730         PR middle-end/102972
4731         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4732         parallel construct.
4733         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4734         * testsuite/libgomp.c/target-3.c: Likewise.
4735         * testsuite/libgomp.c/target-5.c: Likewise.
4736         * testsuite/libgomp.c/target-6.c: Likewise.
4737         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4738         * testsuite/libgomp.c/teams-1.c: Likewise.
4739         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4740         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4741         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4742         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4743         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4744         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4745         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4747 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4749         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4750         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4752 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4754         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4755         aren't implemented for Fortran yet.
4757 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4759         * testsuite/libgomp.c/loop-26.c: New test.
4760         * testsuite/libgomp.c/loop-27.c: New test.
4762 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4764         PR testsuite/102910
4765         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4766         instead of #include <alloca.h> + alloca.
4768 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4770         * libgomp.texi (Support of strictly structured blocks in Fortran):
4771         Adjust to 'Y'.
4772         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4774 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4776         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4777         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4779 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4781         PR libgomp/102838
4782         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4783         (struct gomp_work_share): Only use aligned(64) attribute if
4784         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4785         add padding before lock to ensure lock is at offset 64 bytes
4786         into the structure.
4787         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4788         New poor man's static assertions.
4789         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4790         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4792 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4793             Richard Biener  <rguenther@suse.de>
4795         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4797 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4799         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4800         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4802 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4804         PR fortran/102086
4805         PR fortran/92189
4806         PR fortran/92621
4807         PR fortran/101308
4808         PR fortran/101309
4809         PR fortran/101635
4810         PR fortran/92482
4811         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4813 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4815         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4816         type from char [50] to const char *.
4817         (places_array): Add a testcase for simplified syntax place followed
4818         by length or length and stride.
4820 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4822         * env.c (parse_one_place): Handle non-negative-number the same
4823         as { non-negative-number }.  Reject even !number:1 and
4824         !number:1:stride or !place:1 or !place:1:stride instead of just
4825         length other than 1.
4826         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4827         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4828         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4829         as implemented.
4830         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4831         simplified syntax.
4833 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4835         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4836         clearly reject return value 0 as invalid handle the case where end
4837         pointer is the same as first argument as invalid.
4838         (parse_unsigned_long_1): Likewise.
4839         (parse_one_place): Likewise.
4840         (parse_places_var): Likewise.
4841         (parse_stacksize): Likewise.
4842         (parse_spincount): Likewise.
4843         (parse_affinity): Likewise.
4844         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4845         Make code valid C89.
4846         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4847         For strtoul calls which don't clearly reject return value 0 as
4848         invalid handle the case where end pointer is the same as first
4849         argument as invalid.
4850         (gomp_affinity_init_level_1): Likewise.
4851         (gomp_affinity_init_numa_domains): Likewise.
4852         * config/rtems/proc.c (parse_thread_pools): Likewise.
4854 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4856         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4857         after creating count places clean up and return immediately.
4858         * testsuite/libgomp.c/places-6.c: New test.
4859         * testsuite/libgomp.c/places-7.c: New test.
4860         * testsuite/libgomp.c/places-8.c: New test.
4861         * testsuite/libgomp.c/places-9.c: New test.
4862         * testsuite/libgomp.c/places-10.c: New test.
4864 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4866         * env.c (parse_places_var): Handle numa_domains as level 5.
4867         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4868         function.
4869         (gomp_affinity_init_level): Use it instead of
4870         gomp_affinity_init_level_1 for level == 5.
4871         * testsuite/libgomp.c/places-5.c: New test.
4873 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4875         * env.c (parse_places_var): Handle ll_caches as level 4.
4876         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4877         function.
4878         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4879         last level cache.
4880         (gomp_affinity_init_level): Likewise.
4881         * testsuite/libgomp.c/places-1.c: New test.
4882         * testsuite/libgomp.c/places-2.c: New test.
4883         * testsuite/libgomp.c/places-3.c: New test.
4884         * testsuite/libgomp.c/places-4.c: New test.
4886 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4888         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4889         directive.
4891 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4893         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4895 2021-10-12  Julian Brown  <julian@codesourcery.com>
4897         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4898         error path.
4900 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4902         * testsuite/libgomp.fortran/icv-3.f90: New.
4903         * testsuite/libgomp.fortran/icv-4.f90: New.
4905 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4907         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4908         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4909         OMP_TEAMS_THREAD_LIMIT): Document.
4911 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4913         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4914         to avoid makeinfo warnings.
4916 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4918         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4919         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4921 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4923         PR libgomp/102628
4924         PR libgomp/102668
4925         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4926         allocation sizes from 420 to 320 and from 768 to 568.
4927         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4928         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4929         for cr from 16 to 4.
4931 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4933         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4934         * testsuite/libgomp.c/scan-12.c: Likewise.
4935         * testsuite/libgomp.c/scan-13.c: Likewise.
4936         * testsuite/libgomp.c/scan-14.c: Likewise.
4937         * testsuite/libgomp.c/scan-15.c: Likewise.
4938         * testsuite/libgomp.c/scan-16.c: Likewise.
4939         * testsuite/libgomp.c/scan-17.c: Likewise.
4940         * testsuite/libgomp.c/scan-18.c: Likewise.
4941         * testsuite/libgomp.c/scan-19.c: Likewise.
4942         * testsuite/libgomp.c/scan-20.c: Likewise.
4943         * testsuite/libgomp.c/scan-21.c: Likewise.
4944         * testsuite/libgomp.c/scan-22.c: Likewise.
4945         * testsuite/libgomp.c++/scan-9.C: Likewise.
4946         * testsuite/libgomp.c++/scan-10.C: Likewise.
4947         * testsuite/libgomp.c++/scan-11.C: Likewise.
4948         * testsuite/libgomp.c++/scan-12.C: Likewise.
4949         * testsuite/libgomp.c++/scan-13.C: Likewise.
4950         * testsuite/libgomp.c++/scan-14.C: Likewise.
4951         * testsuite/libgomp.c++/scan-15.C: Likewise.
4952         * testsuite/libgomp.c++/scan-16.C: Likewise.
4954 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4956         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4958 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4960         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4961         omp_atv_serialized.
4962         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4963         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4964         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4965         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4967 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4969         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4970         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4971         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4972         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4973         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4974         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4975         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4976         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4977         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4978         omp_set_teams_thread_limit{,_,_8_}.
4979         * icv.c (omp_set_num_teams, omp_get_max_teams,
4980         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4981         functions.
4982         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4983         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4984         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4985         vars.
4986         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4987         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4988         is not specified, use gomp_nteams_var.
4989         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4990         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4991         ialias_redirect.
4992         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4993         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4994         omp_get_teams_thread_limit_): New functions.
4996 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4998         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4999         * testsuite/libgomp.c++/scan-11.C: Ditto.
5000         * testsuite/libgomp.c++/scan-12.C: Ditto.
5001         * testsuite/libgomp.c++/scan-13.C: Ditto.
5002         * testsuite/libgomp.c++/scan-14.C: Ditto.
5003         * testsuite/libgomp.c++/scan-15.C: Ditto.
5004         * testsuite/libgomp.c++/scan-16.C: Ditto.
5005         * testsuite/libgomp.c++/scan-9.C: Ditto.
5006         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5007         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5008         * testsuite/libgomp.c/scan-11.c: Ditto.
5009         * testsuite/libgomp.c/scan-12.c: Ditto.
5010         * testsuite/libgomp.c/scan-13.c: Ditto.
5011         * testsuite/libgomp.c/scan-14.c: Ditto.
5012         * testsuite/libgomp.c/scan-15.c: Ditto.
5013         * testsuite/libgomp.c/scan-16.c: Ditto.
5014         * testsuite/libgomp.c/scan-17.c: Ditto.
5015         * testsuite/libgomp.c/scan-18.c: Ditto.
5016         * testsuite/libgomp.c/scan-19.c: Ditto.
5017         * testsuite/libgomp.c/scan-20.c: Ditto.
5018         * testsuite/libgomp.c/scan-21.c: Ditto.
5019         * testsuite/libgomp.c/scan-22.c: Ditto.
5021 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
5023         * libgomp.texi (OpenMP 5.1): Mention implemented support for
5024         structured block sequences in C/C++.  Mention support for
5025         unconstrained/reproducible modifiers on order clause.
5026         Mention partial (C/C++ only) support of extentensions to atomics
5027         construct.  Mention partial (C/C++ on clause only) support of
5028         align/allocator modifiers on allocate clause.
5030 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
5032         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5033         based on libgomp.c-c++-common/order-reproducible-1.c.
5034         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5035         * testsuite/libgomp.fortran/my-usleep.c: New test.
5037 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
5039         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5040         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5041         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5042         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5043         based on libgomp.c-c++-common/alloc-9.c.
5045 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5047         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5048         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5050 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5052         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5053         ialias_redirect.
5054         * env.c (handle_omp_display_env): Use ialias_call.
5055         * icv-device.c: Move ialias right below each function.
5056         (omp_get_device_num): Use ialias_call.
5057         * fortran.c (omp_fulfill_event): Add ialias_redirect.
5058         * icv.c (omp_get_active_level): Add ialias_redirect.
5060 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5062         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5063         __alloc_align__ (1) attribute.
5064         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5066 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5068         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5069         for -fintrinsic-modules-path= warning of the C compiler.
5070         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5071         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5073 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5075         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5076         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5077         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5078         omp_realloc): Add.
5079         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5080         omp_realloc): Add.
5081         * testsuite/libgomp.fortran/alloc-10.f90: New test.
5082         * testsuite/libgomp.fortran/alloc-6.f90: New test.
5083         * testsuite/libgomp.fortran/alloc-7.c: New test.
5084         * testsuite/libgomp.fortran/alloc-7.f90: New test.
5085         * testsuite/libgomp.fortran/alloc-8.f90: New test.
5086         * testsuite/libgomp.fortran/alloc-9.f90: New test.
5088 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
5090         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5091         omp_realloc): New prototypes.
5092         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5093         attribute.
5094         * allocator.c: Include string.h.
5095         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
5096         variable and use it instead of alignment so that when retrying the old
5097         alignment is used again.  Don't retry if new alignment is the same
5098         as old alignment, unless allocator had pool size.
5099         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5100         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5101         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5102         omp_aligned_calloc and omp_realloc.
5103         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5104         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5105         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5106         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5107         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5108         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5110 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
5112         PR libgomp/96661
5113         * configure.ac: Only check for int-type = 2*size_t support when
5114         building with Fortran support.
5115         * configure: Regenerate.
5117 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
5119         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5120         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5122 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5124         * team.c: Initialize start_data.
5125         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5126         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5128 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5130         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5131         dg-message back to dg-note.
5133 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5135         PR fortran/94070
5136         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5137         expected dg-note output.
5139 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
5141         PR fortran/55534
5142         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5143         r12-3722 by removing -Wno-missing-include-dirs.
5144         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5146 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
5148         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5149         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5151 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
5153         PR fortran/55534
5154         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5155         to ALWAYS_CFLAGS.
5156         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5158 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
5160         * testsuite/libgomp.c++/default-1.C: New test.
5161         * testsuite/libgomp.c-c++-common/default-1.c: New test.
5162         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5163         to default clause in C and C++" as implemented.
5165 2021-09-17  Julian Brown  <julian@codesourcery.com>
5167         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5169 2021-09-17  Julian Brown  <julian@codesourcery.com>
5171         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5173 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5175         * libgomp.texi (OpenMP 5.1): Spelling fix,
5176         declare variante -> declare variant.
5178 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5180         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5181         Use /* */ comments instead of //.
5182         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5183         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5184         * testsuite/libgomp.c++/atomic-16.C: New test.
5185         * testsuite/libgomp.c++/atomic-17.C: New test.
5187 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
5189         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5190         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5191         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5193 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5195         * libgomp.texi (OpenMP Implementation Status): Extend
5196         OpenMP 5.0 section.
5197         (OpenACC Profiling Interface): Fix typo.
5199 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5201         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5202         not to 4.5; link to new section.
5203         (OpenMP Implementation Status): New.
5205 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
5207         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5209 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
5211         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5212         dg-output.
5213         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5215 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5216             Jakub Jelinek  <jakub@redhat.com>
5218         * testsuite/libgomp.c/address-space-1.c: New file.
5220 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5222         * testsuite/lib/libgomp.exp
5223         (check_effective_target_offload_target_intelmic): Remove 'proc'.
5224         (check_effective_target_offload_device_intel_mic): New 'proc'.
5225         * testsuite/libgomp.c-c++-common/on_device_arch.h
5226         (device_arch_intel_mic, on_device_arch_intel_mic): New.
5227         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5228         'dg-xfail-run-if'.
5229         * testsuite/libgomp.fortran/target10.f90: Likewise.
5231 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
5233         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5234         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5235         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5236         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5238 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5240         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5241         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5242         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5244 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
5246         * config/nvptx/error.c (fwrite, exit): Override, too.
5247         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5248         of offloading testing.
5249         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5251 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
5253         * testsuite/libgomp.fortran/error-1.f90: New test.
5255 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
5257         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5258         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5259         * error.c (GOMP_warning, GOMP_error): New functions.
5260         * testsuite/libgomp.c-c++-common/error-1.c: New test.
5262 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
5264         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5265         omp_target_free. omp_target_is_present, omp_target_memcpy,
5266         omp_target_memcpy_rect, omp_target_associate_ptr,
5267         omp_target_disassociate_ptr): Add interface.
5268         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5269         omp_target_free. omp_target_is_present, omp_target_memcpy,
5270         omp_target_memcpy_rect, omp_target_associate_ptr,
5271         omp_target_disassociate_ptr): Add interface.
5272         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5273         interface block for omp_alloc + omp_free.
5274         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5275         * testsuite/libgomp.fortran/refcount-1.f90: New test.
5276         * testsuite/libgomp.fortran/target-12.f90: New test.
5278 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
5280         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5282 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
5284         * testsuite/libgomp.fortran/scope-1.f90: New test.
5285         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5287 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
5289         * Makefile.am (libgomp_la_SOURCES): Add scope.c
5290         * Makefile.in: Regenerated.
5291         * libgomp_g.h (GOMP_scope_start): Declare.
5292         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5293         * scope.c: New file.
5294         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5295         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5297 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
5299         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5300         '?:' issues.
5302 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
5304         * testsuite/libgomp.fortran/masked-1.f90: New test.
5306 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
5308         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5310 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
5312         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5314 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
5316         * env.c (parse_bind_var): Accept 'primary' as alias for
5317         'master'.
5318         (omp_display_env): Add TODO comment to
5319         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5320         * libgomp.texi: Change 'master thread' to 'primary thread'
5321         in line with OpenMP 5.1.
5322         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5323         omp_proc_bind_master is an alias of it.
5324         (OMP_PROC_BIND): Mention 'PRIMARY'.
5325         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5326         (omp_proc_bind_primary): Add.
5327         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5328         * omp_lib.f90.in (omp_proc_bind_primary): Add.
5329         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5330         * omp_lib.h.in (omp_proc_bind_primary): Add.
5331         * testsuite/libgomp.c/affinity-1.c: Check that
5332         'primary' works and is identical to 'master'.
5334 2021-08-09  Julian Brown  <julian@codesourcery.com>
5335             Kwok Cheung Yeung  <kcy@codesourcery.com>
5336             Thomas Schwinge  <thomas@codesourcery.com>
5338         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5339         16.
5340         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5341         [acc_device_radeon]: Update.
5342         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5343         [ACC_DEVICE_TYPE_radeon]: Likewise.
5344         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5345         [acc_device_radeon]: Likewise.
5346         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5347         [ACC_DEVICE_TYPE_radeon]: Likewise.
5348         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5349         'openacc_radeon_accel_selected' and '-O0'.
5350         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5352 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
5354         * icv-device.c (omp_get_device_num): New API function, host side.
5355         * fortran.c (omp_get_device_num_): New interface function.
5356         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5357         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5358         omp_get_device_num_.
5359         * libgomp.texi (omp_get_device_num): Add documentation for new API
5360         function.
5361         * omp.h.in (omp_get_device_num): Add declaration.
5362         * omp_lib.f90.in (omp_get_device_num): Likewise.
5363         * omp_lib.h.in (omp_get_device_num): Likewise.
5364         * target.c (gomp_load_image_to_device): If additional entry for device
5365         number exists at end of returned entries from 'load_image_func' hook,
5366         copy the assigned device number over to the device variable.
5367         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5368         (omp_get_device_num): New API function, device side.
5369         * plugin/plugin-gcn.c ("symcat.h"): Add include.
5370         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5371         at end of returned 'target_table' entries.
5372         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5373         (omp_get_device_num): New API function, device side.
5374         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5375         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5376         at end of returned 'target_table' entries.
5377         * testsuite/lib/libgomp.exp
5378         (check_effective_target_offload_target_intelmic): New function for
5379         testing for intelmic offloading.
5380         * testsuite/libgomp.c-c++-common/target-45.c: New test.
5381         * testsuite/libgomp.fortran/target10.f90: New test.
5383 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
5384             Ulrich Drepper  <drepper@redhat.com>
5386         * fortran.c (omp_display_env_, omp_display_env_8_): Only
5387         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5389 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
5390             Julian Brown  <julian@codesourcery.com>
5391             Kwok Cheung Yeung  <kcy@codesourcery.com>
5393         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5394         's%oaccdevlow%oaccloops%g'.
5395         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5396         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5397         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5398         Likewise.
5399         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5400         Likewise.
5401         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5402         Likewise.
5403         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5404         Likewise.
5405         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5406         Likewise.
5407         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5408         Likewise.
5409         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5410         Likewise.
5411         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5412         Likewise.
5413         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5415 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
5417         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5418         threader.
5419         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5421 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
5423         * env.c (wait_policy, stacksize): New static variables,
5424         move out of handle_omp_display_env.
5425         (omp_display_env): New function.  The meat of the old
5426         handle_omp_display_env function.
5427         (handle_omp_display_env): Change to not take parameters
5428         and instead use the global variables.  Only perform
5429         parsing, defer to omp_display_env for the implementation.
5430         (initialize_env): Remove local variables wait_policy and
5431         stacksize.  Don't pass parameters to handle_omp_display_env.
5432         * fortran.c: Add ialias_redirect for omp_display_env.
5433         (omp_display_env_, omp_display_env_8_): New functions.
5434         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
5435         omp_display_env_, and omp_display_env_8_.
5436         * omp.h.in: Declare omp_display_env.
5437         * omp_lib.f90.in: Likewise.
5438         * omp_lib.h.in: Likewise.
5440 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5441             Julian Brown  <julian@codesourcery.com>
5443         * target.c (gomp_coalesce_buf_add): Update comment.
5444         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5445         'aq && cbuf'.
5446         (gomp_map_vars_internal): Only 'if (!aq)', do
5447         'gomp_coalesce_buf_add'.
5448         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5449         XFAIL.
5451 2021-07-27  Julian Brown  <julian@codesourcery.com>
5452             Thomas Schwinge  <thomas@codesourcery.com>
5454         * libgomp.h (gomp_copy_host2dev): Update prototype.
5455         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5456         argument to gomp_copy_host2dev (false).
5457         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5458         (copy_data): Don't free src.
5459         (queue_push_copy): Remove free_src handling.
5460         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5461         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5462         snapshotting.
5463         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5464         queue_push_copy.
5465         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5466         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
5467         data when true, and set up deferred freeing of temporary buffer.
5468         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5469         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5470         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5471         calls to gomp_copy_host2dev with appropriate ephemeral argument.
5472         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5473         XFAIL.
5475 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5476             Tom de Vries  <tom@codesourcery.com>
5478         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5479         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5481 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5483         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5484         sequencing of 'async' data copying vs. profiling events.
5485         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5486         Likewise.
5488 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5489             Julian Brown  <julian@codesourcery.com>
5491         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5492         'async'/'wait' issue.
5493         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5494         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5495         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5497 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
5498             Joseph Myers  <joseph@codesourcery.com>
5499             Cesar Philippidis  <cesar@codesourcery.com>
5501         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5502         file.
5503         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5504         Likewise.
5505         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5506         Likewise.
5507         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5509 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
5511         PR target/101484
5512         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5513         '-Wno-error=array-bounds'.
5514         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5515         * libgomp.h [__AMDGCN__]: Likewise.
5517 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
5519         PR target/101484
5520         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5521         * libgomp.h [__AMDGCN__]: Likewise.
5523 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
5524             Florian Weimer  <fweimer@redhat.com>
5526         * config/linux/sem.h: Don't include limits.h.
5527         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5528         * config/linux/affinity.c: Include limits.h.
5530 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5532         PR middle-end/94366
5533         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5535 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5537         PR other/67300
5538         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5539         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5540         avoid disabling other offload targets.
5541         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5542         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5543         * testsuite/libgomp.c/target-44.c: Likewise.
5545 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5547         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5548         target has shared memory and disable some scalar pointer/allocatable
5549         checks if not as firstprivate does not work.
5551 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5553         PR testsuite/101114
5554         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5555         Add "target offload_device_nonshared_as" condition for enabling test.
5557 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5559         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5560         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5561         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5562         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5564 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5566         PR middle-end/101167
5567         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5569 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5571         * hashtab.h (htab_clear): New function with initialization code
5572         factored out from...
5573         (htab_create): ...here, adjust to use htab_clear function.
5574         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5575         special refcount values, add comments.
5576         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5577         (REFCOUNT_LINK): Likewise.
5578         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5579         element siblings.
5580         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5581         sibling maps.
5582         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5583         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5584         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5585         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5586         (struct splay_tree_key_s): Add structelem_refcount and
5587         structelem_refcount_ptr fields into a union with dynamic_refcount.
5588         Add comments.
5589         (gomp_map_vars): Delete declaration.
5590         (gomp_map_vars_async): Likewise.
5591         (gomp_unmap_vars): Likewise.
5592         (gomp_unmap_vars_async): Likewise.
5593         (goacc_map_vars): New declaration.
5594         (goacc_unmap_vars): Likewise.
5595         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5596         (goacc_enter_datum): Likewise.
5597         (goacc_enter_data_internal): Likewise.
5598         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5599         and goacc_unmap_vars.
5600         (GOACC_data_start): Adjust to use goacc_map_vars.
5601         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5602         * target.c (hash_entry_type): New typedef.
5603         (htab_alloc): New function hook for hashtab.h.
5604         (htab_free): Likewise.
5605         (htab_hash): Likewise.
5606         (htab_eq): Likewise.
5607         (hashtab.h): Add file include.
5608         (gomp_increment_refcount): New function.
5609         (gomp_decrement_refcount): Likewise.
5610         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5611         gomp_increment_refcount.
5612         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5613         to gomp_map_vars_existing.
5614         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5615         variable to guard OpenMP specific paths, adjust calls to
5616         gomp_map_vars_existing, add structure element sibling splay_tree_key
5617         sequence creation code, adjust Fortran map case to avoid increment
5618         under OpenMP.
5619         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5620         local refcount_set if caller passed in NULL, adjust call to
5621         gomp_map_vars_internal.
5622         (gomp_map_vars_async): Adjust and rename into...
5623         (goacc_map_vars): ...this new function, adjust call to
5624         gomp_map_vars_internal.
5625         (gomp_remove_splay_tree_key): New function with code factored out from
5626         gomp_remove_var_internal.
5627         (gomp_remove_var_internal): Add code to handle removing multiple
5628         splay_tree_key sequence for structure elements, adjust code to use
5629         gomp_remove_splay_tree_key for splay-tree key removal.
5630         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5631         gomp_decrement_refcount.
5632         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5633         local refcount_set if caller passed in NULL, adjust call to
5634         gomp_unmap_vars_internal.
5635         (gomp_unmap_vars_async): Adjust and rename into...
5636         (goacc_unmap_vars): ...this new function, adjust call to
5637         gomp_unmap_vars_internal.
5638         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5639         gomp_unmap_vars.
5640         (GOMP_target_ext): Likewise.
5641         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5642         (GOMP_target_data): Likewise.
5643         (GOMP_target_data_ext): Likewise.
5644         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5645         (gomp_exit_data): Add refcount_set parameter, adjust to use
5646         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5647         after main loop.
5648         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5649         gomp_map_vars and gomp_exit_data.
5650         (gomp_target_task_fn): Likewise.
5651         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5652         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5653         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5654         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5655         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5656         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5658 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5660         PR fortran/92568
5661         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5663 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5664             Thomas Schwinge  <thomas@codesourcery.com>
5666         * libgomp.map (GOACC_2.0.2): New symbol version.
5667         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5668         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5670 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5671             Andrew Stubbs  <ams@codesourcery.com>
5673         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5674         extracted from...
5675         (GOACC_enter_exit_data): ... here.
5676         (GOACC_declare): Use it.
5678 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5680         * oacc-parallel.c (GOACC_declare): Move...
5681         * oacc-mem.c: ... here.
5682         * libgomp_g.h: Adjust.
5684 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5685             Thomas Schwinge  <thomas@codesourcery.com>
5687         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5688         handling.
5690 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5692         PR tree-optimization/100981
5693         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5694         dsdotr and dsdoti to 0.
5696 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5698         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5699         if atomic compare-and-swap is supported on 'int'.
5701 2021-06-09  Richard Biener  <rguenther@suse.de>
5703         PR tree-optimization/100981
5704         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5706 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5708         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5709         unconditionally.
5710         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5711         Update.
5712         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5713         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5715 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5717         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5718         '-DACC_MEM_SHARED=0'.
5719         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5720         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5721         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5722         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5723         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5724         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5725         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5726         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5727         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5728         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5729         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5730         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5731         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5732         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5733         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5734         'acc_device_radeon' testing.
5735         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5736         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5737         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5738         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5739         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5740         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5741         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5742         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5743         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5744         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5745         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5746         for non-'openacc_nvidia_accel_selected'.
5747         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5748         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5749         all implement this checking".
5750         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5751         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5752         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5753         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5754         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5756 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5758         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5759         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5761 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5763         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5764         for 'acc_device_radeon'.
5766 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5768         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5769         for non-'acc_device_nvidia'.
5771 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5773         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5774         'acc_device_radeon' testing.
5775         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5776         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5777         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5779 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5781         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5782         require 'openacc_nvidia_accel_selected'.  Fix up for
5783         'ACC_DEVICE_TYPE_radeon'.
5785 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5787         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5788         'openacc_nvidia_accel_selected'.
5789         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5791 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5793         * testsuite/lib/libgomp.exp
5794         (check_effective_target_openacc_radeon_accel_selected):
5795         Streamline.
5797 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5799         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5800         PR80547 workaround.
5802 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5804         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5805         <acc_device_nvidia>: Update comment.
5807 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5809         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5811 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5813         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5814         check_effective_target_openacc_cublas,
5815         check_effective_target_openacc_cudart): New.
5816         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5817         target openacc_cublas.
5818         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5819         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5820         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5821         target openacc_cuda.
5822         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5823         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5824         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5825         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5826         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5827         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5828         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5829         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5830         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5831         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5832         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5833         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5834         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5835         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5836         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5837         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5838         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5839         targets openacc_cublas and openacc_cudart.
5840         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5841         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5842         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5843         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5844         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5845         Require effective target openacc_cudart.
5846         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5847         for effective target openacc_cuda and add && defined USE_CUDA_H to
5848         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5849         effective target.
5851 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5853         PR libgomp/100573
5854         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5855         GOMP_target_end_data, GOMP_target_update_ext,
5856         GOMP_target_enter_exit_data): New dummy entrypoints.
5857         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5858         GOMP_target_end_data, GOMP_target_update_ext,
5859         GOMP_target_enter_exit_data): Likewise.
5860         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5861         OMPFROM, OMPTO): Define.
5862         (main): Remove #pragma omp target teams around all the tests.
5863         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5864         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5866 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5868         PR middle-end/99928
5869         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5871 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5873         PR fortran/86470
5874         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5875         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5876         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5878 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5880         PR testsuite/90115
5881         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5882         uninteresting/varying diagnostics.
5884 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5886         PR middle-end/90115
5887         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5888         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5890 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5892         PR middle-end/90115
5893         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5894         file.
5895         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5896         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5897         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5898         Likewise.
5899         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5900         Likewise.
5901         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5902         Likewise.
5903         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5904         Likewise.
5905         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5906         Likewise.
5907         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5908         Likewise.
5909         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5910         Likewise.
5911         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5912         Likewise.
5913         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5914         Likewise.
5915         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5916         Likewise.
5917         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5918         Likewise.
5919         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5920         Likewise.
5921         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5922         Likewise.
5923         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5924         Likewise.
5925         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5926         Likewise.
5927         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5928         Likewise.
5929         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5930         Likewise.
5931         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5932         Likewise.
5933         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5934         Likewise.
5935         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5936         Likewise.
5937         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5938         Likewise.
5939         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5940         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5941         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5942         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5943         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5944         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5945         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5946         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5947         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5948         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5949         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5950         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5951         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5952         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5953         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5954         Likewise.
5955         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5956         Likewise.
5957         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5958         Likewise.
5959         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5960         Likewise.
5961         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5962         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5963         Likewise.
5964         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5965         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5966         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5967         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5968         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5969         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5970         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5971         Likewise.
5972         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5973         Likewise.
5974         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5975         Likewise.
5976         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5977         Likewise.
5978         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5979         Likewise.
5980         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5981         Likewise.
5982         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5983         Likewise.
5984         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5985         Likewise.
5986         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5987         Likewise.
5988         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5989         Likewise.
5990         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5991         Likewise.
5992         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5993         Likewise.
5994         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5995         Likewise.
5996         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5997         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5998         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5999         Likewise.
6000         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6001         Likewise.
6002         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6003         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6004         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6006 2021-05-21  Julian Brown  <julian@codesourcery.com>
6007             Chung-Lin Tang  <cltang@codesourcery.com>
6008             Thomas Schwinge  <thomas@codesourcery.com>
6010         PR middle-end/90115
6011         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6012         test.
6013         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6014         Likewise.
6015         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6016         Likewise.
6018 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6020         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6021         for nvptx offloading.
6023 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
6025         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6027 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
6029         PR target/83812
6030         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6032 2021-05-19  Julian Brown  <julian@codesourcery.com>
6034         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6036 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6038         * testsuite/lib/libgomp.exp
6039         (check_effective_target_offload_target_nvptx): Don't shadow global
6040         'offload_targets' variable.
6042 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6044         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6045         '-latomic' to nvptx offloading compilation.
6046         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6048 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
6050         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6051         offloading compilation.
6053 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
6055         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6056         if new tasks generated.
6057         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6059 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
6061         * testsuite/libgomp.fortran/parallel-master.f90: New test.
6063 2021-05-13  Martin Liska  <mliska@suse.cz>
6065         PR testsuite/100569
6066         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6067         * testsuite/libgomp.c/pr46032-2.c: Likewise.
6068         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6069         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6071 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6073         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6074         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6076 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6078         PR middle-end/100471
6079         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6080         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6081         reduction pointer.
6082         * testsuite/libgomp.c/task-reduction-4.c: New test.
6084 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6085             Tom de Vries  <tdevries@suse.de>
6087         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6088         complex/floating-point || + && reduction with 'omp target'.
6089         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6091 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6093         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6094         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6095         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6096         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6098 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6100         PR testsuite/100397
6101         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6102         declaration to scope of non-'depend'-guarded assignment to avoid races.
6104 2021-05-03  Tom de Vries  <tdevries@suse.de>
6106         PR target/100321
6107         * testsuite/libgomp.c/target-44.c: New test.
6109 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
6111         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6113 2021-04-29  Tom de Vries  <tdevries@suse.de>
6115         * testsuite/libgomp.c/pr81778.c: New test.
6117 2021-04-29  Tom de Vries  <tdevries@suse.de>
6119         PR target/100232
6120         * testsuite/libgomp.c/target-43.c: New file.
6122 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
6123             Tobias Burnus  <tobias@codesourcery.com>
6125         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6126         * target.c (gomp_load_plugin_for_device): If set and if a plugin
6127         can't be dlopened, silently assume it has no devices.
6128         * Makefile.in: Regenerate.
6129         * config.h.in: Regenerate.
6130         * configure: Regenerate.
6132 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6134         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6135         Use [Ww]arning in dg-bogus as FE diagnostic and default
6136         diagnostic differ and the result depends on ENABLE_OFFLOAD.
6137         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6138         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6139         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6141 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6143         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6144         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6145         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6146         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6147         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6149 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6150             Nathan Sidwell  <nathan@codesourcery.com>
6151             Tom de Vries  <vries@codesourcery.com>
6152             Julian Brown  <julian@codesourcery.com>
6153             Kwok Cheung Yeung  <kcy@codesourcery.com>
6155         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6156         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6157         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6158         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6159         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6160         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6161         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6162         Likewise.
6163         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6164         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6165         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6166         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6167         Likewise.
6168         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6169         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6170         Likewise.
6171         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6172         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6173         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6174         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6175         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6176         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6177         Likewise.
6178         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6179         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6180         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6181         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6182         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6183         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6184         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6185         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6186         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6187         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6188         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6190 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6192         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6193         compile with '-w'.
6194         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6195         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6196         Likewise.
6197         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6198         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6199         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6200         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6201         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6202         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6203         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6205 2021-04-22  Richard Biener  <rguenther@suse.de>
6207         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6208         only on nvptx-none.
6210 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6212         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6213         omp_depend_kind instead of defining it as 16.
6215 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6217         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6218         New, based on check_effective_target_offload_target_nvptx.
6219         (check_effective_target_offload_target_nvptx): Call it.
6220         (check_effective_target_offload_target_amdgcn): New.
6221         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6222         Require target offload_target_nvptx || offload_target_amdgcn.
6223         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6224         * testsuite/libgomp.c/pr86416-1.c: Likewise.
6225         * testsuite/libgomp.c/pr86416-2.c: Likewise.
6227 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6229         * testsuite/libgomp.fortran/depobj-1.f90: New test.
6231 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6233         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6234         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6235         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6236         Likewise.
6237         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6238         Likewise.
6239         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6241 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6243         PR target/99555
6244         * testsuite/lib/libgomp.exp
6245         (check_effective_target_offload_device_nvptx): New.
6246         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6247         resolved, make sure that we exit quickly, with error status,
6248         XFAILed.
6249         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6250         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6252 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
6254         PR testsuite/100071
6255         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6256         cp = omp_alloc with cp, p arguments instead of cq, q and call
6257         c_f_pointer after last cq = omp_alloc with cq, q.
6259 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6261         PR middle-end/98088
6262         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6263         for loop with GT/GE condition.
6264         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6266 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
6268         PR middle-end/84991
6269         PR middle-end/84992
6270         PR middle-end/90779
6271         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6273 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
6275         PR libgomp/99984
6276         * team.c (gomp_thread_start): Call pthread_setspecific for
6277         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6278         has been initialized to avoid false positive warning.
6280 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
6282         PR target/99555
6283         * testsuite/lib/on_device_arch.c: Move to ...
6284         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6285         * testsuite/libgomp.fortran/on_device_arch.c: New file;
6286         #include on_device_arch.h.
6287         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6288         on_device_arch.h instead of using dg-additional-source.
6289         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6290         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6291         on_device_arch.c without relative paths.
6293 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6295         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6296         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6297         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6298         * config.h.in: Regenerate.
6299         * configure: Likewise.
6301 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6303         PR target/99555
6304         * testsuite/lib/on_device_arch.c: New file.
6305         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6306         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6307         skip for nvptx offloading, with error status.
6308         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6310 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6312         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6313         OpenACC 'serial' construct diagnostic for nvptx offloading.
6315 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
6317         PR c++/99509
6318         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6320 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
6322         PR fortran/98858
6323         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6325 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
6327         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6328         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6329         checking of -m32 or -mx32 options on the command line.
6330         * config.h.in: Regenerated.
6331         * configure: Regenerated.
6333 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
6335         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6336         support from the target.
6338 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6339             Jakub Jelinek  <jakub@redhat.com>
6341         PR libgomp/98738
6342         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6343         (struct gomp_task): Replace detach and completion_sem fields with
6344         union containing completion_sem and detach_team.  Add deferred_p
6345         field.
6346         (struct gomp_team): Remove task_detach_queue.
6347         * task.c: Include assert.h.
6348         (gomp_init_task): Initialize deferred_p and completion_sem fields.
6349         Rearrange initialization order of fields.
6350         (task_fulfilled_p): Delete.
6351         (GOMP_task): Use address of task as the event handle.  Remove
6352         initialization of detach field.  Initialize deferred_p field.
6353         Use automatic local for completion_sem.  Initialize detach_team field
6354         for deferred tasks.
6355         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6356         Set kind of suspended detach task to GOMP_TASK_DETACHED and
6357         decrement task_running_count.  Move finish_cancelled block out of
6358         else branch.  Relocate call to gomp_team_barrier_done.
6359         (GOMP_taskwait): Handle tasks with completion events that have not
6360         been fulfilled.
6361         (GOMP_taskgroup_end): Likewise.
6362         (omp_fulfill_event): Use address of task as event handle.  Post to
6363         completion_sem for undeferred tasks.  Clear detach_team if task
6364         has not finished.  For finished tasks, handle post-execution tasks,
6365         call gomp_team_barrier_wake if necessary, and free task.
6366         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6367         (free_team): Remove free of task_detach_queue.
6368         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6369         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6370         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6371         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6372         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6373         Change data-sharing of detach events on enclosing parallel to private.
6374         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
6375         taskwait directive.
6376         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6377         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6378         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6379         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6380         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6381         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6382         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6383         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6384         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6385         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6386         Change data-sharing of detach events on enclosing parallel to private.
6387         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
6388         taskwait directive.
6389         * testsuite/libgomp.fortran/task-detach-7.f90: New.
6390         * testsuite/libgomp.fortran/task-detach-8.f90: New.
6391         * testsuite/libgomp.fortran/task-detach-9.f90: New.
6392         * testsuite/libgomp.fortran/task-detach-10.f90: New.
6393         * testsuite/libgomp.fortran/task-detach-11.f90: New.
6395 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
6397         PR fortran/99171
6398         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6400 2021-02-17  Julian Brown  <julian@codesourcery.com>
6402         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6403         expected errors.
6405 2021-02-17  Julian Brown  <julian@codesourcery.com>
6407         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6408         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6410 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6412         * config/linux/x86/futex.h (__futex_wait):
6413         Revert output type back to long.
6414         (__futex_wake): Ditto.
6415         (futex_wait): Update for revert.
6416         (futex_wake): Ditto.
6418 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6420         * config/linux/x86/futex.h (__futex_wait): New static inline
6421         wrapper function.  Correct output type to int and
6422         timeout type to void *.
6423         (__futex_wake): New static inline wrapper function.
6424         Correct output type to int.
6425         (futex_wait): Use __futex_wait.
6426         (futex_wake): Use __futex_wake.
6428 2021-02-10  Julian Brown  <julian@codesourcery.com>
6430         PR fortran/98979
6431         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6432         errors.
6434 2021-02-04  Julian Brown  <julian@codesourcery.com>
6436         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6438 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
6440         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6441         EF_AMDGPU_MACH_AMDGCN_GFX908.
6442         (gcn_gfx908_s): New constant string.
6443         (isa_hsa_name): Add gfx908.
6444         (isa_code): Add gfx908.
6446 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6448         * libgomp.texi (omp_fulfill_event): New entry.
6450 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
6452         * task.c (GOMP_task): Rename priority argument to priority_arg,
6453         add priority automatic variable and modify that variable.  Instead of
6454         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6455         check flags for that bit.
6457 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
6459         PR fortran/98476
6460         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6462 2021-01-18  Andreas Schwab  <schwab@suse.de>
6464         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6466 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6468         * config/rtems/sem.h (gomp_sem_getcount): New function.
6470 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
6472         * config/linux/sem.h (gomp_sem_getcount): New function.
6473         * config/posix/sem.h (gomp_sem_getcount): New function.
6474         * config/posix/sem.c (gomp_sem_getcount): New function.
6475         * config/accel/sem.h (gomp_sem_getcount): New function.
6476         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6477         (omp_fulfill_event): Likewise.
6479 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
6481         * fortran.c (omp_fulfill_event_): New.
6482         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6483         (struct gomp_team): Add task_detach_queue and task_detach_count
6484         fields.
6485         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6486         * libgomp_g.h (GOMP_task): Add extra argument.
6487         * omp.h.in (enum omp_event_handle_t): New.
6488         (omp_fulfill_event): New.
6489         * omp_lib.f90.in (omp_event_handle_kind): New.
6490         (omp_fulfill_event): New.
6491         * omp_lib.h.in (omp_event_handle_kind): New.
6492         (omp_fulfill_event): Declare.
6493         * priority_queue.c (priority_tree_find): New.
6494         (priority_list_find): New.
6495         (priority_queue_find): New.
6496         * priority_queue.h (priority_queue_predicate): New.
6497         (priority_queue_find): New.
6498         * task.c (gomp_init_task): Initialize detach field.
6499         (task_fulfilled_p): New.
6500         (GOMP_task): Add detach argument.  Ignore detach argument if
6501         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
6502         field.  Copy address of completion_sem into detach argument and
6503         into the start of the data record.  Wait for detach event if task
6504         not deferred.
6505         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6506         Remove completed tasks and requeue dependent tasks.
6507         (omp_fulfill_event): New.
6508         * team.c (gomp_new_team): Initialize task_detach_queue and
6509         task_detach_count fields.
6510         (free_team): Free task_detach_queue field.
6511         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6512         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6513         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6514         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6515         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6516         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6517         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6518         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6519         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6520         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6521         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6522         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6524 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
6526         PR target/70454
6527         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6528         be added through preprocessor check on
6529         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6531 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6533         PR libgomp/65099
6534         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6535         configurations.
6536         * configure: Regenerate.
6537         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6538         check.
6540 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6542         * configure: Re-generate.
6544 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6546         * configure: Re-generate.
6548 2021-01-05  Julian Brown  <julian@codesourcery.com>
6550         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6551         (struct ptx_device): Add omp_stacks struct.
6552         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6553         (nvptx_close_device): Free cached stacks block and mutex.
6554         (nvptx_stacks_free): New function.
6555         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6556         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6557         (nvptx_stacks_alloc): Rename to...
6558         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6559         size or smaller is required.
6560         (nvptx_stacks_free): Remove.
6561         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6562         during kernel execution.
6564 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6566         * libgomp.texi: Bump @copying's copyright year.
6568 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6570         * libgomp.texi (Top): Avoid bad "up" link.
6572 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6574         * testsuite/libgomp.c/task-6.c: New test.
6576 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6578         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6579         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6581 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6583         * testsuite/libgomp.fortran/scan-1.f90: New test.
6585 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6587         PR target/97865
6588         * configure: Regenerate.
6590 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6592         * configure: Regenerate.
6594 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6596         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6597         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6599 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6601         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6602         expected results.
6604 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6606         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6607         (reserved): Delete unused define.
6609 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6611         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6612         Tcl 8.5-specific behavior.
6613         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6615 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6617         * env.c (gomp_global_icv): Remove nest_var field.  Add
6618         max_active_levels_var field.
6619         (gomp_max_active_levels_var): Remove.
6620         (parse_boolean): Return true on success.
6621         (handle_omp_display_env): Express OMP_NESTED in terms of
6622         max_active_levels_var.  Change format specifier for
6623         max_active_levels_var.
6624         (initialize_env): Set max_active_levels_var from
6625         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6626         OMP_PROC_BIND.
6627         * icv.c (omp_set_nested): Express in terms of
6628         max_active_levels_var.
6629         (omp_get_nested): Likewise.
6630         (omp_set_max_active_levels): Use max_active_levels_var field instead
6631         of gomp_max_active_levels_var.
6632         (omp_get_max_active_levels): Likewise.
6633         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6634         max_active_levels_var field.
6635         (gomp_supported_active_levels): Set to UCHAR_MAX.
6636         (gomp_max_active_levels_var): Delete.
6637         * libgomp.texi (omp_get_nested): Update documentation.
6638         (omp_set_nested): Likewise.
6639         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6640         (OMP_NESTED): Likewise.
6641         (OMP_NUM_THREADS): Likewise.
6642         (OMP_PROC_BIND): Likewise.
6643         * parallel.c (gomp_resolve_num_threads): Replace reference
6644         to nest_var with max_active_levels_var.  Use max_active_levels_var
6645         field instead of gomp_max_active_levels_var.
6647 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6649         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6650         nvptx_usleep; use also for device={arch(gcn)}.
6652 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6654         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6655         (foo): Add tests for non-VLA private and firstprivate clauses on
6656         omp task.
6657         (bar): Likewise.  Remove taking of address from private/firstprivate
6658         variables.
6659         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6660         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6661         and for non-VLA private and firstprivate clauses on omp task.
6662         (bar): Removed.
6663         (main): Adjust foo caller.  Don't call bar.
6665 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6666             Thomas Schwinge  <thomas@codesourcery.com>
6668         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6669         New.
6670         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6671         Likewise.
6672         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6673         Likewise.
6674         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6675         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6677 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6678             Thomas Schwinge  <thomas@codesourcery.com>
6680         PR fortran/94358
6681         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6683 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6685         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6686         for array reductions.
6687         (main): Adjust foo callers.
6689 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6691         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6692         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6693         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6694         * allocator.c (omp_aligned_alloc): New for now static function,
6695         add alignment argument and handle it.
6696         (omp_alloc): Reimplement using omp_aligned_alloc.
6697         (GOMP_alloc, GOMP_free): New functions.
6698         (omp_free): Add ialias.
6699         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6700         * testsuite/libgomp.c++/allocate-1.C: New test.
6702 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6704         PR fortran/97782
6705         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6707 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6709         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6710         usable.
6711         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6712         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6713         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6714         (goacc_enter_data_internal): Likewise.
6715         * target.c (gomp_map_vars_internal):
6716         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6717         of gomp_attach_pointer for OpenMP cases.
6718         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6719         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6720         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6722 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6723             Kwok Cheung Yeung  <kcy@codesourcery.com>
6725         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6726         * Makefile.in: Regenerate.
6727         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6728         pragmas to ignore -Wdeprecated-declarations warnings.
6729         * icv.c: Likewise.
6730         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6731         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6732         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6733         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6734         deprecated.
6735         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6736         to test options.
6737         * testsuite/libgomp.c/affinity-1.c: Likewise.
6738         * testsuite/libgomp.c/affinity-2.c: Likewise.
6739         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6740         * testsuite/libgomp.c/lib-1.c: Likewise.
6741         * testsuite/libgomp.c/nested-1.c: Likewise.
6742         * testsuite/libgomp.c/nested-2.c: Likewise.
6743         * testsuite/libgomp.c/nested-3.c: Likewise.
6744         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6745         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6746         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6747         * testsuite/libgomp.c/pr35549.c: Likewise.
6748         * testsuite/libgomp.c/pr42942.c: Likewise.
6749         * testsuite/libgomp.c/pr61200.c: Likewise.
6750         * testsuite/libgomp.c/sort-1.c: Likewise.
6751         * testsuite/libgomp.c/target-5.c: Likewise.
6752         * testsuite/libgomp.c/target-6.c: Likewise.
6753         * testsuite/libgomp.c/teams-1.c: Likewise.
6754         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6755         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6756         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6757         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6758         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6759         * testsuite/libgomp.fortran/lib2.f: Likewise.
6760         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6761         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6763 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6765         PR target/85486
6766         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6767         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6768         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6770 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6772         PR testsuite/80219
6773         PR testsuite/85303
6774         * testsuite/lib/libgomp.exp (libgomp_init): Set
6775         'gcc_warning_prefix', 'gcc_error_prefix'.
6777 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6779         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6780         even in field_tgt_clear initializer.
6782 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6784         * testsuite/libgomp.c/target-42.c: New test.
6786 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6787             Tom de Vries  <tdevries@suse.de>
6789         PR testsuite/81690
6790         * testsuite/libgomp.c/usleep.h: New file.
6791         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6792         (main): Use tgt_usleep instead of usleep.
6793         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6794         (main): Use tgt_usleep instead of usleep.
6796 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6798         PR lto/96680
6799         * testsuite/libgomp.c/declare-variant-1.c: New test.
6801 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6803         * testsuite/libgomp.c/target-41.c: New test.
6805 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6807         * icv.c (omp_get_initial_device): Remove including corresponding
6808         ialias.
6809         * icv-device.c (omp_get_initial_device): New function.  Return
6810         gomp_get_num_devices ().  Add ialias.
6811         * target.c (resolve_device): Don't fail with
6812         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6813         gomp_get_num_devices ().
6814         (omp_target_alloc, omp_target_free, omp_target_is_present,
6815         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6816         omp_target_disassociate_ptr, omp_pause_resource): Use
6817         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6818         first use in the functions, in uses dominated by the
6819         gomp_get_num_devices call use num_devices_openmp instead.
6820         * libgomp.texi (omp_get_initial_device): Document.
6821         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6822         Add ialias.
6823         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6824         * testsuite/libgomp.c/target-40.c: New test.
6826 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6828         * env.c (parse_target_offload): Change new_offload var type to int,
6829         preinitialize to -1, remove found var and test new_offload != -1
6830         instead of found.
6832 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6834         * target.c (gomp_target_init): Inside of the function, use automatic
6835         variables corresponding to num_devices, num_devices_openmp and devices
6836         global variables and update the globals only at the end of the
6837         function.
6839 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6841         * env.c (gomp_target_offload_var): New.
6842         (parse_target_offload): New.
6843         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6844         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6845         * libgomp.h (gomp_target_offload_t): New.
6846         (gomp_target_offload_var): New.
6847         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6848         * target.c (resolve_device): Generate error if device not found and
6849         offloading is mandatory.
6850         (gomp_target_fallback): Generate error if offloading is mandatory.
6851         (GOMP_target): Add argument in call to gomp_target_fallback.
6852         (GOMP_target_ext): Likewise.
6853         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6854         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6855         (GOMP_target_data_ext): Likewise.
6856         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6857         (gomp_target_init): Return early if offloading is disabled.
6859 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6861         * libgomp.texi (omp_get_max_active_levels): Modify description.
6862         (omp_get_supported_active_levels): Make descriptions consistent.
6864 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6866         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6868 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6870         * env.c (gomp_max_active_levels_var): Initialize to
6871         gomp_supported_active_levels.
6872         (initialize_env): Limit gomp_max_active_levels_var to be at most
6873         equal to gomp_supported_active_levels.
6874         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6875         (omp_get_supported_active_levels_): New.
6876         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6877         to at most equal to gomp_supported_active_levels.
6878         (omp_get_supported_active_levels): New.
6879         * libgomp.h (gomp_supported_active_levels): New.
6880         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6881         omp_get_supported_active_levels_.
6882         * libgomp.texi (omp_get_supported_active_levels): New.
6883         (omp_set_max_active_levels): Update.  Add reference to
6884         omp_get_supported_active_levels.
6885         * omp.h.in (omp_get_supported_active_levels): New.
6886         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6887         * omp_lib.h.in (omp_get_supported_active_levels): New.
6888         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6889         against omp_get_supported_active_levels.
6890         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6892 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6894         * config/t-aix: Delete and recreate libgomp before creating
6895         FAT library.
6897 2020-10-08  Tom de Vries  <tdevries@suse.de>
6899         PR libgomp/81802
6900         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6901         dimensions.
6903 2020-10-06  Tom de Vries  <tdevries@suse.de>
6905         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6907 2020-10-06  Tom de Vries  <tdevries@suse.de>
6909         PR middle-end/90861
6910         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6912 2020-10-05  Tom de Vries  <tdevries@suse.de>
6914         PR fortran/95654
6915         * testsuite/libgomp.fortran/pr95654.f90: New test.
6917 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6919         * Makefile.in: Regenerate with automake 1.15.1.
6920         * aclocal.m4: Likewise.
6921         * configure: Likewise.
6922         * testsuite/Makefile.in: Likewise.
6924 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6926         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6927         and amdgcn targets.
6929 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6931         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6933 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6935         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6936         total number of threads is one.
6937         (gomp_team_barrier_wake): Likewise.
6938         (gomp_team_barrier_wait_end): Likewise.
6939         (gomp_team_barrier_wait_cancel_end): Likewise.
6940         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6941         (gomp_team_barrier_wake): Likewise.
6942         (gomp_team_barrier_wait_end): Likewise.
6943         (gomp_team_barrier_wait_cancel_end): Likewise.
6944         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6946 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6948         PR middle-end/96390
6949         * testsuite/libgomp.c++/pr96390.C: New test.
6950         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6952 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6954         * config/t-aix: Use $(AR) without -X32_64.
6956 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6958         * testsuite/libgomp.c/loop-25.c: New test.
6960 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6962         PR fortran/95654
6963         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6965 2020-09-22  Tom de Vries  <tdevries@suse.de>
6967         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6968         fails.
6970 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6972         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6974 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6976         PR fortran/96668
6977         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6979 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6981         PR fortran/96668
6982         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6983         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6984         (gomp_map_vars_existing): Update call to it.
6985         (gomp_map_fields_existing): Likewise
6986         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6987         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6988         remapped.
6989         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6990         GOMP_MAP_POINTER.
6991         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6992         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6994 2020-09-14  Tom de Vries  <tdevries@suse.de>
6996         * config/nvptx/atomic.c: New file.  Add
6997         __sync_val_compare_and_swap_16.
6998         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6999         target offload_target_nvptx.
7001 2020-09-08  Julian Brown  <julian@codesourcery.com>
7003         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7004         iteration-ordering assumptions.
7006 2020-09-08  Julian Brown  <julian@codesourcery.com>
7008         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7009         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7011 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
7013         * plugin/plugin-nvptx.c (nvptx_free):
7014         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7015         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7016         comments.
7018 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
7020         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7022 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
7024         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7026 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
7028         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7029         * testsuite/libgomp.c/loop-23.c (main): Likewise.
7030         * testsuite/libgomp.c/loop-24.c: New test.
7032 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
7033             Tobias Burnus  <tobias@codesourcery.com>
7035         PR fortran/93553
7036         * testsuite/libgomp.fortran/pr93553.f90: New test.
7038 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7040         * testsuite/libgomp.c/loop-22.c: New test.
7041         * testsuite/libgomp.c/loop-23.c: New test.
7043 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
7045         PR middle-end/96459
7046         * testsuite/libgomp.c/teams-3.c: New test.
7047         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7048         if not defined yet.
7049         (N(test)): Use it before all N(f*) calls.
7050         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7051         (main): Don't call all test_* functions from within
7052         #pragma omp teams reduction(|:err), call them directly.
7054 2020-08-04  Tom de Vries  <tdevries@suse.de>
7056         PR target/96428
7057         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7058         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7060 2020-08-03  Julian Brown  <julian@codesourcery.com>
7061             Thomas Schwinge  <thomas@codesourcery.com>
7063         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7064         shared-memory devices.  Extend with further checking.
7066 2020-08-03  Martin Jambor  <mjambor@suse.cz>
7068         * plugin/Makefrag.am: Remove configuration of HSA plugin.
7069         * aclocal.m4: Regenerated.
7070         * Makefile.in: Regenerated.
7071         * config.h.in: Regenerated.
7072         * configure: Regenerated.
7073         * plugin/configfrag.ac: Likewise.
7074         * plugin/hsa_ext_finalize.h: Removed.
7075         * plugin/plugin-hsa.c: Likewise.
7076         * testsuite/Makefile.in: Regenerated.
7077         * testsuite/lib/libgomp.exp
7078         (offload_target_to_openacc_device_type): Remove hsa case.
7079         (check_effective_target_hsa_offloading_selected_nocache): Removed
7080         (check_effective_target_hsa_offloading_selected): Likewise.
7081         (libgomp_init): Do not add -Wno-hsa to additional_flags.
7082         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7083         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7084         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7085         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7086         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7087         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7088         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7089         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7090         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7091         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7092         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7093         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7094         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7095         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7096         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7097         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7098         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7099         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7100         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7101         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7102         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7103         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7104         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7105         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7107 2020-07-27  Julian Brown  <julian@codesourcery.com>
7108             Thomas Schwinge  <thomas@codesourcery.com>
7110         * libgomp.h (struct target_var_desc): Rename do_detach field to
7111         is_attach.
7112         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
7113         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7114         (goacc_enter_data_internal): Don't affect reference counts
7115         for attach mappings.
7116         (goacc_exit_data_internal): Don't affect reference counts for detach
7117         mappings.
7118         * target.c (gomp_map_vars_existing): Don't affect reference counts for
7119         attach mappings.
7120         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7121         mark attach mappings.
7122         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7123         reference count for attach mappings.
7124         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7125         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7126         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7127         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7128         test as shouldfail.
7129         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7130         gracefully in no-finalize mode.
7131         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7133 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
7135         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7136         use.
7137         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7138         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7140 2020-07-23  Julian Brown  <julian@codesourcery.com>
7141             Thomas Schwinge  <thomas@codesourcery.com>
7143         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7144         finalization for detach operation.
7145         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7146         New test.
7148 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
7150         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7151         * libgomp_f.h.in (omp_check_defines): Check whether
7152         sizeof of determined Fortran kind and C typedef match.
7153         * omp_lib.f90.in: Add omp_depened_kind.
7154         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7155         * configure: Regenerate.
7156         * Makefile.in: Regenerate.
7157         * testsuite/Makefile.in: Regenerate.
7159 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7161         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7162         gcc/testsuite/c-c++-common/gomp/.
7163         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7164         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7165         from gcc/testsuite/gfortran.dg/gomp/.
7166         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7168 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7170         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7171         * omp_lib.h.in: Likewise.
7173 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
7175         PR target/95620
7176         * testsuite/libgomp.c/pr95620.c: New test.
7178 2020-07-16  Julian Brown  <julian@codesourcery.com>
7179             Thomas Schwinge  <thomas@codesourcery.com>
7181         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7182         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7184 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7186         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7187         avoid conversion on 32bit systems from 32bit to 64bit due
7188         to -fdefault-integer-8.
7190 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7192         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7193         variables; add character(kind=4) tests; update TODO comment.
7195 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7197         * allocator.c: Add ialias for omp_init_allocator and
7198         omp_destroy_allocator.
7199         * configure.ac: Set INTPTR_T_KIND.
7200         * configure: Regenerate.
7201         * Makefile.in: Regenerate.
7202         * testsuite/Makefile.in: Regenerate.
7203         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7204         omp_set_default_allocator_, omp_get_default_allocator_): New
7205         functions and ialias_redirect.
7206         * icv.c: Add ialias for omp_set_default_allocator and
7207         omp_get_default_allocator.
7208         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7209         omp_destroy_allocator_, omp_set_default_allocator_ and
7210         omp_get_default_allocator_.
7211         * omp_lib.f90.in: Add allocator traits parameters, declare
7212         allocator routines and add related kind parameters.
7213         * omp_lib.h.in: Likewise.
7214         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7215         * testsuite/libgomp.fortran/alloc-1.F90: New test.
7216         * testsuite/libgomp.fortran/alloc-2.F90: New test.
7217         * testsuite/libgomp.fortran/alloc-3.F: New test.
7218         * testsuite/libgomp.fortran/alloc-4.f90: New test.
7219         * testsuite/libgomp.fortran/alloc-5.f90: New test.
7221 2020-07-14  Tom de Vries  <tom@codesourcery.com>
7222             Cesar Philippidis  <cesar@codesourcery.com>
7223             Thomas Schwinge  <thomas@codesourcery.com>
7224             Kwok Cheung Yeung  <kcy@codesourcery.com>
7226         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7227         New variable.
7228         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
7229         acc_init_state to initializing at the start, and to initialized at the
7230         end.
7231         (self_initializing_p): New function.
7232         (acc_get_device_type): Return acc_device_none if called by thread that
7233         is currently executing acc_init_1.
7234         * libgomp.texi (acc_get_device_type): Update documentation.
7235         (Implementation Status and Implementation-Defined Behavior): Likewise.
7236         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7238 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
7240         * config/t-aix: Set BITS from compiler cpp macro.
7242 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7244         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7246 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7248         PR fortran/67311
7249         * testsuite/libgomp.fortran/target-map-1.f90: New test.
7251 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
7253         * testsuite/libgomp.c/loop-21.c: New test.
7255 2020-07-13  Julian Brown  <julian@codesourcery.com>
7256             Thomas Schwinge  <thomas@codesourcery.com>
7258         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7260 2020-07-10  Julian Brown  <julian@codesourcery.com>
7261             Thomas Schwinge  <thomas@codesourcery.com>
7263         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7264         dynamic_refcount.
7265         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7266         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7267         dynamic_refcount.
7268         (acc_unmap_data): Update comment.
7269         (goacc_map_var_existing, goacc_enter_datum): Adjust for
7270         dynamic_refcount semantics.
7271         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7272         Adjust for dynamic_refcount semantics.
7273         (goacc_enter_data_internal): Implement "present" case of dynamic
7274         memory-map handling here.  Update "non-present" case for
7275         dynamic_refcount semantics.
7276         (goacc_exit_data_internal): Use goacc_exit_datum_1.
7277         * target.c (gomp_map_vars_internal): Remove
7278         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
7279         handling.
7280         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7281         (gomp_load_image_to_device): Substitute dynamic_refcount for
7282         virtual_refcount.
7283         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7284         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7285         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7286         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7287         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7288         trace output.
7289         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7290         trace output.
7291         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7292         test.
7293         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7294         Remove stale comment.
7295         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7296         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7297         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7298         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7299         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7300         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7302 2020-07-10  Julian Brown  <julian@codesourcery.com>
7303             Thomas Schwinge  <thomas@codesourcery.com>
7305         * oacc-mem.c (goacc_map_var_existing): New function.
7306         (goacc_enter_datum): Use above function.
7307         (goacc_exit_datum_1): New function.
7308         (goacc_exit_datum): Use above function.
7310 2020-07-09  Julian Brown  <julian@codesourcery.com>
7311             Thomas Schwinge  <thomas@codesourcery.com>
7313         PR middle-end/95270
7314         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7315         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7317 2020-07-09  Julian Brown  <julian@codesourcery.com>
7319         * oacc-mem.c (find_group_last): Group data-movement clauses
7320         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7321         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
7323 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7325         * testsuite/libgomp.c/loop-19.c: New test.
7326         * testsuite/libgomp.c/loop-20.c: New test.
7328 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7330         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7331         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
7332         it.  Remove __omp_alloctrait_value_max__.
7333         * allocator.c (omp_init_allocator): Handle omp_atv_default for
7334         omp_atk_alignment and omp_atk_pool_size.
7336 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7338         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7339         behavior for 'GOMP_MAP_FORCE_FROM'.
7340         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7342 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7344         * oacc-mem.c (goacc_exit_data_internal): Remove
7345         'GOMP_MAP_ALWAYS_FROM' handling.
7347 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7349         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7350         'scan-assembler' with 'scan-offload-rtl'.
7351         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7352         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7353         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7354         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7356 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7358         * target.c (gomp_map_vars_existing): Assert 'kind !=
7359         GOMP_MAP_ATTACH'.
7360         (gomp_map_vars_internal): Clean up.
7362 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
7364         * testsuite/libgomp.c/loop-17.c: New test.
7365         * testsuite/libgomp.c/loop-18.c: New test.
7367 2020-06-26  Marek Polacek  <polacek@redhat.com>
7369         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7371 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
7373         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7374         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7376 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
7378         * Makefile.am: Use -include.
7379         * Makefile.in: Regenerate.
7381 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
7383         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7384         * Makefile.in: Regenerate
7385         * configure.ac (tmake_file): Substitute.
7386         * configure: Regenerate.
7387         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7388         * config/t-aix: New file.
7390 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
7392         PR lto/94848
7393         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7394         'dg-do run'.
7396 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
7398         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7399         variant for HSA_RUNTIME_LIB name.
7400         (find_executable_symbol_1): Delete.
7401         (find_executable_symbol): Delete.
7402         (init_kernel_properties): Add ".kd" suffix to symbol names.
7403         (find_load_offset): Delete.
7404         (create_and_finalize_hsa_program): Remove relocation handling.
7406 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
7408         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7410 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
7412         PR lto/94848
7413         PR middle-end/95551
7414         * testsuite/libgomp.fortran/target-var.f90: New test.
7416 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7417             Julian Brown  <julian@codesourcery.com>
7419         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7420         special handling.
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>:
7426         Simplify.
7428 2020-06-05  Julian Brown  <julian@codesourcery.com>
7430         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7431         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7433 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7435         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7436         Evaluate 'copyfrom' individually for each entry.
7437         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7439 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7441         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7442         Evaluate 'finalize' individually for each entry.
7443         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7444         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7445         file.
7447 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7449         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7450         usage.
7451         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7453 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7454             Julian Brown  <julian@codesourcery.com>
7456         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7457         checking.
7458         (acc_unmap_data, goacc_exit_data_internal): Restore
7459         'is_tgt_unmapped' checking.
7460         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7461         file.
7462         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7463         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7464         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7465         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7466         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7467         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7469 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7470             Julian Brown  <julian@codesourcery.com>
7472         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7474 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7476         PR libgomp/92854
7477         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7479 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7481         PR libgomp/92854
7482         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7483         more.
7485 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7486             Julian Brown  <julian@codesourcery.com>
7488         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7489         'gomp_map_vars'.
7490         (acc_map_data): Clean up accordingly.
7492 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7494         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7495         of over-eager 'finalize' clause.
7496         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7497         file.
7498         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7499         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7500         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7501         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7502         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7503         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7504         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7505         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7507 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7509         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7511 2020-06-04  Julian Brown  <julian@codesourcery.com>
7513         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7514         error path.
7515         (goacc_detach_internal): Likewise.
7517 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7519         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7520         the checkpoint.
7521         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7522         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7523         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7524         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7525         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7527 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7529         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7530         defined.
7532 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7534         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7536 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7538         * allocator.c (omp_alloc): For size == 0, return NULL early.
7540 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7542         PR bootstrap/95413
7543         * configure: Regenerated.
7545 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7547         PR libfortran/95191
7548         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7550 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7552         * omp.h.in (omp_uintptr_t): New typedef.
7553         (__GOMP_UINTPTR_T_ENUM): Define.
7554         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7555         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7556         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7557         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7558         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7559         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7560         (gomp_def_allocator): Declare.
7561         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7562         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7563         omp_alloc and omp_free.
7564         * team.c (gomp_team_start): Copy over ts.def_allocator.
7565         * env.c (gomp_def_allocator): New variable.
7566         (parse_wait_policy): Adjust function comment.
7567         (parse_allocator): New function.
7568         (handle_omp_display_env): Print OMP_ALLOCATOR.
7569         (initialize_env): Call parse_allocator.
7570         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7571         * allocator.c: New file.
7572         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7573         functions.
7574         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7575         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7576         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7577         * Makefile.in: Regenerated.
7579 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7581         PR bootstrap/95147
7582         * configure: Regenerated.
7584 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7586         PR libfortran/95119
7587         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7589 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7591         * configure: Regenerated.
7593 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7595         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7597 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7599         PR fortran/94690
7600         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7601         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7602         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7603         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7604         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7605         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7606         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7608 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7610         * testsuite/libgomp.c/target-39.c: New test.
7612 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7614         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7615         * openacc.f90 (acc_device_current): Likewise.
7616         * openacc.h (acc_device_current): Likewise.
7617         * openacc_lib.h (acc_device_current): Likewise.
7619         PR target/94282
7620         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7621         'dg-allow-blank-lines-in-output'.
7623         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7624         * testsuite/lib/libgomp.exp
7625         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7626         'radeon'.  Adjust all users.
7627         (check_effective_target_openacc_amdgcn_accel_present): Rename
7628         to...
7629         (check_effective_target_openacc_radeon_accel_present): ... this.
7630         Adjust all users.
7631         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7632         (check_effective_target_openacc_radeon_accel_selected): ... this.
7633         Adjust all users.
7635         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7636         'dg-do run'.
7638 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7640         PR other/94629
7642         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7643         hsa_iterate_agents.
7644         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7645         hsa_agent_iterate_regions.
7647 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7649         PR middle-end/94635
7650         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7651         run'.
7653 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7655         PR middle-end/94120
7656         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7657         test case.
7659 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7661         PR middle-end/94635
7662         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7664 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7666         PR libgomp/92843
7667         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7668         Rename to...
7669         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7670         ... this.
7671         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7672         Rename to...
7673         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7674         ... this.
7675         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7676         Rename to...
7677         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7678         ... this.
7679         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7680         Rename to...
7681         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7682         ... this.
7683         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7684         Rename to...
7685         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7686         ... this.
7687         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7688         Rename to...
7689         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7690         ... this.
7691         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7692         Rename to...
7693         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7694         ... this.
7695         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7696         Rename to...
7697         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7698         ... this.
7699         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7700         Rename to...
7701         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7702         ... this.
7703         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7704         Rename to...
7705         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7706         ... this.
7707         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7708         Rename to...
7709         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7710         ... this.
7711         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7712         Rename to...
7713         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7714         ... this.
7715         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7716         Rename to...
7717         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7718         ... this.
7719         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7720         Rename to...
7721         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7722         ... this.
7723         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7724         Rename to...
7725         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7726         ... this.
7727         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7728         Rename to...
7729         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7730         ... this.
7732 2020-04-10  Julian Brown  <julian@codesourcery.com>
7733             Thomas Schwinge  <thomas@codesourcery.com>
7735         PR libgomp/92843
7736         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7737         New file.
7738         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7739         Likewise.
7740         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7741         Likewise.
7742         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7743         Likewise.
7744         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7745         Likewise.
7746         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7747         Likewise.
7748         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7749         Likewise.
7750         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7751         Likewise.
7752         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7753         Likewise.
7754         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7755         Likewise.
7756         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7757         Likewise.
7758         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7759         Likewise.
7760         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7761         Likewise.
7762         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7763         Likewise.
7764         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7765         Likewise.
7766         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7767         Likewise.
7769 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7771         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7772         run'.
7774 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7776         PR middle-end/94120
7777         * libgomp.oacc-c++/declare-pr94120.C: New.
7779 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7781         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7782         files.
7783         * configure: Regenerate.
7784         * testsuite/libgomp-site-extra.exp.in: New file.
7785         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7786         variable.
7787         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7788         variable.
7789         * testsuite/Makefile.in: Regenerate.
7791 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7793         PR tree-optimization/89713
7794         PR c/94392
7795         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7796         'bar.sync'.
7797         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7799 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7801         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7802         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7804 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7806         PR libgomp/81689
7807         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7809 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7811         PR libgomp/94251
7812         * target.c (gomp_load_image_to_device): Fix link
7813         variable handling.
7815 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7817         PR c++/93931
7818         * testsuite/libgomp.c++/pr93931.C: New test.
7820 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7822         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7823         dg-allow-blank-lines-in-output.
7825 2020-03-18  Julian Brown <julian@codesourcery.com>
7826             Tobias Burnus  <tobias@codesourcery.com>
7828         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7829         it work concurrently.
7831 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7833         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7834         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7835         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7837 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7839         PR middle-end/93566
7840         * testsuite/libgomp.c/pr93566.c: New test.
7842 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7844         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7845         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7846         integer(acc_device_property) for the type of the return value of
7847         acc_get_property.
7849 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7851         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7852         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7853         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7854         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7855         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7856         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7857         corrections; add note about the previous interface and named constant.
7858         (OpenACC library and environment variables): Fix two typos.
7859         * openacc.f90: Use for all procedures the argument names from the spec
7860         as for â€¦_h they are user visible.
7861         (openacc_kinds): Rename acc_device_property to
7862         acc_device_property_kinds and change value to int32 ; and update users.
7863         Re-add acc_device_property for for backward compatibility.
7864         (acc_get_property_string_h): Clean up as acc_device_property_kind
7865         changed.
7866         (acc_get_property_h): Likewise and return c_size_t instead of
7867         acc_device_property.
7868         (openacc): Also export acc_device_property_kinds.
7869         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7870         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7871         handling; check against /= 0 instead of == 1 to match C.
7872         * openacc_lib.h: Use for all procedures the argument names from the spec
7873         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7874         be active also for fixed-form souce form.
7875         (acc_device_current, acc_device_property_kind, acc_device_property,
7876         acc_property_memory, acc_property_free_memory, acc_property_name,
7877         acc_property_vendor, acc_property_driver): New named constants.
7878         (acc_get_property, acc_get_property_string): New generic interface.
7880 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7882         PR libgomp/93481
7883         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7884         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7885         optional.
7886         (gomp_target_task_fn): Assert "devicep->async_run_func".
7887         (clear_unsupported_flags): New function to remove unsupported flags
7888         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7889         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7890         * testsuite/libgomp.c/target-33.c:
7891         Remove xfail for offload_target_nvptx.
7892         * testsuite/libgomp.c/target-34.c: Likewise.
7894 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7896         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7897         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7898         * testsuite/libgomp.c/target-34.c: Likewise.
7899         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7900         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7902 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7904         * testsuite/libgomp.c/target-38.c: New test.
7906 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7908         PR libgomp/93515
7909         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7911 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7913         * testsuite/lib/libgomp.exp
7914         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7915         and not as 'source' argument to libgomp_target_compile.
7917 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7919         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7920         (gcn_gfx801_s): Remove.
7921         (isa_hsa_name): Remove gfx801.
7922         (isa_gcc_name): Remove gfx801/carizzo.
7923         (isa_code): Remove gfx801.
7925 2020-02-03  Julian Brown  <julian@codesourcery.com>
7926             Tobias Burnus  <tobias@codesourcery.com>
7928         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7929         and *_finalize variants; document acc_attach and acc_detach; update
7930         references from OpenACC 2.0 to 2.6.
7931         * openacc.f90 (openacc_version): Update to 201711.
7932         * openacc_lib.h (openacc_version): Update to 201711.
7933         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7934         openacc_version to 201711.
7935         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7937 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7939         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7940         and vgpr_count fields.
7941         (struct kernel_info): Add a field for a hsa_kernel_description.
7942         (run_kernel): Reduce the number of threads/workers if the requested
7943         number would require too many VGPRs.
7944         (init_basic_kernel_info): Initialize description field with
7945         the hsa_kernel_description entry for the kernel.
7947 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7949         PR bootstrap/93409
7950         * plugin/configfrag.ac (enable_offload_targets): Skip
7951         HSA and GCN plugin besides -m32 also for -mx32.
7952         * configure: Regenerate.
7954 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7956         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7958 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7960         * plugin-gcn.c (struct agent_info): Add fields "name" and
7961         "vendor_name" ...
7962         (GOMP_OFFLOAD_init_device): ... and init from here.
7963         (struct hsa_context_info): Add field "driver_version_s" ...
7964         (init_hsa_contest): ... and init from here.
7965         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7966         implementation.
7967         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7968         Enable test execution for amdgcn and host offloading targets.
7969         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7970         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7971         (expect_device_properties): Split function into ...
7972         (expect_device_string_properties): ... this new function ...
7973         (expect_device_memory): ... and this new function.
7974         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7975         Add test.
7977 2020-01-28  Julian Brown  <julian@codesourcery.com>
7979         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7980         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7981         component/non-component variable refs in a single directive.
7982         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7984 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7986         * configure.ac: Handle `--with-toolexeclibdir='.
7987         * Makefile.in: Regenerate.
7988         * aclocal.m4: Regenerate.
7989         * configure: Regenerate.
7990         * testsuite/Makefile.in: Regenerate.
7992 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7994         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7995         (expect_device_properties): Remove "expected_free_mem" argument,
7996         change "expected_total_mem" argument type to size_t;
7997         change types of acc_get_property results to size_t,
7998         adapt format strings.
7999         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8000         Use %zu instead of %zd to print size_t values.
8001         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8002         rename to ...
8003         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8004         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8005         rename to ...
8006         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8008 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
8010         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8011         the device id.
8013 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
8015         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8016         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8017         Adjust test dimensions for amdgcn.
8018         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8019         gang/worker/vector expectations dynamically.
8020         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8021         (main): Likewise.
8022         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8023         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8024         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8025         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8026         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8027         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8028         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8029         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8030         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8031         (acc_gang): Recognise acc_device_radeon.
8032         (acc_worker): Likewise.
8033         (acc_vector): Likewise.
8034         (main): Set expectations for amdgcn.
8035         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8036         (main): Adjust gang/worker/vector expectations dynamically.
8037         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8038         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8039         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8040         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8041         for amdgcn.
8043 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
8045         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8046         acc_device_radeon.
8047         (openacc): Likewise.
8048         * openacc.f90 (openacc_kinds): Likewise.
8049         (openacc): Likewise.
8050         * openacc.h (acc_device_t): Likewise.
8051         * openacc_lib.h: Likewise.
8052         * testsuite/lib/libgomp.exp
8053         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8054         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8055         (cb_compute_construct_end): Likewise.
8056         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8057         (cb_enqueue_launch_start): Likewise.
8058         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8059         (cb_enter_data_end): Likewise.
8060         (cb_exit_data_start): Likewise.
8061         (cb_exit_data_end): Likewise.
8062         (cb_compute_construct_end): Likewise.
8063         (cb_enqueue_launch_start): Likewise.
8064         (cb_enqueue_launch_end): Likewise.
8065         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8066         (main): Likewise.
8068 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8070         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
8071         to use this instead of 'enum gomp_device_property'.
8072         (GOMP_OFFLOAD_get_property): Rename to...
8073         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
8074         * libgomp.h (struct gomp_device_descr): Move
8075         'GOMP_OFFLOAD_openacc_get_property'...
8076         (struct acc_dispatch_t): ... here.  Adjust all users.
8077         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8079         * target.c (gomp_map_vars_internal)
8080         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8081         paths.
8083 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
8085         PR libgomp/93219
8086         * libgomp.h (gomp_print_string): Change return type from void to int.
8087         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
8088         not all characters have been written.
8090 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
8092         * libgomp.texi: Fix typos, use https.
8094 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
8096         * testsuite/libgomp.fortran/optional-map.f90: Add test for
8097         unallocated/disassociated actual arguments to nonallocatable/nonpointer
8098         dummy arguments; those are/shall be regarded as absent arguments.
8099         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8100         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8102 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
8104         Update copyright years.
8106         * libgomp.texi: Bump @copying's copyright year.
8108 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
8110         PR libgomp/93065
8111         * oacc-init.c (goacc_runtime_deinitialize): New function.
8113 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
8115         PR bootstrap/93074
8116         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8117         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
8119 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
8120             Frederik Harwath  <frederik@codesourcery.com>
8121             Thomas Schwinge  <tschwinge@codesourcery.com>
8123         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8124         * libgomp-plugin.h (gomp_device_property_value): New union.
8125         (gomp_device_property_value): New prototype.
8126         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8127         constant.
8128         (acc_device_property_t): New enum.
8129         (acc_get_property, acc_get_property_string): New prototypes.
8130         * oacc-init.c (acc_get_device_type): Also assert that result
8131         is not `acc_device_current'.
8132         (get_property_any, acc_get_property, acc_get_property_string):
8133         New functions.
8134         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8135         `acc_property_memory', `acc_property_free_memory',
8136         `acc_property_name', `acc_property_vendor' and
8137         `acc_property_driver' constants.  Add `acc_device_property' data
8138         type.
8139         (openacc_internal): Add `acc_get_property' and
8140         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
8141         `acc_get_property_string_h', `acc_get_property_l' and
8142         `acc_get_property_string_l'.
8143         * oacc-host.c (host_get_property): New function.
8144         (host_dispatch): Wire it.
8145         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8146         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8147         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8148         * libgomp.texi (OpenACC Runtime Library Routines): Add
8149         `acc_get_property'.
8150         (acc_get_property): New node.
8151         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8152         function (stub).
8153         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8154         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8155         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8156         calls.
8157         (GOMP_OFFLOAD_get_property): New function.
8158         (struct ptx_device): Add new field "name".
8159         (cuda_driver_version_s): Add new static variable ...
8160         (nvptx_init): ... and init from here.
8162         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8163         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8164         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8165         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8166         with test helper functions.
8168         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8170 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
8172         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8173         variable.
8175 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
8177         * target.c (gomp_map_vars_internal): Restore 'omp declare target
8178         link' handling.
8180 2019-12-19  Julian Brown  <julian@codesourcery.com>
8182         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8183         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8184         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8186 2019-12-19  Julian Brown  <julian@codesourcery.com>
8187             Cesar Philippidis  <cesar@codesourcery.com>
8189         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8190         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8191         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8192         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8193         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8194         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8195         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8196         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8197         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8198         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8199         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8200         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8201         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8203 2019-12-19  Julian Brown  <julian@codesourcery.com>
8205         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8206         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8207         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8208         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8209         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8210         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8211         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8212         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8213         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8214         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8215         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8216         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8218 2019-12-19  Julian Brown  <julian@codesourcery.com>
8220         * libgomp.h (struct target_var_desc): Add do_detach flag.
8221         * oacc-init.c (acc_shutdown_1): Free aux block if present.
8222         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8223         struct components.  Tidy up and add some new checks.
8224         (goacc_enter_data_internal): Update call to find_group_last.
8225         (goacc_exit_data_internal): Support detach operations and
8226         GOMP_MAP_STRUCT.
8227         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8228         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
8229         attach/detach in enter/exit data detection code.
8230         * target.c (gomp_map_vars_existing): Initialise do_detach field of
8231         tgt_var_desc.
8232         (gomp_map_vars_internal): Support attach.
8233         (gomp_unmap_vars_internal): Support detach.
8235 2019-12-19  Julian Brown  <julian@codesourcery.com>
8236             Thomas Schwinge  <thomas@codesourcery.com>
8238         * libgomp.h (struct splay_tree_aux): Add attach_count field.
8239         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8240         * libgomp.map (OACC_2.6): New section. Add acc_attach,
8241         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8242         acc_detach_finalize_async.
8243         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8244         acc_detach, acc_detach_async, acc_detach_finalize,
8245         acc_detach_finalize_async): New functions.
8246         * openacc.h (acc_attach, acc_attach_async, acc_detach,
8247         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8248         prototypes.
8249         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8250         (gomp_remove_var_internal): Free attachment counts if present.
8251         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8252         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8254 2019-12-19  Julian Brown  <julian@codesourcery.com>
8255             Cesar Philippidis  <cesar@codesourcery.com>
8257         * libgomp.h (gomp_map_val): Add prototype.
8258         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8259         open-coding device-address calculation.
8260         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8261         non-present case.
8263 2019-12-19  Julian Brown  <julian@codesourcery.com>
8265         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8266         field for virtual_refcount.
8267         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8268         (gomp_free_memmap): Remove prototype.
8269         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8270         instead of calling gomp_free_memmap.
8271         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8272         dynamic_refcount.
8273         (acc_unmap_data): Open code instead of forcing target_mem_desc's
8274         to_free field to NULL then calling gomp_unmap_vars.  Handle
8275         REFCOUNT_INFINITY on target blocks.
8276         (goacc_enter_data): Rename to...
8277         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
8278         handling for mapping groups.  Use virtual_refcount instead of
8279         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8280         map_map_vars_async call.  Re-do lookup for target pointer return value.
8281         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8282         renamed goacc_enter_datum function.
8283         (goacc_exit_data): Rename to...
8284         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
8285         (acc_delete, acc_delete_async, acc_delete_finalize,
8286         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8287         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8288         goacc_exit_datum function.
8289         (gomp_acc_remove_pointer, find_pointer): Remove functions.
8290         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8291         New functions.
8292         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8293         goacc_exit_data_internal helper functions.
8294         * target.c (gomp_map_vars_internal): Handle
8295         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
8296         semantics.
8297         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8298         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8299         virtual_refcount field instead of dynamic_refcount.
8300         (gomp_free_memmap): Remove function.
8301         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8302         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8303         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8305 2019-12-19  Julian Brown  <julian@codesourcery.com>
8306             Thomas Schwinge  <thomas@codesourcery.com>
8308         * libgomp.h (struct splay_tree_aux): New.
8309         (struct splay_tree_key_s): Replace link_key field with aux pointer.
8310         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8311         to aux struct.
8312         (gomp_remove_var_internal): Free aux block if present.
8313         (gomp_load_image_to_device): Zero-initialise aux field instead of
8314         link_key field.
8315         (omp_target_associate_pointer): Zero-initialise aux field.
8317 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
8319         PR middle-end/86416
8320         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8321         q or none.
8322         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8323         L or none.
8325 2019-12-19  Julian Brown  <julian@codesourcery.com>
8326             Maciej W. Rozycki  <macro@codesourcery.com>
8327             Tobias Burnus  <tobias@codesourcery.com>
8328             Thomas Schwinge  <thomas@codesourcery.com>
8330         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8331         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8332         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8333         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8334         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8335         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8336         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8337         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8338         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8340 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
8342         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8343         called...
8344         (goacc_insert_pointer): ... from here, "present" case.
8345         (goacc_insert_pointer): Inline function into...
8346         (GOACC_enter_exit_data): ... here, and simplify.
8348         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8349         called...
8350         (goacc_insert_pointer): ... from here, "not present" case.
8352         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
8353         all users.
8355         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8356         'goacc_enter_data', 'goacc_exit_data'.
8358         * oacc-mem.c (delete_copyout): Refactor into...
8359         (goacc_exit_data): ... this.  Adjust all users.
8361         * oacc-mem.c (present_create_copy): Refactor into...
8362         (goacc_enter_data): ... this.  Adjust all users.
8364         * target.c (gomp_unmap_vars_internal): Add a safeguard to
8365         'gomp_remove_var'.
8367         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8368         like 'GOMP_MAP_FROM'.
8370         PR libgomp/92726
8371         PR libgomp/92970
8372         PR libgomp/92984
8373         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8374         fails.
8375         (GOACC_enter_exit_data): Simplify accordingly.
8376         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8377         subsuming...
8378         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8379         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8380         file.
8381         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8382         subsuming...
8383         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8384         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8385         file.
8386         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8387         subsuming...
8388         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8390         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8391         'finalize' handling.
8393         PR libgomp/92848
8394         * oacc-mem.c (acc_map_data, present_create_copy)
8395         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8396         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8397         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8398         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8399         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8400         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8401         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8402         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8403         Remove "XFAIL"s.
8405         * target.c (gomp_unmap_tgt): Make it 'static'.
8406         * libgomp.h (gomp_unmap_tgt): Remove.
8408 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
8410         PR middle-end/86416
8411         * testsuite/libgomp.c/pr86416-1.c: New.
8412         * testsuite/libgomp.c/pr86416-2.c: New.
8414 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
8416         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8417         all symbols as public except for the 'use â€¦, only' imported symbol,
8418         which is private.
8419         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8420         all symbols from module openacc_kinds as PUBLIC
8421         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8422         fix comment typo.
8423         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8425 2019-12-13  Julian Brown  <julian@codesourcery.com>
8427         PR libgomp/92881
8429         * libgomp.h (gomp_remove_var_async): Add prototype.
8430         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8431         gomp_remove_var.
8432         * target.c (gomp_unref_tgt): Change return type to bool, indicating
8433         whether target_mem_desc was unmapped.
8434         (gomp_unref_tgt_void): New.
8435         (gomp_remove_var): Reimplement in terms of...
8436         (gomp_remove_var_internal): ...this new helper function.
8437         (gomp_remove_var_async): New, implemented using above helper function.
8438         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8439         gomp_unref_tgt.
8441 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
8443         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8444         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8445         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8446         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8447         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8448         Likewise.
8449         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8450         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8452 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
8454         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8455         as public except for the 'use â€¦, only' imported symbol, which is
8456         private.
8457         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8458         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8459         attributes for acc_copyout_finalize and acc_delete_finalize.
8461 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
8463         PR fortran/92899
8464         * testsuite/libgomp.fortran/atomic1.f90: New test.
8466 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8468         PR libgomp/92843
8469         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8470         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
8471         assertions.
8472         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8473         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8474         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8475         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8476         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8478         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8479         * oacc-mem.c: ... here.
8480         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8481         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8482         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8483         Remove.
8484         * libgomp_g.h: Update.
8486         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8487         * oacc-async.c: ... here.
8488         * oacc-int.h (goacc_wait): Declare.
8489         * libgomp_g.h: Update
8491         PR libgomp/92854
8492         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8493         New file.
8494         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8495         Likewise.
8496         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8497         Likewise.
8498         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8499         Likewise.
8500         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8501         Likewise.
8502         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8503         Likewise.
8505 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8506             Julian Brown  <julian@codesourcery.com>
8508         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8509         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8511 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8513         * omp_lib.h.in: Fix spelling of function declaration
8514         omp_get_cancell(l)ation.
8515         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8516         Fix typos.
8517         * env.c: Fix comment typos.
8518         * oacc-host.c: Likewise.
8519         * ordered.c: Likewise.
8520         * task.c: Likewise.
8521         * team.c: Likewise.
8522         * config/gcn/task.c: Likewise.
8523         * config/gcn/team.c: Likewise.
8524         * config/nvptx/task.c: Likewise.
8525         * config/nvptx/team.c: Likewise.
8526         * plugin/plugin-gcn.c: Likewise.
8527         * testsuite/libgomp.fortran/jacobi.f: Likewise.
8528         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8529         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8531 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8533         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8534         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8535         unnecessary 'dg-additional-options "-w"'.
8537 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8538             Julian Brown  <julian@codesourcery.com>
8540         PR libgomp/92116
8541         PR libgomp/92877
8543         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8544         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8545         Adjust all users.
8546         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8547         Remove XFAIL.
8548         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8549         Likewise.
8550         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8552 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8554         PR libgomp/92503
8555         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8556         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8557         file.
8558         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8559         Likewise.
8560         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8561         Likewise.
8562         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8563         Likewise.
8564         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8565         Likewise.
8566         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8567         Likewise.
8568         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8569         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8570         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8571         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8572         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8573         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8574         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8575         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8576         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8577         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8579         PR libgomp/92840
8580         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8581         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8582         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8583         New file.
8584         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8585         Likewise.
8586         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8587         Likewise.
8588         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8589         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8591         PR libgomp/92511
8592         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8593         this file...
8594         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8595         this file...
8596         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8597         file...
8598         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8599         file...
8600         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8601         ... with their content moved into, and extended in this new file.
8602         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8603         New file.
8604         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8605         Likewise.
8606         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8607         Likewise.
8608         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8609         Likewise.
8611         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8613         PR libgomp/92854
8614         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8616         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8618         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8620 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8622         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8623         unique.
8624         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8625         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8626         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8627         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8628         Ditto.
8629         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8630         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8632 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8634         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8636 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8637             Kwok Cheung Yeung <kcy@codesourcery.com>
8639         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8640         if input it a NULL pointer.
8641         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8642         diagnostic of NULL pointer.
8643         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8644         * testsuite/libgomp.fortran/optional-map.f90: New.
8645         * testsuite/libgomp.fortran/use_device_addr-1.f90
8646         (test_dummy_opt_callee_1_absent): New.
8647         (test_dummy_opt_call_1): Call it.
8648         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8649         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8650         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8651         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8652         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8653         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8654         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8655         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8656         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8657         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8658         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8659         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8660         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8661         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8662         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8663         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8665 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8667         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8668         expect dg-output of 'Error termination.' for GCN.
8669         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8670         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8672 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8674         PR fortran/92756
8675         * testsuite/libgomp.fortran/teams1.f90: New test.
8676         * testsuite/libgomp.fortran/teams2.f90: New test.
8678 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8680         * oacc-init.c (acc_known_device_type): Add function.
8681         (unknown_device_type_error): Add function.
8682         (name_of_acc_device_t): Change to call unknown_device_type_error
8683         on unknown type.
8684         (resolve_device): Use acc_known_device_type.
8685         (acc_init): Fail if acc_device_t argument is not valid.
8686         (acc_shutdown): Likewise.
8687         (acc_get_num_devices): Likewise.
8688         (acc_set_device_type): Likewise.
8689         (acc_get_device_num): Likewise.
8690         (acc_set_device_num): Likewise.
8691         (acc_on_device): Add comment that argument validity is not checked.
8693 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8695         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8696         Recognize amdgcn.
8697         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8698         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8699         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8700         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8701         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8703 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8705         PR libgomp/91938
8706         * configure.tgt: Avoid IE tls on *-*-musl*.
8708 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8710         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8711         adding a common-block test case.
8713 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8715         PR c++/60228
8716         * testsuite/libgomp.c++/udr-20.C: New test.
8717         * testsuite/libgomp.c++/udr-21.C: New test.
8719 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8721         * testsuite/lib/libgomp.exp
8722         (check_effective_target_offload_target_nvptx): New proc.
8723         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8724         'dg-skip-if'.
8725         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8726         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8727         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8729 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8731         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8732         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8733         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8734         * testsuite/libgomp.c/private-1.c: Likewise.
8735         * testsuite/libgomp.c/task-1.c: Likewise.
8736         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8738 2019-11-20  Julian Brown  <julian@codesourcery.com>
8740         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8741         aq->mutex here.
8742         (queue_push_launch): Lock aq->mutex before calling
8743         wait_for_queue_nonfull.
8744         (queue_push_callback): Likewise.
8745         (queue_push_asyncwait): Likewise.
8746         (queue_push_placeholder): Likewise.
8748 2019-11-20  Julian Brown  <julian@codesourcery.com>
8750         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8751         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8752         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8753         return code.
8755 2019-11-20  Julian Brown  <julian@codesourcery.com>
8757         PR libgomp/92511
8759         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8760         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8761         in non-present/create case.
8762         (delete_copyout): Change error condition to fail only on copies outside
8763         of mapped block.  Adjust error message accordingly.
8764         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8765         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8766         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8767         message.
8768         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8769         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8770         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8772 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8774         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8775         libatomic in build-tree testing.
8777 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8779         * testsuite/Makefile.in: Regenerate.
8781 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8783         * testsuite/libgomp.c/target-print-1.c: New file.
8784         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8785         * testsuite/libgomp.oacc-c/print-1.c: New file.
8786         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8788 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8789             Kwok Cheung Yeung  <kcy@codesourcery.com>
8790             Julian Brown  <julian@codesourcery.com>
8791             Tom de Vries  <tom@codesourcery.com>
8793         * plugin/Makefrag.am: Add amdgcn plugin support.
8794         * plugin/configfrag.ac: Likewise.
8795         * plugin/plugin-gcn.c: New file.
8796         * configure: Regenerate.
8797         * Makefile.in: Regenerate.
8798         * testsuite/Makefile.in: Regenerate.
8800 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8802         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8803         and use team_malloc variants.
8804         (gomp_gcn_exit_kernel): Use team_free.
8805         * libgomp.h (TEAM_ARENA_SIZE): Define.
8806         (TEAM_ARENA_START): Define.
8807         (TEAM_ARENA_FREE): Define.
8808         (TEAM_ARENA_END): Define.
8809         (team_malloc): New function.
8810         (team_malloc_cleared): New function.
8811         (team_free): New function.
8812         * team.c (gomp_new_team): Initialize and use team_malloc.
8813         (free_team): Use team_free.
8814         (gomp_free_thread): Use team_free.
8815         (gomp_pause_host): Use team_free.
8816         * work.c (gomp_init_work_share): Use team_malloc.
8817         (gomp_fini_work_share): Use team_free.
8819 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8820             Kwok Cheung Yeung  <kcy@codesourcery.com>
8821             Julian Brown  <julian@codesourcery.com>
8822             Tom de Vries  <tom@codesourcery.com>
8824         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8825         * Makefile.in: Regenerate.
8826         * config.h.in (PLUGIN_GCN): Add new undef.
8827         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8828         * config/gcn/affinity-fmt.c: New file.
8829         * config/gcn/bar.c: New file.
8830         * config/gcn/bar.h: New file.
8831         * config/gcn/doacross.h: New file.
8832         * config/gcn/icv-device.c: New file.
8833         * config/gcn/oacc-target.c: New file.
8834         * config/gcn/simple-bar.h: New file.
8835         * config/gcn/target.c: New file.
8836         * config/gcn/task.c: New file.
8837         * config/gcn/team.c: New file.
8838         * config/gcn/time.c: New file.
8839         * configure.ac: Add amdgcn*-*-*.
8840         * configure: Regenerate.
8841         * configure.tgt: Add amdgcn*-*-*.
8842         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8843         * libgomp.h (gcn_thrs): Add amdgcn variant.
8844         (set_gcn_thrs): Likewise.
8845         (gomp_thread): Likewise.
8846         * oacc-int.h (goacc_thread): Likewise.
8847         * oacc-target.c: New file.
8848         * openacc.f90 (acc_device_gcn): New parameter.
8849         * openacc.h (acc_device_t): Add acc_device_gcn.
8850         * team.c (gomp_free_pool_helper): Add amdgcn support.
8852 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8853             Julian Brown  <julian@codesourcery.com>
8855         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8856         parameter.
8857         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8858         queue constructor.
8859         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8860         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8861         device parameter.
8863 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8865         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8866         * config/nvptx/libgomp-plugin.c: Move ...
8867         * config/accel/libgomp-plugin.c: ... to here.
8868         * config/nvptx/lock.c: Move ...
8869         * config/accel/lock.c: ... to here.
8870         * config/nvptx/mutex.c: Move ...
8871         * config/accel/mutex.c: ... to here.
8872         * config/nvptx/mutex.h: Move ...
8873         * config/accel/mutex.h: ... to here.
8874         * config/nvptx/oacc-async.c: Move ...
8875         * config/accel/oacc-async.c: ... to here.
8876         * config/nvptx/oacc-cuda.c: Move ...
8877         * config/accel/oacc-cuda.c: ... to here.
8878         * config/nvptx/oacc-host.c: Move ...
8879         * config/accel/oacc-host.c: ... to here.
8880         * config/nvptx/oacc-init.c: Move ...
8881         * config/accel/oacc-init.c: ... to here.
8882         * config/nvptx/oacc-mem.c: Move ...
8883         * config/accel/oacc-mem.c: ... to here.
8884         * config/nvptx/oacc-plugin.c: Move ...
8885         * config/accel/oacc-plugin.c: ... to here.
8886         * config/nvptx/omp-lock.h: Move ...
8887         * config/accel/omp-lock.h: ... to here.
8888         * config/nvptx/openacc.f90: Move ...
8889         * config/accel/openacc.f90: ... to here.
8890         * config/nvptx/pool.h: Move ...
8891         * config/accel/pool.h: ... to here.
8892         * config/nvptx/proc.c: Move ...
8893         * config/accel/proc.c: ... to here.
8894         * config/nvptx/ptrlock.c: Move ...
8895         * config/accel/ptrlock.c: ... to here.
8896         * config/nvptx/ptrlock.h: Move ...
8897         * config/accel/ptrlock.h: ... to here.
8898         * config/nvptx/sem.c: Move ...
8899         * config/accel/sem.c: ... to here.
8900         * config/nvptx/sem.h: Move ...
8901         * config/accel/sem.h: ... to here.
8902         * config/nvptx/thread-stacksize.h: Move ...
8903         * config/accel/thread-stacksize.h: ... to here.
8905 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8906             Tobias Burnus  <tobias@codesourcery.com>
8907             Frederik Harwath  <frederik@codesourcery.com>
8908             Thomas Schwinge  <thomas@codesourcery.com>
8910         libgomp/
8911         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8912         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8913         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8915 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8916             Kwok Cheung Yeung  <kcy@codesourcery.com>
8918         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8919         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8921 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8923         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8925         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8926         run'.
8927         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8928         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8930 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8932         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8933         Add expected warnings about missing reduction clauses.
8934         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8935         Likewise.
8936         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8937         Likewise.
8938         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8939         Likewise.
8941 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8943         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8944         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8945         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8946         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8947         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8948         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8950 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8952         PR fortran/92305
8953         * testsuite/libgomp.fortran/allocatable2.f90: Use
8954         unique numbers with 'stop'.
8955         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8956         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8957         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8958         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8959         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8961 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8963         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8964         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8965         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8966         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8967         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8968         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8970 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8972         * testsuite/libgomp.fortran/target9.f90: New.
8974 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8976         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8977         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8978         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8979         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8980         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8981         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8982         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8983         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8984         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8985         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8986         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8987         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8988         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8989         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8990         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8991         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8992         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8993         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8994         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8995         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8996         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8997         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8998         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8999         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9000         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9001         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9002         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9003         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9004         * testsuite/libgomp.fortran/character1.f90: Ditto.
9005         * testsuite/libgomp.fortran/character2.f90: Ditto.
9006         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9007         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9008         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9009         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9010         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9011         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9012         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9013         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9014         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9015         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9016         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9017         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9018         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9019         * testsuite/libgomp.fortran/do1.f90: Ditto.
9020         * testsuite/libgomp.fortran/do2.f90: Ditto.
9021         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9022         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9023         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9024         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9025         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9026         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9027         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9028         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9029         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9030         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9031         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9032         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9033         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9034         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9035         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9036         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9037         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9038         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9039         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9040         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9041         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9042         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9043         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9044         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9045         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9046         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9047         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9048         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9049         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9050         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9051         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9052         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9053         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9054         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9055         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9056         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9057         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9058         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9059         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9060         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9061         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9062         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9063         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9064         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9065         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9066         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9067         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9068         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9069         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9070         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9071         * testsuite/libgomp.fortran/lib1.f90: Ditto.
9072         * testsuite/libgomp.fortran/lib4.f90: Ditto.
9073         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9074         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9075         * testsuite/libgomp.fortran/nested1.f90: Ditto.
9076         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9077         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9078         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9079         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9080         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9081         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9082         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9083         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9084         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9085         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9086         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9087         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9088         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9089         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9090         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9091         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9092         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9093         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9094         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9095         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9096         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9097         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9098         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9099         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9100         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9101         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9102         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9103         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9104         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9105         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9106         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9107         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9108         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9109         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9110         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9111         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9112         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9113         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9114         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9115         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9116         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9117         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9118         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9119         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9120         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9121         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9122         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9123         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9124         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9125         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9126         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9127         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9128         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9129         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9130         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9131         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9132         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9133         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9134         * testsuite/libgomp.fortran/reference1.f90: Ditto.
9135         * testsuite/libgomp.fortran/reference2.f90: Ditto.
9136         * testsuite/libgomp.fortran/retval1.f90: Ditto.
9137         * testsuite/libgomp.fortran/retval2.f90: Ditto.
9138         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9139         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9140         * testsuite/libgomp.fortran/simd1.f90: Ditto.
9141         * testsuite/libgomp.fortran/simd2.f90: Ditto.
9142         * testsuite/libgomp.fortran/simd3.f90: Ditto.
9143         * testsuite/libgomp.fortran/simd4.f90: Ditto.
9144         * testsuite/libgomp.fortran/simd5.f90: Ditto.
9145         * testsuite/libgomp.fortran/simd6.f90: Ditto.
9146         * testsuite/libgomp.fortran/simd7.f90: Ditto.
9147         * testsuite/libgomp.fortran/stack.f90: Ditto.
9148         * testsuite/libgomp.fortran/strassen.f90: Ditto.
9149         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9150         * testsuite/libgomp.fortran/tabs2.f: Ditto.
9151         * testsuite/libgomp.fortran/target1.f90: Ditto.
9152         * testsuite/libgomp.fortran/target2.f90: Ditto.
9153         * testsuite/libgomp.fortran/target3.f90: Ditto.
9154         * testsuite/libgomp.fortran/target4.f90: Ditto.
9155         * testsuite/libgomp.fortran/target5.f90: Ditto.
9156         * testsuite/libgomp.fortran/target6.f90: Ditto.
9157         * testsuite/libgomp.fortran/target7.f90: Ditto.
9158         * testsuite/libgomp.fortran/target8.f90: Ditto.
9159         * testsuite/libgomp.fortran/task1.f90: Ditto.
9160         * testsuite/libgomp.fortran/task2.f90: Ditto.
9161         * testsuite/libgomp.fortran/task3.f90: Ditto.
9162         * testsuite/libgomp.fortran/task4.f90: Ditto.
9163         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9164         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9165         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9166         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9167         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9168         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9169         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9170         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9171         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9172         * testsuite/libgomp.fortran/udr1.f90: Ditto.
9173         * testsuite/libgomp.fortran/udr10.f90: Ditto.
9174         * testsuite/libgomp.fortran/udr11.f90: Ditto.
9175         * testsuite/libgomp.fortran/udr12.f90: Ditto.
9176         * testsuite/libgomp.fortran/udr13.f90: Ditto.
9177         * testsuite/libgomp.fortran/udr14.f90: Ditto.
9178         * testsuite/libgomp.fortran/udr15.f90: Ditto.
9179         * testsuite/libgomp.fortran/udr2.f90: Ditto.
9180         * testsuite/libgomp.fortran/udr3.f90: Ditto.
9181         * testsuite/libgomp.fortran/udr4.f90: Ditto.
9182         * testsuite/libgomp.fortran/udr5.f90: Ditto.
9183         * testsuite/libgomp.fortran/udr6.f90: Ditto.
9184         * testsuite/libgomp.fortran/udr7.f90: Ditto.
9185         * testsuite/libgomp.fortran/udr8.f90: Ditto.
9186         * testsuite/libgomp.fortran/udr9.f90: Ditto.
9187         * testsuite/libgomp.fortran/vla1.f90: Ditto.
9188         * testsuite/libgomp.fortran/vla2.f90: Ditto.
9189         * testsuite/libgomp.fortran/vla3.f90: Ditto.
9190         * testsuite/libgomp.fortran/vla4.f90: Ditto.
9191         * testsuite/libgomp.fortran/vla5.f90: Ditto.
9192         * testsuite/libgomp.fortran/vla6.f90: Ditto.
9193         * testsuite/libgomp.fortran/vla7.f90: Ditto.
9194         * testsuite/libgomp.fortran/vla8.f90: Ditto.
9195         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9196         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9198 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9200         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9201         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9202         Ditto; add 'dg-do run' for torture testing.
9203         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
9204         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9205         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9206         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9207         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9208         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9209         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9210         * testsuite/libgomp.fortran/task2.f90: Ditto.
9211         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9212         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9213         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9214         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9215         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9216         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9218 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
9220         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9221         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9222         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9223         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9224         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9225         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9226         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9227         Use 'stop' not abort().
9228         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9229         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9230         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9231         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9232         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9233         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9234         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9235         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9236         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9237         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9238         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9239         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9240         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9241         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9242         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9243         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9244         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9245         Ditto.
9246         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9247         Ditto.
9248         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9249         Ditto.
9250         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9251         Ditto.
9252         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9253         Ditto.
9254         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9255         Ditto.
9256         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9257         Ditto.
9258         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9259         Ditto.
9260         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9261         Ditto.
9262         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9263         Ditto.
9264         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9265         Ditto.
9266         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9267         Ditto.
9268         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9269         Ditto.
9270         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9271         Ditto.
9272         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9273         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9274         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9275         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9276         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9277         Likewise and also add 'dg-do run'.
9278         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9279         Ditto.
9281 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
9282             Tobias Burnus  <tobias@codesourcery.com>
9284         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9285         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9286         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9288 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
9290         PR libgomp/92081
9291         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9292         than 0.
9294 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9296         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9297         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9299 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
9301         PR middle-end/92036
9302         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9303         file.
9305 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
9307         PR testsuite/91884
9308         * testsuite/libgomp.fortran/fortran.exp: Conditionally
9309         add -lquadmath.
9310         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9312 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
9314         PR libgomp/92028
9315         * target.c (gomp_map_vars_internal): Readd the previous
9316         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9317         though do that just in the !not_found_cnt case.
9319 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
9321         * gfortran.dg/gomp/target-simd.f90: New.
9323 2019-10-02  Julian Brown  <julian@codesourcery.com>
9324             Cesar Philippidis  <cesar@codesourcery.com>
9326         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9327         * target.c (FIELD_TGT_EMPTY): Define.
9328         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
9329         as switch instead of list of ifs.
9330         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9332 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
9334         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9335         include. Replace alloca () with __builtin_alloca ().
9336         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9338 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
9340         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9341         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9342         * oacc-parallel.c: Don't include "libgomp_g.h".
9343         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9344         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9345         * aclocal.m4: Regenerated.
9346         * config.h.in: Regenerated.
9347         * configure: Regenerated.
9348         * Makefile.in: Regenerated.
9350 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
9352         * libgomp_g.h: Include stdint.h instead of gstdint.h.
9354 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
9356         * configure: Regenerate.
9358 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
9360         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9361         string is initialized.
9363 2019-09-06  Florian Weimer  <fweimer@redhat.com>
9365         * configure: Regenerate.
9367 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
9369         PR other/79543
9370         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9371         scanning to conform to the GNU Coding Standards.
9372         * configure: Regenerate.
9374 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
9376         PR libgomp/91530
9377         * testsuite/libgomp.c/scan-21.c: New test.
9378         * testsuite/libgomp.c/scan-22.c: New test.
9380 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
9382         PR libgomp/91530
9383         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9384         targets.
9385         * testsuite/libgomp.c/scan-12.c: Likewise.
9386         * testsuite/libgomp.c/scan-13.c: Likewise.
9387         * testsuite/libgomp.c/scan-14.c: Likewise.
9388         * testsuite/libgomp.c/scan-15.c: Likewise.
9389         * testsuite/libgomp.c/scan-16.c: Likewise.
9390         * testsuite/libgomp.c/scan-17.c: Likewise.
9391         * testsuite/libgomp.c/scan-18.c: Likewise.
9392         * testsuite/libgomp.c/scan-19.c: Likewise.
9393         * testsuite/libgomp.c/scan-20.c: Likewise.
9394         * testsuite/libgomp.c++/scan-9.C: Likewise.
9395         * testsuite/libgomp.c++/scan-10.C: Likewise.
9396         * testsuite/libgomp.c++/scan-11.C: Likewise.
9397         * testsuite/libgomp.c++/scan-12.C: Likewise.
9398         * testsuite/libgomp.c++/scan-14.C: Likewise.
9399         * testsuite/libgomp.c++/scan-15.C: Likewise.
9400         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
9401         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9402         * testsuite/libgomp.c++/scan-16.C: Likewise.
9404 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
9406         PR fortran/91473
9407         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9408         -std=legacy so invalid code in the test case is accepted.
9410 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9412         PR fortran/91422
9413         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9414         dimension.
9416 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
9418         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9419         perform the lookup in the first loop only if !not_found_cnt, otherwise
9420         perform lookups for it in the second loop guarded with
9421         if (not_found_cnt || has_firstprivate).
9422         * testsuite/libgomp.c/target-37.c: New test.
9423         * testsuite/libgomp.c++/target-22.C: New test.
9425 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
9427         * testsuite/libgomp.c/target-18.c (struct S): New type.
9428         (foo): Use use_device_addr clause instead of use_device_ptr clause
9429         where required by OpenMP 5.0, add further tests for both use_device_ptr
9430         and use_device_addr clauses.
9431         * testsuite/libgomp.c++/target-9.C (struct S): New type.
9432         (foo): Use use_device_addr clause instead of use_device_ptr clause
9433         where required by OpenMP 5.0, add further tests for both use_device_ptr
9434         and use_device_addr clauses.  Add t and u arguments.
9435         (main): Adjust caller.
9437 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
9439         * testsuite/libgomp.c++/loop-13.C: New test.
9440         * testsuite/libgomp.c++/loop-14.C: New test.
9441         * testsuite/libgomp.c++/loop-15.C: New test.
9443 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9445         PR middle-end/91301
9446         * testsuite/libgomp.c++/for-27.C: New test.
9448 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
9450         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9451         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9453 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9455         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9457 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
9459         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9460         * testsuite/libgomp.c++/scan-16.C: Likewise.
9462 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
9464         * testsuite/libgomp.c/scan-19.c: New test.
9465         * testsuite/libgomp.c/scan-20.c: New test.
9467         * testsuite/libgomp.c/scan-11.c: New test.
9468         * testsuite/libgomp.c/scan-12.c: New test.
9469         * testsuite/libgomp.c/scan-13.c: New test.
9470         * testsuite/libgomp.c/scan-14.c: New test.
9471         * testsuite/libgomp.c/scan-15.c: New test.
9472         * testsuite/libgomp.c/scan-16.c: New test.
9473         * testsuite/libgomp.c/scan-17.c: New test.
9474         * testsuite/libgomp.c/scan-18.c: New test.
9475         * testsuite/libgomp.c++/scan-9.C: New test.
9476         * testsuite/libgomp.c++/scan-10.C: New test.
9477         * testsuite/libgomp.c++/scan-11.C: New test.
9478         * testsuite/libgomp.c++/scan-12.C: New test.
9479         * testsuite/libgomp.c++/scan-13.C: New test.
9480         * testsuite/libgomp.c++/scan-14.C: New test.
9481         * testsuite/libgomp.c++/scan-15.C: New test.
9482         * testsuite/libgomp.c++/scan-16.C: New test.
9484 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
9486         * testsuite/libgomp.c/scan-9.c: New test.
9487         * testsuite/libgomp.c/scan-10.c: New test.
9489 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
9491         * testsuite/libgomp.c++/scan-1.C: New test.
9492         * testsuite/libgomp.c++/scan-2.C: New test.
9493         * testsuite/libgomp.c++/scan-3.C: New test.
9494         * testsuite/libgomp.c++/scan-4.C: New test.
9495         * testsuite/libgomp.c++/scan-5.C: New test.
9496         * testsuite/libgomp.c++/scan-6.C: New test.
9497         * testsuite/libgomp.c++/scan-7.C: New test.
9498         * testsuite/libgomp.c++/scan-8.C: New test.
9499         * testsuite/libgomp.c/scan-1.c: New test.
9500         * testsuite/libgomp.c/scan-2.c: New test.
9501         * testsuite/libgomp.c/scan-3.c: New test.
9502         * testsuite/libgomp.c/scan-4.c: New test.
9503         * testsuite/libgomp.c/scan-5.c: New test.
9504         * testsuite/libgomp.c/scan-6.c: New test.
9505         * testsuite/libgomp.c/scan-7.c: New test.
9506         * testsuite/libgomp.c/scan-8.c: New test.
9508 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9510         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9511         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9512         Likewise.
9514         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9515         check.
9517 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
9519         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9520         file.
9522 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9524         PR fortran/90743
9525         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9526         case.
9527         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9528         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9529         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9530         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9532         PR testsuite/90861
9533         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9535         PR middle-end/90862
9536         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9538 2019-06-16  Tom de Vries  <tdevries@suse.de>
9540         PR tree-optimization/89376
9541         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9543 2019-06-15  Tom de Vries  <tdevries@suse.de>
9545         PR tree-optimization/89713
9546         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9547         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9549 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9551         PR middle-end/90779
9552         * testsuite/libgomp.c/pr90779.c: New test.
9553         * testsuite/libgomp.fortran/pr90779.f90: New test.
9555 2019-06-15  Tom de Vries  <tdevries@suse.de>
9557         PR tree-optimization/90009
9558         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9560 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9562         PR tree-optimization/89713
9563         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9565 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9567         PR target/90811
9568         * testsuite/libgomp.c/pr90811.c: New test.
9570 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9572         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9573         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9575 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9577         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9578         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9579         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9580         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9582 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9584         * configure.ac: Call AX_COUNT_CPUS.
9585         Substitute CPU_COUNT.
9586         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9587         count fallback.
9588         * aclocal.m4: Regenerate.
9589         * configure: Regenerate.
9590         * Makefile.in, testsuite/Makefile.in: Regenerate.
9592 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9594         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9595         to ...
9596         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9597         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9598         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9600 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9602         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9604         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9606         PR libgomp/90641
9607         * work.c (gomp_init_work_share): Instead of aligning final ordered
9608         value to multiples of long long alignment, align to that the
9609         first part (ordered team ids) and if inline_ordered_team_ids
9610         is not on a long long alignment boundary within the structure,
9611         use __alignof__ (long long) - 1 pad size always.
9612         * loop.c (GOMP_loop_start): Fix *mem computation if
9613         inline_ordered_team_ids is not aligned on long long alignment boundary
9614         within the structure.
9615         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9616         * sections.c (GOMP_sections2_start): Likewise.
9618 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9620         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9621         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9623         PR libgomp/90585
9624         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9625         HAVE_INTTYPES_H is defined.
9626         (print_uint64_t): New typedef.
9627         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9628         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9629         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9630         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9631         before casting to void *.
9632         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9633         * oacc-mem.c: Don't include config.h nor stdint.h.
9634         * target.c: Don't include config.h.
9635         * oacc-cuda.c: Likewise.
9636         * oacc-host.c: Don't include stdint.h.
9638 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9640         PR libgomp/90527
9641         * alloc.c (_GNU_SOURCE): Define.
9643 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9645         * acc_prof.h: New file.
9646         * oacc-profiling.c: Likewise.
9647         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9648         Add these, respectively.
9649         * Makefile.in: Regenerate.
9650         * env.c (initialize_env): Call goacc_profiling_initialize.
9651         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9652         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9653         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9654         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9655         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9656         acc_prof_register, acc_prof_unregister, and acc_register_library.
9657         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9658         GOMP_PLUGIN_goacc_thread.
9659         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9660         prof_callbacks_enabled members.
9661         (goacc_prof_enabled, goacc_profiling_initialize)
9662         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9663         (goacc_profiling_dispatch): Declare.
9664         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9665         (GOACC_PROFILING_SETUP_P): Define.
9666         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9667         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9668         OpenACC Profiling Interface.
9669         * oacc-cuda.c (acc_get_current_cuda_device)
9670         (acc_get_current_cuda_context, acc_get_cuda_stream)
9671         (acc_set_cuda_stream): Likewise.
9672         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9673         (acc_init, acc_set_device_type, acc_get_device_type)
9674         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9675         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9676         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9677         (acc_unmap_data, present_create_copy, delete_copyout)
9678         (update_dev_host): Likewise.
9679         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9680         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9681         Likewise.
9682         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9683         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9684         Likewise.
9685         * libgomp.texi: Update.
9686         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9687         file.
9688         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9689         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9690         Likewise.
9691         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9692         Likewise.
9693         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9694         Likewise.
9695         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9696         Likewise.
9698 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9700         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9701         (struct goacc_asyncqueue_list): Likewise.
9702         (goacc_aq): Likewise.
9703         (goacc_aq_list): Likewise.
9704         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9705         (GOMP_OFFLOAD_openacc_async_test): Remove.
9706         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9707         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9708         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9709         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9710         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9711         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9712         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9713         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9714         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9715         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9716         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9717         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9718         (GOMP_OFFLOAD_openacc_async_test): Declare.
9719         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9720         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9721         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9722         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9723         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9725         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9726         (gomp_acc_insert_pointer): Adjust declaration.
9727         (gomp_copy_host2dev): New declaration.
9728         (gomp_copy_dev2host): Likewise.
9729         (gomp_map_vars_async): Likewise.
9730         (gomp_unmap_tgt): Likewise.
9731         (gomp_unmap_vars_async): Likewise.
9732         (gomp_fini_device): Likewise.
9734         * oacc-async.c (get_goacc_thread): New function.
9735         (get_goacc_thread_device): New function.
9736         (lookup_goacc_asyncqueue): New function.
9737         (get_goacc_asyncqueue): New function.
9738         (acc_async_test): Adjust code to use new async design.
9739         (acc_async_test_all): Likewise.
9740         (acc_wait): Likewise.
9741         (acc_wait_async): Likewise.
9742         (acc_wait_all): Likewise.
9743         (acc_wait_all_async): Likewise.
9744         (goacc_async_free): New function.
9745         (goacc_init_asyncqueues): Likewise.
9746         (goacc_fini_asyncqueues): Likewise.
9747         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9748         design.
9749         (acc_set_cuda_stream): Likewise.
9750         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9751         (host_openacc_register_async_cleanup): Remove.
9752         (host_openacc_async_exec): New function.
9753         (host_openacc_async_test): Adjust parameters.
9754         (host_openacc_async_test_all): Remove.
9755         (host_openacc_async_wait): Remove.
9756         (host_openacc_async_wait_async): Remove.
9757         (host_openacc_async_wait_all): Remove.
9758         (host_openacc_async_wait_all_async): Remove.
9759         (host_openacc_async_set_async): Remove.
9760         (host_openacc_async_synchronize): New function.
9761         (host_openacc_async_serialize): New function.
9762         (host_openacc_async_host2dev): New function.
9763         (host_openacc_async_dev2host): New function.
9764         (host_openacc_async_queue_callback): New function.
9765         (host_openacc_async_construct): New function.
9766         (host_openacc_async_destruct): New function.
9767         (struct gomp_device_descr host_dispatch): Remove initialization of old
9768         interface, add initialization of new async sub-struct.
9769         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9770         (goacc_attach_host_thread_to_device): Remove old async code usage.
9771         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9772         (goacc_fini_asyncqueues): Likewise.
9773         (goacc_async_copyout_unmap_vars): Likewise.
9774         (goacc_async_free): Likewise.
9775         (get_goacc_asyncqueue): Likewise.
9776         (lookup_goacc_asyncqueue): Likewise.
9777         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9778         design.
9779         (present_create_copy): Adjust code to use new async design.
9780         (delete_copyout): Likewise.
9781         (update_dev_host): Likewise.
9782         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9783         async design.
9784         (gomp_acc_remove_pointer): Adjust code to use new async design.
9785         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9786         design.
9787         (GOACC_enter_exit_data): Likewise.
9788         (goacc_wait): Likewise.
9789         (GOACC_update): Likewise.
9790         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9791         when called, warn as obsolete in comment.
9792         * target.c (goacc_device_copy_async): New function.
9793         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9794         add goacc_device_copy_async case.
9795         (gomp_copy_dev2host): Likewise.
9796         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9797         (gomp_map_pointer): Likewise.
9798         (gomp_map_fields_existing): Likewise.
9799         (gomp_map_vars_internal): New always_inline function, renamed from
9800         gomp_map_vars.
9801         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9802         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9803         passing goacc_asyncqueue argument.
9804         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9805         (gomp_unref_tgt): New function.
9806         (gomp_unmap_vars_internal): New always_inline function, renamed from
9807         gomp_unmap_vars.
9808         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9809         (gomp_unmap_vars_async): Implement by calling
9810         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9811         (gomp_fini_device): New function.
9812         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9813         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9814         new async interface.
9815         (gomp_target_fini): Adjust code to call gomp_fini_device.
9817         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9818         (struct ptx_stream): Remove.
9819         (struct nvptx_thread): Remove current_stream field.
9820         (cuda_map_create): Remove.
9821         (cuda_map_destroy): Remove.
9822         (map_init): Remove.
9823         (map_fini): Remove.
9824         (map_pop): Remove.
9825         (map_push): Remove.
9826         (struct goacc_asyncqueue): Define.
9827         (struct nvptx_callback): Define.
9828         (struct ptx_free_block): Define.
9829         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9830         stream_lock, and next fields.
9831         (enum ptx_event_type): Remove.
9832         (struct ptx_event): Remove.
9833         (ptx_event_lock): Remove.
9834         (ptx_events): Remove.
9835         (init_streams_for_device): Remove.
9836         (fini_streams_for_device): Remove.
9837         (select_stream_for_async): Remove.
9838         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9839         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9840         case.
9841         (nvptx_open_device): Add free_blocks initialization, remove
9842         init_streams_for_device call.
9843         (nvptx_close_device): Remove fini_streams_for_device call, add
9844         free_blocks destruct code.
9845         (event_gc): Remove.
9846         (event_add): Remove.
9847         (nvptx_exec): Adjust parameters and code.
9848         (nvptx_free): Likewise.
9849         (nvptx_host2dev): Remove.
9850         (nvptx_dev2host): Remove.
9851         (nvptx_set_async): Remove.
9852         (nvptx_async_test): Remove.
9853         (nvptx_async_test_all): Remove.
9854         (nvptx_wait): Remove.
9855         (nvptx_wait_async): Remove.
9856         (nvptx_wait_all): Remove.
9857         (nvptx_wait_all_async): Remove.
9858         (nvptx_get_cuda_stream): Remove.
9859         (nvptx_set_cuda_stream): Remove.
9860         (GOMP_OFFLOAD_alloc): Adjust code.
9861         (GOMP_OFFLOAD_free): Likewise.
9862         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9863         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9864         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9865         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9866         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9867         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9868         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9869         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9870         (cuda_free_argmem): New function.
9871         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9872         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9873         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9874         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9875         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9876         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9877         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9878         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9879         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9880         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9881         (cuda_callback_wrapper): New function.
9882         (cuda_memcpy_sanity_check): New function.
9883         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9884         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9885         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9886         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9888 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9890         PR target/87835
9891         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9893 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9895         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9897 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9899         * team.c (gomp_team_start): Initialize pool->threads[0].
9901 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9903         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9904         "-foffload=$offload_target".
9905         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9906         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9907         * testsuite/lib/libgomp.exp
9908         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9909         as (conceptually) merged into
9910         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9911         users.
9913         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9914         * testsuite/libgomp-test-support.exp.in: Adjust.
9915         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9916         openacc_device_types_s.
9917         (offload_target_to_openacc_device_type): New proc.
9918         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9919         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9920         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9921         * Makefile.in: Regenerate.
9922         * configure: Likewise.
9923         * testsuite/Makefile.in: Likewise.
9925         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9926         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9927         instead of OFFLOAD_TARGETS.
9928         * target.c (gomp_target_init): Adjust.
9929         * testsuite/libgomp-test-support.exp.in: Likewise.
9930         * testsuite/lib/libgomp.exp: Likewise.  Populate
9931         openacc_device_types_s instead of offload_targets_s_openacc.
9932         (check_effective_target_openacc_nvidia_accel_selected)
9933         (check_effective_target_openacc_host_selected): Adjust.
9934         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9935         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9936         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9937         * Makefile.in: Regenerate.
9938         * config.h.in: Likewise.
9939         * configure: Likewise.
9940         * testsuite/Makefile.in: Likewise.
9942         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9943         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9944         "offloading: supported, but hardware not accessible".
9945         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9946         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9948 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9950         PR c/87924
9951         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9952         goacc_wait().
9953         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9954         and related adjustment.
9956 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9958         PR c++/88988
9959         * testsuite/libgomp.c++/pr88988.C: New test.
9961 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9963         PR middle-end/89002
9964         * testsuite/libgomp.c/pr89002.c: New test.
9966 2019-01-28  Richard Biener  <rguenther@suse.de>
9968         PR testsuite/89064
9969         PR tree-optimization/86865
9970         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9972 2019-01-24  Tom de Vries  <tdevries@suse.de>
9974         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9975         once instantiated_devices drops to 0.
9977 2019-01-23  Tom de Vries  <tdevries@suse.de>
9979         PR target/PR88946
9980         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9981         cuMemFree.
9982         (nvptx_exec): Don't call map_push if mapnum == 0.
9983         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9985 2019-01-23  Tom de Vries  <tdevries@suse.de>
9987         PR target/88941
9988         PR target/88939
9989         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9990         (map_fini): Remove "assert (!s->map->active)".
9991         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9993 2019-01-23  Tom de Vries  <tdevries@suse.de>
9995         PR target/87835
9996         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9997         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9999 2019-01-15  Tom de Vries  <tdevries@suse.de>
10001         PR target/80547
10002         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10003         New test.
10005 2019-01-12  Tom de Vries  <tdevries@suse.de>
10007         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10008         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10009         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10010         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10012 2019-01-12  Tom de Vries  <tdevries@suse.de>
10014         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10016 2019-01-12  Tom de Vries  <tdevries@suse.de>
10018         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10019         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10020         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10022 2019-01-12  Tom de Vries  <tdevries@suse.de>
10024         PR target/85486
10025         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10026         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10028 2019-01-12  Tom de Vries  <tdevries@suse.de>
10030         PR target/85381
10031         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10032         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10034 2019-01-12  Tom de Vries  <tdevries@suse.de>
10036         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10037         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10038         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10040 2019-01-12  Tom de Vries  <tdevries@suse.de>
10042         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10043         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10044         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10046 2019-01-12  Tom de Vries  <tdevries@suse.de>
10048         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10049         resources diagnostic.
10051 2019-01-12  Tom de Vries  <tdevries@suse.de>
10053         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10054         vector length to be 128.
10055         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10056         length 2097152 to be reduced to 1024 instead of 32.
10058 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
10059             James Norris  <jnorris@codesourcery.com>
10061         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10062         Library Routines", and "Environment Variables".
10064 2019-01-11  Tom de Vries  <tdevries@suse.de>
10066         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10067         num_workers 16.
10069 2019-01-11  Tom de Vries  <tdevries@suse.de>
10071         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10072         -foffload=-w.
10073         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10074         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10075         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10076         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10078 2019-01-11  Tom de Vries  <tdevries@suse.de>
10080         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10081         test.
10083 2019-01-10  Nathan Sidwell  <nathan@acm.org>
10084             Julian Brown  <julian@codesourcery.com>
10086         PR lto/71959
10087         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10088         * testsuite/libgomp.oacc-c++/pr71959.C: New.
10090 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10092         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10093         and paste code.
10095 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10097         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
10098         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10099         write.
10101 2019-01-09  Tom de Vries  <tdevries@suse.de>
10103         PR target/88756
10104         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10105         #define instead of "const int".
10106         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10107         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10108         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10109         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10111 2019-01-09  Tom de Vries  <tdevries@suse.de>
10113         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10114         one worker.
10116 2019-01-07  Tom de Vries  <tdevries@suse.de>
10118         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10119         GOMP_OPENACC_DIM argument.
10121 2019-01-03  Tom de Vries  <tdevries@suse.de>
10123         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10124         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10126 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10128         Update copyright years.
10130 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10132         * libgomp.texi: Bump @copying's copyright year.
10134 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10136         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10137         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10138         (GOACC_declare): Redefine the "device" argument to "flags".
10140 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10141             Cesar Philippidis  <cesar@codesourcery.com>
10143         * target.c (struct gomp_coalesce_chunk): New structure.
10144         (struct gomp_coalesce_buf): Update the chunks member to use that
10145         type.  Adjust all users.
10147 2018-12-19  Tom de Vries  <tdevries@suse.de>
10149         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10150         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10151         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10153 2018-12-19  Tom de Vries  <tdevries@suse.de>
10155         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10156         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10157         gcc/testsuite/gcc.dg/goacc.
10158         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10160 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10161             Chung-Lin Tang  <cltang@codesourcery.com>
10163         * oacc-mem.c (acc_present_or_create): Remove definition and change
10164         to alias of acc_create.
10165         (acc_present_or_copyin): Remove definition and change to alias of
10166         acc_copyin.
10167         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10168         of acc_present_or_create.
10169         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10170         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10171         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10172         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10173         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10174         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10175         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10176         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10177         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10178         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10179         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10180         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10181         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10182         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10183         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10184         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10186 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10188         PR libgomp/88495
10189         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10190         "identical parameters".
10191         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10192         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10194         PR libgomp/88484
10195         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10196         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10198         PR libgomp/88407
10199         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10200         (nvptx_wait_async): Unseen async-argument is a no-op.
10201         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10202         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10203         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10204         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10205         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10206         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10207         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
10208         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10209         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
10211         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10212         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10214 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
10216         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10217         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10218         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10220 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10222         PR libgomp/88370
10223         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10224         (acc_set_cuda_stream): Clarify.
10225         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10226         "async_valid_p".
10227         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10228         acc_async_sync".
10229         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10230         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10231         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10232         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10234 2018-12-14  Tom de Vries  <tdevries@suse.de>
10236         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10237         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10238         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10239         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10240         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10242 2018-12-13  Tom de Vries  <tdevries@suse.de>
10244         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10245         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10246         * fortran.c (omp_display_affinity_): ... here.
10247         * libgomp.h (gomp_print_string): Declare.
10248         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
10249         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10250         write.
10252 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
10254         PR libgomp/88460
10255         * testsuite/libgomp.c++/for-24.C (results): Include it in
10256         omp declare target region.
10257         (main): Use map (always, tofrom: results) instead of
10258         map (tofrom: results).
10260 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
10262         PR fortran/88463
10263         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10264         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10266         * testsuite/libgomp.c-c++-common/for-16.c: New test.
10268 2018-12-12  Andreas Schwab  <schwab@suse.de>
10270         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10271         clobbered.
10273 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
10275         PR fortran/88411
10276         * testsuite/libgomp.fortran/async_io_8.f90: New test.
10278 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
10279             Jakub Jelinek  <jakub@redhat.com>
10281         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10282         devicep->host2dev_func.
10284 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
10286         PR libgomp/87995
10287         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10288         tls_runtime effective target.
10289         (t): New threadprivate variable.
10290         (main): Set t in threads which execute iterations of the worksharing
10291         loop.  Propagate that to the task after the loop and don't abort
10292         if the current taskgroup hasn't been cancelled.
10294 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
10296         * testsuite/libgomp.c/task-reduction-3.c: New test.
10298         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10300 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
10302         PR libgomp/88288
10303         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10304         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10306 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
10308         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10310 2018-10-19  Richard Biener  <rguenther@suse.de>
10312         PR tree-optimization/88182
10313         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10315 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
10317         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10318         (RUNTEST): Don't define.
10319         (RUNTESTDEFAULTFLAGS): Add.
10320         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10321         (distclean-am): Depend on distclean-DEJAGNU.
10322         (check-am): If -j% option is present in MFLAGS and if
10323         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10324         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10325         * testsuite/Makefile.in: Regenerated.
10327 2018-11-26  Richard Biener  <rguenther@suse.de>
10329         PR tree-optimization/88182
10330         * testsuite/libgomp.c++/pr88182.C: New testcase.
10332 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
10334         PR bootstrap/88106
10335         * config/mingw32/affinity-fmt.c: New file.
10337 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
10339         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10340         (gomp_display_affinity): Use __builtin_choose_expr to handle
10341         properly handle argument having integral, or pointer or some other
10342         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
10343         with uint64_t type instead of %llx and unsigned long long.
10345         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10346         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10348 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10350         * affinity.c: Include <string.h>, <stdio.h>.
10351         (gomp_display_affinity_place): Remove cpusetp.
10352         * teams.c: Include <limits.h>.
10354 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
10356         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10357         in_reduction clause for s[0].
10359         * affinity.c (gomp_display_affinity_place): New function.
10360         * affinity-fmt.c: New file.
10361         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10362         * config/linux/affinity.c (gomp_display_affinity_place): New function.
10363         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10364         Move these functions to ...
10365         * config/nvptx/teams.c: ... here.  New file.
10366         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10367         New functions.
10368         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10369         functions.
10370         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10371         and _aligned_malloc.
10372         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10373         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10374         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10375         gomp_affinity_format_len): New variables.
10376         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10377         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
10378         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10379         modifiers.  Display (non-default) chunk sizes.  Print
10380         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10381         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
10382         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10383         * fortran.c: Include stdio.h and string.h.
10384         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10385         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10386         (omp_set_affinity_format_, omp_get_affinity_format_,
10387         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10388         omp_pause_resource_all_): New functions.
10389         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10390         switch.
10391         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10392         functions to ...
10393         * teams.c: ... here.  New file.
10394         * libgomp_g.h: Include gstdint.h.
10395         (GOMP_loop_nonmonotonic_runtime_start,
10396         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10397         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10398         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10399         GOMP_parallel_loop_nonmonotonic_runtime,
10400         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10401         GOMP_loop_ull_nonmonotonic_runtime_start,
10402         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10403         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10404         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10405         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10406         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10407         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10408         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10409         GOMP_teams_reg): Declare.
10410         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10411         gomp_aligned_alloc uses fallback implementation.
10412         (gomp_aligned_alloc, gomp_aligned_free): Declare.
10413         (enum gomp_schedule_type): Add GFS_MONOTONIC.
10414         (struct gomp_doacross_work_share): Add extra field.
10415         (struct gomp_work_share): Add task_reductions field.
10416         (struct gomp_taskgroup): Add workshare and reductions fields.
10417         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10418         (gomp_thread_handle): New typedef.
10419         (gomp_display_affinity_place, gomp_set_affinity_format,
10420         gomp_display_string, gomp_display_affinity,
10421         gomp_display_affinity_thread): Declare.
10422         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10423         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10424         gomp_workshare_task_reduction_register): Declare.
10425         (gomp_team_start): Add taskgroup argument.
10426         (gomp_pause_host): Declare.
10427         (gomp_init_work_share, gomp_work_share_start): Change bool argument
10428         to size_t.
10429         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10430         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10431         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10432         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10433         GOMP_loop_ull_doacross_start,
10434         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10435         GOMP_loop_maybe_nonmonotonic_runtime_next,
10436         GOMP_loop_maybe_nonmonotonic_runtime_start,
10437         GOMP_loop_nonmonotonic_runtime_next,
10438         GOMP_loop_nonmonotonic_runtime_start,
10439         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10440         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10441         GOMP_loop_ull_nonmonotonic_runtime_next,
10442         GOMP_loop_ull_nonmonotonic_runtime_start,
10443         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10444         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10445         GOMP_taskgroup_reduction_register,
10446         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10447         GOMP_teams_reg and GOMP_taskwait_depend.
10448         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10449         omp_{capture,display}_affinity{,_}, and
10450         omp_[gs]et_affinity_format{,_}.
10451         * loop.c: Include string.h.
10452         (GOMP_loop_runtime_next): Add ialias.
10453         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10454         (gomp_loop_static_start, gomp_loop_dynamic_start,
10455         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10456         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10457         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10458         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10459         or gomp_doacross_init callers.
10460         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10461         GOMP_loop_doacross_start): New functions.
10462         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10463         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10464         Mask off GFS_MONOTONIC bit.
10465         (GOMP_loop_maybe_nonmonotonic_runtime_next,
10466         GOMP_loop_maybe_nonmonotonic_runtime_start,
10467         GOMP_loop_nonmonotonic_runtime_next,
10468         GOMP_loop_nonmonotonic_runtime_start,
10469         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10470         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10471         functions.
10472         (gomp_parallel_loop_start): Pass NULL as taskgroup to
10473         gomp_team_start.
10474         * loop_ull.c: Include string.h.
10475         (GOMP_loop_ull_runtime_next): Add ialias.
10476         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10477         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10478         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10479         gomp_loop_ull_ordered_dynamic_start,
10480         gomp_loop_ull_ordered_guided_start,
10481         gomp_loop_ull_doacross_static_start,
10482         gomp_loop_ull_doacross_dynamic_start,
10483         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10484         and gomp_doacross_ull_init callers.
10485         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10486         GOMP_loop_ull_doacross_start): New functions.
10487         (GOMP_loop_ull_runtime_start,
10488         GOMP_loop_ull_ordered_runtime_start,
10489         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10490         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10491         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10492         GOMP_loop_ull_nonmonotonic_runtime_next,
10493         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10494         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10495         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10496         (omp_pause_resource_t, omp_depend_t): New typedefs.
10497         (enum omp_lock_hint_t): Renamed to ...
10498         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
10499         enumerators using numbers and omp_lock_hint_* as their aliases.
10500         (omp_lock_hint_t): New typedef.  Rename to ...
10501         (omp_sync_hint_t): ... this.
10502         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10503         omp_sync_hint_t instead of omp_lock_hint_t.
10504         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10505         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10506         Declare.
10507         (omp_target_is_present, omp_target_disassociate_ptr):
10508         Change first argument from void * to const void *.
10509         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10510         from void * to const void *.
10511         (omp_target_associate_ptr): Change first and second arguments from
10512         void * to const void *.
10513         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10514         omp_pause_hard): New parameters.
10515         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10516         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10517         New interfaces.
10518         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10519         omp_pause_hard): New parameters.
10520         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10521         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10522         New externals.
10523         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10524         EXTRA argument.  If not needed to prepare array, if extra is 0,
10525         clear ws->doacross, otherwise allocate just doacross structure and
10526         extra payload.  If array is needed, allocate also extra payload.
10527         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10528         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10529         doacross == NULL.
10530         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10531         gomp_team_start.
10532         (GOMP_parallel): Likewise.  Formatting fix.
10533         (GOMP_parallel_reductions): New function.
10534         (GOMP_cancellation_point): If taskgroup has workshare
10535         flag set, check cancelled of prev taskgroup if any.
10536         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10537         on prev taskgroup if any.
10538         * sections.c: Include string.h.
10539         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10540         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10541         (GOMP_sections2_start): New function.
10542         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10543         Pass NULL as taskgroup to gomp_team_start.
10544         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10545         gomp_work_share_start callers.
10546         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10547         If taskgroup has workshare flag set, check cancelled on prev
10548         taskgroup if any.  Guard all cancellation tests with
10549         gomp_cancel_var test.
10550         (omp_target_is_present, omp_target_disassociate_ptr):
10551         Change ptr argument from void * to const void *.
10552         (omp_target_memcpy): Change src argument from void * to const void *.
10553         (omp_target_memcpy_rect): Likewise.
10554         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10555         instead of char * where needed.
10556         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10557         from void * to const void *.
10558         (omp_pause_resource, omp_pause_resource_all): New functions.
10559         * task.c (gomp_task_handle_depend): Handle new depend array format
10560         in addition to the old.  Handle mutexinoutset kinds the same as
10561         inout for now, handle unspecified kinds.
10562         (gomp_create_target_task): If taskgroup has workshare flag set, check
10563         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10564         gomp_cancel_var test.  Handle new depend array format count in
10565         addition to the old.
10566         (GOMP_task): Likewise.  Adjust function comment.
10567         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10568         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10569         gomp_cancel_var test.
10570         (GOMP_taskwait_depend): New function.
10571         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10572         format in addition to the old.  Handle mutexinoutset kinds the same as
10573         inout for now, handle unspecified kinds.  Fix a function comment typo.
10574         (gomp_taskgroup_init): New function.
10575         (GOMP_taskgroup_start): Use it.
10576         (gomp_reduction_register, gomp_create_artificial_team,
10577         GOMP_taskgroup_reduction_register,
10578         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10579         gomp_parallel_reduction_register,
10580         gomp_workshare_task_reduction_register,
10581         gomp_workshare_taskgroup_start,
10582         GOMP_workshare_task_reduction_unregister): New functions.
10583         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10584         check cancelled on prev taskgroup if any.  Guard all cancellation
10585         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10586         by calling GOMP_taskgroup_reduction_register.
10587         * team.c (gomp_thread_attr): Remove comment.
10588         (struct gomp_thread_start_data): Add handle field.
10589         (gomp_thread_start): Call pthread_detach.
10590         (gomp_new_team): Adjust gomp_init_work_share caller.
10591         (gomp_free_pool_helper): Call pthread_detach.
10592         (gomp_team_start): Add taskgroup argument, initialize implicit
10593         tasks' taskgroup field to that.  Don't call
10594         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10595         (gomp_team_end): Determine nesting by thr->ts.level != 0
10596         rather than thr->ts.team != NULL.
10597         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10598         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10599         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10600         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10601         if more than 1 allocate also extra payload at the end of array.  Never
10602         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10603         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10604         return true instead of ws.
10605         * Makefile.in: Regenerated.
10606         * configure: Regenerated.
10607         * config.h.in: Regenerated.
10608         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10609         in some cases.
10610         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10611         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10612         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10613         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10614         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10615         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10616         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10617         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10618         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10619         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10620         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10621         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10622         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10623         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10624         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10625         define a different N(test), don't define N(f0) to N(f14), but instead
10626         define N(f20) to N(f34) using != comparisons.
10627         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10628         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10629         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10630         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10631         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10632         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10633         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10634         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10635         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10636         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10637         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10638         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10639         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10640         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10641         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10642         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10643         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10644         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10645         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10646         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10647         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10648         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10649         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10650         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10651         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10652         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10653         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10654         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10655         * testsuite/libgomp.c++/depend-1.C: New test.
10656         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10657         * testsuite/libgomp.c++/depobj-1.C: New test.
10658         * testsuite/libgomp.c++/for-16.C: New test.
10659         * testsuite/libgomp.c++/for-21.C: New test.
10660         * testsuite/libgomp.c++/for-22.C: New test.
10661         * testsuite/libgomp.c++/for-23.C: New test.
10662         * testsuite/libgomp.c++/for-24.C: New test.
10663         * testsuite/libgomp.c++/for-25.C: New test.
10664         * testsuite/libgomp.c++/for-26.C: New test.
10665         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10666         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10667         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10668         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10669         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10670         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10671         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10672         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10673         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10674         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10675         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10676         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10677         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10678         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10679         * testsuite/libgomp.c/task-reduction-1.c: New test.
10680         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10681         * testsuite/libgomp.c/task-reduction-2.c: New test.
10682         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10683         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10684         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10685         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10686         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10687         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10688         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10689         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10690         * testsuite/libgomp.c/teams-1.c: New test.
10691         * testsuite/libgomp.c/teams-2.c: New test.
10692         * testsuite/libgomp.c/thread-limit-4.c: New test.
10693         * testsuite/libgomp.c/thread-limit-5.c: New test.
10694         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10696 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10698         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10699         acc_memcpy_to/from_device functions, now with async parameter.
10700         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10701         (acc_memcpy_from_device): Likewise.
10702         (acc_memcpy_to_device_async): New API function.
10703         (acc_memcpy_from_device_async): Likewise.
10704         (present_create_copy): Add async parameter and async setting/unsetting.
10705         (acc_create): Adjust present_create_copy call.
10706         (acc_copyin): Likewise.
10707         (acc_present_or_create): Likewise.
10708         (acc_present_or_copyin): Likewise.
10709         (acc_create_async): New API function.
10710         (acc_copyin_async): New API function.
10711         (delete_copyout): Add async parameter and async setting/unsetting.
10712         (acc_delete): Adjust delete_copyout call.
10713         (acc_copyout): Likewise.
10714         (acc_delete_async): New API function.
10715         (acc_copyout_async): Likewise.
10716         (update_dev_host): Add async parameter and async setting/unsetting.
10717         (acc_update_device): Adjust update_dev_host call.
10718         (acc_update_self): Likewise.
10719         (acc_update_device_async): New API function.
10720         (acc_update_self_async): Likewise.
10721         * openacc.h (acc_copyin_async): Declare new API function.
10722         (acc_create_async): Likewise.
10723         (acc_copyout_async): Likewise.
10724         (acc_delete_async): Likewise.
10725         (acc_update_device_async): Likewise.
10726         (acc_update_self_async): Likewise.
10727         (acc_memcpy_to_device_async): Likewise.
10728         (acc_memcpy_from_device_async): Likewise.
10729         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10730         (acc_copyin_async_64_h): New subroutine.
10731         (acc_copyin_async_array_h): New subroutine.
10732         (acc_create_async_32_h): New subroutine.
10733         (acc_create_async_64_h): New subroutine.
10734         (acc_create_async_array_h): New subroutine.
10735         (acc_copyout_async_32_h): New subroutine.
10736         (acc_copyout_async_64_h): New subroutine.
10737         (acc_copyout_async_array_h): New subroutine.
10738         (acc_delete_async_32_h): New subroutine.
10739         (acc_delete_async_64_h): New subroutine.
10740         (acc_delete_async_array_h): New subroutine.
10741         (acc_update_device_async_32_h): New subroutine.
10742         (acc_update_device_async_64_h): New subroutine.
10743         (acc_update_device_async_array_h): New subroutine.
10744         (acc_update_self_async_32_h): New subroutine.
10745         (acc_update_self_async_64_h): New subroutine.
10746         (acc_update_self_async_array_h): New subroutine.
10747         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10748         (acc_copyin_async_64_h): New subroutine.
10749         (acc_copyin_async_array_h): New subroutine.
10750         (acc_create_async_32_h): New subroutine.
10751         (acc_create_async_64_h): New subroutine.
10752         (acc_create_async_array_h): New subroutine.
10753         (acc_copyout_async_32_h): New subroutine.
10754         (acc_copyout_async_64_h): New subroutine.
10755         (acc_copyout_async_array_h): New subroutine.
10756         (acc_delete_async_32_h): New subroutine.
10757         (acc_delete_async_64_h): New subroutine.
10758         (acc_delete_async_array_h): New subroutine.
10759         (acc_update_device_async_32_h): New subroutine.
10760         (acc_update_device_async_64_h): New subroutine.
10761         (acc_update_device_async_array_h): New subroutine.
10762         (acc_update_self_async_32_h): New subroutine.
10763         (acc_update_self_async_64_h): New subroutine.
10764         (acc_update_self_async_array_h): New subroutine.
10765         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10766         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10767         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10768         acc_memcpy_to_device_async*, acc_update_device_async*, and
10769         acc_update_self_async* entries.
10770         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10771         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10772         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10774 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10776         PR bootstrap/82856
10777         * Makefile.am: Include multilib.am
10778         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10779         (CLEANFILES): Remove libgomp.info.
10780         * configure.ac: Remove AC_PREREQ.
10781         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10782         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10783         Regenerate.
10785 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10786             Julian Brown  <julian@codesourcery.com>
10788         * testsuite/libgomp.oacc-c++/this.C: New.
10790 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10792         * plugin/plugin-nvptx.c (struct cuda_map): New.
10793         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10794         h_tail with (cuda_map *) map.
10795         (cuda_map_create): New function.
10796         (cuda_map_destroy): New function.
10797         (map_init): Update to use a linked list of cuda_map objects.
10798         (map_fini): Likewise.
10799         (map_pop): Likewise.
10800         (map_push): Likewise.  Return CUdeviceptr instead of void.
10801         (init_streams_for_device): Remove stales references to ptx_stream
10802         members.
10803         (select_stream_for_async): Likewise.
10804         (nvptx_exec): Update call to map_init.
10806 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10807             Julian Brown  <julian@codesourcery.com>
10809         PR middle-end/86336
10810         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10812 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10813         Thomas Koenig <tkoenig@gcc.gnu.org>
10815         PR fortran/25829
10816         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10817         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10818         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10819         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10820         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10821         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10822         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10824 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10825             Tom de Vries  <tdevries@suse.de>
10827         PR target/85590
10828         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10829         (cuOccupancyMaxPotentialBlockSize): Declare.
10830         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10831         CUDA_ONE_CALL_MAYBE_NULL.
10832         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10833         CUoccupancyB2DSize and declare
10834         cuOccupancyMaxPotentialBlockSize.
10835         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10836         default num_gangs and num_workers when the driver supports it.
10838 2018-08-08  Tom de Vries  <tdevries@suse.de>
10840         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10841         CUDA_ONE_CALL_MAYBE_NULL.
10842         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10843         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10844         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10845         are not found.
10847 2018-08-08  Tom de Vries  <tdevries@suse.de>
10849         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10850         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10851         present.
10853 2018-08-08  Tom de Vries  <tdevries@suse.de>
10855         * plugin/plugin-nvptx.c
10856         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10857         (nvptx_open_device): Use
10858         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10860 2018-08-08  Tom de Vries  <tdevries@suse.de>
10862         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10863         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10865 2018-08-07  Tom de Vries  <tdevries@suse.de>
10867         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10868         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10869         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10870         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10871         CUDA_ONE_CALL_MAYBE_NULL.
10872         (CUDA_CALL_EXISTS): Define.
10874 2018-08-07  Tom de Vries  <tdevries@suse.de>
10876         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10877         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10878         corresponding undefs right after.
10880 2018-08-04  Tom de Vries  <tdevries@suse.de>
10882         * plugin/configfrag.ac: For --without-cuda-driver, set
10883         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10884         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10885         * configure: Regenerate.
10887 2018-08-02  Tom de Vries  <tdevries@suse.de>
10889         PR target/86660
10890         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10891         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10892         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10893         Same.
10894         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10895         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10896         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10898 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10899             Thomas Schwinge <thomas@codesourcery.com>
10901         * config/nvptx/oacc-parallel.c: Truncate.
10903 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10904             James Norris <jnorris@codesourcery.com>
10906         * plugin/plugin-nvptx.c (struct map): Removed.
10907         (map_init, map_pop): Remove use of struct map.
10908         (map_push): Likewise and change argument list.
10909         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10911 2018-08-01  Tom de Vries  <tdevries@suse.de>
10913         * plugin/cuda-lib.def: New file.  Factor out of ...
10914         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10915         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10916         using CUDA_CALLS.
10918 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10920         Revert 'AsyncI/O patch committed'.
10921         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10922                 Thomas Koenig <tkoenig@gcc.gnu.org>
10924         PR fortran/25829
10925         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10926         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10927         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10928         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10929         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10930         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10931         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10933 2018-07-30  Tom de Vries  <tdevries@suse.de>
10935         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10936         (nvptx_exec): Ensure worker and vector default dims don't exceed
10937         targ_fn->max_threads_per_block.
10939 2018-07-30  Tom de Vries  <tdevries@suse.de>
10941         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10942         (nvptx_open_device): Init default_dims for device.
10943         (nvptx_exec): Use default_dims from device.
10945 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10947         PR testsuite/86660
10948         * testsuite/libgomp.c++/for-15.C (results): Include it in
10949         omp declare target region.
10950         (main): Use map (always, tofrom: results) instead of
10951         map (tofrom: results).
10953         PR middle-end/86660
10954         * testsuite/libgomp.c/pr86660.c: New test.
10956 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10957             Tom de Vries  <tdevries@suse.de>
10959         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10960         sufficient resources to launch a kernel, and give a hint on how to fix
10961         it.
10963 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10964             Tom de Vries  <tdevries@suse.de>
10966         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10967         max_threads_per_block and max_threads_per_multiprocessor fields.
10968         (nvptx_open_device): Initialize new fields.
10969         (nvptx_exec): Use num_sms, and new fields.
10971 2018-07-26  Tom de Vries  <tdevries@suse.de>
10973         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10974         to correct locations.  Remove xfail.
10976 2018-07-26  Tom de Vries  <tdevries@suse.de>
10978         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10979         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10980         xfail.
10982 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10983         Thomas Koenig <tkoenig@gcc.gnu.org>
10985         PR fortran/25829
10986         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10987         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10988         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10989         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10990         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10991         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10992         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10994 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10996         PR middle-end/86542
10997         * testsuite/libgomp.c++/pr86542.C: New test.
10999         PR middle-end/86539
11000         * testsuite/libgomp.c++/pr86539.C: New test.
11002 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
11004         PR c++/86443
11005         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11006         (results): Make sure the variable is not inside declare target region.
11007         (qux): Remove unused function.
11009 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
11011         PR c++/86443
11012         * testsuite/libgomp.c++/for-15.C: New test.
11014 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
11016         PR c++/86291
11017         * testsuite/libgomp.c++/pr86291.C: New test.
11019 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
11021         * libgomp.texi (Top): Move www.openmp.org to https.
11022         (Enabling OpenMP): Ditto.
11023         (omp_get_active_level): Ditto.
11024         (omp_get_ancestor_thread_num): Ditto.
11025         (omp_get_cancellation): Ditto.
11026         (omp_get_default_device): Ditto.
11027         (omp_get_dynamic): Ditto.
11028         (omp_get_level): Ditto.
11029         (omp_get_max_active_levels): Ditto.
11030         (omp_get_max_task_priority): Ditto.
11031         (omp_get_max_threads): Ditto.
11032         (omp_get_nested): Ditto.
11033         (omp_get_num_devices): Ditto.
11034         (omp_get_num_procs): Ditto.
11035         (omp_get_num_teams): Ditto.
11036         (omp_get_num_threads): Ditto.
11037         (omp_get_proc_bind): Ditto.
11038         (omp_get_schedule): Ditto.
11039         (omp_get_team_num): Ditto.
11040         (omp_get_team_size): Ditto.
11041         (omp_get_thread_limit): Ditto.
11042         (omp_get_thread_num): Ditto.
11043         (omp_in_parallel): Ditto.
11044         (omp_in_final): Ditto.
11045         (omp_is_initial_device): Ditto.
11046         (omp_set_default_device): Ditto.
11047         (omp_set_dynamic): Ditto.
11048         (omp_set_max_active_levels): Ditto.
11049         (omp_set_nested): Ditto.
11050         (omp_set_num_threads): Ditto.
11051         (omp_set_schedule): Ditto.
11052         (omp_init_lock): Ditto.
11053         (omp_set_lock): Ditto.
11054         (omp_test_lock): Ditto.
11055         (omp_unset_lock): Ditto.
11056         (omp_destroy_lock): Ditto.
11057         (omp_init_nest_lock): Ditto.
11058         (omp_set_nest_lock): Ditto.
11059         (omp_test_nest_lock): Ditto.
11060         (omp_unset_nest_lock): Ditto.
11061         (omp_destroy_nest_lock): Ditto.
11062         (omp_get_wtick): Ditto.
11063         (omp_get_wtime): Ditto.
11064         (OMP_CANCELLATION): Ditto.
11065         (OMP_DISPLAY_ENV): Ditto.
11066         (OMP_DEFAULT_DEVICE): Ditto.
11067         (OMP_DYNAMIC): Ditto.
11068         (OMP_MAX_ACTIVE_LEVELS): Ditto.
11069         (OMP_MAX_TASK_PRIORITY): Ditto.
11070         (OMP_NESTED): Ditto.
11071         (OMP_NUM_THREADS): Ditto.
11072         (OMP_PROC_BIND): Ditto.
11073         (OMP_PLACES): Ditto.
11074         (OMP_STACKSIZE): Ditto.
11075         (OMP_SCHEDULE): Ditto.
11076         (OMP_THREAD_LIMIT): Ditto.
11077         (OMP_WAIT_POLICY): Ditto.
11079 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
11080             James Norris  <jnorris@codesourcery.com>
11081             Julian Brown  <julian@codesourcery.com>
11082             Thomas Schwinge  <thomas@codesourcery.com>
11083             Tom de Vries  <tom@codesourcery.com>
11085         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11086         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11087         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11088         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11089         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11090         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11091         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11092         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11093         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11094         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11095         Likewise.
11096         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11097         Likewise.
11098         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11099         Likewise.
11100         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11101         Likewise.
11102         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11103         Likewise.
11104         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11105         Likewise.
11106         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11107         Likewise.
11108         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11109         Likewise.
11110         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11111         Likewise.
11112         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11113         Likewise.
11114         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11115         Likewise.
11116         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11117         Likewise.
11118         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11119         Likewise.
11120         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11121         Likewise.
11122         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11123         Likewise.
11124         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11125         Likewise.
11126         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11127         Likewise.
11128         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11129         Likewise.
11130         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11131         Likewise.
11132         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11133         Likewise.
11134         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11135         Likewise.
11136         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11137         Likewise.
11138         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11139         Likewise.
11140         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11141         Likewise.
11142         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11143         Likewise.
11144         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11145         Likewise.
11146         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11147         Likewise.
11148         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11149         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11150         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11151         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11152         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11153         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11154         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11155         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11156         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11157         Likewise.
11158         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11159         Likewise.
11160         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11161         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11162         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11163         Likewise.
11164         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11165         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11166         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11167         Likewise.
11168         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11169         Likewise.
11170         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11171         Likewise.
11172         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11173         Likewise.
11174         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11175         Likewise.
11176         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11177         Likewise.
11178         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11179         Likewise.
11180         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11181         Likewise.
11182         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11183         Likewise.
11184         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11185         Likewise.
11186         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11187         Likewise.
11188         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11189         Likewise.
11190         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11191         Likewise.
11192         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11193         Likewise.
11194         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11195         Likewise.
11196         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11197         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11198         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11199         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11200         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11201         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11202         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11204 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
11205             Thomas Schwinge <thomas@codesourcery.com>
11206             Cesar Philippidis  <cesar@codesourcery.com>
11208         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11209         (gomp_acc_remove_pointer): Update declaration.
11210         (gomp_acc_declare_allocate): Declare.
11211         (gomp_remove_var): Declare.
11212         * libgomp.map (OACC_2.5): Define.
11213         * oacc-mem.c (acc_map_data): Update refcount.
11214         (acc_unmap_data): Likewise.
11215         (present_create_copy): Likewise.
11216         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11217         (acc_copyin): Likewise.
11218         (FLAG_FINALIZE): Define.
11219         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11220         (acc_delete_finalize): New function.
11221         (acc_delete_finalize_async): New function.
11222         (acc_copyout_finalize): New function.
11223         (acc_copyout_finalize_async): New function.
11224         (gomp_acc_insert_pointer): Update refcounts.
11225         (gomp_acc_remove_pointer): Return if data is not present on the
11226         accelerator.
11227         * oacc-parallel.c (find_pset): Rename to find_pointer.
11228         (find_pointer): Add support for GOMP_MAP_POINTER.
11229         (handle_ftn_pointers): New function.
11230         (GOACC_parallel_keyed): Update refcounts of variables.
11231         (GOACC_enter_exit_data): Add support for finalized data mappings.
11232         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11233         of fortran arrays.
11234         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11235         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11236         for GOMP_MAP_FORCE_FROM.
11237         * openacc.f90 (module openacc_internal): Add
11238         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11239         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11240         acc_copyout_finalize and acc_delete_finalize.
11241         (acc_copyout_finalize_32_h): New subroutine.
11242         (acc_copyout_finalize_64_h): New subroutine.
11243         (acc_copyout_finalize_array_h): New subroutine.
11244         (acc_delete_finalize_32_h): New subroutine.
11245         (acc_delete_finalize_64_h): New subroutine.
11246         (acc_delete_finalize_array_h): New subroutine.
11247         * openacc.h (acc_copyout_finalize): Declare.
11248         (acc_copyout_finalize_async): Declare.
11249         (acc_delete_finalize): Declare.
11250         (acc_delete_finalize_async): Declare.
11251         * openacc_lib.h (acc_copyout_finalize): New interface.
11252         (acc_delete_finalize): New interface.
11253         * target.c (gomp_map_vars): Update dynamic_refcount.
11254         (gomp_remove_var): New function.
11255         (gomp_unmap_vars): Use it.
11256         (gomp_unload_image_from_device): Likewise.
11257         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11258         case to utilize OpenACC 2.5 data clause semantics.
11259         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11260         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11261         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11262         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11263         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11264         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11265         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11266         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11267         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11268         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11269         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11270         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11271         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11272         utilize OpenACC 2.5 data clause semantics.
11273         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11274         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11275         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11276         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11277         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11278         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11279         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11280         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11281         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11283 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
11285         PR fortran/85841
11286         PR testsuite/85865
11287         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11288         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11289         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11290         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11291         * testsuite/libgomp.fortran/task2.f90: Ditto.
11292         * testsuite/libgomp.fortran/vla1.f90: Ditto.
11293         * testsuite/libgomp.fortran/vla2.f90: Ditto.
11294         * testsuite/libgomp.fortran/vla3.f90: Ditto.
11295         * testsuite/libgomp.fortran/vla4.f90: Ditto.
11296         * testsuite/libgomp.fortran/vla5.f90: Ditto.
11297         * testsuite/libgomp.fortran/vla6.f90: Ditto.
11298         * testsuite/libgomp.fortran/vla8.f90: Ditto.
11299         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11300         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11302 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
11304         PR c++/85782
11305         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11307 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11309         PR libgomp/82901
11310         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11311         to GOACC_enter_exit_data.
11313 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11315         PR libgomp/83792
11316         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11317         (async_synchronous_p): New function.
11318         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11319         async_valid_p.
11320         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11321         async_valid_stream_id_p.
11322         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11323         * oacc-parallel.c (GOACC_parallel_keyed): Same.
11325 2018-05-07  Tom de Vries  <tom@codesourcery.com>
11327         PR testsuite/85677
11328         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11329         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11331 2018-05-03  Tom de Vries  <tom@codesourcery.com>
11333         PR testsuite/85106
11334         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11335         extra_tool_flags if it contains an -foffload=-fdump-* flag.
11336         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11337         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11339 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11341         PR libgomp/85411
11342         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11343         GOMP_OPENACC_DIM ...
11344         * env.c (parse_gomp_openacc_dim): ... here.  New function.
11345         (initialize_env): Call parse_gomp_openacc_dim.
11346         (goacc_default_dims): Define.
11347         * libgomp.h (goacc_default_dims): Declare.
11348         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11349         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11350         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11351         GOMP_PLUGIN_acc_default_dim.
11352         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11353         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11355 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11357         PR testsuite/83791
11358         * testsuite/libgomp.c++/udr-9.C: Update.
11359         * testsuite/libgomp.c++/atomic-16.C: Remove.
11360         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11361         * testsuite/libgomp.c++/loop-13.C: Remove.
11362         * testsuite/libgomp.c++/loop-14.C: Remove.
11363         * testsuite/libgomp.c++/loop-15.C: Remove.
11364         * testsuite/libgomp.c++/monotonic-1.C: Remove.
11365         * testsuite/libgomp.c++/monotonic-2.C: Remove.
11366         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11367         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11368         * testsuite/libgomp.c++/ordered-1.C: Remove.
11369         * testsuite/libgomp.c++/pr45784.C: Remove.
11370         * testsuite/libgomp.c++/pr64824.C: Remove.
11371         * testsuite/libgomp.c++/pr64868.C: Remove.
11372         * testsuite/libgomp.c++/pr66199-1.C: Remove.
11373         * testsuite/libgomp.c++/pr66199-2.C: Remove.
11374         * testsuite/libgomp.c++/pr66199-3.C: Remove.
11375         * testsuite/libgomp.c++/pr66199-4.C: Remove.
11376         * testsuite/libgomp.c++/pr66199-5.C: Remove.
11377         * testsuite/libgomp.c++/pr66199-6.C: Remove.
11378         * testsuite/libgomp.c++/pr66199-7.C: Remove.
11379         * testsuite/libgomp.c++/pr66199-8.C: Remove.
11380         * testsuite/libgomp.c++/pr66199-9.C: Remove.
11381         * testsuite/libgomp.c++/pr69389.C: Remove.
11382         * testsuite/libgomp.c++/simd10.C: Remove.
11383         * testsuite/libgomp.c++/simd11.C: Remove.
11384         * testsuite/libgomp.c++/simd12.C: Remove.
11385         * testsuite/libgomp.c++/simd13.C: Remove.
11386         * testsuite/libgomp.c++/target-1.C: Remove.
11387         * testsuite/libgomp.c++/target-3.C: Remove.
11388         * testsuite/libgomp.c++/target-4.C: Remove.
11389         * testsuite/libgomp.c++/target-5.C: Remove.
11390         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11391         * testsuite/libgomp.c++/taskloop-1.C: Remove.
11392         * testsuite/libgomp.c++/taskloop-2.C: Remove.
11393         * testsuite/libgomp.c++/taskloop-3.C: Remove.
11394         * testsuite/libgomp.c++/taskloop-4.C: Remove.
11395         * testsuite/libgomp.c++/udr-9.C: Remove.
11396         * testsuite/libgomp.c++/for-10.C: Remove.
11397         * testsuite/libgomp.c++/for-11.C: Remove.
11398         * testsuite/libgomp.c++/for-12.C: Remove.
11399         * testsuite/libgomp.c++/for-13.C: Remove.
11400         * testsuite/libgomp.c++/for-14.C: Remove.
11401         * testsuite/libgomp.c++/for-9.C: Remove.
11402         * testsuite/libgomp.c/atomic-18.c: Move ...
11403         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11404         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11405         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11406         * testsuite/libgomp.c/loop-13.c: Move ...
11407         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11408         * testsuite/libgomp.c/loop-14.c: Move ...
11409         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11410         * testsuite/libgomp.c/loop-15.c: Remove.
11411         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11412         * testsuite/libgomp.c/monotonic-1.c: Move ...
11413         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11414         * testsuite/libgomp.c/monotonic-2.c: Move ...
11415         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11416         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11417         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11418         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11419         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11420         * testsuite/libgomp.c/ordered-4.c: Move ...
11421         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11422         * testsuite/libgomp.c/pr45784.c: Move ...
11423         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11424         * testsuite/libgomp.c/pr64824.c: Move ...
11425         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11426         * testsuite/libgomp.c/pr64868.c: Move ...
11427         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11428         * testsuite/libgomp.c/pr66199-1.c: Move ...
11429         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11430         * testsuite/libgomp.c/pr66199-2.c: Move ...
11431         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11432         * testsuite/libgomp.c/pr66199-3.c: Move ...
11433         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11434         * testsuite/libgomp.c/pr66199-4.c: Move ...
11435         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11436         * testsuite/libgomp.c/pr66199-5.c: Move ...
11437         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11438         * testsuite/libgomp.c/pr66199-6.c: Move ...
11439         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11440         * testsuite/libgomp.c/pr66199-7.c: Move ...
11441         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11442         * testsuite/libgomp.c/pr66199-8.c: Move ...
11443         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11444         * testsuite/libgomp.c/pr66199-9.c: Move ...
11445         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11446         * testsuite/libgomp.c/pr69389.c: Move ...
11447         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11448         * testsuite/libgomp.c/simd-14.c: Move ...
11449         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11450         * testsuite/libgomp.c/simd-15.c: Move ...
11451         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11452         * testsuite/libgomp.c/simd-16.c: Move ...
11453         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11454         * testsuite/libgomp.c/simd-17.c: Move ...
11455         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11456         * testsuite/libgomp.c/target-1.c: Move ...
11457         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11458         * testsuite/libgomp.c/target-10.c: Move ...
11459         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11460         * testsuite/libgomp.c/target-13.c: Move ...
11461         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11462         * testsuite/libgomp.c/target-2.c: Move ...
11463         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11464         * testsuite/libgomp.c/taskgroup-1.c: Move ...
11465         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11466         * testsuite/libgomp.c/taskloop-1.c: Move ...
11467         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11468         * testsuite/libgomp.c/taskloop-2.c: Move ...
11469         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11470         * testsuite/libgomp.c/taskloop-3.c: Move ...
11471         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11472         * testsuite/libgomp.c/taskloop-4.c: Move ...
11473         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11474         * testsuite/libgomp.c/udr-1.c: Move ...
11475         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11476         * testsuite/libgomp.c/for-1.c: Move ...
11477         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11478         * testsuite/libgomp.c/for-1.h: Move ...
11479         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11480         * testsuite/libgomp.c/for-2.c: Move ...
11481         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11482         * testsuite/libgomp.c/for-2.h: Move ...
11483         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11484         * testsuite/libgomp.c/for-3.c: Move ...
11485         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11486         * testsuite/libgomp.c/for-4.c: Move ...
11487         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11488         * testsuite/libgomp.c/for-5.c: Move ...
11489         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11490         * testsuite/libgomp.c/for-6.c: Move ...
11491         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11493 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11495         PR libgomp/82428
11496         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11497         __builtin_goacc_parlevel_{id,size}.
11498         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11499         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11500         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11501         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11502         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11503         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11504         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11505         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11506         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11507         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11508         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11509         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11510         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11511         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11512         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11513         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11514         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11515         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11516         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11517         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11518         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11519         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11520         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11522 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11524         PR testsuite/85106
11525         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11527 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11529         PR testsuite/85106
11530         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11532 2018-04-29  Julian Brown  <julian@codesourcery.com>
11533             Tom de Vries  <tom@codesourcery.com>
11535         PR testsuite/85527
11536         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11537         arbitrary order for iterations of atomic subtract check.
11539 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11541         PR testsuite/85527
11542         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11543         atomic capture results obtained in parallel loop to an array, instead of
11544         to a scalar.
11546 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11548         PR libgomp/84020
11549         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11550         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11551         (process_GOMP_NVPTX_JIT): New function.
11552         (link_ptx): Use process_GOMP_NVPTX_JIT.
11554 2018-04-26  Richard Biener <rguenther@suse.de>
11555             Tom de Vries  <tom@codesourcery.com>
11557         PR lto/85422
11558         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11560 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11562         PR target/85519
11563         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11564         recursion depth from 25 to 23.
11565         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11567 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11569         * configure: Regenerated.
11571 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11572             Tom de Vries  <tom@codesourcery.com>
11574         PR target/85445
11575         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11577 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11579         PR libgomp/85463
11580         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11581         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11582         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11583         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11584         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11585         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11587         PR libfortran/85166
11588         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11589         abort".
11590         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11592 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11594         * configure: Regenerated.
11596 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11598         PR jit/85384
11599         * configure: Regenerate.
11601 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11602             Tom de Vries  <tom@codesourcery.com>
11604         PR middle-end/84955
11605         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11606         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11608 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11610         PR fortran/83064
11611         PR testsuite/85346
11612         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11613         test from gfortran.dg to here.
11615 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11617         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11618         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11620 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11622         PR middle-end/84955
11623         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11624         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11626 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11628         PR target/85204
11629         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11631 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11633         PR tree-optimization/85063
11634         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11635         * testsuite/libgomp.c/switch-conversion.c: New test.
11636         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11637         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11639 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11641         PR fortran/84381
11642         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11643         call abort by STOP n.
11644         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11645         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11646         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11647         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11648         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11649         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11650         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11651         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11652         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11653         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11654         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11655         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11656         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11657         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11658         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11659         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11660         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11661         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11662         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11663         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11664         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11665         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11666         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11667         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11668         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11669         * testsuite/libgomp.fortran/character1.f90: Likewise.
11670         * testsuite/libgomp.fortran/character2.f90: Likewise.
11671         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11672         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11673         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11674         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11675         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11676         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11677         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11678         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11679         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11680         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11681         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11682         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11683         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11684         * testsuite/libgomp.fortran/do1.f90: Likewise.
11685         * testsuite/libgomp.fortran/do2.f90: Likewise.
11686         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11687         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11688         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11689         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11690         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11691         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11692         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11693         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11694         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11695         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11696         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11697         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11698         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11699         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11700         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11701         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11702         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11703         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11704         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11705         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11706         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11707         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11708         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11709         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11710         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11711         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11712         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11713         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11714         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11715         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11716         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11717         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11718         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11719         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11720         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11721         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11722         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11723         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11724         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11725         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11726         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11727         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11728         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11729         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11730         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11731         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11732         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11733         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11734         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11735         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11736         * testsuite/libgomp.fortran/lib2.f: Likewise.
11737         * testsuite/libgomp.fortran/lib3.f: Likewise.
11738         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11739         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11740         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11741         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11742         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11743         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11744         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11745         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11746         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11747         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11748         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11749         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11750         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11751         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11752         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11753         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11754         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11755         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11756         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11757         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11758         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11759         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11760         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11761         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11762         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11763         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11764         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11765         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11766         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11767         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11768         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11769         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11770         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11771         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11772         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11773         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11774         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11775         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11776         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11777         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11778         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11779         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11780         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11781         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11782         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11783         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11784         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11785         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11786         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11787         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11788         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11789         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11790         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11791         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11792         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11793         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11794         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11795         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11796         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11797         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11798         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11799         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11800         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11801         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11802         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11803         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11804         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11805         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11806         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11807         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11808         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11809         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11810         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11811         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11812         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11813         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11814         * testsuite/libgomp.fortran/stack.f90: Likewise.
11815         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11816         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11817         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11818         * testsuite/libgomp.fortran/target1.f90: Likewise.
11819         * testsuite/libgomp.fortran/target2.f90: Likewise.
11820         * testsuite/libgomp.fortran/target3.f90: Likewise.
11821         * testsuite/libgomp.fortran/target4.f90: Likewise.
11822         * testsuite/libgomp.fortran/target5.f90: Likewise.
11823         * testsuite/libgomp.fortran/target6.f90: Likewise.
11824         * testsuite/libgomp.fortran/target7.f90: Likewise.
11825         * testsuite/libgomp.fortran/target8.f90: Likewise.
11826         * testsuite/libgomp.fortran/task1.f90: Likewise.
11827         * testsuite/libgomp.fortran/task2.f90: Likewise.
11828         * testsuite/libgomp.fortran/task3.f90: Likewise.
11829         * testsuite/libgomp.fortran/task4.f90: Likewise.
11830         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11831         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11832         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11833         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11834         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11835         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11836         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11837         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11838         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11839         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11840         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11841         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11842         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11843         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11844         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11845         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11846         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11847         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11848         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11849         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11850         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11851         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11852         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11853         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11854         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11855         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11856         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11857         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11858         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11859         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11860         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11861         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11862         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11863         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11864         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11865         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11866         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11867         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11868         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11869         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11870         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11871         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11872         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11873         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11874         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11875         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11876         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11877         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11878         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11879         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11880         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11881         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11882         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11883         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11884         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11885         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11886         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11887         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11888         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11889         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11890         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11891         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11892         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11893         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11894         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11895         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11896         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11897         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11898         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11899         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11900         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11901         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11902         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11903         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11904         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11905         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11906         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11907         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11908         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11909         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11910         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11911         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11912         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11913         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11914         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11915         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11916         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11917         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11918         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11919         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11920         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11921         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11922         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11923         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11924         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11925         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11926         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11927         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11928         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11929         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11930         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11931         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11932         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11933         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11934         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11935         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11936         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11937         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11938         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11939         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11940         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11941         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11942         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11943         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11944         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11945         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11946         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11947         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11948         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11949         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11950         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11951         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11952         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11953         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11954         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11955         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11957 2018-03-20  Richard Biener  <rguenther@suse.de>
11959         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11960         parallelizable loop.
11962 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11964         PR target/84148
11965         * configure: Regenerate.
11967 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11969         PR fortran/84418
11970         * libgomp.fortran/pr84418-1.f90: New test.
11971         * libgomp.fortran/pr84418-2.f90: New test.
11973 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11975         PR fortran/84313
11976         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11977         -std=f2003 -fall-intrinsics into dg-additional-options.
11979 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11981         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11982         clonable.
11984 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11986         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11988 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11990         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11991         [__cplusplus]: Declare extern "C".
11993 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11995         PR libgomp/84217
11996         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11998 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11999             Jakub Jelinek  <jakub@redhat.com>
12001         PR libgomp/84096
12002         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12003         instead of omp_lock_t.
12005 2018-01-25  Tom de Vries  <tom@codesourcery.com>
12007         PR target/84028
12008         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12010 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12012         PR target/83589
12013         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12015 2018-01-24  Tom de Vries  <tom@codesourcery.com>
12017         PR target/81352
12018         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12020 2018-01-19  Tom de Vries  <tom@codesourcery.com>
12021             Cesar Philippidis  <cesar@codesourcery.com>
12023         PR target/83920
12024         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12025         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12027 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
12029         Update copyright years.
12031         * libgomp.texi: Bump @copying's copyright year.
12033 2017-12-30  Tom de Vries  <tom@codesourcery.com>
12035         PR libgomp/83046
12036         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12037         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12039 2017-12-27  Tom de Vries  <tom@codesourcery.com>
12041         PR c++/83046
12042         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12043         (test_nonstatic): Fix return type to workaround PR83046.
12045 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
12047         PR testsuite/83281
12048         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12049         j suffix instead of i.
12050         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12051         Likewise.
12053 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
12055         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12056         call to acc_wait (1).
12058 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
12060         PR fortran/81304
12061         * testsuite/libgomp.fortran/pr81304.f90: New test.
12063 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
12065         PR fortran/81841
12066         * libgomp.fortran/pr81841.f90: New test.
12068 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
12070         PR libgomp/83106
12071         * target.c (gomp_target_init): Compute lengths just once and
12072         use them in both malloc size and subsequent copying.
12074 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12076         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12077         * acinclude.m4: Add cet.m4.
12078         * configure: Regenerate.
12079         * Makefile.in: Likewise.
12080         * testsuite/Makefile.in: Likewise.
12082 2017-11-15  Tom de Vries  <tom@codesourcery.com>
12084         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12085         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
12086         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12087         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
12088         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12089         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
12091 2017-11-14  Tom de Vries  <tom@codesourcery.com>
12093         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12094         non-nvidia devices.
12096 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
12098         PR c++/82835
12099         * testsuite/libgomp.c++/pr82835.C: New test.
12101 2017-11-06  Martin Liska  <mliska@suse.cz>
12103         * testsuite/libgomp.c++/loop-2.C: Return a value
12104         for functions with non-void return type, or change type to void,
12105         or add -Wno-return-type for test.
12106         * testsuite/libgomp.c++/loop-4.C: Likewise.
12107         * testsuite/libgomp.c++/parallel-1.C: Likewise.
12108         * testsuite/libgomp.c++/shared-1.C: Likewise.
12109         * testsuite/libgomp.c++/single-1.C: Likewise.
12110         * testsuite/libgomp.c++/single-2.C: Likewise.
12112 2017-10-31  Tom de Vries  <tom@codesourcery.com>
12114         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12115         "do {} while (false)".
12116         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12117         after HSA_DEBUG call.
12119 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
12121         * target.c (struct gomp_coalesce_buf): New type.
12122         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12123         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12124         (gomp_copy_host2dev): Add CBUF argument, if copying into
12125         the cached ranges, memcpy into buffer instead of copying
12126         into device.
12127         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12128         Add CBUF argument, pass it through to other calls.
12129         (gomp_map_vars): Aggregate copies from host to device if small enough
12130         and with small enough gaps in between into memcpy into a buffer and
12131         fewer host to device copies from the buffer.
12132         (gomp_update): Adjust gomp_copy_host2dev caller.
12134 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
12136         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12137         run" directive.
12138         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12139         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12140         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12141         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12143 2017-10-16  Tom de Vries  <tom@codesourcery.com>
12145         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12146         openacc_nvidia_accel_selected.
12147         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12148         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12149         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12150         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12151         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12152         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12153         openacc_nvidia_accel_selected. Skip for shared memory device.
12154         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12155         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12157 2017-10-09  Martin Jambor  <mjambor@suse.cz>
12159         PR hsa/82416
12160         * testsuite/libgomp.hsa.c/pr82416.c: New test.
12162 2017-10-07  Tom de Vries  <tom@codesourcery.com>
12164         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12165         Remove acc_device_nvidia references.
12166         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12167         Same.
12169 2017-10-05  Tom de Vries  <tom@codesourcery.com>
12171         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12172         vector_length(32) clause from acc parallel directive.
12173         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12175 2017-10-04  Tom de Vries  <tom@codesourcery.com>
12177         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12178         (main): Reduce sum of arr elements.  Assert that hres is exactly
12179         representable in 32-bit floating point.
12180         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12181         (main): Reduce sum of arr elements.  Assert that hres and hmres are
12182         exactly representable in 32-bit floating point.
12183         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12185 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12187         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12188         setting.
12189         * testsuite/libgomp.c++/pr69393.C: Same.
12190         * testsuite/libgomp.c++/taskloop-1.C: Same.
12191         * testsuite/libgomp.c++/taskloop-3.C: Same.
12192         * testsuite/libgomp.c++/taskloop-4.C: Same.
12193         * testsuite/libgomp.c/for-4.c: Same.
12194         * testsuite/libgomp.c/pr66199-3.c: Same.
12195         * testsuite/libgomp.c/pr66199-4.c: Same.
12196         * testsuite/libgomp.c/pr66199-6.c: Same.
12197         * testsuite/libgomp.c/taskloop-1.c: Same.
12198         * testsuite/libgomp.c/taskloop-3.c: Same.
12199         * testsuite/libgomp.c/taskloop-4.c: Same.
12200         * testsuite/libgomp.fortran/aligned1.f03: Same.
12201         * testsuite/libgomp.fortran/condinc1.f: Same.
12202         * testsuite/libgomp.fortran/condinc3.f90: Same.
12203         * testsuite/libgomp.fortran/crayptr1.f90: Same.
12204         * testsuite/libgomp.fortran/crayptr2.f90: Same.
12205         * testsuite/libgomp.fortran/crayptr3.f90: Same.
12206         * testsuite/libgomp.fortran/omp_cond1.f: Same.
12207         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12208         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12209         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12210         * testsuite/libgomp.fortran/recursion1.f90: Same.
12211         * testsuite/libgomp.fortran/target2.f90: Same.
12212         * testsuite/libgomp.fortran/target5.f90: Same.
12213         * testsuite/libgomp.fortran/task3.f90: Same.
12215 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12217         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12218         vector_length(32) clause from acc parallel directive.
12219         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12221 2017-09-27  Tom de Vries  <tom@codesourcery.com>
12223         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12224         Remove acc_device_nvidia references.
12226 2017-09-16  Tom de Vries  <tom@codesourcery.com>
12228         PR c/81875
12229         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12231 2017-09-14  Tom de Vries  <tom@codesourcery.com>
12233         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12234         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12235         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12236         * testsuite/libgomp.c/c.exp: Include test-cases from
12237         libgomp.c-c++-common.
12238         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
12239         files.
12241 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
12243         PR c++/81314
12244         * testsuite/libgomp.c++/pr81314.C: New test.
12246 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
12248         * libgomp.texi (Top): www.openacc.org now uses https.
12249         (Enabling OpenACC): Ditto.
12250         (acc_get_num_devices): Ditto.
12251         (acc_set_device_type): Ditto.
12252         (acc_get_device_type): Ditto.
12253         (acc_set_device_num): Ditto.
12254         (acc_get_device_num): Ditto.
12255         (acc_async_test): Ditto.
12256         (acc_async_test_all): Ditto.
12257         (acc_wait): Ditto.
12258         (acc_wait_all): Ditto.
12259         (acc_wait_all_async): Ditto.
12260         (acc_wait_async): Ditto.
12261         (acc_init): Ditto.
12262         (acc_shutdown): Ditto.
12263         (acc_on_device): Ditto.
12264         (acc_malloc): Ditto.
12265         (acc_free): Ditto.
12266         (acc_copyin): Ditto.
12267         (acc_present_or_copyin): Ditto.
12268         (acc_create): Ditto.
12269         (acc_present_or_create): Ditto.
12270         (acc_copyout): Ditto.
12271         (acc_delete): Ditto.
12272         (acc_update_device): Ditto.
12273         (acc_update_self): Ditto.
12274         (acc_map_data): Ditto.
12275         (acc_unmap_data): Ditto.
12276         (acc_deviceptr): Ditto.
12277         (acc_hostptr): Ditto.
12278         (acc_is_present): Ditto.
12279         (acc_memcpy_to_device): Ditto.
12280         (acc_memcpy_from_device): Ditto.
12281         (acc_get_current_cuda_device): Ditto.
12282         (acc_get_current_cuda_context): Ditto.
12283         (acc_get_cuda_stream): Ditto.
12284         (acc_set_cuda_stream): Ditto.
12285         (ACC_DEVICE_TYPE): Ditto.
12286         (ACC_DEVICE_NUM): Ditto.
12287         (OpenACC Library Interoperability): Ditto.
12289 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
12291         PR c/81687
12292         * testsuite/libgomp.c/pr81687-1.c: New test.
12293         * testsuite/libgomp.c/pr81687-2.c: New test.
12295 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
12297         PR c/69389
12298         * testsuite/libgomp.c/pr69389.c: New test.
12299         * testsuite/libgomp.c++/pr69389.C: New test.
12301 2017-08-07  Tom de Vries  <tom@codesourcery.com>
12303         PR middle-end/78266
12304         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12305         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12307 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
12309         PR c/45784
12310         * testsuite/libgomp.c/pr45784.c: New test.
12311         * testsuite/libgomp.c++/pr45784.C: New test.
12313 2017-07-19  Tom de Vries  <tom@codesourcery.com>
12315         * testsuite/libgomp.oacc-c/vec.c: New test.
12317 2017-07-03  Tom de Vries  <tom@codesourcery.com>
12319         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12321 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12323         * plugin/plugin-nvptx.c (notify_var): New function.
12324         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12326 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12328         * env.c (parse_unsigned_long_1): Factor out of ...
12329         (parse_unsigned_long): ... here.
12330         (parse_int_1): Factor out of ...
12331         (parse_int): ... here.
12332         (parse_int_secure): New function.
12333         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12334         * secure_getenv.h: Factor out of ...
12335         * plugin/plugin-hsa.c: ... here.
12336         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12338 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
12340         PR c++/81130
12341         * testsuite/libgomp.c++/pr81130.C: New test.
12343 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12345         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12346         default args.
12347         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12348         dg-xfail-run-if default args.
12350 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12352         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12353         * testsuite/libgomp.c/pr39591-3.c: Likewise.
12355 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
12357         PR libgomp/80822
12358         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12359         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
12360         sibling lists, depending on level just pick up what CPUs to put
12361         together into a place vs. whether add multiple ordered places.
12363 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
12365         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12366         * libgomp.map (OACC_2.0.1): Add these.
12367         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12368         for "acc_wait", and "acc_wait_all", respectively.
12369         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12370         for "acc_wait", and "acc_wait_all", respectively.
12371         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12372         * libgomp.texi (acc_wait, acc_wait_all): Update.
12373         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12374         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12375         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12377         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12378         acc_present_or_copyin and acc_present_or_create procedures,
12379         respectively.
12380         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12381         generally different variants of OpenACC Runtime Library functions.
12382         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12384         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12385         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12387         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12388         of preprocessor definitions.
12389         * libgomp.h (strong_alias): Guard by "#ifdef
12390         HAVE_ATTRIBUTE_ALIAS".
12391         * oacc-mem.c: Provide "acc_pcreate" as alias for
12392         "acc_present_or_create", and "acc_pcopyin" as alias for
12393         "acc_present_or_copyin".
12394         * libgomp.map: New version "OACC_2.0.1".
12395         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12396         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12397         its content into...
12398         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12399         Extend testing.
12401         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12402         when disabling nvptx offloading.
12404 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
12406         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12407         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12408         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12410         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12411         * testsuite/lib/libgomp.exp
12412         (check_effective_target_openacc_nvidia_accel_configured): New
12413         proc.
12414         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12415         (check_effective_target_c++): New procs.
12416         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12417         (check_effective_target_c++): Likewise.
12419 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
12421         PR middle-end/80809
12422         * testsuite/libgomp.c/pr80809-2.c: New test.
12423         * testsuite/libgomp.c/pr80809-3.c: New test.
12425         PR middle-end/80809
12426         * testsuite/libgomp.c/pr80809-1.c: New test.
12428         PR middle-end/80853
12429         * testsuite/libgomp.c/pr80853.c: New test.
12431 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
12433         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12434         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12435         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12436         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12437         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12439         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12440         Debug output for failure.
12442 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12444         * testsuite/lib/libgomp.exp: Load scanlang.exp.
12446 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
12448         PR bootstrap/80531
12449         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12450         bootstrap compare failures.
12452 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
12454         * testsuite/libgomp.c/target-36.c: New testcase.
12456 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
12458         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12459         instead of char.
12461 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
12463         PR libgomp/80394
12464         * testsuite/libgomp.c/pr80394.c: New test.
12466 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12468         PR libgomp/79876
12469         * config/posix/thread-stacksize.h: New file.
12470         * config/darwin/thread-stacksize.h: New file.
12471         * config/nvptx/thread-stacksize.h: New file.
12472         * env.c: Include thread-stacksize.h.
12473         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12474         instead of 0.  Call pthread_attr_setstacksize even if
12475         GOMP_DEFAULT_STACKSIZE is non-zero.
12477 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12479         * env.c (initialize_env): Initialize stacksize to 0.
12481 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
12483         PR c++/80029
12484         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12486 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
12488         PR c/79940
12489         * testsuite/libgomp.c/pr79940.c: New test.
12491 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12493         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12494         targets.
12495         Add __float128 options.
12497 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
12499         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12500         hppa*-*-* dg-skip-if directive.
12502 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
12504         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12505         dg-skip-if directive into a comment.
12507 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
12508             Chung-Lin Tang  <cltang@codesourcery.com>
12510         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12511         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12512         add additional case.
12513         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12514         "openacc_nvidia_accel_selected".
12515         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12516         Add num_workers(8) clause.
12518 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
12520         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12521         hppa*-*-*.
12522         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12523         include complex.h on hppa*-*-hpux*.
12524         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12526 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12528         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12530         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12531         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12532         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12533         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12534         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12535         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12536         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12537         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12538         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12539         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12541 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12543         * libgomp-plugin.h: #include <stdbool.h>.
12544         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12545         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12546         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12547         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12548         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12549         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12550         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12551         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12552         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12553         (GOMP_OFFLOAD_openacc_async_test)
12554         (GOMP_OFFLOAD_openacc_async_test_all)
12555         (GOMP_OFFLOAD_openacc_async_wait)
12556         (GOMP_OFFLOAD_openacc_async_wait_async)
12557         (GOMP_OFFLOAD_openacc_async_wait_all)
12558         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12559         (GOMP_OFFLOAD_openacc_async_set_async)
12560         (GOMP_OFFLOAD_openacc_create_thread_data)
12561         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12562         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12563         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12564         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12565         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12566         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12567         these.
12568         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12569         (GOMP_OFFLOAD_unload_image): Fix argument types.
12571 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12573         * testsuite/lib/libgomp.exp
12574         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12575         check_compile invocation.  Fix up removal of executable.  Drop
12576         bogus "2>&1" argument.
12578         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12579         directive.
12581 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12582             Martin Jambor  <mjambor@suse.cz>
12584         * plugin/hsa.h: Moved to top level include.
12585         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12587 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12589         PR other/79046
12590         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12591         of cat to get version from BASE-VER file.
12592         * testsuite/Makefile.in: Regenerated.
12594 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12596         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12597         for _WIN64.
12599 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12601         * plugin/hsa.h: Add GCC runtime library exception.
12602         * plugin/hsa_ext_finalize.h: Likewise.
12604         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12605         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12606         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12607         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12608         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12609         library to link ptx plugin against.
12610         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12611         (CUDA_CALLS): Define.
12612         (cuda_lib, cuda_lib_inited): New variables.
12613         (init_cuda_lib): New function.
12614         (CUDA_CALL_PREFIX): Define.
12615         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12616         (CUDA_CALL): Use FN instead of (FN).
12617         (CUDA_CALL_NOCHECK): Define.
12618         (cuda_error, fini_streams_for_device, select_stream_for_async,
12619         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12620         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12621         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12622         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12623         CUDA_CALL_NOCHECK.
12624         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12625         CUDA_CALL_NOCHECK.
12626         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12627         Use CUDA_CALL_NOCHECK.
12628         * plugin/cuda/cuda.h: New file.
12629         * config.h.in: Regenerated.
12630         * configure: Regenerated.
12632         PR other/79046
12633         * configure.ac: Add GCC_BASE_VER.
12634         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12635         get version from BASE-VER file.
12636         * testsuite/Makefile.in: Regenerated.
12637         * configure: Regenerated.
12638         * Makefile.in: Regenerated.
12640 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12642         PR libgomp/60670
12643         * Makefile.am: Make fincludedir multilib-aware.
12644         * Makefile.in: Regenerate.
12646 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12648         Update copyright years.
12650         * libgomp.texi: Bump @copying's copyright year.
12652 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12654         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12655         pthread_spinlock_t instead of gomp_mutex_t lock.
12656         (gomp_get_thread_pool): Likewise.
12657         (gomp_release_thread_pool): Likewise.
12658         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12659         Likewise.
12661 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12663         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12664         thread pool in case nthreads == 1.
12666 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12668         * config/nvptx/env.c: Delete.
12669         * icv.c: Move definitions of ICV variables back ...
12670         * env.c: ...here.  Do not compile environment-related functionality if
12671         LIBGOMP_OFFLOADED_ONLY is set.
12673 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12675         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12676         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12677         * configure: Regenerate.
12678         * config.h.in: Likewise.
12680 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12682         * Makefile.in: Regenerate with automake-1.11.6.
12683         * aclocal.m4: Likewise.
12684         * configure: Likewise.
12685         * testsuite/Makefile.in: Likewise.
12687 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12689         * config/nvptx/critical.c: Delete to use generic implementation.
12691 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12693         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12694         ../../affinity.c as fallback.
12695         * config/nvptx/affinity.c: Delete to use fallback implementation.
12697 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12698             Jakub Jelinek  <jakub@redhat.com>
12699             Dmitry Melnik  <dm@ispras.ru>
12701         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12702         * Makefile.in. Regenerate.
12703         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12704         (LIBGOMP_USE_PTHREADS): ...here; new define.
12705         * configure: Regenerate.
12706         * config.h.in: Likewise.
12707         * config/posix/affinity.c: Move to...
12708         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12709         interface by LIBGOMP_USE_PTHREADS. 
12710         * critical.c: Split out GOMP_atomic_{start,end} into...
12711         * atomic.c: ...here (new file).
12712         * env.c: Split out ICV definitions into...
12713         * icv.c: ...here (new file) and...
12714         * icv-device.c: ...here. New file.
12715         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12716         (gomp_destroy_lock_30): Ditto.
12717         (gomp_set_lock_30): Ditto.
12718         (gomp_unset_lock_30): Ditto.
12719         (gomp_test_lock_30): Ditto.
12720         (gomp_init_nest_lock_30): Ditto.
12721         (gomp_destroy_nest_lock_30): Ditto.
12722         (gomp_set_nest_lock_30): Ditto.
12723         (gomp_unset_nest_lock_30): Ditto.
12724         (gomp_test_nest_lock_30): Ditto.
12725         * lock.c: New.
12726         * config/nvptx/lock.c: New.
12727         * config/nvptx/bar.c: New.
12728         * config/nvptx/bar.h: New.
12729         * config/nvptx/doacross.h: New.
12730         * config/nvptx/error.c: New.
12731         * config/nvptx/icv-device.c: New.
12732         * config/nvptx/mutex.h: New.
12733         * config/nvptx/pool.h: New.
12734         * config/nvptx/proc.c: New.
12735         * config/nvptx/ptrlock.h: New.
12736         * config/nvptx/sem.h: New.
12737         * config/nvptx/simple-bar.h: New.
12738         * config/nvptx/target.c: New.
12739         * config/nvptx/task.c: New.
12740         * config/nvptx/team.c: New.
12741         * config/nvptx/time.c: New.
12742         * config/posix/simple-bar.h: New.
12743         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12744         (gomp_num_teams_var): Declare.
12745         (struct gomp_thread_pool): Change threads_dock member to
12746         gomp_simple_barrier_t.
12747         [__nvptx__] (gomp_thread): New implementation.
12748         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12749         (gomp_thread_destructor): Ditto.
12750         (gomp_init_thread_affinity): Ditto.
12751         * team.c: Guard uses of Pthreads-specific interfaces by
12752         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12753         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12754         * config/nvptx/alloc.c: Delete.
12755         * config/nvptx/barrier.c: Ditto.
12756         * config/nvptx/fortran.c: Ditto.
12757         * config/nvptx/iter.c: Ditto.
12758         * config/nvptx/iter_ull.c: Ditto.
12759         * config/nvptx/loop.c: Ditto.
12760         * config/nvptx/loop_ull.c: Ditto.
12761         * config/nvptx/ordered.c: Ditto.
12762         * config/nvptx/parallel.c: Ditto.
12763         * config/nvptx/priority_queue.c: Ditto.
12764         * config/nvptx/sections.c: Ditto.
12765         * config/nvptx/single.c: Ditto.
12766         * config/nvptx/splay-tree.c: Ditto.
12767         * config/nvptx/work.c: Ditto.
12768         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12769         -foffload=-lgfortran in addition to -lgfortran.
12770         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12771         * plugin/plugin-nvptx.c: Include <limits.h>.
12772         (struct targ_fn_descriptor): Add new fields.
12773         (struct ptx_device): Ditto.  Set them...
12774         (nvptx_open_device): ...here.
12775         (nvptx_adjust_launch_bounds): New.
12776         (nvptx_host2dev): Allow NULL 'nvthd'.
12777         (nvptx_dev2host): Ditto.
12778         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12779         (link_ptx): Adjust log sizes.
12780         (nvptx_host2dev): Allow NULL 'nvthd'.
12781         (nvptx_dev2host): Ditto.
12782         (nvptx_set_clocktick): New.  Use it...
12783         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12784         fields.
12785         (GOMP_OFFLOAD_dev2dev): New.
12786         (nvptx_adjust_launch_bounds): New.
12787         (nvptx_stacks_size): New.
12788         (nvptx_stacks_alloc): New.
12789         (nvptx_stacks_free): New.
12790         (GOMP_OFFLOAD_run): New.
12791         (GOMP_OFFLOAD_async_run): New (stub).
12793 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12795         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12796         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12797         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12799 2016-11-23  Martin Liska  <mliska@suse.cz>
12800             Martin Jambor  <mjambor@suse.cz>
12802         * plugin/hsa.h: New file.
12803         * plugin/hsa_ext_finalize.h: New file.
12804         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12805         header file unistd.h, and functions secure_getenv, __secure_getenv,
12806         getuid, geteuid, getgid and getegid.
12807         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12808         -D_GNU_SOURCE.
12809         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12810         Handle various cases of secure_getenv presence, add an implementation
12811         when we can test effective UID and GID.
12812         (struct hsa_runtime_fn_info): New structure.
12813         (hsa_runtime_fn_info hsa_fns): New variable.
12814         (hsa_runtime_lib): Likewise.
12815         (support_cpu_devices): Likewise.
12816         (init_enviroment_variables): Load newly introduced ENV
12817         variables.
12818         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12819         (hsa_fatal): Likewise.
12820         (DLSYM_FN): New macro.
12821         (init_hsa_runtime_functions): New function.
12822         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12823         structure.  Depending on environment, also allow CPU devices.
12824         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12825         (get_kernarg_memory_region): Likewise.
12826         (GOMP_OFFLOAD_init_device): Likewise.
12827         (destroy_hsa_program): Likewise.
12828         (init_basic_kernel_info): New function.
12829         (GOMP_OFFLOAD_load_image): Use it.
12830         (create_and_finalize_hsa_program): Call hsa run-time functions via
12831         hsa_fns structure.
12832         (create_single_kernel_dispatch): Likewise.
12833         (release_kernel_dispatch): Likewise.
12834         (init_single_kernel): Likewise.
12835         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12836         (get_group_size): New function.
12837         (run_kernel): Likewise.
12838         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12839         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12840         structure.
12841         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12842         * testsuite/libgomp-test-support.exp.in: Likewise.
12843         * Makefile.in: Regenerated.
12844         * aclocal.m4: Likewise.
12845         * config.h.in: Likewise.
12846         * configure: Likewise.
12847         * testsuite/Makefile.in: Likewise.
12849 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12850             Alexander Monakov  <amonakov@ispras.ru>
12852         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12853         mapping clauses to target constructs.
12854         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12856 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12858         * configure: Regenerate.
12860 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12862         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12863         * omp_lib.h.in (openmp_version): Likewise.
12864         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12865         of 201307.
12866         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12868         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12869         (fib_wrapper): Add map(from: x) clause.
12870         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12871         (e_53_2): Likewise.
12872         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12873         (accum): Add map(tmp) clause.
12874         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12875         (accum): Add map(tofrom: tmp) clause.
12876         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12877         (gramSchmidt): Likewise.
12878         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12879         map(tofrom: sum) clause.
12880         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12881         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12882         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12883         only allowed on the loop iterator.
12884         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12885         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12886         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12887         * testsuite/libgomp.fortran/doacross1.f90: New test.
12888         * testsuite/libgomp.fortran/doacross3.f90: New test.
12889         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12890         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12891         * testsuite/libgomp.fortran/doacross2.f90: New test.
12892         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12893         #pragma omp atomic read.
12894         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12895         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12897 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12898             Nathan Sidwell  <nathan@acm.org>
12900         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12901         to determine default geometry.
12902         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12903         dimension.
12905 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12907         * hashtab.h: Use standard GPLv3 with runtime exception
12908         boilerplate.
12910 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12912         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12913         size when allocating new thread.
12915 2016-09-14  Marek Polacek  <polacek@redhat.com>
12917         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12919 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12921         PR fortran/71014
12922         * testsuite/libgomp.fortran/pr71014.f90: New test.
12924 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12926         PR middle-end/70895
12927         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12928         firstprivate clauses.
12929         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12930         copy clauses.
12931         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12932         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12933         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12934         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12935         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12936         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12937         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12938         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12939         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12940         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12941         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12942         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12944 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12946         PR fortran/70598
12947         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12949 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12951         PR c++/58706
12952         * testsuite/libgomp.c++/pr58706.C: New test.
12954 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12956         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12957         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12958         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12959         Likewise.
12960         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12961         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12962         Likewise.
12963         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12965         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12966         test, and don't hardcode -O0.
12968 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12970         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12972 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12974         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12975         test.
12977 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12979         PR middle-end/71734
12980         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12981         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12983 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12985         PR fortran/71717
12986         * testsuite/libgomp.fortran/associate3.f90: New test.
12988 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12990         * testsuite/libgomp.c++/target-21.C: New test.
12992 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12994         * testsuite/libgomp.c++/target-20.C: New test.
12996 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12997             Cesar Philippidis  <cesar@codesourcery.com>
12999         PR middle-end/71373
13000         * libgomp.oacc-c/nested-function-1.c: New file.
13001         * libgomp.oacc-c/nested-function-2.c: Likewise.
13002         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13003         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13004         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13006 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13008         PR c/71381
13009         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13010         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13011         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13013 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
13015         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13016         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13018 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
13020         PR c/70688
13021         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13023 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13025         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13026         instead of invalid schedule(static, 0).
13027         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13029 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13031         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13032         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13033         parameter, use to set async stream around call to gomp_unmap_vars,
13034         call gomp_unmap_vars() with 'do_copyfrom' set to true.
13035         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13036         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13037         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13038         (event_add): Add int parameter, initialize 'val' field when
13039         adding new ptx_event struct.
13040         (nvptx_evec): Adjust event_add() call arguments.
13041         (nvptx_host2dev): Likewise.
13042         (nvptx_dev2host): Likewise.
13043         (nvptx_wait_async): Likewise.
13044         (nvptx_wait_all_async): Likewise.
13045         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13046         pass to event_add() call.
13047         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13048         parameter.
13049         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13050         call openacc.register_async_cleanup_func() hook.
13051         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13052         * target.c (gomp_copy_from_async): Delete function.
13053         (gomp_map_vars): Remove async_refcount.
13054         (gomp_unmap_vars): Likewise.
13055         (gomp_load_image_to_device): Likewise.
13056         (omp_target_associate_ptr): Likewise.
13057         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13058         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13059         (gomp_copy_from_async): Remove.
13061 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13063         * target.c (gomp_device_copy): New function.
13064         (gomp_copy_host2dev): Likewise.
13065         (gomp_copy_dev2host): Likewise.
13066         (gomp_free_device_memory): Likewise.
13067         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13068         (gomp_map_pointer): Likewise.
13069         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13070         NULL value from alloc_func plugin hook.
13071         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13072         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13073         (gomp_unmap_vars): Likewise.
13074         (gomp_update): Adjust to call gomp_copy_dev2host and
13075         gomp_copy_host2dev functions.
13076         (gomp_unload_image_from_device): Handle false value from
13077         unload_image_func plugin hook.
13078         (gomp_init_device): Handle false value from init_device_func
13079         plugin hook.
13080         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13081         (omp_target_free): Adjust to call gomp_free_device_memory.
13082         (omp_target_memcpy): Handle return values from host2dev_func,
13083         dev2host_func, and dev2dev_func plugin hooks.
13084         (omp_target_memcpy_rect_worker): Likewise.
13085         (gomp_target_fini): Handle false value from fini_device_func
13086         plugin hook.
13087         * libgomp.h (struct gomp_device_descr): Adjust return type of
13088         init_device_func, fini_device_func, unload_image_func, free_func,
13089         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13090         * oacc-init.c (acc_shutdown_1): Handle false value from
13091         fini_device_func plugin hook.
13092         * oacc-host.c (host_init_device): Change return type to bool.
13093         (host_fini_device): Likewise.
13094         (host_unload_image): Likewise.
13095         (host_free): Likewise.
13096         (host_dev2host): Likewise.
13097         (host_host2dev): Likewise.
13098         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13099         (acc_memcpy_to_device): Likewise.
13100         (acc_memcpy_from_device): Likewise.
13101         (delete_copyout): Add libfnname parameter, handle free_func
13102         hook fatal error case.
13103         (acc_delete): Adjust delete_copyout call.
13104         (acc_copyout): Likewise.
13105         (update_dev_host): Move gomp_mutex_unlock to after
13106         host2dev/dev2host hook calls.
13108         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13109         to 'hsa_error_msg', for clarity.
13110         (hsa_fatal): Likewise.
13111         (hsa_error): New function.
13112         (init_hsa_context): Change return type to bool, adjust to return
13113         false on error.
13114         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13115         return value.
13116         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13117         return false on error.
13118         (get_agent_info): Adjust to return NULL on error.
13119         (destroy_hsa_program): Change return type to bool, adjust to
13120         return false on error.
13121         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13122         (destroy_module): Change return type to bool, adjust to
13123         return false on error.
13124         (GOMP_OFFLOAD_unload_image): Likewise.
13125         (GOMP_OFFLOAD_fini_device): Likewise.
13126         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13127         (GOMP_OFFLOAD_free): Change to return false when called.
13128         (GOMP_OFFLOAD_dev2host): Likewise.
13129         (GOMP_OFFLOAD_host2dev): Likewise.
13130         (GOMP_OFFLOAD_dev2dev): Likewise.
13132         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13133         (CUDA_CALL): Likewise.
13134         (CUDA_CALL_ASSERT): Likewise.
13135         (map_init): Change return type to bool, use CUDA_CALL* macros.
13136         (map_fini): Likewise.
13137         (init_streams_for_device): Change return type to bool, adjust
13138         call to map_init.
13139         (fini_streams_for_device): Change return type to bool, adjust
13140         call to map_fini.
13141         (select_stream_for_async): Release stream_lock before calls to
13142         GOMP_PLUGIN_fatal, adjust call to map_init.
13143         (nvptx_init): Use CUDA_CALL* macros.
13144         (nvptx_attach_host_thread_to_device): Change return type to bool,
13145         use CUDA_CALL* macros.
13146         (nvptx_open_device): Use CUDA_CALL* macros.
13147         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13148         macros.
13149         (nvptx_get_num_devices): Use CUDA_CALL* macros.
13150         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13151         (nvptx_exec): Use CUDA_CALL* macros.
13152         (nvptx_alloc): Use CUDA_CALL* macros.
13153         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13154         (nvptx_host2dev): Likewise.
13155         (nvptx_dev2host): Likewise.
13156         (nvptx_wait): Use CUDA_CALL* macros.
13157         (nvptx_wait_async): Likewise.
13158         (nvptx_wait_all): Likewise.
13159         (nvptx_wait_all_async): Likewise.
13160         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13161         use CUDA_CALL* macros, adjust call to map_fini.
13162         (GOMP_OFFLOAD_init_device): Change return type to bool,
13163         adjust code accordingly.
13164         (GOMP_OFFLOAD_fini_device): Likewise.
13165         (GOMP_OFFLOAD_load_image): Adjust calls to
13166         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13167         use CUDA_CALL* macros.
13168         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13169         return code.
13170         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13171         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13172         handle error return.
13173         (GOMP_OFFLOAD_dev2host): Likewise.
13174         (GOMP_OFFLOAD_host2dev): Likewise.
13175         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13176         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13178 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13180         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13181         (acc_free): Likewise.
13182         (acc_memcpy_to_device): Likewise.
13183         (acc_memcpy_from_device): Likewise.
13184         (acc_deviceptr): Likewise.
13185         (acc_hostptr): Likewise.
13186         (acc_is_present): Likewise.
13187         (acc_map_data): Likewise.
13188         (acc_unmap_data): Likewise.
13189         (present_create_copy): Likewise.
13190         (delete_copyout): Likewise.
13191         (update_dev_host): Likewise.
13192         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13193         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13194         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13195         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13196         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13197         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13198         it only runs on nvptx targets.
13199         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13200         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13201         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13202         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13203         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13204         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13205         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13206         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13207         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13208         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13209         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13210         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13211         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13212         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13213         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13214         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13215         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13216         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13217         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13218         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13219         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13220         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13221         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13223 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13225         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13227 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
13229         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13230         to gomp_init_targets_once.
13231         (acc_set_device_type): Remove !cached_base_dev condition on call to
13232         gomp_init_targets_once, move call to before acc_device_lock acquire,
13233         to avoid deadlock.
13234         (acc_get_device_num): Remove !cached_base_dev condition on call to
13235         gomp_init_targets_once.
13236         (acc_set_device_num): Likewise.
13238 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13240         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13242 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
13244         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13245         expected partitioning.
13247 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
13249         PR middle-end/70626
13250         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13251         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13252         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13254 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
13256         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13257         non-fatal.
13259 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
13261         PR middle-end/70680
13262         * testsuite/libgomp.c/pr70680-1.c: New test.
13263         * testsuite/libgomp.c/pr70680-2.c: New test.
13265 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13267         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13268         pass parameter variables to subroutines.
13270 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13272         PR middle-end/70643
13273         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13275 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
13277         PR testsuite/68242
13278         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13279         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13281 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
13283         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13284         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13285         GOACC_declare prototype.
13287         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13288         Merge this file, and...
13289         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13290         ... this file, and...
13291         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13292         ... this file, and...
13293         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13294         ... this file, and...
13295         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13296         ... this file, and...
13297         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13298         ... this file, and...
13299         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13300         ... this file, and...
13301         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13302         ... this file, and...
13303         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13304         ... this file, and...
13305         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13306         ... this file, and...
13307         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13308         ... this file, and...
13309         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13310         ... this file, and...
13311         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13312         ... this file into...
13313         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13314         file.
13316         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13317         Make failure observable.
13319 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
13321         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13322         field.
13323         * target.c (gomp_target_fallback_firstprivate,
13324         gomp_target_unshare_firstprivate): Removed.
13325         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13326         before waiting for dependencies.
13327         (gomp_target_task_fn): Don't copy firstprivate vars here.
13328         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13329         firstprivate_copies here.
13330         (gomp_create_target_task): Don't initialize firstprivate_copies field.
13331         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13332         explicit/implicit firstprivate.
13334 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
13336         PR lto/70289
13337         PR ipa/70348
13338         PR tree-optimization/70373
13339         PR middle-end/70533
13340         PR middle-end/70534
13341         PR middle-end/70535
13342         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13343         test.
13344         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13345         test.
13346         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13347         test.
13348         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13349         test.
13350         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13351         test.
13352         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13353         test.
13354         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13355         test.
13356         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13357         test.
13358         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13359         test.
13360         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13361         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13362         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13363         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13364         test.
13365         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13366         test.
13367         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13368         test.
13369         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13370         test.
13371         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13372         coverage.
13373         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13374         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13375         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13376         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13377         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13378         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13379         coverage.
13380         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13381         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13382         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13383         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13384         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13385         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13386         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13387         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13388         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13389         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13390         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13391         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13392         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13393         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13394         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13396 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
13397             James Norris  <jnorris@codesourcery.com>
13398             Nathan Sidwell  <nathan@codesourcery.com>
13399             Julian Brown  <julian@codesourcery.com>
13400             Cesar Philippidis  <cesar@codesourcery.com>
13401             Chung-Lin Tang  <cltang@codesourcery.com>
13402             Tom de Vries  <tom@codesourcery.com>
13404         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13405         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13406         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13407         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13408         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13409         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13410         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13411         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13412         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13413         XFAIL.
13414         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13415         Incorporate...
13416         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13417         file.
13418         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13419         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13420         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13421         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13422         Likewise.
13423         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13424         Likewise.
13425         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13426         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13427         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13428         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13429         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13430         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13431         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13432         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13433         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13434         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13435         Likewise.
13436         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13437         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13438         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13439         file...
13440         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13441         file into...
13442         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13443         file.  Update.
13444         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13445         file.
13446         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13447         Likewise.
13448         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13449         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13450         ... this new file.  Update.
13451         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13452         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13453         ... this new file.  Update.
13454         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13455         file.  Incorporate...
13456         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13457         file, and...
13458         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13459         file, and...
13460         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13461         file.
13462         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13464 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13466         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13467         set-torture-options.
13469 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
13471         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13472         gcc-dg-runtest.
13473         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13474         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13475         -fno-builtin-acc_on_device instead of -O0.
13476         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13477         -O0.
13478         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13479         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13480         Likewise.
13481         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13482         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13483         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13484         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13485         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13486         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13487         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13488         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13489         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13490         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13491         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13492         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13493         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13494         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13495         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13496         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13497         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13498         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13499         Don't specify -O2.
13500         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13501         Likewise.
13502         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13503         Likewise.
13505 2016-03-24  Martin Liska  <mliska@suse.cz>
13507         * plugin/plugin-hsa.c (packet_store_release): New function
13508         that is taken from the HSA runtime manual.
13509         (GOMP_OFFLOAD_run): Use the function.
13511 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13513         PR c++/70376
13514         * testsuite/libgomp.c++/pr70376.C: New test.
13516 2016-03-23  Tom de Vries  <tom@codesourcery.com>
13518         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13519         initialization of lresult and lvresult.
13520         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13522 2016-03-23  James Norris  <jnorris@codesourcery.com>
13523             Daichi Fukuoka <dc-fukuoka@sgi.com>
13525         PR libgomp/69414
13526         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13527         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13528         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13529         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13531 2016-03-23  Martin Liska  <mliska@suse.cz>
13533         PR hsa/70337
13534         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13535         argument just in case a dispatched kernel uses that argument.
13537 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13539         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13540         -ftree-parallelize-loops/-fopenacc changes.
13541         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13542         Likewise.
13543         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13544         Likewise.
13545         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13546         Likewise.
13547         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13548         Likewise.
13549         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13550         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13552 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13554         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13555         always_ld_library_path the path to libgcc_s.
13557 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13559         PR testsuite/70009
13560         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13562 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13564         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13565         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13566         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13567         Same.
13568         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13569         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13570         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13571         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13573 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13575         * testsuite/lib/libgomp.exp
13576         (check_effective_target_hsa_offloading_selected_nocache): New.
13577         (check_effective_target_hsa_offloading_selected): Likewise.
13578         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13579         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13580         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13581         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13582         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13583         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13584         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13585         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13586         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13587         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13588         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13589         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13590         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13591         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13592         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13593         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13594         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13596 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13598         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13599         non-shared memory accelerators.
13600         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13601         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13602         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13603         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13604         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13605         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13606         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13607         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13608         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13610 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13612         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13613         ALWAYS_CFLAGS.
13615 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13617         PR libgomp/69555
13618         * testsuite/libgomp.c++/pr69555-1.C: New test.
13619         * testsuite/libgomp.c++/pr69555-2.C: New test.
13621 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13622             Martin Jambor  <mjambor@suse.cz>
13624         * testsuite/lib/libgomp.exp
13625         (check_effective_target_offload_device_shared_as): New proc.
13626         * testsuite/libgomp.c++/declare_target-1.C: New test.
13628 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13630         PR driver/68463
13631         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13633 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13635         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13636         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13637         dims.
13638         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13639         -ftree-parallelize-loops/-fopenacc changes.
13640         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13641         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13642         Likewise.
13643         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13644         Likewise.
13645         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13646         Likewise.
13647         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13648         Likewise.
13649         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13650         Likewise.
13651         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13652         Likewise.
13653         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13654         Likewise.
13655         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13656         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13657         Likewise.
13658         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13659         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13660         Likewise.
13661         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13662         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13663         Likewise.
13665 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13667         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13669 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13671         PR driver/69805
13672         * testsuite/libgomp.c/pr69805.c: New test.
13674 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13676         PR lto/67709
13677         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13679 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13681         PR tree-optimization/69599
13682         * testsuite/libgomp.c/omp-nested-3.c: New test.
13683         * testsuite/libgomp.c/pr46032-2.c: New test.
13684         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13685         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13687 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13689         PR lto/69707
13690         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13692 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13694         * testsuite/libgomp.c/target-31.c: Fix testcase.
13696 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13698         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13699         clause.
13700         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13701         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13702         reduction and map clauses.
13703         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13705 2016-02-02  James Norris  <jnorris@codesourcery.com>
13707         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13709 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13711         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13712         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13714         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13715         cases.
13717         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13718         variables.
13719         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13720         (hsa_kmt_lib): Set variables.
13721         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13722         always_ld_library_path.
13723         * Makefile.in: Regenerate.
13724         * configure: Likewise.
13725         * testsuite/Makefile.in: Likewise.
13727         * plugin/configfrag.ac (offload_additional_options)
13728         (offload_additional_lib_paths): Don't amend for hsa offloading.
13729         * configure: Regenerate.
13731         * plugin/configfrag.ac: Don't configure for offloading target if
13732         we don't build the corresponding plugin.
13733         * configure: Regenerate.
13735 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13737         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13738         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13740 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13742         PR tree-optimization/69110
13743         * testsuite/libgomp.c/pr69110.c: New test.
13745 2016-01-25  Richard Biener  <rguenther@suse.de>
13747         PR lto/69393
13748         * testsuite/libgomp.c++/pr69393.C: New testcase.
13750 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13752         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13753         function wasn't mapped to the device with non-shared memory.
13755 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13757         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13759 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13760             Martin Liska  <mliska@suse.cz>
13762         * plugin/Makefrag.am: Add HSA plugin requirements.
13763         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13764         (HSA_RUNTIME_LIB): Likewise.
13765         (HSA_RUNTIME_CPPFLAGS): Likewise.
13766         (HSA_RUNTIME_INCLUDE): New substitution.
13767         (HSA_RUNTIME_LIB): Likewise.
13768         (HSA_RUNTIME_LDFLAGS): Likewise.
13769         (hsa-runtime): New configure option.
13770         (hsa-runtime-include): Likewise.
13771         (hsa-runtime-lib): Likewise.
13772         (PLUGIN_HSA): New substitution variable.
13773         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13774         configure options.
13775         (PLUGIN_HSA_CPPFLAGS): Likewise.
13776         (PLUGIN_HSA_LDFLAGS): Likewise.
13777         (PLUGIN_HSA_LIBS): Likewise.
13778         Check that we have access to HSA run-time.
13779         * libgomp-plugin.h (offload_target_type): New element
13780         OFFLOAD_TARGET_TYPE_HSA.
13781         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13782         args.
13783         (bool gomp_create_target_task): Updated.
13784         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13785         new field can_run_func.
13786         * libgomp_g.h (GOMP_target_ext): Update prototype.
13787         * oacc-host.c (host_run): Added a new parameter args.
13788         * target.c (calculate_firstprivate_requirements): New function.
13789         (copy_firstprivate_data): Likewise.
13790         (gomp_target_fallback_firstprivate): Use them.
13791         (gomp_target_unshare_firstprivate): New function.
13792         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13793         devices.
13794         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13795         pass any args to plugins.
13796         (GOMP_target_ext): Introduce device-specific argument parameter args.
13797         Allow host fallback if device shares memory.  Do not remap data if
13798         device has shared memory.
13799         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13800         like host fallback for mappings.
13801         (GOMP_target_data): Treat shared memory devices like host fallback.
13802         (GOMP_target_data_ext): Likewise.
13803         (GOMP_target_update): Likewise.
13804         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13805         gomp_create_target_task.
13806         (GOMP_target_enter_exit_data): Likewise.
13807         (omp_target_alloc): Treat shared memory devices like host fallback.
13808         (omp_target_free): Likewise.
13809         (omp_target_is_present): Likewise.
13810         (omp_target_memcpy): Likewise.
13811         (omp_target_memcpy_rect): Likewise.
13812         (omp_target_associate_ptr): Likewise.
13813         (gomp_load_plugin_for_device): Also load can_run.
13814         * task.c (GOMP_PLUGIN_target_task_completion): Free
13815         firstprivate_copies.
13816         (gomp_create_target_task): Accept new argument args and store it to
13817         ttask.
13818         * plugin/plugin-hsa.c: New file.
13820 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13822         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13823         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13824         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13825         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13826         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13827         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13828         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13829         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13830         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13831         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13832         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13833         Same.
13834         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13835         Same.
13836         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13837         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13838         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13839         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13840         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13841         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13842         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13843         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13844         Same.
13845         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13847 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13849         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13851 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13853         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13855 2016-01-12  James Norris  <jnorris@codesourcery.com>
13857         * libgomp.texi: Updates for OpenACC.
13859 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13861         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13863 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13865         PR fortran/66680
13866         * testsuite/libgomp.fortran/pr66680.f90: New test.
13868 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13870         PR middle-end/68960
13871         * testsuite/libgomp.c/pr68960.c: New test.
13873 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13875         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13876         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13878 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13880         Update copyright years.
13882         * libgomp.texi: Bump @copying's copyright year.
13884 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13886         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13887         dg-additional-options syntax.
13888         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13889         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13890         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13891         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13892         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13893         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13894         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13895         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13896         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13897         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13898         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13899         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13900         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13901         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13902         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13903         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13904         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13905         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13907 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13909         * libgomp.h (REFCOUNT_LINK): Define.
13910         (struct splay_tree_key_s): Add link_key.
13911         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13912         Replace target address of the pointer with target address of newly
13913         mapped object in the splay tree.  Set link pointer on target to the
13914         device address of the mapped object.
13915         (gomp_unmap_vars): Restore target address of the pointer in the splay
13916         tree for REFCOUNT_LINK objects after unmapping.
13917         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13918         declare target link" objects.
13919         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13920         "omp declare target link" objects, which were mapped for the image.
13921         (gomp_exit_data): Restore target address of the pointer in the splay
13922         tree for REFCOUNT_LINK objects after unmapping.
13923         * testsuite/libgomp.c/target-link-1.c: New file.
13925 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13927         * libgomp.h (gomp_device_state): New enum.
13928         (struct gomp_device_descr): Replace is_initialized with state.
13929         (gomp_fini_device): Remove declaration.
13930         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13931         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13932         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13933         (acc_set_device_type): Use state instead of is_initialized.
13934         (acc_set_device_num): Likewise.
13935         * target.c (resolve_device): Use state instead of is_initialized.
13936         Do not initialize finalized device.
13937         (gomp_map_vars): Do nothing if device is finalized.
13938         (gomp_unmap_vars): Likewise.
13939         (gomp_update): Likewise.
13940         (GOMP_offload_register_ver): Use state instead of is_initialized.
13941         (GOMP_offload_unregister_ver): Likewise.
13942         (gomp_init_device): Likewise.
13943         (gomp_unload_device): Likewise.
13944         (gomp_fini_device): Remove.
13945         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13946         (GOMP_target): Go to host fallback if device is finalized.
13947         (GOMP_target_ext): Likewise.
13948         (gomp_exit_data): Do nothing if device is finalized.
13949         (gomp_target_task_fn): Go to host fallback if device is finalized.
13950         (gomp_target_fini): New static function.
13951         (gomp_target_init): Use state instead of is_initialized.
13952         Call gomp_target_fini at exit.
13954 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13956         PR tree-optimization/68716
13957         * testsuite/libgomp.c/omp-nested-2.c: New test.
13959 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13961         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13962         target openacc_nvidia_accel_selected.
13963         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13964         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13965         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13966         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13968 2015-12-01  Julian Brown  <julian@codesourcery.com>
13969             James Norris  <James_Norris@mentor.com>
13971         * oacc-parallel.c (GOACC_host_data): New function.
13972         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13973         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13974         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13975         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13976         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13977         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13978         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13980 2015-11-30  James Norris  <jnorris@codesourcery.com>
13981             Cesar Philippidis  <cesar@codesourcery.com>
13983         libgomp/
13984         * libgomp.oacc-fortran/routine-5.f90: New test.
13985         * libgomp.oacc-fortran/routine-7.f90: New test.
13986         * libgomp.oacc-fortran/routine-9.f90: New test.
13988 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13990         PR tree-optimization/46032
13991         * testsuite/libgomp.c/pr46032.c: New test.
13993 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13995         PR libgomp/68579
13996         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13997         (gomp_create_target_task): Call it before freeing
13998         GOMP_TARGET_TASK_DATA tasks.
14000         PR c/63326
14001         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14002         in between case label and OpenMP standalone directives.
14003         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14005 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
14007         * configure: Regenerate.
14009 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
14011         * testsuite/libgomp.c/target-35.c: New test.
14013 2015-11-22  James Norris  <jnorris@codesourcery.com>
14014             Cesar Philippidis  <cesar@codesourcery.com>
14016         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14017         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14018         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14019         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14020         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14022 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
14024         PR middle-end/68221
14025         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14026         * testsuite/libgomp.c/reduction-12.c: Likewise.
14027         * testsuite/libgomp.c++/reduction-11.C: Likewise.
14028         * testsuite/libgomp.c++/reduction-12.C: Likewise.
14030 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
14032         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14033         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14034         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14035         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14036         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14037         and fix.
14038         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14039         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14041 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
14043         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14044         worker & gang cases.
14045         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14047 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
14049         * config/nvptx/priority_queue.c: New file.
14051 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14053         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14054         sections.
14056 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
14057             Aldy Hernandez  <aldyh@redhat.com>
14058             Ilya Verbin  <ilya.verbin@intel.com>
14060         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14061         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14062         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14063         iterators or IV by chunk size.
14064         * parallel.c (gomp_resolve_num_threads): Don't assume that
14065         if thr->ts.team is non-NULL, then pool must be non-NULL.
14066         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14067         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14068         GOMP_PLUGIN_target_task_completion.
14069         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14070         * Makefile.in: Regenerate.
14071         * libgomp.h: Shuffle prototypes and forward definitions around so
14072         priority queues can be defined.
14073         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14074         (enum gomp_target_task_state): New enum.
14075         (struct gomp_target_task): Add state, tgt, task and team fields.
14076         (gomp_create_target_task): Change return type to bool, add
14077         state argument.
14078         (gomp_target_task_fn): Change return type to bool.
14079         (struct gomp_device_descr): Add async_run_func.
14080         (struct gomp_task): Remove children, next_child, prev_child,
14081         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14082         Add pnode field.
14083         (struct gomp_taskgroup): Remove children.
14084         Add taskgroup_queue.
14085         (struct gomp_team): Change task_queue type to a priority queue.
14086         (splay_compare): Define inline.
14087         (priority_queue_offset): New.
14088         (priority_node_to_task): New.
14089         (task_to_priority_node): New.
14090         * oacc-mem.c: Do not include splay-tree.h.
14091         * priority_queue.c: New file.
14092         * priority_queue.h: New file.
14093         * splay-tree.c: Do not include splay-tree.h.
14094         (splay_tree_foreach_internal): New.
14095         (splay_tree_foreach): New.
14096         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14097         (splay_tree_callback): Define typedef.
14098         * target.c (splay_compare): Move to libgomp.h.
14099         (GOMP_target): Don't adjust *thr in any way around running offloaded
14100         task.
14101         (GOMP_target_ext): Likewise.  Handle target nowait.
14102         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14103         return value from gomp_create_target_task, if false, fallthrough
14104         as if no dependencies exist.
14105         (gomp_target_task_fn): Change return type to bool, return true
14106         if the task should have another part scheduled later.  Handle
14107         target nowait.
14108         (gomp_load_plugin_for_device): Initialize async_run.
14109         * task.c (gomp_init_task): Initialize children_queue.
14110         (gomp_clear_parent_in_list): New.
14111         (gomp_clear_parent_in_tree): New.
14112         (gomp_clear_parent): Handle priorities.
14113         (GOMP_task): Likewise.
14114         (priority_queue_move_task_first,
14115         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14116         New functions.
14117         (gomp_create_target_task): Use priority queues.  Change return type
14118         to bool, add state argument, return false if for async
14119         {{enter,exit} data,update} constructs no dependencies need to be
14120         waited for, handle target nowait.  Set task->fn to NULL instead of
14121         gomp_target_task_fn.
14122         (verify_children_queue): Remove.
14123         (priority_list_upgrade_task): New.
14124         (priority_queue_upgrade_task): New.
14125         (verify_task_queue): Remove.
14126         (priority_list_downgrade_task): New.
14127         (priority_queue_downgrade_task): New.
14128         (gomp_task_run_pre): Use priority queues.
14129         Abstract code out to priority_queue_downgrade_task.
14130         (gomp_task_run_post_handle_dependers): Use priority queues.
14131         (gomp_task_run_post_remove_parent): Likewise.
14132         (gomp_task_run_post_remove_taskgroup): Likewise.
14133         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
14134         tasks specially.
14135         (GOMP_taskwait): Likewise.
14136         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
14137         priority-queue_upgrade_task.
14138         (GOMP_taskgroup_start): Use priority queues.
14139         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
14140         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
14141         barrier.
14142         * taskloop.c (GOMP_taskloop): Handle priorities.
14143         * team.c (gomp_new_team): Call priority_queue_init.
14144         (free_team): Call priority_queue_free.
14145         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14146         team created for target nowait in implicit parallel region.
14147         (gomp_team_start): For nested check, test thr->ts.level instead of
14148         thr->ts.team != NULL.
14149         * testsuite/libgomp.c/doacross-3.c: New test.
14150         * testsuite/libgomp.c/ordered-5.c: New test.
14151         * testsuite/libgomp.c/priority.c: New test.
14152         * testsuite/libgomp.c/target-31.c: New test.
14153         * testsuite/libgomp.c/target-32.c: New test.
14154         * testsuite/libgomp.c/target-33.c: New test.
14155         * testsuite/libgomp.c/target-34.c: New test.
14157 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14159         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14161         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14162         loop is sequential.
14164 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14166         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14167         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14169 2015-11-12  James Norris  <jnorris@codesourcery.com>
14170             Joseph Myers  <joseph@codesourcery.com>
14172         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14173         * oacc-parallel.c (GOACC_declare): New function.
14174         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14175         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14176         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14177         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14178         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14180 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
14182         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14184 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
14186         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14187         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14189 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14191         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14192         inadvertent commit.
14194 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14196         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14197         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14198         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14199         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14200         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14202 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
14204         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14205         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14207 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
14208             Ilya Verbin  <ilya.verbin@intel.com>
14210         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14211         GOMP_loop_nonmonotonic_dynamic_start,
14212         GOMP_loop_nonmonotonic_guided_next,
14213         GOMP_loop_nonmonotonic_guided_start,
14214         GOMP_loop_ull_nonmonotonic_dynamic_next,
14215         GOMP_loop_ull_nonmonotonic_dynamic_start,
14216         GOMP_loop_ull_nonmonotonic_guided_next,
14217         GOMP_loop_ull_nonmonotonic_guided_start,
14218         GOMP_parallel_loop_nonmonotonic_dynamic,
14219         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14220         (GOMP_target_41): Renamed to ...
14221         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14222         arguments.
14223         (GOMP_target_data_41): Renamed to ...
14224         (GOMP_target_data_ext): ... this.
14225         (GOMP_target_update_41): Renamed to ...
14226         (GOMP_target_update_ext): ... this.
14227         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14228         GOMP_target_data_ext and GOMP_target_update_ext instead of
14229         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14230         Export GOMP_loop_nonmonotonic_dynamic_next,
14231         GOMP_loop_nonmonotonic_dynamic_start,
14232         GOMP_loop_nonmonotonic_guided_next,
14233         GOMP_loop_nonmonotonic_guided_start,
14234         GOMP_loop_ull_nonmonotonic_dynamic_next,
14235         GOMP_loop_ull_nonmonotonic_dynamic_start,
14236         GOMP_loop_ull_nonmonotonic_guided_next,
14237         GOMP_loop_ull_nonmonotonic_guided_start,
14238         GOMP_parallel_loop_nonmonotonic_dynamic and
14239         GOMP_parallel_loop_nonmonotonic_guided.
14240         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14241         GOMP_parallel_loop_nonmonotonic_guided,
14242         GOMP_loop_nonmonotonic_dynamic_start,
14243         GOMP_loop_nonmonotonic_guided_start,
14244         GOMP_loop_nonmonotonic_dynamic_next,
14245         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14246         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14247         GOMP_loop_ull_nonmonotonic_guided_start,
14248         GOMP_loop_ull_nonmonotonic_dynamic_next,
14249         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14250         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14251         functions.
14252         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
14253         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14254         Use gomp_map_val function.
14255         (gomp_target_fallback_firstprivate): New static function.
14256         (GOMP_target_41): Renamed to ...
14257         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14258         arguments.  Move firstprivate fallback handling into a new
14259         function.
14260         (GOMP_target_data_41): Renamed to ...
14261         (GOMP_target_data_ext): ... this.
14262         (GOMP_target_update_41): Renamed to ...
14263         (GOMP_target_update_ext): ... this.
14264         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14265         gomp_map_0len_lookup instead of gomp_map_lookup.
14266         (omp_target_is_present): Use gomp_map_0len_lookup instead of
14267         gomp_map_lookup.
14268         * testsuite/libgomp.c/target-28.c: Likewise.
14269         * testsuite/libgomp.c/monotonic-1.c: New test.
14270         * testsuite/libgomp.c/monotonic-2.c: New test.
14271         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14272         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14273         * testsuite/libgomp.c/pr66199-5.c: New test.
14274         * testsuite/libgomp.c/pr66199-6.c: New test.
14275         * testsuite/libgomp.c/pr66199-7.c: New test.
14276         * testsuite/libgomp.c/pr66199-8.c: New test.
14277         * testsuite/libgomp.c/pr66199-9.c: New test.
14278         * testsuite/libgomp.c/reduction-11.c: New test.
14279         * testsuite/libgomp.c/reduction-12.c: New test.
14280         * testsuite/libgomp.c/reduction-13.c: New test.
14281         * testsuite/libgomp.c/reduction-14.c: New test.
14282         * testsuite/libgomp.c/reduction-15.c: New test.
14283         * testsuite/libgomp.c/target-12.c (main): Adjust for
14284         omp_target_is_present change for one-past-last element.
14285         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14286         the same var is both mapped and privatized.
14287         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14288         handling of zero-length array sections.
14289         * testsuite/libgomp.c/target-28.c: New test.
14290         * testsuite/libgomp.c/target-29.c: New test.
14291         * testsuite/libgomp.c/target-30.c: New test.
14292         * testsuite/libgomp.c/target-teams-1.c: New test.
14293         * testsuite/libgomp.c++/member-6.C: New test.
14294         * testsuite/libgomp.c++/member-7.C: New test.
14295         * testsuite/libgomp.c++/monotonic-1.C: New test.
14296         * testsuite/libgomp.c++/monotonic-2.C: New test.
14297         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14298         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14299         * testsuite/libgomp.c++/pr66199-3.C: New test.
14300         * testsuite/libgomp.c++/pr66199-4.C: New test.
14301         * testsuite/libgomp.c++/pr66199-5.C: New test.
14302         * testsuite/libgomp.c++/pr66199-6.C: New test.
14303         * testsuite/libgomp.c++/pr66199-7.C: New test.
14304         * testsuite/libgomp.c++/pr66199-8.C: New test.
14305         * testsuite/libgomp.c++/pr66199-9.C: New test.
14306         * testsuite/libgomp.c++/reduction-11.C: New test.
14307         * testsuite/libgomp.c++/reduction-12.C: New test.
14308         * testsuite/libgomp.c++/target-13.C: New test.
14309         * testsuite/libgomp.c++/target-14.C: New test.
14310         * testsuite/libgomp.c++/target-15.C: New test.
14311         * testsuite/libgomp.c++/target-16.C: New test.
14312         * testsuite/libgomp.c++/target-17.C: New test.
14313         * testsuite/libgomp.c++/target-18.C: New test.
14314         * testsuite/libgomp.c++/target-19.C: New test.
14316 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14318         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14319         and reduction copy.
14320         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14321         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14322         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14323         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14324         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14325         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14326         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14327         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14328         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14329         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14330         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14331         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14332         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14333         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14335 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14337         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14338         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14339         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14340         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14341         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14342         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14343         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14344         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14346 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
14348         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14349         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14350         (GOMP_OFFLOAD_openacc_parallel): Likewise.
14351         * oacc-host.c (host_openacc_exec): Likewise.
14352         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14354 2015-11-03  Julian Brown  <julian@codesourcery.com>
14355             Thomas Schwinge  <thomas@codesourcery.com>
14357         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14358         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14359         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14360         Likewise.
14361         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14362         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14364 2015-11-03  James Norris  <jnorris@codesourcery.com>
14366         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14367         file.
14368         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14369         Likewise.
14370         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14371         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14372         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14373         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14374         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14376 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
14378         * openacc.h (enum acc_device_t): Reformat. Ensure layout
14379         compatibility.
14380         (enum acc_async_t): Reformat.
14381         (acc_on_device): Declare compatible with builtin and provide C++
14382         wrapper.
14383         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14385 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
14386             Cesar Philippidis  <cesar@codesourcery.com>
14388         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14389         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14390         ... this.  Add a description of the test at the top of the file.
14391         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14392         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14393         ... this.  Add a description of the test at the top of the file.
14395 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
14397         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14398         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14399         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14400         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14401         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14402         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14404 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
14406         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14407         dimensions.
14409 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
14411         PR testsuite/68063
14412         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14414 2015-10-27  James Norris  <jnorris@codesourcery.com>
14416         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14417         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14419 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
14421         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14422         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14424         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14425         acc_device_nvidia usage.
14426         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14427         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14428         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14430         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14431         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14433         PR libgomp/66518
14434         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14436         PR libgomp/65437
14437         PR libgomp/66518
14438         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14439         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14441 2015-10-23  Tom de Vries  <tom@codesourcery.com>
14443         PR testsuite/68063
14444         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14446 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
14448         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14449         vector_length.
14450         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14452 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
14453             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
14455         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14456         to 0 when mapnum is 0.
14458 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14460         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14461         Cast to int from int32_t.
14463 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
14464             Aldy Hernandez  <aldyh@redhat.com>
14465             Ilya Verbin  <ilya.verbin@intel.com>
14467         * config/linux/affinity.c (omp_get_place_num_procs,
14468         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14469         * config/linux/doacross.h: New file.
14470         * config/posix/affinity.c (omp_get_place_num_procs,
14471         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14472         * config/posix/doacross.h: New file.
14473         * env.c: Include gomp-constants.h.
14474         (struct gomp_task_icv): Rename run_sched_modifier to
14475         run_sched_chunk_size.
14476         (gomp_max_task_priority_var): New variable.
14477         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14478         (handle_omp_display_env): Change _OPENMP value from 201307 to
14479         201511.  Print OMP_MAX_TASK_PRIORITY.
14480         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14481         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14482         chunk_size and run_sched_modifier to run_sched_chunk_size.
14483         (omp_get_max_task_priority, omp_get_initial_device,
14484         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14485         omp_get_partition_place_nums): New functions.
14486         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14487         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14488         to chunk_size.
14489         (omp_get_num_places_, omp_get_place_num_procs_,
14490         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14491         omp_get_place_proc_ids_8_, omp_get_place_num_,
14492         omp_get_partition_num_places_, omp_get_partition_place_nums_,
14493         omp_get_partition_place_nums_8_, omp_get_initial_device_,
14494         omp_get_max_task_priority_): New functions.
14495         * libgomp_g.h (GOMP_loop_doacross_static_start,
14496         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14497         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14498         GOMP_loop_ull_doacross_dynamic_start,
14499         GOMP_loop_ull_doacross_guided_start,
14500         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14501         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14502         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14503         GOMP_target_data_41, GOMP_target_update_41,
14504         GOMP_target_enter_exit_data): New prototypes.
14505         (GOMP_task): Add prototype argument.
14506         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14507         (struct gomp_doacross_work_share): New type.
14508         (struct gomp_work_share): Add doacross field.
14509         (struct gomp_task_icv): Rename run_sched_modifier to
14510         run_sched_chunk_size.
14511         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14512         GOMP_TASK_UNDEFERRED.  Add comments.
14513         (struct gomp_task_depend_entry): Add comments.
14514         (struct gomp_task): Likewise.
14515         (struct gomp_taskgroup): Likewise.
14516         (struct gomp_target_task): New type.
14517         (struct gomp_team): Add comment.
14518         (gomp_get_place_proc_ids_8, gomp_doacross_init,
14519         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14520         gomp_create_target_task, gomp_target_task_fn): New prototypes.
14521         (struct target_var_desc): New type.
14522         (struct target_mem_desc): Adjust comment.  Use struct
14523         target_var_desc instead of splay_tree_key for list.
14524         (REFCOUNT_INFINITY): Define.
14525         (struct splay_tree_key_s): Remove copy_from field.
14526         (struct gomp_device_descr): Add dev2dev_func field.
14527         (enum gomp_map_vars_kind): New enum.
14528         (gomp_map_vars): Add one argument.
14529         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14530         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14531         omp_get_place_num_procs, omp_get_place_num_procs_,
14532         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14533         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14534         omp_get_place_num_, omp_get_partition_num_places,
14535         omp_get_partition_num_places_, omp_get_partition_place_nums,
14536         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14537         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14538         omp_target_free, omp_target_is_present, omp_target_memcpy,
14539         omp_target_memcpy_rect, omp_target_associate_ptr and
14540         omp_target_disassociate_ptr.
14541         (GOMP_4.0.2): Renamed to ...
14542         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14543         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14544         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14545         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14546         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14547         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14548         GOMP_loop_ull_doacross_guided_start,
14549         GOMP_loop_ull_doacross_runtime_start,
14550         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14551         GOMP_doacross_ull_wait.
14552         * libgomp.texi: Document omp_get_max_task_priority.
14553         Rename modifier argument to chunk_size for omp_set_schedule and
14554         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14555         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14556         to run_sched_chunk_size renaming.
14557         (GOMP_loop_ordered_runtime_start): Likewise.
14558         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14559         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14560         GOMP_parallel_loop_runtime_start): New functions.
14561         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14562         to run_sched_chunk_size renaming.
14563         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14564         GOMP_loop_doacross_guided_start): New functions or aliases.
14565         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14566         run_sched_modifier to run_sched_chunk_size renaming.
14567         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14568         (gomp_loop_ull_doacross_static_start,
14569         gomp_loop_ull_doacross_dynamic_start,
14570         gomp_loop_ull_doacross_guided_start,
14571         GOMP_loop_ull_doacross_runtime_start): New functions.
14572         (GOMP_loop_ull_doacross_static_start,
14573         GOMP_loop_ull_doacross_dynamic_start,
14574         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14575         * oacc-mem.c (acc_map_data, present_create_copy,
14576         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14577         to gomp_map_vars.
14578         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14579         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14580         instead of false to gomp_map_vars.
14581         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14582         * omp.h.in (omp_lock_hint_t): New type.
14583         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14584         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14585         omp_get_place_num, omp_get_partition_num_places,
14586         omp_get_partition_place_nums, omp_get_initial_device,
14587         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14588         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14589         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14590         prototypes.
14591         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14592         (omp_lock_hint_none, omp_lock_hint_uncontended,
14593         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14594         omp_lock_hint_speculative): New parameters.
14595         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14596         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14597         omp_get_place_num, omp_get_partition_num_places,
14598         omp_get_partition_place_nums, omp_get_initial_device,
14599         omp_get_max_task_priority): New interfaces.
14600         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14601         to chunk_size.
14602         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14603         (omp_lock_hint_none, omp_lock_hint_uncontended,
14604         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14605         omp_lock_hint_speculative): New parameters.
14606         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14607         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14608         omp_get_place_num, omp_get_partition_num_places,
14609         omp_get_partition_place_nums, omp_get_initial_device,
14610         omp_get_max_task_priority): New functions and subroutines.
14611         * ordered.c: Include stdarg.h and string.h.
14612         (MAX_COLLAPSED_BITS): Define.
14613         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14614         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14615         GOMP_doacross_ull_wait): New functions.
14616         * target.c: Include errno.h.
14617         (resolve_device): If device is not initialized, call
14618         gomp_init_device on it.
14619         (gomp_map_lookup): New function.
14620         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14621         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14622         GOMP_MAP_ALWAYS_TO_P.
14623         (get_kind): Rename is_openacc argument to short_mapkind.
14624         (gomp_map_pointer): Use gomp_map_lookup.
14625         (gomp_map_fields_existing): New function.
14626         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14627         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14628         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14629         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14630         Adjust for tgt->list changed type and copy_from living in there.
14631         (gomp_copy_from_async): Adjust for tgt->list changed type and
14632         copy_from living in there.
14633         (gomp_unmap_vars): Likewise.
14634         (gomp_update): Likewise.  Rename is_openacc argument to
14635         short_mapkind.  Don't fail if object is not mapped.
14636         (gomp_load_image_to_device): Initialize refcount to
14637         REFCOUNT_INFINITY.
14638         (gomp_target_fallback): New function.
14639         (gomp_get_target_fn_addr): Likewise.
14640         (GOMP_target): Adjust gomp_map_vars caller, use
14641         gomp_get_target_fn_addr and gomp_target_fallback.
14642         (GOMP_target_41): New function.
14643         (gomp_target_data_fallback): New function.
14644         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14645         (GOMP_target_data_41): New function.
14646         (GOMP_target_update): Adjust gomp_update caller.
14647         (GOMP_target_update_41): New function.
14648         (gomp_exit_data, GOMP_target_enter_exit_data,
14649         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14650         omp_target_is_present, omp_target_memcpy,
14651         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14652         omp_target_associate_ptr, omp_target_disassociate_ptr,
14653         gomp_load_plugin_for_device): New functions.
14654         * task.c: Include gomp-constants.h.  Include taskloop.c
14655         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14656         (gomp_task_handle_depend): New function.
14657         (GOMP_task): Use it.  Add priority argument.  Use
14658         gomp-constant.h constants instead of hardcoded numbers.
14659         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14660         (gomp_create_target_task): New function.
14661         (verify_children_queue, verify_taskgroup_queue,
14662         verify_task_queue): New functions.
14663         (gomp_task_run_pre): Call verify_*_queue functions.
14664         If an upcoming tied task is about to leave the sibling or
14665         taskgroup queues in an invalid state, adjust appropriately.
14666         Remove taskgroup argument.  Add comments.
14667         (gomp_task_run_post_handle_dependers): Add comments.
14668         (gomp_task_run_post_remove_parent): Likewise.
14669         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14670         (GOMP_taskwait): Likewise.  Add comments.
14671         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14672         problem such that the first non parent_depends_on task does not
14673         end up at the end of the children queue.
14674         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14675         GOMP_TASK_UNDEFERRED.
14676         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14677         * taskloop.c: New file.
14678         * testsuite/lib/libgomp.exp
14679         (check_effective_target_offload_device_nonshared_as): New proc.
14680         * testsuite/libgomp.c/affinity-2.c: New test.
14681         * testsuite/libgomp.c/doacross-1.c: New test.
14682         * testsuite/libgomp.c/doacross-2.c: New test.
14683         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14684         Add map clause to target.
14685         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14686         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14687         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14688         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14689         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14690         Likewise.
14691         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14692         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14693         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14694         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14695         not defined.  Use those where needed.
14696         * testsuite/libgomp.c/for-4.c: New test.
14697         * testsuite/libgomp.c/for-5.c: New test.
14698         * testsuite/libgomp.c/for-6.c: New test.
14699         * testsuite/libgomp.c/linear-1.c: New test.
14700         * testsuite/libgomp.c/ordered-4.c: New test.
14701         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14702         only allowed on the loop iterator.
14703         * testsuite/libgomp.c/pr66199-3.c: New test.
14704         * testsuite/libgomp.c/pr66199-4.c: New test.
14705         * testsuite/libgomp.c/reduction-7.c: New test.
14706         * testsuite/libgomp.c/reduction-8.c: New test.
14707         * testsuite/libgomp.c/reduction-9.c: New test.
14708         * testsuite/libgomp.c/reduction-10.c: New test.
14709         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14710         map(tofrom:s).
14711         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14712         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14713         * testsuite/libgomp.c/target-11.c: New test.
14714         * testsuite/libgomp.c/target-12.c: New test.
14715         * testsuite/libgomp.c/target-13.c: New test.
14716         * testsuite/libgomp.c/target-14.c: New test.
14717         * testsuite/libgomp.c/target-15.c: New test.
14718         * testsuite/libgomp.c/target-16.c: New test.
14719         * testsuite/libgomp.c/target-17.c: New test.
14720         * testsuite/libgomp.c/target-18.c: New test.
14721         * testsuite/libgomp.c/target-19.c: New test.
14722         * testsuite/libgomp.c/target-20.c: New test.
14723         * testsuite/libgomp.c/target-21.c: New test.
14724         * testsuite/libgomp.c/target-22.c: New test.
14725         * testsuite/libgomp.c/target-23.c: New test.
14726         * testsuite/libgomp.c/target-24.c: New test.
14727         * testsuite/libgomp.c/target-25.c: New test.
14728         * testsuite/libgomp.c/target-26.c: New test.
14729         * testsuite/libgomp.c/target-27.c: New test.
14730         * testsuite/libgomp.c/taskloop-1.c: New test.
14731         * testsuite/libgomp.c/taskloop-2.c: New test.
14732         * testsuite/libgomp.c/taskloop-3.c: New test.
14733         * testsuite/libgomp.c/taskloop-4.c: New test.
14734         * testsuite/libgomp.c++/ctor-13.C: New test.
14735         * testsuite/libgomp.c++/doacross-1.C: New test.
14736         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14737         Replace offload_device with offload_device_nonshared_as.
14738         * testsuite/libgomp.c++/for-12.C: New test.
14739         * testsuite/libgomp.c++/for-13.C: New test.
14740         * testsuite/libgomp.c++/for-14.C: New test.
14741         * testsuite/libgomp.c++/linear-1.C: New test.
14742         * testsuite/libgomp.c++/member-1.C: New test.
14743         * testsuite/libgomp.c++/member-2.C: New test.
14744         * testsuite/libgomp.c++/member-3.C: New test.
14745         * testsuite/libgomp.c++/member-4.C: New test.
14746         * testsuite/libgomp.c++/member-5.C: New test.
14747         * testsuite/libgomp.c++/ordered-1.C: New test.
14748         * testsuite/libgomp.c++/reduction-5.C: New test.
14749         * testsuite/libgomp.c++/reduction-6.C: New test.
14750         * testsuite/libgomp.c++/reduction-7.C: New test.
14751         * testsuite/libgomp.c++/reduction-8.C: New test.
14752         * testsuite/libgomp.c++/reduction-9.C: New test.
14753         * testsuite/libgomp.c++/reduction-10.C: New test.
14754         * testsuite/libgomp.c++/reference-1.C: New test.
14755         * testsuite/libgomp.c++/simd14.C: New test.
14756         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14757         * testsuite/libgomp.c++/target-5.C: New test.
14758         * testsuite/libgomp.c++/target-6.C: New test.
14759         * testsuite/libgomp.c++/target-7.C: New test.
14760         * testsuite/libgomp.c++/target-8.C: New test.
14761         * testsuite/libgomp.c++/target-9.C: New test.
14762         * testsuite/libgomp.c++/target-10.C: New test.
14763         * testsuite/libgomp.c++/target-11.C: New test.
14764         * testsuite/libgomp.c++/target-12.C: New test.
14765         * testsuite/libgomp.c++/taskloop-1.C: New test.
14766         * testsuite/libgomp.c++/taskloop-2.C: New test.
14767         * testsuite/libgomp.c++/taskloop-3.C: New test.
14768         * testsuite/libgomp.c++/taskloop-4.C: New test.
14769         * testsuite/libgomp.c++/taskloop-5.C: New test.
14770         * testsuite/libgomp.c++/taskloop-6.C: New test.
14771         * testsuite/libgomp.c++/taskloop-7.C: New test.
14772         * testsuite/libgomp.c++/taskloop-8.C: New test.
14773         * testsuite/libgomp.c++/taskloop-9.C: New test.
14774         * testsuite/libgomp.fortran/affinity1.f90: New test.
14775         * testsuite/libgomp.fortran/affinity2.f90: New test.
14777 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14779         PR tree-optimization/67476
14780         * testsuite/libgomp.c/autopar-3.c: New test.
14781         * testsuite/libgomp.c/autopar-4.c: New test.
14782         * testsuite/libgomp.c/autopar-5.c: New test.
14783         * testsuite/libgomp.c/autopar-6.c: New test.
14784         * testsuite/libgomp.c/autopar-7.c: New test.
14785         * testsuite/libgomp.c/autopar-8.c: New test.
14787 2015-10-12  James Norris  <jnorris@codesourcery.com>
14789         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14790         initializer.
14792 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14794         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14795         using load_gcc_lib.
14797 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14799         * oacc-ptx.h: Remove file, moving its content into...
14800         * config/nvptx/fortran.c: ... here...
14801         * config/nvptx/oacc-init.c: ..., here...
14802         * config/nvptx/oacc-parallel.c: ..., and here.
14803         * config/nvptx/openacc.f90: New file.
14804         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14805         (link_ptx): Don't link in predefined bits of PTX code.
14807 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14808             Bernd Schmidt <bernds@codesourcery.com>
14810         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14811         (struct targ_ptx_obj): New.
14812         (nvptx_tdata): Move earlier, change data format.
14813         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14814         objects.
14815         (GOMP_OFFLOAD_load_image): Adjust.
14817 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14819         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14820         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14821         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14822         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14823         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14824         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14825         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14826         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14827         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14828         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14829         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14830         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14831         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14832         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14833         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14834         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14835         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14836         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14837         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14838         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14839         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14840         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14841         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14842         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14843         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14844         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14845         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14846         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14847         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14848         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14849         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14850         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14851         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14852         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14853         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14854         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14855         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14856         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14857         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14858         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14859         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14860         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14861         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14862         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14863         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14864         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14865         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14866         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14867         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14868         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14869         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14870         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14871         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14872         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14873         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14874         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14875         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14876         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14877         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14878         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14879         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14880         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14881         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14883 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14885         * oacc-init.c (acc_on_device): Force optimization level.
14887 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14889         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14890         (cuda_errlist): Delete.
14891         (cuda_error): Reimplement.
14893 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14895         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14896         array.
14897         * libgomp.map (GOACC_parallel_keyed): New.
14898         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14899         all callers.
14900         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14901         and take keyed varargs list.  Adjust call to exec_func.
14902         (GOACC_parallel): Force host fallback.
14903         * libgomp_g.h (GOACC_parallel): Remove.
14904         (GOACC_parallel_keyed): Declare.
14905         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14906         (struct targ_gn_descriptor): Replace name field with launch field.
14907         (nvptx_exec): Lose separate geometry args, take array.  Process
14908         dynamic dimensions and adjust.
14909         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14910         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14911         data.
14912         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14913         passing.
14914         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14915         passing.
14917 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14919         PR libgomp/67141
14920         * oacc-int.h (goacc_host_init): Add declaration.
14921         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14922         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14924 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14925             Sebastian Pop  <s.pop@samsung.com>
14927         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14928         match o/p.
14929         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14930         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14931         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14932         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14933         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14935 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14937         * configure.tgt: Add missing ;; in between nvptx and rtems
14938         snippets.
14940 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14942         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14943         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14944         (gomp_thread_pool_reservoir): Add priority member.
14945         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14946         priority.
14947         (parse_thread_pools): Likewise.
14948         * team.c (gomp_team_start): Call configuration provided
14949         gomp_adjust_thread_attr(). Destroy thread attributes if
14950         necessary.
14951         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14953 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14955         * config/posix/pool.h: New.
14956         * config/rtems/pool.h: Likewise.
14957         * config/rtems/proc.c: Likewise.
14958         * libgomp.h (gomp_thread_destructor): Declare.
14959         * team.c: Include configuration provided "pool.h".
14960         (gomp_get_thread_pool): Define in configuration.
14961         (gomp_team_end): Call configuration defined
14962         gomp_release_thread_pool().
14964 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14966         * config/rtems/bar.c: New.
14967         * config/rtems/bar.h: Likewise.
14968         * config/rtems/mutex.c: Likewise.
14969         * config/rtems/mutex.h: Likewise.
14970         * config/rtems/sem.c: Likewise.
14971         * config/rtems/sem.h: Likewise.
14972         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14973         <sys/lock.h> header file.
14974         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14975         supported by Newlib.
14976         * configure: Regenerate.
14978 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14980         * team.c (gomp_new_thread_pool): Delete and move content to ...
14981         (gomp_get_thread_pool): ... new function.  Allocate and
14982         initialize thread pool on demand.
14983         (get_last_team): Use gomp_get_thread_pool().
14984         (gomp_team_start): Delete thread pool initialization.
14986 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14988         PR tree-optimization/65637
14989         * testsuite/libgomp.c/autopar-2.c: New test.
14991 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14993         PR tree-optimization/46193
14994         * testsuite/libgomp.c/pr46193.c: New test.
14996 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14998         libgomp/
14999         * libgomp.map: Add 4.0.2 version.
15000         * target.c (offload_image_descr): Add version field.
15001         (gomp_load_image_to_device): Add version argument.  Adjust plugin
15002         call.  Improve load mismatch diagnostic.
15003         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
15004         call.
15005         (GOMP_offload_regster): Make stub function, move bulk to ...
15006         (GOMP_offload_register_ver): ... here.  Process version argument.
15007         (GOMP_offload_unregister): Make stub function, move bulk to ...
15008         (GOMP_offload_unregister_ver): ... here.  Process version argument.
15009         (gomp_init_device): Process version field.
15010         (gomp_unload_device): Process version field.
15011         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15012         macros.  Check plugin version.
15013         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
15014         loader and unloader types.
15015         * oacc-host.c: Include gomp-constants.h.
15016         (host_version): New.
15017         (host_load_image, host_unload_image): Adjust.
15018         (host_dispatch): Add host_version.
15019         * plugin/plugin-nvptx.c: Include gomp-constants.h.
15020         (GOMP_OFFLOAD_version): New.
15021         (GOMP_OFFLOAD_load_image): Add version arg and check it.
15022         (GOMP_OFFLOAD_unload_image): Likewise.
15023         * plugin/plugin-host.c: Include gomp-constants.h.
15024         (GOMP_OFFLOAD_version): New.
15025         (GOMP_OFFLOAD_load_image): Add version arg.
15026         (GOMP_OFFLOAD_unload_image): Likewise.
15028 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15030         PR tree-optimization/65468
15031         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15033 2015-08-24  Tom de Vries  <tom@codesourcery.com>
15035         PR tree-optimization/65468
15036         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15038 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
15040         PR libgomp/66761
15041         PR libgomp/67303
15042         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15043         (gomp_iter_guided_next): Idem.
15044         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15045         (gomp_iter_ull_guided_next): Idem.
15046         * config/linux/wait.h (do_spin): Idem.
15048 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15050         * libgomp-plugin.h (enum offload_target_type): Remove
15051         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15052         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15053         * openacc.h (enum acc_device_t): Likewise.
15054         * openacc_lib.h: Likewise.
15055         * oacc-init.c (name_of_acc_device_t): Don't handle it.
15056         (acc_on_device): Just use __builtin_acc_on_device.
15057         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15058         of acc_on_device builtin.
15059         * plugin/plugin-host.h: Remove file.
15060         * plugin/plugin-host.c: Likewise, but salvage some content into...
15061         * oacc-host.c: ... this file.
15062         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15063         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15064         * Makefile.in: Regenerate.
15065         * configure: Likewise.
15066         * testsuite/lib/libgomp.exp
15067         (check_effective_target_openacc_host_nonshm_selected): Remove.
15068         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15069         ACC_DEVICE_TYPE=host_nonshm.
15070         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15071         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15072         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15073         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15074         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15075         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15077 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15078             Jakub Jelinek  <jakub@redhat.com>
15080         * config/nvptx/affinity.c: New file.
15081         * config/nvptx/alloc.c: Likewise.
15082         * config/nvptx/bar.c: Likewise.
15083         * config/nvptx/barrier.c: Likewise.
15084         * config/nvptx/critical.c: Likewise.
15085         * config/nvptx/env.c: Likewise.
15086         * config/nvptx/error.c: Likewise.
15087         * config/nvptx/fortran.c: Likewise.
15088         * config/nvptx/iter.c: Likewise.
15089         * config/nvptx/iter_ull.c: Likewise.
15090         * config/nvptx/libgomp-plugin.c: Likewise.
15091         * config/nvptx/lock.c: Likewise.
15092         * config/nvptx/loop.c: Likewise.
15093         * config/nvptx/loop_ull.c: Likewise.
15094         * config/nvptx/mutex.c: Likewise.
15095         * config/nvptx/oacc-async.c: Likewise.
15096         * config/nvptx/oacc-cuda.c: Likewise.
15097         * config/nvptx/oacc-host.c: Likewise.
15098         * config/nvptx/oacc-init.c: Likewise.
15099         * config/nvptx/oacc-mem.c: Likewise.
15100         * config/nvptx/oacc-parallel.c: Likewise.
15101         * config/nvptx/oacc-plugin.c: Likewise.
15102         * config/nvptx/omp-lock.h: Likewise.
15103         * config/nvptx/ordered.c: Likewise.
15104         * config/nvptx/parallel.c: Likewise.
15105         * config/nvptx/proc.c: Likewise.
15106         * config/nvptx/ptrlock.c: Likewise.
15107         * config/nvptx/sections.c: Likewise.
15108         * config/nvptx/sem.c: Likewise.
15109         * config/nvptx/single.c: Likewise.
15110         * config/nvptx/splay-tree.c: Likewise.
15111         * config/nvptx/target.c: Likewise.
15112         * config/nvptx/task.c: Likewise.
15113         * config/nvptx/team.c: Likewise.
15114         * config/nvptx/time.c: Likewise.
15115         * config/nvptx/work.c: Likewise.
15116         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15117         * configure: Regenerate.
15118         * configure.tgt (config_path): Set to "nvptx" for target
15119         nvptx*-*-*.
15121 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15123         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15125 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
15127         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15128         (cuda_errlist): Constify.
15129         (errmsg):  Move into ...
15130         (cuda_error): ... here.  Make smaller.
15131         (_XSTR, _STR): Delete.
15132         (cuda_synames): Delete.
15133         (verify_device_library): Delete.
15134         (nvptx_init): Don't call it.
15136 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15138         * testsuite/libgomp.c/uns-outer-4.c: New test.
15140 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15142         * testsuite/libgomp.c/pr66714.c: New test.
15144 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15146         PR libgomp/66950
15147         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15148         (fib_ref): New function.
15149         (fib): Correct corner cases in the recursion.
15150         (main): Replace the non-simd loop with fib_ref call.
15151         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15152         subroutine.
15153         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
15154         for the last array element value.  Replace the non-simd loop with
15155         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
15156         of the last array element with according Fibonacci sequence element.
15157         (fib): Correct corner cases in the recursion.
15159 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15161         * target.c (gomp_offload_image_to_device): Rename to ...
15162         (gomp_load_image_to_device): ... here.
15163         (GOMP_offload_register): Adjust call.
15164         (gomp_init_device): Likewise.
15165         (gomp_unload_image_from_device): New.  Broken out of ...
15166         (GOMP_offload_unregister): ... here.  Call it.
15167         (gomp_unload_device): New.
15168         * libgomp.h (gomp_unload_device): Declare.
15169         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15170         mem maps.
15172 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
15174         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15175         wait=-specific if.
15176         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15177         !=0 condition.
15178         (goacc_waits): Move !num_waits handling to ...
15179         (GOACC_wait): ... here, the only caller that might have zero waits.
15181         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15182         (struct ptx_image_data): Move earlier, add fns field.
15183         (struct ptx_device): Add images and image_lock fields.
15184         (ptx_images, ptx_image_lock): Delete.
15185         (nvptx_open_device): Initialize images and image_lock fields.
15186         (nvptx_close_device): Destroy image_lock.
15187         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15188         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15189         fields.
15191 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15193         * target.c (GOMP_offload_register): Use int for device type arg.
15194         (GOMP_offload_unregister): Likewise.
15196         * target.c (struct_offload_image_descr): Constify host_table.
15197         (gomp_offload_image_to_device): Likewise.
15198         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15200         * libgomp.h (gomp_device_descr): Constify target data arguments.
15201         * target.c (struct offload_image_descr): Constify target_data.
15202         (gomp_offload_image_to_device): Likewise.
15203         (GOMP_offload_register): Likewise.
15204         (GOMP_offload_unregister): Likewise.
15205         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15206         GOMP_OFFLOAD_unload_image): Constify target data.
15207         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15208         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15210 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15212         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15213         Workaround driver library const error.
15214         (struct nvptx_tdata, nvptx_tdata_t): New.
15215         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15216         type.
15218 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15220         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15221         of EPS parameter from integer to real.
15222         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15223         type of EPS parameter from integer to real.
15225 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15227         * team.c (get_last_team): New.
15228         (gomp_new_team): Recycle last non-nested team if possible.
15229         (gomp_team_end): Move team work share list free lock destruction
15230         to ...
15231         (free_team): ... here.
15233 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15235         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15236         and ref from int to double.  Replaced their comparison with
15237         an inequality of their difference and EPS.
15238         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15239         comparison of pri and a reference number with an inequality of their
15240         difference and EPS.
15241         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15242         the comparison of sum and sum_ref with an inequality of their
15243         difference and EPS.
15244         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15245         the comparison of pri and a reference number with an inequality of
15246         their difference and EPS.
15248 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15250         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15251         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15252         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15253         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15254         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15255         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15256         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15257         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15258         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15259         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15260         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15261         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15262         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15263         variables.
15264         (vec_mult): Likewise.  Add #pragma omp taskwait.
15265         (main): Adjust caller.
15266         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15267         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15268         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15269         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15270         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15271         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15272         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15273         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15274         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15275         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15276         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15277         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15278         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15279         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15280         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15281         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15282         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15283         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15284         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15285         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15286         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15287         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15288         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15289         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15290         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15291         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15292         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15293         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15294         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15295         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15296         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15297         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15298         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15299         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15300         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15301         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15302         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15303         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15304         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15305         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15306         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15307         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15308         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15309         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15310         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15311         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15312         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15313         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15314         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15315         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15316         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15317         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15318         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15319         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15320         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15321         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15322         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15323         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15324         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15325         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15326         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15327         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15328         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15329         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15330         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15331         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15332         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15333         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15334         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15335         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15336         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15337         (vec_mult): Add !$omp taskwait.
15338         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15339         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15340         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15341         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15342         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15343         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15344         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15345         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15346         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15347         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15348         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15349         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15350         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15351         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15352         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15353         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15354         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15355         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15356         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15357         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15358         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15359         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15360         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15361         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15362         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15363         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15364         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15365         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15366         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15367         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15368         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15369         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15370         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15371         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15372         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15373         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15374         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15375         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15376         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15377         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15378         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15379         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15380         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15381         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15382         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15383         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15384         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15385         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15386         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15387         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15388         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15389         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15390         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15391         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15392         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15393         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15394         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15395         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15396         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15397         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15398         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15399         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15400         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15401         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15402         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15403         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15404         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15406 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15408         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15409         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15411 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15413         PR libgomp/65099
15414         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15415         in a 64-bit configuration.
15416         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15417         offloading testing if no such device is available.
15418         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15419         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15421 2015-07-08  Tom de Vries  <tom@codesourcery.com>
15423         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15424         second call to f.
15425         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15427 2015-07-07  Tom de Vries  <tom@codesourcery.com>
15429         PR tree-optimization/66642
15430         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15431         iteration count case.
15432         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15433         function, factor out of ...
15434         (main): ... here.  Test low iteration count case.
15436 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15438         * libgomp.h (gomp_thread_pool): Comment last_team field.
15440 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
15442         * testsuite/libgomp.c++/pr66702-1.C: Require
15443         vect_simd_clones effective target.
15444         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15446 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15448         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15449         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15450         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15451         "-O2".
15453 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15455         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15456         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15457         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15458         * testsuite/libgomp.c++/pr64824.C: Same.
15459         * testsuite/libgomp.c++/pr64868.C: Same.
15460         * testsuite/libgomp.c++/pr66199-1.C: Same.
15461         * testsuite/libgomp.c++/pr66199-2.C: Same.
15462         * testsuite/libgomp.c++/target-2.C: Same.
15463         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15464         -std=<standard> option.
15465         * testsuite/libgomp.c++/udr-11.C: Same.
15466         * testsuite/libgomp.c++/udr-12.C: Same.
15467         * testsuite/libgomp.c++/udr-13.C: Same.
15468         * testsuite/libgomp.c++/udr-14.C: Same.
15469         * testsuite/libgomp.c++/udr-15.C: Same.
15470         * testsuite/libgomp.c++/udr-16.C: Same.
15471         * testsuite/libgomp.c++/udr-17.C: Same.
15472         * testsuite/libgomp.c++/udr-18.C: Same.
15473         * testsuite/libgomp.c++/udr-19.C: Same.
15474         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15475         * testsuite/libgomp.c++/simd-1.C: Same.
15476         * testsuite/libgomp.c++/simd-2.C: Same.
15477         * testsuite/libgomp.c++/simd-3.C: Same.
15478         * testsuite/libgomp.c++/simd-4.C: Same.
15479         * testsuite/libgomp.c++/simd-5.C: Same.
15480         * testsuite/libgomp.c++/simd-6.C: Same.
15481         * testsuite/libgomp.c++/simd-7.C: Same.
15482         * testsuite/libgomp.c++/simd-8.C: Same.
15483         * testsuite/libgomp.c++/simd-9.C: Same.
15484         * testsuite/libgomp.c++/simd10.C: Same.
15485         * testsuite/libgomp.c++/simd11.C: Same.
15486         * testsuite/libgomp.c++/simd12.C: Same.
15487         * testsuite/libgomp.c++/simd13.C: Same.
15489 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15491         PR middle-end/66702
15492         * testsuite/libgomp.c++/pr66702-1.C: New test.
15493         * testsuite/libgomp.c++/pr66702-2.C: New test.
15495 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15497         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15498         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15499         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15500         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15502 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15504         PR tree-optimization/66652
15505         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15506         using restrict pointers.
15507         (main): Add arguments to calls to f.
15508         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15510 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
15512         * configure.ac: Fix check for header <sys/sysctl.h>.
15513         * configure: Regenerate.
15514         * config.h.in: Likewise.
15516 2015-06-23  Tom de Vries  <tom@codesourcery.com>
15518         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15519         abort.
15520         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15522 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15524         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15525         acc_device_nvidia.
15527         PR libgomp/66518
15528         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15529         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15531 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15533         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15534         dg-additional-options for any remaining options.
15535         * testsuite/libgomp.c/atomic-2.c: Same.
15536         * testsuite/libgomp.c/atomic-4.c: Same.
15537         * testsuite/libgomp.c/atomic-5.c: Same.
15538         * testsuite/libgomp.c/atomic-6.c: Same.
15539         * testsuite/libgomp.c/autopar-1.c: Same.
15540         * testsuite/libgomp.c/copyin-1.c: Same.
15541         * testsuite/libgomp.c/copyin-2.c: Same.
15542         * testsuite/libgomp.c/copyin-3.c: Same.
15543         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15544         * testsuite/libgomp.c/nestedfn-5.c: Same.
15545         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15546         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15547         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15548         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15549         * testsuite/libgomp.c/pr32362-1.c: Same.
15550         * testsuite/libgomp.c/pr32362-2.c: Same.
15551         * testsuite/libgomp.c/pr32362-3.c: Same.
15552         * testsuite/libgomp.c/pr39591-1.c: Same.
15553         * testsuite/libgomp.c/pr39591-2.c: Same.
15554         * testsuite/libgomp.c/pr39591-3.c: Same.
15555         * testsuite/libgomp.c/pr58392.c: Same.
15556         * testsuite/libgomp.c/pr58756.c: Same.
15557         * testsuite/libgomp.c/simd-1.c: Same.
15558         * testsuite/libgomp.c/simd-10.c: Same.
15559         * testsuite/libgomp.c/simd-11.c: Same.
15560         * testsuite/libgomp.c/simd-12.c: Same.
15561         * testsuite/libgomp.c/simd-13.c: Same.
15562         * testsuite/libgomp.c/simd-14.c: Same.
15563         * testsuite/libgomp.c/simd-15.c: Same.
15564         * testsuite/libgomp.c/simd-2.c: Same.
15565         * testsuite/libgomp.c/simd-3.c: Same.
15566         * testsuite/libgomp.c/simd-4.c: Same.
15567         * testsuite/libgomp.c/simd-5.c: Same.
15568         * testsuite/libgomp.c/simd-6.c: Same.
15569         * testsuite/libgomp.c/simd-7.c: Same.
15570         * testsuite/libgomp.c/simd-8.c: Same.
15571         * testsuite/libgomp.c/simd-9.c: Same.
15573 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15575         * testsuite/libgomp.c/pr35625.c: Fix typo.
15577 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15579         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15580         in dg-options.
15581         * testsuite/libgomp.c/atomic-3.c: Same.
15582         * testsuite/libgomp.c/debug-1.c: Same.
15583         * testsuite/libgomp.c/nqueens-1.c: Same.
15584         * testsuite/libgomp.c/pr26171.c: Same.
15585         * testsuite/libgomp.c/pr48591.c: Same.
15586         * testsuite/libgomp.c/pr64824.c: Same.
15587         * testsuite/libgomp.c/pr64868.c: Same.
15588         * testsuite/libgomp.c/pr66133.c: Same.
15589         * testsuite/libgomp.c/pr66199-1.c: Same.
15590         * testsuite/libgomp.c/pr66199-2.c: Same.
15591         * testsuite/libgomp.c/target-8.c: Same.
15593 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15595         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15596         -std={gnu99,c99}.
15597         * testsuite/libgomp.c/for-1.c: Same.
15598         * testsuite/libgomp.c/for-2.c: Same.
15599         * testsuite/libgomp.c/for-3.c: Same.
15600         * testsuite/libgomp.c/pr35625.c: Same.
15601         * testsuite/libgomp.c/pr39154.c: Same.
15602         * testsuite/libgomp.c/simd-16.c: Same.
15603         * testsuite/libgomp.c/simd-17.c: Same.
15605 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15607         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15609 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15611         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15612         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15613         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15614         (N): Define.
15615         (main): Use N instead of hardcoded constants.
15617 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15619         merge from gomp4 branch:
15620         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15622         PR tree-optimization/65443
15623         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15624         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15625         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15627 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15629         * testsuite/libgomp.graphite/bounds.c: Adjust for
15630         cleanup-tree-dump removal.
15631         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15632         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15633         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15634         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15635         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15636         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15637         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15638         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15639         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15640         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15642 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15644         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15645         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15646         (futex_wake) [!__x86_64__]: Ditto.
15648 2015-05-28  Julian Brown  <julian@codesourcery.com>
15650         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15651         function comment. Only call gomp_fatal if new argument is true.
15652         (acc_dev_num_out_of_range): New function.
15653         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15654         acc_dev_num_out_of_range as appropriate.
15655         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15656         (acc_get_device_num, acc_set_device_num): Update calls to
15657         resolve_device.
15658         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15659         output.
15661 2015-05-28  Julian Brown  <julian@codesourcery.com>
15663         PR libgomp/65742
15664         * oacc-init.c (plugin/plugin-host.h): Include.
15665         (acc_on_device): Check whether we're in an offloaded region for
15666         host_nonshm
15667         plugin. Don't use __builtin_acc_on_device.
15668         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15669         nonshm_exec flag in thread-local data.
15670         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15671         data for host_nonshm plugin.
15672         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15673         for host_nonshm plugin.
15674         * plugin/plugin-host.h: New.
15676 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15678         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15680 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15682         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15683         Declare as int.
15684         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15685         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15686         Declare as int.
15688 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15690         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15692 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15694         * target.c (gomp_map_pointer): New function abstracting out
15695         GOMP_MAP_POINTER handling.
15696         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15697         gomp_map_pointer().
15699 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15701         PR middle-end/66199
15702         * testsuite/libgomp.c/pr66199-1.c: New test.
15703         * testsuite/libgomp.c/pr66199-2.c: New test.
15704         * testsuite/libgomp.c++/pr66199-1.C: New test.
15705         * testsuite/libgomp.c++/pr66199-2.C: New test.
15706         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15707         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15709 2015-05-19  Julian Brown  <julian@codesourcery.com>
15711         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15712         on cuInit failure.
15714 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15716         PR middle-end/66133
15717         * testsuite/libgomp.c/pr66133.c: New test.
15719 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15721         * Makefile.in: Regenerated with automake-1.11.6.
15722         * aclocal.m4: Likewise.
15723         * config.h.in: Likewise.
15724         * configure: Likewise.
15725         * testsuite/Makefile.in: Likewise.
15727 2015-05-08  Jason Merrill  <jason@redhat.com>
15729         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15730         _Complex.
15732         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15734 2015-05-06  Julian Brown  <julian@codesourcery.com>
15736         * oacc-init.c (acc_device_lock): Add explanatory comment.
15737         (resolve_device): Add comment about locking requirement.
15738         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15739         gomp_init_device and gomp_fini_device calls.
15740         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15741         (acc_get_device_num, acc_set_device_num): Add locking around
15742         resolve_device and gomp_init_device calls.
15744 2015-05-06  Julian Brown  <julian@codesourcery.com>
15746         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15747         goacc_thread_lock on error paths.
15748         * oacc-mem.c (lookup_host): Remove locking from function. Note
15749         locking requirement for caller in function comment.
15750         (lookup_dev): Likewise.
15751         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15752         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15753         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15754         Add locking.
15756 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15758         PR testsuite/65205
15759         PR libgomp/65993
15760         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15761         don't expect "0x" prefix for "%p" format specifier, don't expect
15762         "(nil)" for NULL pointer.
15763         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15764         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15765         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15766         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15767         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15768         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15769         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15770         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15771         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15772         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15773         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15774         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15775         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15776         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15777         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15778         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15779         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15780         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15781         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15782         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15783         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15784         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15785         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15786         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15787         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15788         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15789         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15790         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15791         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15792         accurately specify what we're looking for.
15793         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15794         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15795         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15796         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15797         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15799 2015-04-30  James Norris  <jnorris@codesourcery.com>
15801         PR testsuite/65205
15802         * testsuite/lib/libgomp.exp
15803         (check_effective_target_openacc_host_selected)
15804         (check_effective_target_openacc_host_nonshm_selected): New
15805         procedures.
15806         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15807         dg-shouldfail.
15808         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15809         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15810         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15811         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15812         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15813         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15814         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15815         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15816         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15817         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15818         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15819         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15820         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15821         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15822         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15823         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15824         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15825         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15826         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15827         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15828         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15829         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15830         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15831         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15832         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15833         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15834         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15835         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15836         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15837         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15838         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15839         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15840         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15841         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15842         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15843         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15844         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15845         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15846         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15847         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15848         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15849         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15850         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15852 2015-04-08  Julian Brown  <julian@codesourcery.com>
15854         * libgomp.h (target_mem_desc: Remove mem_map field.
15855         (acc_dispatch_t): Remove open_device_func, close_device_func,
15856         get_device_num_func, set_device_num_func, target_data members.
15857         Change create_thread_data_func argument to device number instead of
15858         generic pointer.
15859         * oacc-async.c (assert.h): Include.
15860         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15861         (acc_wait_all, acc_wait_all_async): Use current host thread's
15862         active device, not base_dev.
15863         * oacc-cuda.c (acc_get_current_cuda_device)
15864         (acc_get_current_cuda_context, acc_get_cuda_stream)
15865         (acc_set_cuda_stream): Likewise.
15866         * oacc-host.c (host_dispatch): Don't set open_device_func,
15867         close_device_func, get_device_num_func or set_device_num_func.
15868         * oacc-init.c (base_dev, init_key): Remove.
15869         (cached_base_dev): New.
15870         (name_of_acc_device_t): New.
15871         (acc_init_1): Initialise default-numbered device, not zeroth.
15872         (acc_shutdown_1): Close all devices of a given type.
15873         (goacc_destroy_thread): Don't use base_dev.
15874         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15875         (goacc_attach_host_thread_to_device): New.
15876         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15877         (acc_get_num_devices): Don't use base_dev.
15878         (acc_set_device_type): Reimplement.
15879         (acc_get_device_type): Don't use base_dev.
15880         (acc_get_device_num): Tweak logic.
15881         (acc_set_device_num): Likewise.
15882         (acc_on_device): Use acc_get_device_type.
15883         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15884         (goacc_lazy_initialize): Reimplement with acc_init and
15885         goacc_attach_host_thread_to_device.
15886         * oacc-int.h (goacc_thread): Add base_dev field.
15887         (base_dev): Remove extern declaration.
15888         (goacc_attach_host_thread_to_device): Add prototype.
15889         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15890         base_dev.
15891         (acc_free): Likewise.
15892         (acc_memcpy_to_device): Likewise.
15893         (acc_memcpy_from_device): Likewise.
15894         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15895         goacc_lazy_initialize (throughout).
15896         (GOACC_parallel): Use tgt_offset to locate target functions.
15897         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15898         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15899         (gomp_load_plugin_for_device): Remove open_device, close_device,
15900         get_device_num, set_device_num openacc hook initialisation. Don't set
15901         openacc.target_data.
15902         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15903         (GOMP_OFFLOAD_openacc_close_device)
15904         (GOMP_OFFLOAD_openacc_get_device_num)
15905         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15906         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15907         to int.
15908         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15909         (instantiated_devices, ptx_dev_lock): New.
15910         (struct ptx_image_data): New.
15911         (ptx_devices, ptx_images, ptx_image_lock): New.
15912         (fini_streams_for_device): Reorder cuStreamDestroy call.
15913         (nvptx_get_num_devices): Remove forward declaration.
15914         (nvptx_init): Change return type to bool.
15915         (nvptx_fini): Remove.
15916         (nvptx_attach_host_thread_to_device): New.
15917         (nvptx_open_device): Return struct ptx_device* instead of void*.
15918         (nvptx_close_device): Change argument type to struct ptx_device*,
15919         return type to void.
15920         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15921         (kernel_target_data, kernel_host_table): Remove static globals.
15922         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15923         (GOMP_OFFLOAD_init_device): Reimplement.
15924         (GOMP_OFFLOAD_fini_device): Likewise.
15925         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15926         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15927         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15928         (GOMP_OFFLOAD_openacc_open_device)
15929         (GOMP_OFFLOAD_openacc_close_device)
15930         (GOMP_OFFLOAD_openacc_set_device_num)
15931         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15932         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15933         (device number).
15935         testsuite/
15936         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15938 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15940         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15941         * libgomp.h (struct gomp_memory_mapping): Remove.
15942         (struct target_mem_desc): Change type of mem_map from
15943         gomp_memory_mapping * to splay_tree_s *.
15944         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15945         Add load_image_func, unload_image_func.
15946         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15947         Remove offload_regions_registered.
15948         (gomp_init_tables): Remove.
15949         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15950         to splay_tree_s *.
15951         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15952         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15953         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15954         offload_regions_registered.
15955         Initialize load_image_func, unload_image_func, mem_map.root.
15956         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15957         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15958         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15959         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15960         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15961         (lookup_dev): Use dev's lock.
15962         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15963         (acc_is_present): Likewise.
15964         (acc_map_data): Likewise.
15965         (acc_unmap_data): Likewise.  Use dev's lock.
15966         (present_create_copy): Likewise.
15967         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15968         (update_dev_host): Likewise.
15969         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15970         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15971         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15972         (GOMP_OFFLOAD_get_table): Remove
15973         (GOMP_OFFLOAD_load_image): New function.
15974         (GOMP_OFFLOAD_unload_image): New function.
15975         * target.c (register_lock): New mutex for offload image registration.
15976         (num_devices): Do not guard with PLUGIN_SUPPORT.
15977         (gomp_realloc_unlock): New static function.
15978         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15979         before gomp_fatal.
15980         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15981         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15982         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15983         mem_map's.
15984         (gomp_unmap_vars): Likewise.
15985         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15986         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15987         (gomp_offload_image_to_device): New static function.
15988         (GOMP_offload_register): Add mutex lock.
15989         Call gomp_offload_image_to_device for all initialized devices.
15990         Replace gomp_realloc with gomp_realloc_unlock.
15991         (GOMP_offload_unregister): New function.
15992         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15993         get_table_func from the plugin with calls to init_device_func and
15994         gomp_offload_image_to_device.
15995         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15996         to splay_tree_s *.
15997         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15998         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15999         (GOMP_target_data): Do not call gomp_init_tables.
16000         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
16001         (gomp_load_plugin_for_device): Replace register_image and get_table
16002         with load_image and unload_image in DLSYM ().
16003         (gomp_register_images_for_device): Remove function.
16004         (gomp_target_init): Do not initialize current_device.mem_map.*,
16005         current_device.offload_regions_registered.
16006         Remove call to gomp_register_images_for_device.
16007         Do not free offload_images and num_offload_images.
16009 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16011         PR fortran/65597
16012         * testsuite/libgomp.fortran/pr65597.f90: New test.
16014 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16016         PR testsuite/65594
16017         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16018         (init, check): New function.
16019         (foo): Change return type to void.
16020         (main): Call init and check.
16022 2015-03-27  Tom de Vries  <tom@codesourcery.com>
16024         PR testsuite/65594
16025         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16026         (foo): Use M for non-inner loops to scale down test-case.
16028 2015-03-25  Kai Tietz  <ktietz@redhat.com>
16030         PR libgomp/64972
16031         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16032         (GOACC_data_start): Likewise.
16033         * target.c (gomp_map_vars): Likewise.
16035 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
16037         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16038         hppa*-*-hpux*.
16040 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
16042         * testsuite/libgomp.c/target-10.c: New test.
16043         * testsuite/libgomp.c++/target-4.C: New test.
16045 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
16047         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16048         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16050 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16052         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16053         * configure.ac (*-*-rtems*): Assume Pthread is supported.
16054         (pthread.h): Check for this header file.
16055         * configure: Regenerate.
16057 2015-02-25  Tom de Vries  <tom@codesourcery.com>
16059         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16060         (check_reduction_op, check_reduction_macro, max, min):
16061         Declare.
16062         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16063         function.
16064         (main): Use new functions.
16066 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
16068         * target.c (gomp_load_plugin_for_device): Use const char * instead of
16069         char * for variables holding dlerror return values.
16070         (DLSYM_OPT): Ditto.
16072 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16074         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16076 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16077             Cesar Philippidis  <cesar@codesourcery.com>
16079         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16080         GOACC_ctaid, and GOACC_nctaid routines.
16082 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16084         PR c/64824
16085         * testsuite/libgomp.c/atomic-18.c: New test.
16086         * testsuite/libgomp.c++/atomic-16.C: New test.
16088 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16090         PR c/64824
16091         PR c/64868
16092         * testsuite/libgomp.c/pr64824.c: New test.
16093         * testsuite/libgomp.c/pr64868.c: New test.
16094         * testsuite/libgomp.c++/pr64824.C: New test.
16095         * testsuite/libgomp.c++/pr64868.C: New test.
16097 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16099         PR libgomp/64635
16100         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16101         Link with -lpthread.
16102         * config/aix/plugin-suffix.h: Delete.
16104 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
16106         PR libgomp/64635
16107         * configure.tgt (*-*-aix*): Use config_path "aix posix".
16108         (*-*-darwin*): Use config_path "bsd darwin posix".
16109         (*-*-hpux*): Use config_path "hpux posix".
16110         * target.c: Add include of plugin-suffix.h and use
16111         SONAME_SUFFIX macro.
16112         * config/aix/plugin-suffix.h: New file.
16113         * config/darwin/plugin-suffix.h: New file.
16114         * config/hpux/plugin-suffix.h: New file.
16115         * config/posix/plugin-suffix.h: New file.
16117 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16119         PR middle-end/64734
16120         * libgomp.c/pr64734.c: New test.
16122 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16124         PR libgomp/64672
16125         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16127 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16129         PR libgomp/64707
16130         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16131         dg-options.
16133 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16135         PR libgomp/64625
16136         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16137         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16138         formal parameter.  Update all users.
16139         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16140         Document unused formal parameter.
16142 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
16144         * oacc-parallel.c: Don't include <alloca.h>.
16145         (GOACC_parallel): Use gomp_alloca instead of alloca.
16147 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
16149         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16151 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16152             James Norris  <jnorris@codesourcery.com>
16153             Tom de Vries  <tom@codesourcery.com>
16154             Julian Brown  <julian@codesourcery.com>
16155             Cesar Philippidis  <cesar@codesourcery.com>
16156             Nathan Sidwell  <nathan@codesourcery.com>
16157             Tobias Burnus  <burnus@net-b.de>
16159         * Makefile.am (search_path): Add $(top_srcdir)/../include.
16160         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16161         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16162         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16163         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16164         Include $(top_srcdir)/plugin/Makefrag.am.
16165         (nodist_libsubinclude_HEADERS): Add openacc.h.
16166         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16167         openacc.f90, openacc.mod, openacc_kinds.mod.
16168         (omp_lib.mod): Generalize into...
16169         (%.mod): ... this new rule.
16170         (openacc_kinds.mod, openacc.mod): New rules.
16171         * plugin/configfrag.ac: New file.
16172         * configure.ac: Move plugin/offloading support into it.  Include
16173         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
16174         * plugin/Makefrag.am: New file.
16175         * testsuite/Makefile.am (OFFLOAD_TARGETS)
16176         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16177         export.
16178         (libgomp-test-support.exp): New rule.
16179         (all-local): Depend on it.
16180         * Makefile.in: Regenerate.
16181         * testsuite/Makefile.in: Regenerate.
16182         * config.h.in: Likewise.
16183         * configure: Likewise.
16184         * configure.tgt: Harden shell syntax.
16185         * env.c: Include "oacc-int.h".
16186         (parse_acc_device_type): New function.
16187         (gomp_debug_var, goacc_device_type, goacc_device_num): New
16188         variables.
16189         (initialize_env): Initialize those.  Call
16190         goacc_runtime_initialize.
16191         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16192         (gomp_fatal): Call gomp_vfatal.
16193         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16194         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16195         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16196         (splay_tree_node, splay_tree, splay_tree_key)
16197         (struct target_mem_desc, struct splay_tree_key_s)
16198         (struct gomp_memory_mapping, struct acc_dispatch_t)
16199         (struct gomp_device_descr, gomp_acc_insert_pointer)
16200         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16201         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16202         (gomp_free_memmap, gomp_fini_device): New declarations.
16203         (gomp_vdebug, gomp_debug): New macros.
16204         Include "splay-tree.h".
16205         * libgomp.map (OACC_2.0): New symbol version.  Use for
16206         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16207         acc_set_device_type_h_, acc_get_device_type,
16208         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16209         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16210         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16211         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16212         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16213         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16214         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16215         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16216         acc_copyin_array_h_, acc_present_or_copyin,
16217         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16218         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16219         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16220         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16221         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16222         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16223         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16224         acc_update_device, acc_update_device_32_h_,
16225         acc_update_device_64_h_, acc_update_device_array_h_,
16226         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16227         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16228         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16229         acc_is_present_64_h_, acc_is_present_array_h_,
16230         acc_memcpy_to_device, acc_memcpy_from_device,
16231         acc_get_current_cuda_device, acc_get_current_cuda_context,
16232         acc_get_cuda_stream, acc_set_cuda_stream.
16233         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
16234         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16235         GOACC_update, GOACC_wait, GOACC_get_thread_num,
16236         GOACC_get_num_threads.
16237         (GOMP_PLUGIN_1.0): New symbol version.  Use for
16238         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16239         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16240         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16241         GOMP_PLUGIN_acc_thread.
16242         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16243         environment variable.
16244         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16245         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16246         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16247         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16248         (splay_tree_remove): New declarations.
16249         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16250         (splay_tree_remove, splay_tree_lookup): Move into...
16251         * splay-tree.c: ... this new file.
16252         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16253         (splay_tree_node, splay_tree, splay_tree_key)
16254         (struct target_mem_desc, struct splay_tree_key_s)
16255         (struct gomp_device_descr): Don't declare.
16256         (num_devices_openmp): New variable.
16257         (gomp_get_num_devices ): Use it.
16258         (gomp_init_targets_once): New function.
16259         (gomp_get_num_devices ): Use it.
16260         (get_kind, gomp_copy_from_async, gomp_free_memmap)
16261         (gomp_fini_device, gomp_register_image_for_device): New functions.
16262         (gomp_map_vars): Add devaddrs parameter.
16263         (gomp_update): Add mm parameter.
16264         (gomp_init_device): Move most of it into...
16265         (gomp_init_tables): ... this new function.
16266         (gomp_register_images_for_device): Remove function.
16267         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16268         Make them hidden instead of static.
16269         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16270         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16271         (GOMP_target_end_data, GOMP_target_update)
16272         (gomp_load_plugin_for_device, gomp_target_init): Update for
16273         OpenACC changes.
16274         * oacc-async.c: New file.
16275         * oacc-cuda.c: Likewise.
16276         * oacc-host.c: Likewise.
16277         * oacc-init.c: Likewise.
16278         * oacc-int.h: Likewise.
16279         * oacc-mem.c: Likewise.
16280         * oacc-parallel.c: Likewise.
16281         * oacc-plugin.c: Likewise.
16282         * oacc-plugin.h: Likewise.
16283         * oacc-ptx.h: Likewise.
16284         * openacc.f90: Likewise.
16285         * openacc.h: Likewise.
16286         * openacc_lib.h: Likewise.
16287         * plugin/plugin-host.c: Likewise.
16288         * plugin/plugin-nvptx.c: Likewise.
16289         * libgomp-plugin.c: Likewise.
16290         * libgomp-plugin.h: Likewise.
16291         * libgomp_target.h: Remove file after merging content into the
16292         former file.  Update all users.
16293         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16294         (offload_targets_s, offload_targets_s_openacc): New variables.
16295         (check_effective_target_openacc_nvidia_accel_present)
16296         (check_effective_target_openacc_nvidia_accel_selected): New
16297         procedures.
16298         (libgomp_init): Update for OpenACC changes.
16299         * testsuite/libgomp-test-support.exp.in: New file.
16300         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16301         * testsuite/libgomp.oacc-c/c.exp: Likewise.
16302         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16303         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16304         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16305         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16306         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16307         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16308         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16309         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16310         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16311         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16312         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16313         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16314         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16315         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16316         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16317         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16318         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16319         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16320         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16321         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16322         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16323         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16324         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16325         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16326         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16327         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16328         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16329         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16330         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16331         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16332         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16333         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16334         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16335         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16336         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16337         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16338         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16339         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16340         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16341         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16342         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16343         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16344         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16345         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16346         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16347         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16348         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16349         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16350         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16351         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16352         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16353         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16354         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16355         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16356         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16357         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16358         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16359         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16360         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16361         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16362         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16363         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16364         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16365         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16366         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16367         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16368         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16369         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16370         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16371         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16372         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16373         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16374         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16375         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16376         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16377         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16378         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16379         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16380         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16381         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16382         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16383         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16384         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16385         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16386         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16387         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16388         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16389         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16390         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16391         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16392         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16393         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16394         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16395         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16396         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16397         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16398         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16399         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16400         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16401         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16402         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16403         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16404         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16405         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16406         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16407         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16408         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16409         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16410         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16411         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16412         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16413         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16414         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16415         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16416         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16417         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16418         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16419         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16420         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16421         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16422         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16423         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16424         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16425         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16426         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16427         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16428         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16429         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16430         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16431         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16432         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16433         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16434         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16435         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16436         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16437         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16438         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16439         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16440         Likewise.
16441         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16442         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16443         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16444         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16445         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16446         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16447         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16448         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16449         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16450         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16451         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16452         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16453         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16454         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16455         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16456         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16457         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16458         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16459         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16460         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16461         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16462         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16463         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16464         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16465         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16466         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16467         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16468         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16469         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16470         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16471         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16472         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16473         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16474         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16475         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16476         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16477         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16478         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16479         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16480         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16481         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16482         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16483         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16484         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16485         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16486         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16487         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16488         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16489         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16490         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16491         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16492         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16493         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16494         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16495         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16496         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16497         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16498         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16499         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16500         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16502 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16503             Julian Brown  <julian@codesourcery.com>
16504             David Malcolm  <dmalcolm@redhat.com>
16506         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16507         to "GNU Offloading and Multi Processing Runtime Library".  Change
16508         all users.
16509         * configure: Regenerate.
16510         * libgomp.texi: Update.
16512 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16514         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16515         "$tgt_dir/lib32".
16516         * configure: Regenerate.
16518         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16519         "intelmic" in $offload_targets.
16521 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16523         Update copyright years.
16525         * libgomp.texi: Bump @copying's copyright year.
16527 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16529         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16530         Move load of target-supports.exp earlier.
16532 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16534         * testsuite/libgomp.c/target-9.c: New test.
16536 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16538         * config.h.in: Regenerate.
16539         * configure: Regenerate.
16540         * configure.ac: Add GCC_CHECK_EMUTLS.
16541         * libgomp.h: Add check for USE_EMUTLS: this case
16542         is equal to HAVE_TLS.
16543         * team.c: Likewise.
16545 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16547         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16549 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16550             Ilya Verbin  <ilya.verbin@intel.com>
16552         * testsuite/libgomp.c/target-critical-1.c: New test.
16554 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16556         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16557         to dg-options unless expensive testing is on.
16558         (TESTITERS): Define to N if not defined.
16559         (main): Use TESTITERS instead of N.
16560         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16561         dg-additional-options depending on whether expensive testing is on.
16562         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16563         Decrease N to 100000 and CHUNKSZ to 10000.
16565 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16567         PR fortran/63938
16568         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16569         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16571 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16573         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16575 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16577         PR bootstrap/63784
16578         * configure: Regenerated.
16580 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16582         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16583         vect_simd_clones effective target.
16584         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16586 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16588         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16589         of 32 as block_size.
16590         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16591         instead of 32 as block_size.
16593 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16594             Ilya Verbin  <ilya.verbin@intel.com>
16596         * Makefile.in: Regenerate.
16597         * configure: Regenerate.
16598         * configure.ac: Set up offload_additional_options,
16599         offload_additional_lib_paths and offload_targets.
16600         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16601         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16602         * testsuite/Makefile.in: Regenerate.
16603         * testsuite/lib/libgomp.exp (libgomp_init): Append
16604         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16605         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16606         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16608 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16609             Ilya Verbin  <ilya.verbin@intel.com>
16610             Kirill Yukhin  <kirill.yukhin@intel.com>
16611             Ilya Tocar  <ilya.tocar@intel.com>
16613         * testsuite/lib/libgomp.exp
16614         (check_effective_target_offload_device): New.
16615         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16616         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16617         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16618         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16619         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16620         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16621         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16622         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16623         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16624         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16625         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16626         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16627         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16628         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16629         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16630         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16631         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16632         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16633         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16634         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16635         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16636         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16637         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16638         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16639         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16640         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16641         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16642         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16643         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16644         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16645         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16646         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16647         * testsuite/libgomp.c/target-7.c: Fix test.
16648         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16649         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16650         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16651         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16652         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16653         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16654         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16655         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16656         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16657         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16658         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16659         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16660         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16661         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16662         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16663         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16664         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16665         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16666         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16667         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16668         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16669         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16670         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16671         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16672         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16673         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16674         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16675         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16676         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16677         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16678         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16680 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16681             Ilya Verbin  <ilya.verbin@intel.com>
16682             Thomas Schwinge  <thomas@codesourcery.com>
16683             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16685         * libgomp.map (GOMP_4.0.1): New symbol version.
16686         Add GOMP_offload_register.
16687         * libgomp_target.h: New file.
16688         * splay-tree.h: New file.
16689         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16690         (gomp_target_init): New forward declaration.
16691         (gomp_is_initialized): New static variable.
16692         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16693         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16694         New structures.
16695         (offload_images, num_offload_images, devices, num_devices): New static
16696         variables.
16697         (splay_compare): New static function.
16698         (struct gomp_device_descr): New structure.
16699         (gomp_get_num_devices): Call gomp_target_init.
16700         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16701         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16702         (GOMP_offload_register): New function.
16703         (GOMP_target): Arrange for host callback to be performed in a separate
16704         initial thread and contention group, inheriting ICVs from
16705         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16706         Add device initialization and lookup for target function in splay tree.
16707         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16708         (GOMP_target_end_data): Call gomp_unmap_vars.
16709         (GOMP_target_update): Add device initialization and call gomp_update.
16710         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16711         (gomp_target_init): New static functions.
16713 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16714             Thomas Schwinge  <thomas@codesourcery.com>
16715             Ilya Verbin  <ilya.verbin@intel.com>
16716             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16718         * config.h.in: Regenerate.
16719         * configure: Regenerate.
16720         * configure.ac: Check for libdl, required for plugin support.
16721         (PLUGIN_SUPPORT): Define if plugins are supported.
16722         (enable_offload_targets): Support Intel MIC targets.
16723         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16725 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16727         PR target/63610
16728         * configure: Regenerate.
16730 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16732         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16734 2014-10-06  Marek Polacek  <polacek@redhat.com>
16736         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16737         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16738         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16739         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16741 2014-10-06  Marek Polacek  <polacek@redhat.com>
16743         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16744         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16745         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16746         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16747         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16748         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16749         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16750         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16751         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16752         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16753         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16754         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16755         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16756         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16757         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16758         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16759         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16760         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16761         declarations.
16763 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16765         PR libgomp/61200
16766         * testsuite/libgomp.c/pr61200.c: New test.
16768 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16770         PR c++/63248
16771         * testsuite/libgomp.c++/pr63248.C: New test.
16773 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16775         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16776         is not zero, but taskgroup->children is NULL and there are
16777         any task->children, schedule those instead of waiting.
16778         * testsuite/libgomp.c/depend-6.c: New test.
16779         * testsuite/libgomp.c/depend-7.c: New test.
16780         * testsuite/libgomp.c/depend-8.c: New test.
16781         * testsuite/libgomp.c/depend-9.c: New test.
16782         * testsuite/libgomp.c/depend-10.c: New test.
16784 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16786         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16787         (struct gomp_taskwait): New type.
16788         (struct gomp_task): Add taskwait and parent_depends_on, remove
16789         in_taskwait and taskwait_sem fields.
16790         (gomp_finish_task): Don't destroy taskwait_sem.
16791         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16792         taskwait and parent_depends_on.
16793         (GOMP_task): For if (0) tasks with depend clause that depend on
16794         earlier tasks don't defer them, instead call
16795         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16796         Initialize redundant_out field, for redundant out entries just
16797         move them at the end of linked list instead of removing them
16798         completely, and set redundant_out flag instead of redundant.
16799         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16800         that task.
16801         (gomp_task_run_post_handle_dependers): If parent is in
16802         gomp_task_maybe_wait_for_dependencies and newly runnable task
16803         is not parent_depends_on, queue it in parent->children linked
16804         list after all runnable tasks with parent_depends_on set.
16805         Adjust for addition of taskwait indirection.
16806         (gomp_task_run_post_remove_parent): If parent is in
16807         gomp_task_maybe_wait_for_dependencies and task to be removed
16808         is parent_depends_on, decrement n_depend and if needed awake
16809         parent.  Adjust for addition of taskwait indirection.
16810         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16811         (gomp_task_maybe_wait_for_dependencies): New function.
16812         * testsuite/libgomp.c/depend-5.c: New test.
16814 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16816         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16817         with TS 18508/Fortran 2015.
16819 2014-07-06  Marek Polacek  <polacek@redhat.com>
16821         PR c/6940
16822         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16824 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16826         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16827         matches regex $lang_source_re, add $lang_include_flags to options.
16828         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16829         * testsuite/libgomp.c++/c++.exp: Likewise.
16830         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16831         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16832         ALWAYS_CFLAGS.
16833         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16835 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16837         * testsuite/libgomp.fortran/fortran.exp: Explain
16838         gfortran-dg-runtest usage.
16840 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16842         * testsuite/libgomp.fortran/simd5.f90: New test.
16843         * testsuite/libgomp.fortran/simd6.f90: New test.
16844         * testsuite/libgomp.fortran/simd7.f90: New test.
16846 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16848         * testsuite/libgomp.c/for-2.c: Define SC to static for
16849         #pragma omp for simd testing.
16850         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16851         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16852         SC macro.
16853         * testsuite/libgomp.c/simd-14.c: New test.
16854         * testsuite/libgomp.c/simd-15.c: New test.
16855         * testsuite/libgomp.c/simd-16.c: New test.
16856         * testsuite/libgomp.c/simd-17.c: New test.
16857         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16858         #pragma omp for simd testing.
16859         * testsuite/libgomp.c++/simd10.C: New test.
16860         * testsuite/libgomp.c++/simd11.C: New test.
16861         * testsuite/libgomp.c++/simd12.C: New test.
16862         * testsuite/libgomp.c++/simd13.C: New test.
16864         * testsuite/libgomp.fortran/aligned1.f03: New test.
16865         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16866         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16867         tasks with !$omp parallel !$omp single.
16868         * testsuite/libgomp.fortran/target8.f90: New test.
16869         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16870         not to use trim in the combiner, instead call elemental function.
16871         (fn): New elemental function.
16872         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16873         Make elemental.
16874         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16875         omp_in): Likewise.
16876         * testsuite/libgomp.fortran/udr12.f90: New test.
16877         * testsuite/libgomp.fortran/udr13.f90: New test.
16878         * testsuite/libgomp.fortran/udr14.f90: New test.
16879         * testsuite/libgomp.fortran/udr15.f90: New test.
16881 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16883         * omp_lib.f90.in (openmp_version): Set to 201307.
16884         * omp_lib.h.in (openmp_version): Likewise.
16885         * testsuite/libgomp.c/target-8.c: New test.
16886         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16887         and inbranch clauses.
16888         * testsuite/libgomp.fortran/depend-3.f90: New test.
16889         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16890         openmp_version.
16891         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16892         * testsuite/libgomp.fortran/target1.f90: New test.
16893         * testsuite/libgomp.fortran/target2.f90: New test.
16894         * testsuite/libgomp.fortran/target3.f90: New test.
16895         * testsuite/libgomp.fortran/target4.f90: New test.
16896         * testsuite/libgomp.fortran/target5.f90: New test.
16897         * testsuite/libgomp.fortran/target6.f90: New test.
16898         * testsuite/libgomp.fortran/target7.f90: New test.
16900 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16902         PR fortran/60928
16903         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16904         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16905         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16906         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16907         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16908         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16909         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16910         * testsuite/libgomp.fortran/associate1.f90: New test.
16911         * testsuite/libgomp.fortran/associate2.f90: New test.
16912         * testsuite/libgomp.fortran/procptr1.f90: New test.
16914 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16916         * testsuite/libgomp.fortran/simd1.f90: New test.
16917         * testsuite/libgomp.fortran/udr1.f90: New test.
16918         * testsuite/libgomp.fortran/udr2.f90: New test.
16919         * testsuite/libgomp.fortran/udr3.f90: New test.
16920         * testsuite/libgomp.fortran/udr4.f90: New test.
16921         * testsuite/libgomp.fortran/udr5.f90: New test.
16922         * testsuite/libgomp.fortran/udr6.f90: New test.
16923         * testsuite/libgomp.fortran/udr7.f90: New test.
16924         * testsuite/libgomp.fortran/udr8.f90: New test.
16925         * testsuite/libgomp.fortran/udr9.f90: New test.
16926         * testsuite/libgomp.fortran/udr10.f90: New test.
16927         * testsuite/libgomp.fortran/udr11.f90: New test.
16929 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16931         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16932         vect_simd_clones effective target.
16933         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16935 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16937         PR middle-end/61252
16938         * testsuite/libgomp.c++/simd-9.C: New test.
16940 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16942         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16943         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16944         texts according to their @menu entry positions.
16946 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16948         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16949         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16950         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16951         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16952         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16953         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16954         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16955         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16956         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16957         * testsuite/libgomp.fortran/depend-1.f90: New test.
16958         * testsuite/libgomp.fortran/depend-2.f90: New test.
16959         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16960         * testsuite/libgomp.fortran/simd1.f90: New test.
16961         * testsuite/libgomp.fortran/simd2.f90: New test.
16962         * testsuite/libgomp.fortran/simd3.f90: New test.
16963         * testsuite/libgomp.fortran/simd4.f90: New test.
16964         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16966 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16968         * testsuite/libgomp.c/simd-10.c: New test.
16969         * testsuite/libgomp.c/simd-11.c: New test.
16970         * testsuite/libgomp.c/simd-12.c: New test.
16971         * testsuite/libgomp.c/simd-13.c: New test.
16973 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16975         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16976         atomic type clauses in any order and optional comma in between.
16977         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16978         * testsuite/libgomp.c/atomic-17.c: Likewise.
16980         * testsuite/libgomp.c/simd-7.c: New test.
16981         * testsuite/libgomp.c/simd-8.c: New test.
16982         * testsuite/libgomp.c/simd-9.c: New test.
16983         * testsuite/libgomp.c/loop-16.c: New test.
16985 2014-04-02  Richard Henderson  <rth@redhat.com>
16987         * config/linux/futex.h (futex_wait): Get error value from errno.
16988         (futex_wake): Likewise.
16990 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16992         PR c++/60331
16993         * testsuite/libgomp.c++/udr-11.C: New test.
16994         * testsuite/libgomp.c++/udr-12.C: New test.
16995         * testsuite/libgomp.c++/udr-13.C: New test.
16996         * testsuite/libgomp.c++/udr-14.C: New test.
16997         * testsuite/libgomp.c++/udr-15.C: New test.
16998         * testsuite/libgomp.c++/udr-16.C: New test.
16999         * testsuite/libgomp.c++/udr-17.C: New test.
17000         * testsuite/libgomp.c++/udr-18.C: New test.
17001         * testsuite/libgomp.c++/udr-19.C: New test.
17003 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17005         Update copyright years
17007 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
17009         * hashtab.h: Use the standard form for the copyright notice.
17011 2014-01-02  Tobias Burnus  <burnus@net-b.de>
17013         * libgomp.texi: Bump @copying's copyright year.
17015 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
17017         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17018         alloca () with __builtin_alloca ().
17019         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17020         * testsuite/libgomp.c/lock-3.c: Likewise.
17021         * testsuite/libgomp.c/pr48591.c: Likewise.
17023 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
17025         PR testsuite/59534
17026         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17027         comparisons.
17029 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
17031         PR libgomp/58756
17032         * testsuite/libgomp.c/pr58756.c: New test.
17034 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
17036         PR libgomp/59467
17037         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17038         !$omp parallel.
17040 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
17042         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17043         ALWAYS_CFLAGS.
17044         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17045         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17046         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17047         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17048         Likewise.
17050         * libgomp_g.h: Include <stddef.h> for size_t.
17052         * libgomp.spec.in: Update comment about libgomp's dependencies.
17053         * configure.ac: Likewise.
17054         * configure: Regenerate.
17056 2013-10-16  Tobias Burnus  <burnus@net-b.de>
17058         * libgomp.texi: (Runtime Library Routines): Update references for
17059         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17060         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17061         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17062         (Environment Variables): Update references for OpenMP 4.0. Add
17063         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17064         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17065         order.
17067 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
17069         * env.c (parse_bind_var): Initialize value to avoid
17070         (false positive) warning.
17072 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
17074         PR libgomp/58691
17075         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17076         to check variable.
17077         (gomp_init_num_threads): Move i variable declaration into
17078         #ifdef CPU_ALLOC_SIZE block.
17079         * config/linux/affinity.c (gomp_affinity_init_level): Test
17080         gomp_places_list_len == 0 rather than gomp_places_list == 0
17081         when checking for topology reading error.
17082         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17083         * env.c (parse_affinity): Add ignore argument, if true, don't populate
17084         gomp_places_list, only parse env var and always return false.
17085         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
17086         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17087         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17088         and either of these variables were parsed correctly into a places
17089         list.
17091 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17092             Jakub Jelinek  <jakub@redhat.com>
17094         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17095         of 5 loopfn matches.
17096         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17097         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17098         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17099         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17100         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17101         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17102         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17103         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17105 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17107         * Makefile.am (omp_lib.mod): Streamline rule.
17108         * Makefile.in: Regenerate.
17110         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17111         exceptions.
17113         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17114         * testsuite/libgomp.fortran/lib1.f90: Likewise.
17115         * testsuite/libgomp.fortran/lib2.f: Likewise.
17116         * testsuite/libgomp.fortran/lib3.f: Likewise.
17118         * configure.ac: Typo fix.
17119         * configure: Regenerate.
17121         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17122         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17124         * omp.h.in: Don't touch the user's namespace.
17126 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
17127             Tobias Burnus  <burnus@net-b.de>
17128             Richard Henderson  <rth@redhat.com>
17130         * target.c: New file.
17131         * Makefile.am (libgomp_la_SOURCES): Add target.c.
17132         * Makefile.in: Regenerated.
17133         * libgomp_g.h (GOMP_task): Add depend argument.
17134         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17135         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17136         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17137         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17138         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17139         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17140         GOMP_taskgroup_start, GOMP_taskgroup_end,
17141         GOMP_parallel_sections): New prototypes.
17142         * fortran.c (omp_is_initial_device): Add ialias_redirect.
17143         (omp_is_initial_device_): New function.
17144         (ULP, STR1, STR2, ialias_redirect): Removed.
17145         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17146         omp_set_default_device_8_, omp_get_default_device_,
17147         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17148         functions.
17149         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17150         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17151         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17152         @@GOMP_4.0.
17153         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17154         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17155         omp_set_default_device, omp_set_default_device_,
17156         omp_set_default_device_8_, omp_get_default_device,
17157         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17158         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17159         omp_get_team_num_): Export @@OMP_4.0.
17160         * team.c (struct gomp_thread_start_data): Add place field.
17161         (gomp_thread_start): Clear thr->thread_pool and
17162         thr->task before returning.  Use gomp_team_barrier_wait_final
17163         instead of gomp_team_barrier_wait.  Initialize thr->place.
17164         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17165         team_cancelled and task_queued_count fields.
17166         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17167         before calling pthread_exit.
17168         (gomp_free_thread): No longer static.  Use
17169         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17170         (gomp_team_start): Add flags argument.  Set
17171         thr->thread_pool->threads_busy to nthreads immediately after creating
17172         new pool.  Use gomp_managed_threads_lock instead of
17173         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
17174         (gomp_team_end): Use gomp_managed_threads_lock instead of
17175         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
17176         of gomp_team_barrier_wait.  If team->team_cancelled, call
17177         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17178         rather than thr->ts.work_share.
17179         (initialize_team): Don't call gomp_sem_init here.
17180         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17181         caller.
17182         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17183         * env.c (gomp_global_icv): Add default_device_var, target_data and
17184         bind_var initializers.
17185         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17186         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17187         gomp_places_list_len): New variables.
17188         (parse_bind_var, parse_one_place, parse_places_var): New functions.
17189         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17190         sized places.
17191         (gomp_cancel_var): New global variable.
17192         (parse_int): New function.
17193         (handle_omp_display_env): New function.
17194         (initialize_env): Use it.  Initialize default_device_var.
17195         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
17196         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
17197         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
17198         been successfully parsed (and call gomp_init_affinity in that case).
17199         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17200         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17201         omp_get_team_num, omp_is_initial_device): New functions.
17202         * libgomp.h: Include stdlib.h.
17203         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17204         Define.
17205         (struct target_mem_desc): Forward declare.
17206         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17207         and thread_limit_var fields.
17208         (gomp_get_num_devices): New prototype.
17209         (gomp_cancel_var): New extern decl.
17210         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17211         team_cancelled and task_queued_count fields.  Add comments about
17212         task_{,queued_,running_}count.
17213         (gomp_cancel_kind): New enum.
17214         (gomp_work_share_end_cancel): New prototype.
17215         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17216         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17217         and depend fields.
17218         (struct gomp_taskgroup): New type.
17219         (struct gomp_task_depend_entry,
17220         struct gomp_dependers_vec): New types.
17221         (gomp_finish_task): Free depend_hash if non-NULL.
17222         (struct gomp_team_state): Add place_partition_off
17223         and place_partition_len fields.
17224         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17225         gomp_places_list_len): New extern decls.
17226         (struct gomp_thread): Add place field.
17227         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17228         (gomp_init_thread_affinity): Add place argument.
17229         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17230         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17231         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17232         gomp_affinity_init_level, gomp_affinity_print_place): New
17233         prototypes.
17234         (gomp_team_start): Add flags argument.
17235         (gomp_thread_limit_var, gomp_remaining_threads_count,
17236         gomp_remaining_threads_lock): Remove.
17237         (gomp_managed_threads_lock): New variable.
17238         (struct gomp_thread_pool): Add threads_busy field.
17239         (gomp_free_thread): New prototype.
17240         * task.c: Include hashtab.h.
17241         (hash_entry_type): New typedef.
17242         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17243         (gomp_init_task): Clear dependers, depend_hash, depend_count,
17244         copy_ctors_done and taskgroup fields.
17245         (GOMP_task): Add depend argument, handle depend clauses.  If
17246         gomp_team_barrier_cancelled or if it's taskgroup has been
17247         cancelled, don't queue or start new tasks.  Set copy_ctors_done
17248         field if needed.  Initialize taskgroup field.  If copy_ctors_done
17249         and already cancelled, don't discard the task.  If taskgroup is
17250         non-NULL, enqueue the task into taskgroup queue.  Increment
17251         num_children field in taskgroup.  Increment task_queued_count.
17252         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17253         gomp_task_run_post_remove_taskgroup): New inline functions.
17254         (gomp_task_run_post_handle_depend_hash,
17255         gomp_task_run_post_handle_dependers,
17256         gomp_task_run_post_handle_depend): New functions.
17257         (GOMP_taskwait): Use them.  If more than one new tasks
17258         have been queued, wake other threads if needed.
17259         (gomp_barrier_handle_tasks): Likewise.  If
17260         gomp_team_barrier_cancelled, don't start any new tasks, just free
17261         all tasks.
17262         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17263         * omp_lib.f90.in
17264         (omp_proc_bind_kind, omp_proc_bind_false,
17265         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17266         omp_proc_bind_spread): New params.
17267         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17268         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17269         omp_get_team_num, omp_is_initial_device): New interfaces.
17270         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17271         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17272         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17273         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17274         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17275         useless use omp_lib_kinds.
17276         * omp.h.in (omp_proc_bind_t): New typedef.
17277         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17278         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17279         omp_get_team_num, omp_is_initial_device): New prototypes.
17280         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17281         through to gomp_team_start.
17282         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17283         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17284         Adjust gomp_parallel_loop_start callers.
17285         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17286         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17287         GOMP_loop_end_cancel): New functions.
17288         (GOMP_parallel_end): Add ialias_redirect.
17289         * hashtab.h: New file.
17290         * libgomp.texi (Environment Variables): Minor cleanup,
17291         update section refs to OpenMP 4.0rc2.
17292         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17293         environment variables.
17294         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17295         team->work_shares_to_free to thr->ts.work_share before calling
17296         free_work_share.
17297         (gomp_work_share_end_cancel): New function.
17298         * config/linux/proc.c: Include errno.h.
17299         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17300         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17301         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
17302         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
17303         gomp_cpuset_size is sizeof (cpu_set_t).
17304         (gomp_init_num_threads): Initialize gomp_cpuset_size,
17305         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17306         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17307         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
17308         contain any logical CPUs.
17309         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17310         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
17311         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17312         pthread_getaffinity_np.  Check gomp_places_list instead of
17313         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
17314         * config/linux/bar.c (gomp_barrier_wait_end,
17315         gomp_barrier_wait_last): Use BAR_* defines.
17316         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
17317         from state where needed.  Set work_share_cancelled to 0 on last
17318         thread.
17319         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17320         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17321         functions.
17322         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17323         Add cpusetsize argument.
17324         (gomp_cpuset_size, gomp_cpusetp): Declare.
17325         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17326         (affinity_counter): Remove.
17327         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17328         if CPU_ALLOC_SIZE isn't defined.
17329         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17330         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17331         bind current thread to the first place.
17332         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
17333         pthread_setaffinity_np to gomp_places_list[place].
17334         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17335         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17336         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17337         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17338         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17339         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17340         (gomp_barrier_t): Add awaited_final field.
17341         (gomp_barrier_init): Initialize awaited_final field.
17342         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17343         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17344         prototypes.
17345         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
17346         defines.
17347         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17348         gomp_team_barrier_cancelled): New inline functions.
17349         (gomp_barrier_last_thread,
17350         gomp_team_barrier_set_task_pending,
17351         gomp_team_barrier_clear_task_pending,
17352         gomp_team_barrier_set_waiting_for_tasks,
17353         gomp_team_barrier_waiting_for_tasks,
17354         gomp_team_barrier_done): Use BAR_* defines.
17355         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17356         (gomp_barrier_wait_end): Use BAR_* defines.
17357         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17358         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17359         Use BAR_* defines.
17360         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17361         gomp_team_barrier_cancel): New functions.
17362         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17363         argument.
17364         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17365         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17366         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17367         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17368         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17369         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17370         (gomp_barrier_t): Add cancellable field.
17371         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17372         gomp_team_barrier_cancel): New prototypes.
17373         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17374         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17375         gomp_team_barrier_cancelled): New inline functions.
17376         (gomp_barrier_wait_start, gomp_barrier_last_thread,
17377         gomp_team_barrier_set_task_pending,
17378         gomp_team_barrier_clear_task_pending,
17379         gomp_team_barrier_set_waiting_for_tasks,
17380         gomp_team_barrier_waiting_for_tasks,
17381         gomp_team_barrier_done): Use BAR_* defines.
17382         * barrier.c (GOMP_barrier_cancel): New function.
17383         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17384         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17385         omp_proc_bind_spread): New params.
17386         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17387         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17388         omp_get_team_num, omp_is_initial_device): New externals.
17389         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17390         New functions.
17391         (gomp_resolve_num_threads): Adjust for thread_limit now being in
17392         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17393         infinity.  If not nested, just return minimum of max_num_threads
17394         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17395         to the returned value.  Otherwise, don't update atomically
17396         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17397         (GOMP_parallel_end): Adjust for thread_limit now being in
17398         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17399         infinity.  Adjust threads_busy in the pool rather than
17400         gomp_remaining_threads_count.  Remember team->nthreads and call
17401         gomp_team_end before adjusting threads_busy, if not nested
17402         afterwards, just set it to 1 non-atomically.  Add ialias.
17403         (GOMP_parallel_start): Adjust gomp_team_start caller.
17404         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17405         * testsuite/libgomp.c/affinity-1.c: New test.
17406         * testsuite/libgomp.c/atomic-15.c: New test.
17407         * testsuite/libgomp.c/atomic-16.c: New test.
17408         * testsuite/libgomp.c/atomic-17.c: New test.
17409         * testsuite/libgomp.c/cancel-for-1.c: New test.
17410         * testsuite/libgomp.c/cancel-for-2.c: New test.
17411         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17412         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17413         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17414         * testsuite/libgomp.c/cancel-sections-1.c: New test.
17415         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17416         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17417         * testsuite/libgomp.c/depend-1.c: New test.
17418         * testsuite/libgomp.c/depend-2.c: New test.
17419         * testsuite/libgomp.c/depend-3.c: New test.
17420         * testsuite/libgomp.c/depend-4.c: New test.
17421         * testsuite/libgomp.c/for-1.c: New test.
17422         * testsuite/libgomp.c/for-1.h: New file.
17423         * testsuite/libgomp.c/for-2.c: New test.
17424         * testsuite/libgomp.c/for-2.h: New file.
17425         * testsuite/libgomp.c/for-3.c: New test.
17426         * testsuite/libgomp.c/pr58392.c: New test.
17427         * testsuite/libgomp.c/simd-1.c: New test.
17428         * testsuite/libgomp.c/simd-2.c: New test.
17429         * testsuite/libgomp.c/simd-3.c: New test.
17430         * testsuite/libgomp.c/simd-4.c: New test.
17431         * testsuite/libgomp.c/simd-5.c: New test.
17432         * testsuite/libgomp.c/simd-6.c: New test.
17433         * testsuite/libgomp.c/target-1.c: New test.
17434         * testsuite/libgomp.c/target-2.c: New test.
17435         * testsuite/libgomp.c/target-3.c: New test.
17436         * testsuite/libgomp.c/target-4.c: New test.
17437         * testsuite/libgomp.c/target-5.c: New test.
17438         * testsuite/libgomp.c/target-6.c: New test.
17439         * testsuite/libgomp.c/target-7.c: New test.
17440         * testsuite/libgomp.c/taskgroup-1.c: New test.
17441         * testsuite/libgomp.c/thread-limit-1.c: New test.
17442         * testsuite/libgomp.c/thread-limit-2.c: New test.
17443         * testsuite/libgomp.c/thread-limit-3.c: New test.
17444         * testsuite/libgomp.c/udr-1.c: New test.
17445         * testsuite/libgomp.c/udr-2.c: New test.
17446         * testsuite/libgomp.c/udr-3.c: New test.
17447         * testsuite/libgomp.c++/affinity-1.C: New test.
17448         * testsuite/libgomp.c++/atomic-10.C: New test.
17449         * testsuite/libgomp.c++/atomic-11.C: New test.
17450         * testsuite/libgomp.c++/atomic-12.C: New test.
17451         * testsuite/libgomp.c++/atomic-13.C: New test.
17452         * testsuite/libgomp.c++/atomic-14.C: New test.
17453         * testsuite/libgomp.c++/atomic-15.C: New test.
17454         * testsuite/libgomp.c++/cancel-for-1.C: New test.
17455         * testsuite/libgomp.c++/cancel-for-2.C: New test.
17456         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17457         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17458         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17459         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17460         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17461         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17462         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17463         * testsuite/libgomp.c++/cancel-test.h: New file.
17464         * testsuite/libgomp.c++/for-9.C: New test.
17465         * testsuite/libgomp.c++/for-10.C: New test.
17466         * testsuite/libgomp.c++/for-11.C: New test.
17467         * testsuite/libgomp.c++/simd-1.C: New test.
17468         * testsuite/libgomp.c++/simd-2.C: New test.
17469         * testsuite/libgomp.c++/simd-3.C: New test.
17470         * testsuite/libgomp.c++/simd-4.C: New test.
17471         * testsuite/libgomp.c++/simd-5.C: New test.
17472         * testsuite/libgomp.c++/simd-6.C: New test.
17473         * testsuite/libgomp.c++/simd-7.C: New test.
17474         * testsuite/libgomp.c++/simd-8.C: New test.
17475         * testsuite/libgomp.c++/target-1.C: New test.
17476         * testsuite/libgomp.c++/target-2.C: New test.
17477         * testsuite/libgomp.c++/target-2-aux.cc: New file.
17478         * testsuite/libgomp.c++/target-3.C: New test.
17479         * testsuite/libgomp.c++/taskgroup-1.C: New test.
17480         * testsuite/libgomp.c++/udr-1.C: New test.
17481         * testsuite/libgomp.c++/udr-2.C: New test.
17482         * testsuite/libgomp.c++/udr-3.C: New test.
17483         * testsuite/libgomp.c++/udr-4.C: New test.
17484         * testsuite/libgomp.c++/udr-5.C: New test.
17485         * testsuite/libgomp.c++/udr-6.C: New test.
17486         * testsuite/libgomp.c++/udr-7.C: New test.
17487         * testsuite/libgomp.c++/udr-8.C: New test.
17488         * testsuite/libgomp.c++/udr-9.C: New test.
17490 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
17492         PR testsuite/57605
17493         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17494         ALWAYS_CFLAGS.
17496 2013-09-20  Alan Modra  <amodra@gmail.com>
17498         * configure: Regenerate.
17500 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17502         * testsuite/libgomp.c/sections-2.c: New test.
17504 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17506         * testsuite/libgomp.fortran/strassen.f90:
17507         Add dg-skip-if aarch64_tiny.
17509 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
17510             Cesar Philippidis  <cesar@codesourcery.com>
17512         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17513         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17514         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17515         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17516         * testsuite/libgomp.graphite/graphite.exp: Likewise.
17517         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17518         Use dg-runtest rather than gfortran-dg-runtest.
17520 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17522         * testsuite/libgomp.c/icv-2.c: Extend current handling of
17523         Linux-based x86 systems to cover all GNU systems.
17524         * testsuite/libgomp.c/lock-3.c: Likewise.
17525         * testsuite/libgomp.c/pr48591.c: Likewise.
17527 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17529         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17530         GNU/Hurd, as done for Linux-based systems.
17532         * config/posix/ptrlock.h: Fix comment.
17534 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17536         PR fortran/57423
17537         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17538         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17539         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17540         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17541         omp_destroy_nest_lock): Correct arguments to match the one in
17542         the OpenMP spec.
17543         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17544         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17545         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17546         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17548 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17550         * testsuite/libgomp.c/loop-13.c: New test.
17551         * testsuite/libgomp.c/loop-14.c: New test.
17552         * testsuite/libgomp.c/loop-15.c: New test.
17553         * testsuite/libgomp.c++/loop-13.C: New test.
17554         * testsuite/libgomp.c++/loop-14.C: New test.
17555         * testsuite/libgomp.c++/loop-15.C: New test.
17557 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17559         PR middle-end/56217
17560         * testsuite/libgomp.c++/pr56217.C: New test.
17562 2013-02-01  Alan Modra  <amodra@gmail.com>
17564         * task.c (GOMP_task, GOMP_taskwait): Comment.
17566 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17567             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17569         PR libgomp/55561
17570         * config/linux/wait.h (do_spin): Use atomic load for addr.
17571         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17572         for intptr and ptrlock.
17573         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17574         for ptrlock.
17576 2013-01-22  Alan Modra  <amodra@gmail.com>
17578         PR libgomp/51376
17579         PR libgomp/56073
17580         * task.c (GOMP_task): Revert 2011-12-09 change.
17581         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17582         barrier to read task->children..
17583         (gomp_barrier_handle_tasks): ..and matching atomic store with
17584         release barrier here when setting parent->children to NULL.
17586 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17587             Tobias Burnus  <burnus@net-b.de>
17589         PR driver/55884
17590         * testsuite/libgomp.fortran/fortran.exp: Use
17591         -fintrinsic-modules-path= instead of
17592         -fintrinsic-modules-path.
17594 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17596         Update copyright years.
17598 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17600         * testsuite/libgomp.fortran/fortran.exp: Set
17601         -fintrinsic-modules-path.
17603 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17605         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17606         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17608 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17610         PR libgomp/55411
17611         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17612         if pool had any threads_used.
17614 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17616         * testsuite/libgomp.c++/pr24455.C: Use
17617         -Wl,-undefined,dynamic_lookup on darwin.
17619 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17621         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17623 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17625         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17627 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17628             Jim MacArthur  <jim.macarthur@arm.com>
17629             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17630             Nigel Stephens  <nigel.stephens@arm.com>
17631             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17632             Richard Earnshaw  <rearnsha@arm.com>
17633             Sofiane Naci  <sofiane.naci@arm.com>
17634             Stephen Thomas  <stephen.thomas@arm.com>
17635             Tejas Belagod  <tejas.belagod@arm.com>
17636             Yufeng Zhang  <yufeng.zhang@arm.com>
17638         * configure.tgt: Add AArch64.
17640 2012-10-04  Jason Merrill  <jason@redhat.com>
17642         * testsuite/libgomp.c++/tls-init1.C: New.
17644 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17646         * configure: Regenerated.
17648 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17650         * config/linux/mips/futex.h (sys_futex0): Change to static
17651         function with noinline, nomips16 attributes under MIPS16. Adjust
17652         asm statement to place 'li v0,SYS_futex' immediately before
17653         syscall insn.
17655 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17657         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17658         conflict with index.html on case-insensitive file systems.
17660 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17662         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17663         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17665 2012-07-02  Richard Guenther  <rguenther@suse.de>
17666             Michael Matz  <matz@suse.de>
17667             Tobias Grosser <tobias@grosser.es>
17668             Sebastian Pop <sebpop@gmail.com>
17670         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17671         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17672         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17673         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17675 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17677         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17679 2012-06-22  Richard Guenther  <rguenther@suse.de>
17681         Merge from graphite branch
17682         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17684         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17685         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17687 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17689         PR middle-end/53580
17690         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17691         use GOMP_barrier () call instead.
17692         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17693         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17694         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17695         call GOMP_barrier instead.
17696         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17698 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17700         PR libgomp/52993
17701         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17702         argument to memset call.
17704 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17706         * configure: Regenerated.
17708 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17710         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17712 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17714         PR bootstrap/52812
17715         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17717 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17719         PR middle-end/52547
17720         * testsuite/libgomp.c/pr52547.c: New test.
17722 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17724         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17726 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17728         * configure.tgt (mips-sgi-irix6*): Remove.
17730 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17732         * configure.tgt (alpha*-dec-osf*): Remove.
17734         * config/osf/sem.h: Remove.
17735         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17737 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17739         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17741 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17743         PR libstdc++/52188
17744         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17745         Remove ENABLE_SYMVERS_SOL2.
17746         * configure: Regenerate.
17747         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17748         (PREPROCESS): New variable.
17749         (libgomp.ver): New target.
17750         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17751         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17752         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17753         Use libgomp.ver.
17754         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17755         * Makefile.in: Regenerate.
17757 2012-02-14  Walter Lee  <walt@tilera.com>
17759         * configure.tgt: Handle tilegx and tilepro.
17760         * config/linux/tile/futex.h: New file.
17762 2012-02-08  Richard Guenther  <rguenther@suse.de>
17764         PR tree-optimization/46886
17765         * testsuite/libgomp.c/pr46886.c: New testcase.
17767 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17769         * config/linux/arm: Remove empty directory.
17770         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17772 2011-12-09  Alan Modra  <amodra@gmail.com>
17774         PR libgomp/51376
17775         * task.c (GOMP_taskwait): Don't access task->children outside of
17776         task_lock mutex region.
17777         (GOMP_task): Likewise.
17779 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17781         PR libgomp/51132
17782         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17783         to file scope.
17784         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17785         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17786         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17787         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17788         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17790 2011-12-02  Alan Modra  <amodra@gmail.com>
17792         * config/linux/affinity.c: Use atomic rather than sync builtin.
17793         * config/linux/lock.c: Likewise.
17794         * config/linux/ptrlock.h: Likewise.
17795         * config/linux/ptrlock.c: Likewise.
17796         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17797         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17798         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17799         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17800         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17801         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17802         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17803         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17804         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17805         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17807 2011-11-30  Alan Modra  <amodra@gmail.com>
17809         PR libgomp/51298
17810         * config/linux/bar.h: Use atomic rather than sync builtins.
17811         * config/linux/bar.c: Likewise.  Add missing acquire
17812         synchronisation on generation field.
17813         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17814         double unlock.
17816 2011-11-30  Alan Modra  <amodra@gmail.com>
17818         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17819         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17820         * config/linux/mutex.h: Use atomic rather than sync builtins.
17821         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17822         * config/linux/omp-lock.h: Comment fix.
17823         * config/linux/arm/mutex.h: Delete.
17824         * config/linux/powerpc/mutex.h: Delete.
17825         * config/linux/ia64/mutex.h: Delete.
17826         * config/linux/mips/mutex.h: Delete.
17828 2011-11-30  Alan Modra  <amodra@gmail.com>
17830         PR libgomp/51249
17831         * config/linux/sem.h: Rewrite.
17832         * config/linux/sem.c: Rewrite.
17834 2011-11-28  Richard Henderson  <rth@redhat.com>
17836         * libgomp.h (enum memmodel): New.
17838 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17840         * configure: Regenerate.
17842 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17844         * config/posix95: Remove empty directory.
17846 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17848         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17850 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17852         PR fortran/49792
17853         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17854         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17856 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17858         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17860 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17862         PR libgomp/49965
17863         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17865 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17867         * config/linux/proc.h: New.
17868         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17869         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17870         (gomp_init_num_threads): Update call to cpuset_popcount.
17871         (get_num_procs): Ditto.
17872         * config/linux/affinity.c (gomp_init_affinity): Call
17873         gomp_cpuset_popcount.
17875 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17877         PR fortran/42041
17878         PR fortran/46752
17879         * omp.h.in (omp_in_final): New prototype.
17880         * omp_lib.f90.in (omp_in_final): New interface.
17881         (omp_integer_kind, omp_logical_kind): Remove
17882         and replace all its uses in the module with 4.
17883         (openmp_version): Change to 201107.
17884         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17885         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17886         kind for the parameters.
17887         (omp_in_final): New external.
17888         (openmp_version): Change to 201107.
17889         * task.c (omp_in_final): New function.
17890         (gomp_init_task): Initialize final_task.
17891         (GOMP_task): Remove unused attribute from flags.  Handle final
17892         tasks.
17893         (GOMP_taskyield): New function.
17894         (omp_in_final): Return true if if (false) or final (true) task
17895         or descendant of final (true).
17896         * fortran.c (omp_in_final_): New function.
17897         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17898         (GOMP_3.0): Export GOMP_taskyield.
17899         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17900         variables.
17901         (parse_unsigned_long_list): New function.
17902         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17903         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17904         even if parse_affinity returned false.
17905         * config/linux/affinity.c (gomp_init_affinity): Handle
17906         gomp_cpu_affinity_len == 0.
17907         * libgomp_g.h (GOMP_taskyield): New prototype.
17908         * libgomp.h (struct gomp_task): Add final_task field.
17909         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17910         * team.c (gomp_team_start): Override new task's nthreads_var icv
17911         if list form OMP_NUM_THREADS has been used and it has value for
17912         the new nesting level.
17914         * testsuite/libgomp.c/atomic-11.c: New test.
17915         * testsuite/libgomp.c/atomic-12.c: New test.
17916         * testsuite/libgomp.c/atomic-13.c: New test.
17917         * testsuite/libgomp.c/atomic-14.c: New test.
17918         * testsuite/libgomp.c/reduction-6.c: New test.
17919         * testsuite/libgomp.c/task-5.c: New test.
17920         * testsuite/libgomp.c++/atomic-2.C: New test.
17921         * testsuite/libgomp.c++/atomic-3.C: New test.
17922         * testsuite/libgomp.c++/atomic-4.C: New test.
17923         * testsuite/libgomp.c++/atomic-5.C: New test.
17924         * testsuite/libgomp.c++/atomic-6.C: New test.
17925         * testsuite/libgomp.c++/atomic-7.C: New test.
17926         * testsuite/libgomp.c++/atomic-8.C: New test.
17927         * testsuite/libgomp.c++/atomic-9.C: New test.
17928         * testsuite/libgomp.c++/task-8.C: New test.
17929         * testsuite/libgomp.c++/reduction-4.C: New test.
17930         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17931         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17932         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17933         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17934         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17935         * testsuite/libgomp.fortran/pointer1.f90: New test.
17936         * testsuite/libgomp.fortran/pointer2.f90: New test.
17937         * testsuite/libgomp.fortran/task4.f90: New test.
17939 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17941         * libgomp.texi: Update OpenMP spec references to 3.1.
17942         (omp_in_final,OMP_PROC_BIND): New sections.
17943         (OMP_NUM_THREADS): Document that the value can be now a list.
17944         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17946 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17948         * config/linux/x86/futex.h: Check __x86_64__ instead of
17949         __LP64__.
17951 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17953         PR middle-end/49897
17954         PR middle-end/49898
17955         * testsuite/libgomp.c/pr49897-1.c: New test.
17956         * testsuite/libgomp.c/pr49897-2.c: New test.
17957         * testsuite/libgomp.c/pr49898-1.c: New test.
17958         * testsuite/libgomp.c/pr49898-2.c: New test.
17960 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17962         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17963         for ia32 instead of ilp32.
17965         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17966         * testsuite/libgomp.c/atomic-6.c: Likewise.
17968 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17970         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17971         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17973 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17975         PR libgomp/45351
17976         * config/osf/sem.h: New file.
17977         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17979 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17981         PR target/49541
17982         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17983         ldflags.
17985 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17987         * config/linux/wait.h (do_spin): New inline, largely copied
17988         from do_wait, just don't do futex_wait here, instead return true if
17989         it should be done.
17990         (do_wait): Implement using do_spin.
17991         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17992         to prototype.
17993         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17994         __sync_bool_compare_and_swap, pass the oldval to
17995         gomp_mutex_lock_slow.
17996         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17997         If all mutex contenders are just spinning and not sleeping, don't
17998         change state to 2 unnecessarily.  Optimize the loop when state has
17999         already become 2 to use just one atomic operation per loop instead
18000         of two.
18001         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18002         to prototype.
18003         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18004         __sync_bool_compare_and_swap, pass the oldval to
18005         gomp_mutex_lock_slow.
18007 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
18009         PR libgomp/49490
18010         * iter.c (gomp_iter_static_next): For chunk size 0
18011         only use n ceil/ nthreads size for the first
18012         n % nthreads threads in the team instead of
18013         all threads except for the last few ones which
18014         get less work or none at all.
18015         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18016         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18017         chunk argument, set run_sched_modifier to 0 for static
18018         resp. 1 for other kinds.  If chunk argument is 0
18019         and not static, set value to 1.
18021 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
18023         PR c++/49043
18024         * testsuite/libgomp.c++/pr49043.C: New test.
18026         PR c++/48869
18027         * testsuite/libgomp.c++/pr48869.C: New test.
18029 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18031         PR fortran/48894
18032         * fortran.c: Include limits.h.
18033         (TO_INT): Define.
18034         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18035         *set.
18036         (omp_set_num_threads_8_, omp_set_schedule_8_,
18037         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18038         omp_get_team_size_8_): Use TO_INT macro.
18039         * testsuite/libgomp.fortran/pr48894.f90: New test.
18041 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
18043         PR middle-end/48591
18044         * testsuite/libgomp.c/pr48591.c: New test.
18046 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18048         PR bootstrap/48135
18049         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18050         * configure: Regenerate.
18052 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
18054         PR fortran/47886
18055         * testsuite/libgomp.fortran/task3.f90: New test.
18057 2011-02-24  Tobias Burnus  <burnus@net-b.de>
18059         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18061 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
18063         PR libgomp/47854
18064         * libgomp.texi (omp_get_wtime): Don't say time in the past
18065         must be Unix Epoch.
18067 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18069         PR libgomp/47804
18070         * testsuite/libgomp.fortran/fortran.exp: Check for both
18071         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
18072         but $blddir != "", still append ${blddir}/${lang_library_path}
18073         to ld_library_path.
18075 2011-02-16  Tobias Burnus  <burnus@net-b.de>
18077         PR libgomp/47758
18078         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18079         of libquadmath.a before adding its libpath to ldflags.
18081 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
18083         PR libgomp/47731
18084         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18085         to FUTEX_WAIT futex syscall.
18086         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18088 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18090         * configure: Regenerate.
18092 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
18094         PR libstdc++/36104
18095         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18097 2011-01-16  Gerald Pfeifer
18099         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18101 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
18103         PR fortran/46874
18104         * libgomp.fortran/allocatable6.f90: New test.
18106 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18108         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18109         * configure: Regenerate.
18111 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18113         PR target/40125
18114         PR lto/46695
18115         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18116         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18117         * aclocal.m4: Regenerate.
18118         * configure: Regenerate.
18119         * Makefile.in: Regenerate.
18120         * testsuite/Makefile.in: Regenerate.
18122 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
18124         PR fortran/46753
18125         * libgomp.fortran/pr46753.f90: New test.
18127         PR libgomp/43706
18128         * env.c (initialize_env): Default to spin count 300000
18129         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18130         is specified.
18132         PR libgomp/45240
18133         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18134         at the end if sync builtins aren't supported.
18136 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18138         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18140 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18142         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18144 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
18146         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18148 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18149             Tobias Burnus  <burnus@net-b.de>
18151         PR fortran/32049
18152         * configure.ac:
18153         * configure: Regenerate.
18155 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18157         * config/linux/futex.h: New.
18158         * config/linux/arm/mutex.h: New.
18159         * configure.tgt (arm*-*-linux*): Add config path.
18161 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
18163         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18165 2010-09-23  Tobias Burnus  <burnus@net-b.de>
18167         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18168         Change Fortran datatype to LOGICAL.
18169         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18170         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18172 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18174         * configure: Regenerate.
18176 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
18178         * libgomp.texi: Add function keyword to a couple of Fortran
18179         interfaces, use integer instead of int for Fortran.
18181 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
18183         * libgomp.texi: Fix spelling and pasto problems throughout.
18184         Adjust prototypes to match code.
18186 2010-07-24  Tobias Burnus  <burnus@net-b.de>
18188         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18189         silence -fwhole-file warning.
18191 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18193         * configure.tgt (*-*-solaris2.[56]*): Removed.
18195 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18197         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18198         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18199         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18200         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18201         targetting solaris2*.
18202         * configure: Regenerate.
18203         * config.h.in: Regenerate.
18205         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18206         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18207         Add libgomp_version_dep.
18208         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18209         versioning.
18210         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18211         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18212         * Makefile.in: Regenerate.
18214         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18215         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18216         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18217         to common block, protected by
18218         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18220 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
18222         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
18224 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
18226         PR bootstrap/43170
18227         * configure: Regenerate.
18229 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18231         PR other/43620
18232         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18233         * configure: Regenerate.
18234         * Makefile.in: Regenerate.
18235         * testsuite/Makefile.in: Regenerate.
18237 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18239         PR c/43893
18240         * testsuite/libgomp.c/pr43893.c: New test.
18241         * testsuite/libgomp.c++/pr43893.C: New test.
18243 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18245         PR middle-end/43570
18246         * testsuite/libgomp.fortran/vla8.f90: New test.
18248 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18250         PR libgomp/43706
18251         * config/linux/affinity.c (gomp_init_affinity): Decrease
18252         gomp_available_cpus if affinity mask confines the process to fewer
18253         CPUs.
18254         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18255         non-NULL, just return gomp_available_cpus.
18257         PR libgomp/43569
18258         * sections.c (gomp_sections_init): Initialize ws->mode.
18260 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18262         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18263         not unused bar variable.
18264         * configure: Regenerate.
18266 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18268         * Makefile.in: Regenerate.
18269         * aclocal.m4: Regenerate.
18270         * testsuite/Makefile.in: Regenerate.
18272 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18274         PR libgomp/42942
18275         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18276         (initialize_env): Adjust callers.
18277         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18278         when the argument is 0.
18280         * testsuite/libgomp.c/pr42942.c: New test.
18282 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18284         PR middle-end/42644
18285         PR middle-end/42130
18286         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18287         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18289 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18291         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18292         * testsuite/libgomp.c++/task-6.C: Likewise.
18294 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
18296         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18298 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
18300         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18301         * configure: Regenerate.
18303 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18305         PR fortran/42866
18306         * testsuite/libgomp.fortran/allocatable5.f90: New test.
18308 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
18310         * configure.ac: Test for executability of GFORTRAN.
18311         * configure: Regenerate.
18313 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18315         * configure: Regenerate.
18317 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18319         PR libgomp/42602
18320         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18322 2010-01-03  Richard Guenther  <rguenther@suse.de>
18324         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18326 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
18328         * testsuite/libgomp.graphite/pr4118.c: New.
18330 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18332         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18333         for darwin, protect the test with require-effective-target tls_runtime.
18334         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18336 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18338         PR target/41605
18339         * testsuite/lib/libgomp.exp: Provide -B options to allow for
18340         link spec %s substitutions for static libraries.
18342 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
18344         PR testsuite/42135
18345         * libgomp.graphite/force-parallel-2.c: Reduce array size.
18347 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18349         * Makefile.in: Regenerate.
18350         * configure: Regenerate.
18351         * testsuite/Makefile.in: Regenerate.
18353 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18355         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18356         settings for LC_ALL and LANG.
18358 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
18360         PR fortran/42162
18361         * testsuite/libgomp.fortran/pr42162.f90: New test.
18363 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
18365         PR middle-end/42029
18366         * testsuite/libgomp.c/pr42029.c: New test.
18368 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
18370         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18371         *s.  Accept ld version without text in ()s.
18372         * configure: Regenerated.
18374 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
18376         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18378 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18380         PR libgomp/41418
18381         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18382         or a hyphen (happens with fortran language disabled).
18383         * configure: Regenerate.
18385 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18387         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18388         use sed script portable to Solaris /bin/sed for extracting ld
18389         version.
18390         * configure: Regenerate.
18392 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
18394         * testsuite/libgomp.graphite/bounds.c: New test.
18396 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18398         * Makefile.am (libgomp_la_LINK): New.
18399         * Makefile.in: Regenerate.
18401 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18403         * configure.ac (AC_PREREQ): Bump to 2.64.
18405 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18407         * Makefile.am (install-html, install-pdf): Remove.
18408         * Makefile.in: Regenerate.
18410         * Makefile.in: Regenerate.
18411         * aclocal.m4: Regenerate.
18412         * config.h.in: Regenerate.
18413         * configure: Regenerate.
18414         * testsuite/Makefile.in: Regenerate.
18416 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18418         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18419         * Makefile.in: Regenerate.
18421 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
18423         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18424         * Makefile.in: Regenerate.
18426 2009-08-19  Tobias Burnus  <burnus@net-b.de>
18428         PR fortran/41102
18429         omp_lib.h.in: Fix -std=f95 errors.
18431 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
18433         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18434         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18435         * testsuite/libgomp.graphite/graphite.exp: New.
18437 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
18439         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18440         only build.
18442 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
18444         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18445         needed memory barrier semantics.
18446         * config/linux/mips/mutex.h: New file.
18448 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18450         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18452 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
18454         * configure: Regenerate.
18456 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
18458         PR testsuite/40699
18459         PR testsuite/40707
18460         PR testsuite/40709
18461         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18462         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18463         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18465 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
18467         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18468         options when choosing a multilib.
18470 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
18472         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18473         ld_library_path.  Use add_path.  Add just find_libgcc_s to
18474         ld_library_path, not every libgcc multilib directory.
18475         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18476         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18477         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18478         Use add_path.
18479         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18481 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
18483         * Makefile.am (LTLDFLAGS): Define.
18484         (LINK): Define.
18485         * Makefile.in: Regenerate.
18487 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
18489         PR fortran/39718
18490         * testsuite/libgomp.fortran/fortran.exp: Don't link with
18491         libgfortranbegin, check existence of libgfortran.a instead of
18492         libgfortranbegin.a.
18494 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18496         PR libgomp/40174
18497         * team.c (gomp_thread_start): Destroy thr->release semaphore.
18498         (gomp_free_pool_helper): Likewise.
18500 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
18501             Jakub Jelinek  <jakub@redhat.com>
18503         PR fortran/35423
18504         * testsuite/libgomp.fortran/workshare2.f90: New test.
18506 2009-04-09  Nick Clifton  <nickc@redhat.com>
18508         * iter.c: Change copyright header to refer to version 3 of the
18509         GNU General Public License with version 3.1 of the GCC Runtime
18510         Library Exception and to point readers at the COPYING3 and
18511         COPYING3.RUNTIME files and the FSF's license web page.
18512         * alloc.c: Likewise.
18513         * barrier.c: Likewise.
18514         * config/bsd/proc.c: Likewise.
18515         * config/linux/affinity.c: Likewise.
18516         * config/linux/alpha/futex.h: Likewise.
18517         * config/linux/bar.c: Likewise.
18518         * config/linux/bar.h: Likewise.
18519         * config/linux/ia64/futex.h: Likewise.
18520         * config/linux/ia64/mutex.h: Likewise.
18521         * config/linux/lock.c: Likewise.
18522         * config/linux/mips/futex.h: Likewise.
18523         * config/linux/mutex.c: Likewise.
18524         * config/linux/mutex.h: Likewise.
18525         * config/linux/powerpc/futex.h: Likewise.
18526         * config/linux/proc.c: Likewise.
18527         * config/linux/ptrlock.c: Likewise.
18528         * config/linux/ptrlock.h: Likewise.
18529         * config/linux/s390/futex.h: Likewise.
18530         * config/linux/sem.c: Likewise.
18531         * config/linux/sem.h: Likewise.
18532         * config/linux/sparc/futex.h: Likewise.
18533         * config/linux/wait.h: Likewise.
18534         * config/linux/x86/futex.h: Likewise.
18535         * config/mingw32/proc.c: Likewise.
18536         * config/mingw32/time.c: Likewise.
18537         * config/posix/affinity.c: Likewise.
18538         * config/posix/bar.c: Likewise.
18539         * config/posix/bar.h: Likewise.
18540         * config/posix/lock.c: Likewise.
18541         * config/posix/mutex.h: Likewise.
18542         * config/posix/proc.c: Likewise.
18543         * config/posix/ptrlock.h: Likewise.
18544         * config/posix/sem.c: Likewise.
18545         * config/posix/sem.h: Likewise.
18546         * config/posix/time.c: Likewise.
18547         * config/posix95/lock.c: Likewise.
18548         * critical.c: Likewise.
18549         * env.c: Likewise.
18550         * error.c: Likewise.
18551         * fortran.c: Likewise.
18552         * iter_ull.c: Likewise.
18553         * libgomp.h: Likewise.
18554         * libgomp_f.h.in: Likewise.
18555         * libgomp_g.h: Likewise.
18556         * loop.c: Likewise.
18557         * loop_ull.c: Likewise.
18558         * omp.h.in: Likewise.
18559         * omp_lib.f90.in: Likewise.
18560         * omp_lib.h.in: Likewise.
18561         * ordered.c: Likewise.
18562         * parallel.c: Likewise.
18563         * sections.c: Likewise.
18564         * single.c: Likewise.
18565         * task.c: Likewise.
18566         * team.c: Likewise.
18567         * work.c: Likewise.
18569 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18571         * testsuite/config/default.exp: Change copyright header to refer to
18572         version 3 of the GNU General Public License and to point readers
18573         at the COPYING3 file and the FSF's license web page.
18575 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18577         PR middle-end/39573
18578         * libgomp.c++/pr39573.C: New test.
18580 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18582         PR other/39591
18583         * testsuite/libgomp.c/pr39591-1.c: New test.
18584         * testsuite/libgomp.c/pr39591-2.c: New test.
18585         * testsuite/libgomp.c/pr39591-3.c: New test.
18587 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18589         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18590         * testsuite/libgomp.c/atomic-6.c: Ditto.
18592 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18594         PR c/39495
18595         * testsuite/libgomp.c/loop-12.c: New test.
18596         * testsuite/libgomp.c/loop-11.c: New test.
18597         * testsuite/libgomp.c++/loop-11.C: New test.
18598         * testsuite/libgomp.c++/loop-12.C: New test.
18599         * testsuite/libgomp.c++/for-8.C: New test.
18601 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18603         * configure: Regenerate.
18605 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18607         PR middle-end/39154
18608         * testsuite/libgomp.c/pr39154.c: New test.
18610 2009-01-30  Ian Lance Taylor  <iant@google.com>
18612         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18613         libgomp_ld_is_gold.  Get gold version number.
18614         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18615         * configure: Rebuild.
18617 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18619         * testsuite/lib/libgomp.exp: Add -B option for targets that
18620         use libgfortran.a%s in their specs.
18622 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18624         PR libgomp/38086
18625         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18626         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18627         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18628         * configure: Regenerated.
18629         * config.h.in: Likewise.
18631 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18633         PR c++/38650
18634         * testsuite/libgomp.c/pr38650.c: New test.
18635         * testsuite/libgomp.c++/pr38650.C: New test.
18637 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18639         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18641 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18643         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18645 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18647         * configure: Regenerate.
18649 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18651         PR middle-end/36802
18652         * testsuite/libgomp.c/pr36802-1.c: New test.
18653         * testsuite/libgomp.c/pr36802-2.c: New test.
18654         * testsuite/libgomp.c/pr36802-3.c: New test.
18656 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18658         PR libgomp/38270
18659         * config/linux/powerpc/mutex.h: New.
18661 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18663         PR c++/38257
18664         * testsuite/libgomp.c++/for-7.C: New test.
18666         PR c++/38348
18667         * testsuite/libgomp.c++/for-6.C: New test.
18669 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18671         PR testsuite/28870
18672         * testsuite/lib/libgomp.exp: Include new timeout library files.
18673         (libgomp_target_compile): Set timeout value from new proc.
18675 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18677         PR libgomp/37938
18678         * config/linux/ia64/mutex.h: New.
18680 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18682         PR libgomp/37935
18683         * libgomp.texi (Runtime library routines, environment variables):
18684         Update for OpenMP version 3.0.
18686 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18687             Steve Ellcey  <sje@cup.hp.com>
18689         * configure: Regenerate for new libtool.
18690         * Makefile.in: Ditto.
18691         * testsuite/Makefile.in: Ditto.
18693 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18694             Andreas Tobler  <a.tobler@schweiz.org>
18696         * config/bsd/proc.c: New file.
18697         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18698         * configure.ac: Check for header <sys/sysctl.h>
18699         * configure: Regenerate.
18700         * config.h.in: Likewise.
18702 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18704         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18706 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18708         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18709         * Makefile.in: Regenerated.
18710         * testsuite/Makefile.in: Regenerated.
18712 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18714         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18715         depend on blddir if blddir exists.
18716         (libgomp_target_compile): Likewise.
18717         * testsuite/libgomp.c++/c++.exp: Likewise.
18718         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18720 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18722         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18723         Do not list GPL as Invariant Section.
18725 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18726             Chao-ying Fu  <fu@mips.com>
18728         * configure.tgt: Enable futex for MIPS.
18729         * config/linux/mips/futex.h: New file.
18731 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18733         * team.c (gomp_team_end): Free team immediately if it has
18734         just one thread.
18736 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18738         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18739         * testsuite/libgomp.fortran/fortran.exp: Same.
18740         * testsuite/libgomp.c/c.exp: Same.
18741         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18742         directory to library path first.
18744 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18746         * env.c (parse_stacksize): Add cast to avoid warning.
18747         (parse_spincount): Likewise.
18749 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18751         * testsuite/libgomp.c/loop-10.c: New test.
18752         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18753         * libgomp.c++/loop-6.C (main): Likewise.
18755         PR debug/36617
18756         * testsuite/libgomp.c/debug-1.c: New test.
18758 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18760         * testsuite/libgomp.c/nqueens-1.c: New test.
18762         PR c++/36523
18763         * testsuite/libgomp.c++/task-7.C: New function.
18765 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18767         * configure: Regenerate.
18769 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18771         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18772         mutex when HAVE_SYNC_BUILTINS isn't defined.
18774 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18776         * libgomp.texi (omp_test_lock): Fix typo.
18778 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18780         * omp_lib.f90.in: Add "implicit none".
18782 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18784         PR middle-end/36506
18785         * testsuite/libgomp.c/reduction-5.c: New test.
18787 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18789         * libgomp.h (struct gomp_task): Add in_tied_task field.
18790         * task.c (gomp_init_task): Initialize it.
18791         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18792         unconditionally.  Don't call gomp_team_barrier_wake if
18793         current task is implicit or if(0) from implicit and number of
18794         running tasks is equal to nthreads - 1.
18796         PR libgomp/36471
18797         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18798         omp_get_team_size_8): Fix pastos.
18800         PR libgomp/36469
18801         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18802         * configure: Regenerated.
18803         * config.h.in: Regenerated.
18804         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18805         defined.
18807 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18809         PR bootstrap/36452
18810         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18811         (GOMP_loop_ull_dynamic_start): Likewise.
18812         (GOMP_loop_ull_guided_start): Likewise.
18813         (GOMP_loop_ull_ordered_static_start): Likewise.
18814         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18815         (GOMP_loop_ull_ordered_guided_start): Likewise.
18817 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18818             Richard Henderson  <rth@redhat.com>
18819             Ulrich Drepper  <drepper@redhat.com>
18820             Jakob Blomer  <jakob.blomer@ira.uka.de>
18822         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18823         Substitute also OMP_*LOCK_25*.
18824         * configure: Regenerated.
18825         * config.h.in: Regenerated.
18826         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18827         ptrlock.c and task.c.
18828         * Makefile.in: Regenerated.
18829         * testsuite/Makefile.in: Regenerated.
18830         * task.c: New file.
18831         * loop_ull.c: New file.
18832         * iter_ull.c: New file.
18833         * libgomp.h: Include ptrlock.h.
18834         (enum gomp_task_kind): New type.
18835         (struct gomp_team): Add task_lock, task_queue, task_count,
18836         task_running_count, single_count fields.  Add
18837         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18838         Remove work_share_lock, generation_mask,
18839         oldest_live_gen, num_live_gen and init_work_shares fields, add
18840         work work_share_list_alloc, work_share_list_free and work_share_chunk
18841         fields.  Change work_shares from pointer to pointers into an array.
18842         Change ordered_release field into gomp_sem_t ** from flexible array
18843         member.  Add implicit_task and initial_work_shares fields.
18844         Move close to the end of the struct.
18845         (struct gomp_team_state): Add single_count, last_work_share,
18846         active_level and level fields, remove work_share_generation.
18847         (gomp_barrier_handle_tasks): New prototype.
18848         (gomp_finish_task): New inline function.
18849         (struct gomp_work_share): Move chunk_size, end, incr into
18850         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18851         next_ll fields.  Reshuffle fields.  Add next_alloc,
18852         next_ws, next_free and inline_ordered_team_ids fields, change
18853         ordered_team_ids into pointer from flexible array member.
18854         Add mode field.  Put lock and next into a different cache line
18855         from most of the write-once fields.
18856         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18857         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18858         gomp_iter_ull_guided_next): New prototypes.
18859         (gomp_new_icv): New prototype.
18860         (struct gomp_thread): Add thread_pool and task fields.
18861         (struct gomp_thread_pool): New type.
18862         (gomp_new_team): New prototype.
18863         (gomp_team_start): Change type of last argument.
18864         (gomp_new_work_share): Removed.
18865         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18866         (gomp_work_share_init_done): New static inline.
18867         (gomp_throttled_spin_count_var, gomp_available_cpus,
18868         gomp_managed_threads): New extern decls.
18869         (gomp_init_task): New prototype.
18870         (gomp_spin_count_var): New extern var decl.
18871         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18872         or no alias support, or if not PIC.
18873         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18874         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18875         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18876         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18877         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18878         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18879         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18880         gomp_test_nest_lock_25): New prototypes.
18881         (omp_lock_symver, strong_alias): Define.
18882         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18883         decls.
18884         (gomp_end_task): New.
18885         (struct gomp_task_icv, gomp_global_icv): New.
18886         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18887         (struct gomp_task): New.
18888         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18889         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18890         (gomp_icv): New.
18891         (gomp_schedule_type): Reorder enum to match
18892         omp_sched_t.
18893         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18894         fields.
18895         (gomp_thread_start): Add gomp_team_barrier_wait call.
18896         For non-nested case remove clearing of docked thread thr fields.
18897         Use pool fields instead of global gomp_* variables.  Use
18898         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18899         Create tasks for each member thread.
18900         (free_team): Only destroy team barrier, task_lock here and free it.
18901         (gomp_free_thread): Free last_team if non-NULL.
18902         (gomp_team_end): Call gomp_team_barrier_wait instead of
18903         gomp_barrier_wait.  For nested case call one extra
18904         gomp_barrier_wait.  Move here some destruction from free_team.
18905         Call free_team on pool->last_team if any, rather than freeing
18906         current team.  Destroy work_share_list_free_lock ifndef
18907         HAVE_SYNC_BUILTINS.
18908         (gomp_new_icv): New function.
18909         (gomp_threads, gomp_threads_size, gomp_threads_used,
18910         gomp_threads_dock): Removed.
18911         (gomp_thread_destructor): New variable.
18912         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18913         functions.
18914         (gomp_team_start): Create new pool if current thread doesn't have
18915         one.  Use pool fields instead of global gomp_* variables.
18916         Initialize thread_pool field for new threads.  Clear single_count.
18917         Change last argument from ws to team, don't create
18918         new team, set ts.work_share to &team->work_shares[0] and clear
18919         ts.last_work_share.  Don't clear ts.work_share_generation.
18920         If number of threads changed, adjust atomically gomp_managed_threads.
18921         Use gomp_init_task instead of gomp_new_task,
18922         set thr->task to the corresponding implicit_task array entry.
18923         Create tasks for each member thread.  Initialize ts.level.
18924         (initialize_team): Call pthread_key_create on
18925         gomp_thread_destructor.
18926         (team_destructor): New function.
18927         (new_team): Removed.
18928         (gomp_new_team): New function.
18929         (free_team): Free gomp_work_share blocks chained through next_alloc,
18930         instead of freeing work_shares and destroying work_share_lock.
18931         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18932         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18933         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18934         of gomp_barrier_wait.
18935         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18936         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18937         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18938         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18939         of gomp_barrier_wait.
18940         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18941         gomp_work_share_init_done if gomp_work_share_start returned true.
18942         Don't unlock ws->lock.
18943         * work.c: Include stddef.h.
18944         (free_work_share): Use work_share_list_free_lock instead
18945         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18946         Call gomp_fini_work_share and then either free ws if orphaned, or
18947         put it into work_share_list_free list of the current team.
18948         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18949         functions.
18950         (gomp_work_share_start, gomp_work_share_end,
18951         gomp_work_share_end_nowait): Rewritten.
18952         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18953         (openmp_version): Set to 200805.
18954         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18955         omp_sched_guided, omp_sched_auto): New parameters.
18956         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18957         omp_set_max_active_levels, omp_get_max_active_levels,
18958         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18959         omp_get_active_level): New interfaces.
18960         * omp_lib.h.in (openmp_version): Set to 200805.
18961         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18962         omp_sched_guided, omp_sched_auto): New parameters.
18963         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18964         omp_set_max_active_levels, omp_get_max_active_levels,
18965         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18966         omp_get_active_level): New externals.
18967         * loop.c: Include limits.h.
18968         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18969         GFS_AUTO.
18970         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18971         Likewise.  Use gomp_icv.
18972         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18973         ts.static_trip here.
18974         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18975         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18976         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18977         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18978         don't unlock ws->lock, otherwise lock it.
18979         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18980         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18981         (gomp_parallel_loop_start): Call gomp_new_team instead of
18982         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18983         Adjust gomp_team_start caller.  Pass 0 as second argument to
18984         gomp_resolve_num_threads.
18985         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18986         If adding ws->chunk_size nthreads + 1 times after end won't
18987         overflow, set ws->mode to 1.
18988         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18989         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18990         GOMP_loop_ull_ordered_static_start,
18991         GOMP_loop_ull_ordered_dynamic_start,
18992         GOMP_loop_ull_ordered_guided_start,
18993         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18994         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18995         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18996         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18997         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18998         prototypes.
18999         * libgomp.map: Export lock routines also @@OMP_2.0.
19000         (GOMP_loop_ordered_dynamic_first,
19001         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19002         GOMP_loop_ordered_static_first): Remove.
19003         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19004         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19005         GOMP_loop_ull_ordered_dynamic_next,
19006         GOMP_loop_ull_ordered_dynamic_start,
19007         GOMP_loop_ull_ordered_guided_next,
19008         GOMP_loop_ull_ordered_guided_start,
19009         GOMP_loop_ull_ordered_runtime_next,
19010         GOMP_loop_ull_ordered_runtime_start,
19011         GOMP_loop_ull_ordered_static_next,
19012         GOMP_loop_ull_ordered_static_start,
19013         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19014         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19015         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19016         (omp_set_schedule, omp_get_schedule,
19017         omp_get_thread_limit, omp_set_max_active_levels,
19018         omp_get_max_active_levels, omp_get_level,
19019         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19020         omp_set_schedule_, omp_set_schedule_8_,
19021         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19022         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19023         omp_get_max_active_levels_, omp_get_level_,
19024         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19025         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19026         New exports @@OMP_3.0.
19027         * omp.h.in (omp_sched_t): New type.
19028         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19029         omp_set_max_active_levels, omp_get_max_active_levels,
19030         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19031         omp_get_active_level): New prototypes.
19032         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19033         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19034         gomp_thread_limit_var, gomp_remaining_threads_count,
19035         gomp_remaining_threads_lock): New variables.
19036         (parse_spincount): New function.
19037         (initialize_env): Call gomp_init_num_threads unconditionally.
19038         Initialize gomp_available_cpus.  Call parse_spincount,
19039         initialize gomp_{,throttled_}spin_count_var
19040         depending on presence and value of OMP_WAIT_POLICY and
19041         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
19042         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19043         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
19044         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
19045         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
19046         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19047         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19048         (gomp_global_icv): New.
19049         (parse_schedule): Use it.  Parse "auto".
19050         (omp_set_num_threads): Use gomp_icv.
19051         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19052         Likewise.
19053         (omp_get_max_threads): Move from parallel.c.
19054         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19055         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19056         add ialias.
19057         (parse_stacksize, parse_wait_policy): New functions.
19058         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19059         both wrappers for compatibility and new locks.
19060         (omp_set_schedule, omp_get_schedule,
19061         omp_get_thread_limit, omp_set_max_active_levels,
19062         omp_get_max_active_levels, omp_get_level,
19063         omp_get_ancestor_thread_num, omp_get_team_size,
19064         omp_get_active_level): New ialias_redirect.
19065         (omp_set_schedule_, omp_set_schedule_8_,
19066         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19067         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19068         omp_get_max_active_levels_, omp_get_level_,
19069         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19070         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19071         New functions.
19072         * parallel.c: Include limits.h.
19073         (gomp_resolve_num_threads): Add count argument.  Rewritten.
19074         (GOMP_parallel_start): Call gomp_new_team and pass that as last
19075         argument to gomp_team_start.  Pass 0 as second argument to
19076         gomp_resolve_num_threads.
19077         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19078         if gomp_thread_limit_var != ULONG_MAX.
19079         (omp_in_parallel): Implement using ts.active_level.
19080         (omp_get_max_threads): Move to env.c.
19081         (omp_get_level, omp_get_ancestor_thread_num,
19082         omp_get_team_size, omp_get_active_level): New functions,
19083         add ialias.
19084         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19085         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
19086         gomp_iter_dynamic_next instead of the _locked variant and don't take
19087         lock around it, otherwise acquire it before calling
19088         gomp_iter_dynamic_next_locked.
19089         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19090         gomp_iter_dynamic_next instead of the _locked variant and don't take
19091         lock around it.
19092         (GOMP_parallel_sections_start): Call gomp_new_team instead of
19093         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
19094         Adjust gomp_team_start caller.  Pass count as second argument to
19095         gomp_resolve_num_threads, don't adjust num_threads after the call.
19096         Use gomp_icv.
19097         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19098         ws->chunk_size by incr.
19099         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
19100         code.
19101         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19102         types.
19103         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19104         (omp_check_defines): Check even the compat defines.
19105         * config/linux/ptrlock.c: New file.
19106         * config/linux/ptrlock.h: New file.
19107         * config/linux/wait.h: New file.
19108         * config/posix/ptrlock.c: New file.
19109         * config/posix/ptrlock.h: New file.
19110         * config/linux/bar.h (gomp_team_barrier_wait,
19111         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19112         (gomp_team_barrier_set_task_pending,
19113         gomp_team_barrier_clear_task_pending,
19114         gomp_team_barrier_set_waiting_for_tasks,
19115         gomp_team_barrier_waiting_for_tasks,
19116         gomp_team_barrier_done): New inlines.
19117         (gomp_barrier_t): Rewritten.
19118         (gomp_barrier_state_t): New typedef.
19119         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19120         gomp_barrier_wait_start): Rewritten.
19121         (gomp_barrier_wait_end): Change second argument to
19122         gomp_barrier_state_t.
19123         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19124         inlines.
19125         * config/linux/bar.c: Include wait.h instead of libgomp.h and
19126         futex.h.
19127         (gomp_barrier_wait_end): Rewritten.
19128         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19129         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19130         * config/posix/bar.h (gomp_barrier_t): Add generation field.
19131         (gomp_barrier_state_t): New typedef.
19132         (gomp_team_barrier_wait,
19133         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19134         (gomp_barrier_wait_start): Or all but low 2 bits from generation
19135         into the return value.  Return gomp_barrier_state_t.
19136         (gomp_team_barrier_set_task_pending,
19137         gomp_team_barrier_clear_task_pending,
19138         gomp_team_barrier_set_waiting_for_tasks,
19139         gomp_team_barrier_waiting_for_tasks,
19140         gomp_team_barrier_done): New inlines.
19141         (gomp_barrier_wait_end): Change second argument to
19142         gomp_barrier_state_t.
19143         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19144         inlines.
19145         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19146         (gomp_barrier_wait_end): Change second argument to
19147         gomp_barrier_state_t.
19148         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19149         gomp_team_barrier_wake): New functions.
19150         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19151         futex.h.
19152         (gomp_futex_wake, gomp_futex_wait): New variables.
19153         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19154         * config/linux/lock.c: Rewrite to make locks task owned,
19155         for backwards compatibility provide the old entrypoints
19156         if symbol versioning.  Include wait.h instead of libgomp.h and
19157         futex.h.
19158         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19159         * config/posix95/lock.c: Rewrite to make locks task owned,
19160         for backwards compatibility provide the old entrypoints
19161         if symbol versioning.
19162         * config/posix/lock.c: Rewrite to make locks task owned,
19163         for backwards compatibility provide the old entrypoints
19164         if symbol versioning.
19165         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19166         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19167         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19168         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19169         (sys_futex0): Return error code.
19170         (futex_wake, futex_wait): If ENOSYS was returned, clear
19171         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19172         (cpu_relax, atomic_write_barrier): New static inlines.
19173         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19174         (futex_wake, futex_wait): If ENOSYS was returned, clear
19175         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19176         (cpu_relax, atomic_write_barrier): New static inlines.
19177         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19178         (sys_futex0): Return error code.
19179         (futex_wake, futex_wait): If ENOSYS was returned, clear
19180         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19181         (cpu_relax, atomic_write_barrier): New static inlines.
19182         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19183         (sys_futex0): Return error code.
19184         (futex_wake, futex_wait): If ENOSYS was returned, clear
19185         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19186         (cpu_relax, atomic_write_barrier): New static inlines.
19187         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19188         (sys_futex0): Return error code.
19189         (futex_wake, futex_wait): If ENOSYS was returned, clear
19190         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19191         (cpu_relax, atomic_write_barrier): New static inlines.
19192         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19193         (sys_futex0): Return error code.
19194         (futex_wake, futex_wait): If ENOSYS was returned, clear
19195         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19196         (cpu_relax, atomic_write_barrier): New static inlines.
19197         * config/linux/sem.c: Include wait.h instead of libgomp.h and
19198         futex.h.
19199         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19200         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19201         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19202         types.
19203         (omp_nest_lock_t): Change owner into void *, add lock field.
19204         * config/posix95/omp-lock.h: Include semaphore.h.
19205         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19206         (omp_lock_t): Use sem_t instead of mutex if semaphores
19207         aren't broken.
19208         (omp_nest_lock_t): Likewise.  Change owner to void *.
19209         * config/posix/omp-lock.h: Include semaphore.h.
19210         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19211         (omp_lock_t): Use sem_t instead of mutex if semaphores
19212         aren't broken.
19213         (omp_nest_lock_t): Likewise.  Add owner field.
19215 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19217         * testsuite/libgomp.c/collapse-1.c: New test.
19218         * testsuite/libgomp.c/collapse-2.c: New test.
19219         * testsuite/libgomp.c/collapse-3.c: New test.
19220         * testsuite/libgomp.c/icv-1.c: New test.
19221         * testsuite/libgomp.c/icv-2.c: New test.
19222         * testsuite/libgomp.c/lib-2.c: New test.
19223         * testsuite/libgomp.c/lock-1.c: New test.
19224         * testsuite/libgomp.c/lock-2.c: New test.
19225         * testsuite/libgomp.c/lock-3.c: New test.
19226         * testsuite/libgomp.c/loop-4.c: New test.
19227         * testsuite/libgomp.c/loop-5.c: New test.
19228         * testsuite/libgomp.c/loop-6.c: New test.
19229         * testsuite/libgomp.c/loop-7.c: New test.
19230         * testsuite/libgomp.c/loop-8.c: New test.
19231         * testsuite/libgomp.c/loop-9.c: New test.
19232         * testsuite/libgomp.c/nested-3.c: New test.
19233         * testsuite/libgomp.c/nestedfn-6.c: New test.
19234         * testsuite/libgomp.c/sort-1.c: New test.
19235         * testsuite/libgomp.c/task-1.c: New test.
19236         * testsuite/libgomp.c/task-2.c: New test.
19237         * testsuite/libgomp.c/task-3.c: New test.
19238         * testsuite/libgomp.c/task-4.c: New test.
19239         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19240         to C++ testsuite default compiler options.
19241         * testsuite/libgomp.c++/collapse-1.C: New test.
19242         * testsuite/libgomp.c++/collapse-2.C: New test.
19243         * testsuite/libgomp.c++/ctor-10.C: New test.
19244         * testsuite/libgomp.c++/for-1.C: New test.
19245         * testsuite/libgomp.c++/for-2.C: New test.
19246         * testsuite/libgomp.c++/for-3.C: New test.
19247         * testsuite/libgomp.c++/for-4.C: New test.
19248         * testsuite/libgomp.c++/for-5.C: New test.
19249         * testsuite/libgomp.c++/loop-8.C: New test.
19250         * testsuite/libgomp.c++/loop-9.C: New test.
19251         * testsuite/libgomp.c++/loop-10.C: New test.
19252         * testsuite/libgomp.c++/task-1.C: New test.
19253         * testsuite/libgomp.c++/task-2.C: New test.
19254         * testsuite/libgomp.c++/task-3.C: New test.
19255         * testsuite/libgomp.c++/task-4.C: New test.
19256         * testsuite/libgomp.c++/task-5.C: New test.
19257         * testsuite/libgomp.c++/task-6.C: New test.
19258         * testsuite/libgomp.fortran/allocatable1.f90: New test.
19259         * testsuite/libgomp.fortran/allocatable2.f90: New test.
19260         * testsuite/libgomp.fortran/allocatable3.f90: New test.
19261         * testsuite/libgomp.fortran/allocatable4.f90: New test.
19262         * testsuite/libgomp.fortran/collapse1.f90: New test.
19263         * testsuite/libgomp.fortran/collapse2.f90: New test.
19264         * testsuite/libgomp.fortran/collapse3.f90: New test.
19265         * testsuite/libgomp.fortran/collapse4.f90: New test.
19266         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19267         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19268         * testsuite/libgomp.fortran/lib4.f90: New test.
19269         * testsuite/libgomp.fortran/lock-1.f90: New test.
19270         * testsuite/libgomp.fortran/lock-2.f90: New test.
19271         * testsuite/libgomp.fortran/nested1.f90: New test.
19272         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19273         * testsuite/libgomp.fortran/strassen.f90: New test.
19274         * testsuite/libgomp.fortran/tabs1.f90: New test.
19275         * testsuite/libgomp.fortran/tabs2.f: New test.
19276         * testsuite/libgomp.fortran/task1.f90: New test.
19277         * testsuite/libgomp.fortran/task2.f90: New test.
19278         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19279         * testsuite/libgomp.fortran/vla5.f90: Likewise.
19280         * testsuite/libgomp.c/pr26943-2.c: Likewise.
19281         * testsuite/libgomp.c/pr26943-3.c: Likewise.
19282         * testsuite/libgomp.c/pr26943-4.c: Likewise.
19284 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
19286         PR c++/36308
19287         * testsuite/libgomp.c++/ctor-11.C: New test.
19288         * testsuite/libgomp.c++/ctor-12.C: New test.
19290 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
19292         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19294 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19296         PR middle-end/36106
19297         * testsuite/libgomp.c/atomic-5.c: New test.
19298         * testsuite/libgomp.c/atomic-6.c: New test.
19299         * testsuite/libgomp.c/autopar-1.c: New test.
19301 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19303         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19304         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19305         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19306         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19307         * configure: Regenerate.
19308         * Makefile.in, testsuite/Makefile.in: Likewise.
19310 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19312         PR bootstrap/35457
19313         * aclocal.m4: Regenerate.
19314         * configure: Regenerate.
19316 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19318         PR middle-end/35611
19319         * testsuite/libgomp.c/atomic-4.c: New test.
19321         PR libgomp/35625
19322         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19323         (gomp_iter_guided_next): Likewise.
19324         * testsuite/libgomp.c/pr35625.c: New test.
19326 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19328         * aclocal.m4: Regenerate.
19329         * configure: Likewise.
19330         * Makefile.in: Likewise.
19331         * testsuite/Makefile.in: Likewise.
19333 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19335         PR middle-end/35185
19336         * testsuite/libgomp.c++/pr35185.C: New test.
19338 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19340         PR middle-end/35549
19341         * testsuite/libgomp.c/pr35549.c: New test.
19343 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19345         * testsuite/libgomp.c/atomic-3.c: New test.
19347 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19349         PR fortran/33197
19350         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19351         .F08 file suffixes.
19353 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
19355         PR libgomp/33131
19356         * configure.ac: Add ACX_HEADER_STRING.
19357         * env.c: Include strings.h.
19358         * aclocal.m4: Regenerate.
19359         * config.h.in: Regenerate.
19360         * configure: Regenerate.
19361         * Makefile.in: Regenerate.
19362         * testsuite/Makefile.in: Regenerate.
19364 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19366         PR middle-end/35196
19367         * testsuite/libgomp.c/pr35196.c: New test.
19369         PR middle-end/35130
19370         * testsuite/libgomp.fortran/pr35130.f90: New test.
19371         * testsuite/libgomp.c/pr35130.c: New test.
19373 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
19375         PR middle-end/33880
19376         * testsuite/libgomp.c/pr33880.c: New test.
19377         * testsuite/libgomp.fortran/pr33880.f90: New test.
19379 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
19381         * configure: Regenerate.
19383 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
19385         * configure.ac: Move futex checking into ../config/futex.m4.
19386         * configure: Rebuilt.
19387         * aclocal.m4: Rebuilt.
19388         * Makefile.in: Rebuilt.
19390         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19391         2007-10-15 ../config/tls.m4 change.
19393 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
19395         PR c++/34513
19396         * testsuite/libgomp.c/pr34513.c: New test.
19397         * testsuite/libgomp.c++/pr34513.C: New test.
19399 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
19401         PR target/32765
19402         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19404 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
19406         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
19408 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
19410         * testsuite/libgomp.c/private-1.c: New test.
19412 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
19413             Paolo Bonzini  <bonzini@gnu.org>
19415         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
19416         instead of 'VPATH ='.
19417         * Makefile.in: Regenerate.
19419 2007-11-23  Matthias Klose  <doko@ubuntu.com>
19421         * configure.ac: Adjust makeinfo version check.
19422         * configure: Regenerate.
19424 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
19426         PR fortran/34020
19427         * testsuite/libgomp.fortran/pr34020.f90: New test.
19429 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
19431         PR c++/33894
19432         * testsuite/libgomp.c++/atomic-1.C: New test.
19434 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
19436         PR libgomp/33275
19437         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19438         Make x and y integers rather than (implicit) reals.  Add private (j)
19439         clause to the last omp parallel.
19441 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
19443         * configure: Regenerate following changes to ../config/tls.m4.
19445 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
19447         * testsuite/libgomp.fortran/stack.f90: New test.
19449 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
19451         * config/mingw32/proc.c: New file.
19453 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
19455         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19456         (main): Use __get_cpuid to get i386 target fetaures.
19457         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19458         (main): Use __get_cpuid to get x86_64 target fetaures.
19460 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
19462         PR target/32765
19463         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19464         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19466 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
19468         PR fortran/32550
19469         * testsuite/libgomp.fortran/pr32550.f90: New test.
19470         * testsuite/libgomp.fortran/crayptr2.f90: New test.
19472 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19474         * aclocal.m4: Regenerated.
19476 2007-07-05  Tobias Burnus  <burnus@net-b.de>
19478         PR fortran/32359
19479         * testsuite/libgomp.fortran/pr32359.f90: New.
19481 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
19483         PR libgomp/32468
19484         * sections.c (GOMP_parallel_sections_start): Only decrease
19485         number of threads to COUNT if dyn_var is true.
19486         * testsuite/libgomp.c/pr32468.c: New test.
19488 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19490         PR libgomp/26308
19491         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19493 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
19495         PR middle-end/32362
19496         * testsuite/libgomp.c/pr32362-1.c: New test.
19497         * testsuite/libgomp.c/pr32362-2.c: New test.
19498         * testsuite/libgomp.c/pr32362-3.c: New test.
19500 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
19502         * team.c (gomp_team_start): Fix setting up thread_attr
19503         stack size.
19505 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
19507         * configure: Regenerate.
19509 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
19511         * Makefile.in: Regenerate.
19512         * configure: Regenerate.
19513         * aclocal.m4: Regenerate.
19514         * testsuite/Makefile.in: Regenerate.
19516 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
19518         * config/linux/proc.c: New file.
19520         PR libgomp/28482
19521         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19523 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
19525         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19527 2007-04-16  Matthias Klose  <doko@debian.org>
19529         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19530         flags if not building with -m64.
19531         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19532         flag for i?86-*-* targets, if current target matches -m64.
19534 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19536         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19537         * Makefile.in: Regenerate.
19539 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19541         PR testsuite/31369
19542         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19543         ld_library_path.
19544         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19546 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19548         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19549         decls.
19550         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19551         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19552         (parse_affinity): New function.
19553         (initialize_env): Call it and gomp_init_affinity.
19554         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19555         create new pthread_attr_t and call gomp_init_thread_affinity
19556         on it for each thread before passing the attribute to pthread_create.
19557         * config/linux/affinity.c: New file.
19558         * config/posix/affinity.c: New file.
19559         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19560         * configure: Rebuilt.
19561         * config.h.in: Rebuilt.
19562         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19563         * Makefile.in: Rebuilt.
19565 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19567         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19568         *-*-darwin*.
19569         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19570         and use it if found.
19572 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19574         * testsuite/config/default.exp: New file.
19575         * testsuite/lib/libgomp.exp: New file.
19576         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19577         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19578         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19579         (libgomp_load): Remove.
19580         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19581         always_ld_library_path, not ld_library_path.  Set additional_flags
19582         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19583         (target_compile): Do not call libgomp_init.  Append lang_library_path
19584         and lang_link_flags to options.
19585         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19586         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19587         here.
19588         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19589         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19590         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19591         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19592         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19593         CX8 flag.
19594         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19595         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19596         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19597         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19598         * testsuite/libgomp.c/atomic-10.c: Ditto.
19600 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19602         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19603         dg-final cleanup-modules line.
19604         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19605         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19606         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19607         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19608         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19609         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19610         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19612 2007-03-18  Andreas Schwab  <schwab@suse.de>
19614         * acinclude.m4: Adjust regular expression for ld version
19615         extraction.
19616         * configure: Regenerate.
19618 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19620         * Makefile.am: Add install-pdf target as copied from
19621         automake v1.10 rules.
19622         * Makefile.in: Regenerate
19624 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19626         PR libgomp/28486
19627         * configure: Regenerate.
19629         PR c++/30703
19630         * testsuite/libgomp.c++/pr30703.C: New test.
19632 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19634         Revert:
19635         2006-07-05  Eric Christopher  <echristo@apple.com>
19636         * configure.ac: Depend addition of -pthread on host OS.
19637         * configure: Regenerate.
19639 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19641         * libgomp.texi: Fix spacing after abbreviations.
19643 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19645         PR libgomp/30546
19646         * configure.ac: Add check for makeinfo
19647         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19648         if an appropriate version of makeinfo is found.
19649         * aclocal.m4: Regenerated.
19650         * configure: Regenerated.
19651         * Makefile.in: Regenerated.
19652         * testsuite/Makefile.in: Regenerated.
19654 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19656         PR libgomp/30540
19657         * libgomp.texi: More about implementation-dependent settings.
19659 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19661         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19663 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19665         PR middle-end/30494
19666         * testsuite/libgomp.c/pr30494.c: New test.
19668 2007-01-15  Tom Tromey  <tromey@redhat.com>
19670         * configure: Rebuilt.
19671         * configure.ac: Fixed comment.
19673 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19675         * libgomp.texi: Document implementation specific default values of
19676         environment variables.
19678 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19680         PR libgomp/28209
19681         * libgomp.texi: New file.
19682         * configure.ac: Add --enable-generated-files-in-srcdir option.
19683         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19684         files to srcdir.
19685         * Makefile.in: Regenerated.
19686         * config.h.in: Regenerated.
19687         * testsuite/Makefile.in: Regenerated.
19688         * NOTES: Removed.
19690 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19692         PR libgomp/29949
19693         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19695 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19697         * configure: Regenerate.
19699 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19701         PR libgomp/29947
19702         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19703         start if there shouldn't be any loop iterations.
19704         (gomp_loop_ordered_static_start): Remove start == end test.
19705         * testsuite/libgomp.c/pr29947-1.c: New test.
19706         * testsuite/libgomp.c/pr29947-2.c: New test.
19708 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19710         * configure.tgt: Force initial-exec TLS model on Linux only.
19712 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19714         * configure: Regenerated.
19716 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19718         * env.c (parse_schedule): Reject out of range values.
19719         (parse_unsigned_long): Reject out of range, negative or zero values.
19721 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19723         PR fortran/29629
19724         * testsuite/libgomp.fortran/pr29629.f90: New test.
19726 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19728         PR libgomp/29494
19729         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19730         * config/posix95: New directory.
19731         * config/posix95/omp-lock.h: New file.
19732         * config/posix95/lock.c: Likewise.
19734 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19736         * aclocal.m4: Regenerate.
19737         * configure: Regenerate.
19739 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19741         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19742         '<' to '<='.
19744 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19746         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19747         test.
19748         * configure: Regenerate.
19749         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19751 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19753         PR middle-end/25261
19754         PR middle-end/28790
19755         * testsuite/libgomp.c/nestedfn-4.c: New test.
19756         * testsuite/libgomp.c/nestedfn-5.c: New test.
19757         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19759         PR fortran/29097
19760         * testsuite/libgomp.fortran/condinc1.f: New test.
19761         * testsuite/libgomp.fortran/condinc2.f: New test.
19762         * testsuite/libgomp.fortran/condinc3.f90: New test.
19763         * testsuite/libgomp.fortran/condinc4.f90: New test.
19764         * testsuite/libgomp.fortran/condinc1.inc: New file.
19766 2006-09-18  Tom Tromey  <tromey@redhat.com>
19768         * configure: Rebuilt.
19770 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19772         PR c/28768
19773         PR preprocessor/14634
19774         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19775         to AC_DEFINE.
19776         * configure: Regenerate.
19778 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19780         * testsuite/libgomp.fortran/reduction3.f90: Change
19781         -2147483648 to -huge(i)-1 to avoid overflow.
19782         * testsuite/libgomp.fortran/reduction4.f90: Change
19783         Z'ffffffff' to not(0) to avoid overflow.
19785 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19787         PR libgomp/25938
19788         * Makefile.am (libsubincludedir): New.
19789         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19790         * Makefile.in: Regenerate.
19792 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19794         PR libgomp/28725
19795         * env.c: Include ctype.h.
19796         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19797         leading and/or trailing whitespace and compare strings case
19798         insensitively.
19800 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19802         PR fortran/28390
19803         * testsuite/libgomp.fortran/pr28390.f: New test.
19805 2006-07-05  Eric Christopher  <echristo@apple.com>
19807         * configure.ac: Depend addition of -pthread on host OS.
19808         * configure: Regenerate.
19810 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19812         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19813         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19814         defined.
19816 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19818         PR libgomp/26175
19819         PR libgomp/26477
19820         * configure.ac: If neither --enable-linux-futex nor
19821         --disable-linux-futex is passed, determine the default by checking
19822         for compiling and/or running against NPTL.  With --enable-linux-futex,
19823         check if SYS_gettid and SYS_futex are defined.
19824         * configure: Rebuilt.
19826 2006-06-14  Richard Henderson  <rth@redhat.com>
19828         PR libgomp/28008
19829         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19830         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19832 2006-06-09  Richard Henderson  <rth@redhat.com>
19834         * env.c (gomp_nthreads_var): Change to unsigned long.
19835         (gomp_run_sched_chunk): Likewise.
19836         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19837         (initialize_env): Initialize gomp_thread_attr.
19838         * libgomp.h (gomp_nthreads_var): Update decl.
19839         (gomp_run_sched_chunk): Likewise.
19840         (gomp_thread_attr): Declare.
19841         * team.c (gomp_thread_attr): Export.
19842         (initialize_team): Don't initialize it.
19844 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19846         PR fortran/27916
19847         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19848         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19850 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19852         * config/mingw32/time.c: New file.
19853         * configure.tgt: Use it.
19855 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19857         * Makefile.am: Add install-html target. Add install-html to .PHONY
19858         * Makefile.in: Regenerate.
19860 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19862         PR libgomp/27612
19863         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19864         * testsuite/libgomp.c/critical-1.c: Likewise.
19865         * testsuite/libgomp.c/loop-1.c: Likewise.
19866         * testsuite/libgomp.c/loop-2.c: Likewise.
19867         * testsuite/libgomp.c/single-1.c: Likewise.
19868         * testsuite/libgomp.c/ordered-1.c: Likewise.
19869         * testsuite/libgomp.c/ordered-2.c: Likewise.
19871 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19873         PR middle-end/27416
19874         * libgomp.fortran/pr27416-1.f90: New test.
19876 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19878         PR fortran/27395
19879         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19880         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19882 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19884         PR c++/26943
19885         * testsuite/libgomp.c/pr26943-1.c: New test.
19886         * testsuite/libgomp.c/pr26943-2.c: New test.
19887         * testsuite/libgomp.c/pr26943-3.c: New test.
19888         * testsuite/libgomp.c/pr26943-4.c: New test.
19889         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19890         * testsuite/libgomp.c++/pr26943.C: New test.
19892 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19894         PR middle-end/27337
19895         * testsuite/libgomp.c++/pr27337.C: New test.
19897 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19899         PR c/26171
19900         * testsuite/libgomp.c/pr26171.c: New test.
19902 2006-04-25  Richard Henderson  <rth@redhat.com>
19904         PR libgomp/25865
19905         * configure.ac: Use GCC_CHECK_TLS.
19906         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19907         * Makefile.in, aclocal.m4, configure: Regenerate.
19909 2006-04-10  Matthias Klose  <doko@debian.org>
19911         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19912         directory names containing underscores.
19914 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19916         PR c++/26691
19917         * testsuite/libgomp.c++/pr26691.C: New test.
19919 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19921         * testsuite/libgomp.fortran/retval2.f90: New test.
19923 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19925         * testsuite/libgomp.c++: New directory.
19927 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19929         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19930         * config/posix/sem.c: Implement the above.
19932 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19934         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19935         define HAVE_BROKEN_POSIX_SEMAPHORES.
19936         * configure: Rebuilt.
19937         * config.h.in: Rebuilt.
19939 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19941         PR bootstrap/26161
19942         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19943         for the other pthread check.
19944         * configure: Regenerate.
19945         * config.h.in: Regenerate.
19947 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19949         PR libgomp/25938
19950         PR libgomp/25984
19951         * Makefile.am (fincludedir): New variable.
19952         (nodist_include_HEADERS): Remove Fortran files.
19953         (nodist_finclude_HEADERS): New variable.
19954         * Makefile.in: Regenerated.
19956 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19958         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19959         Remove tests for returning assumed character length arrays.
19961 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19962             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19964         PR libgomp/25936
19965         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19967 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19969         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19971 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19973         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19974         part of LD_LIBRARY_PATH manually.
19976 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19978         PR libgomp/25852
19979         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19980         libgomp_init.
19982 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19984         PR libgomp/25884
19985         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19986         * configure.ac (PERL): Don't set.
19987         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19988         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19989         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19990         * omp.h.in: Wrap the new configure substitutions with @ characters.
19991         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19992         * aclocal.m4, configure, Makefile.in: Regenerate.
19993         * mkomp_h.pl: Delete.
19995 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19997         PR libgomp/25259
19998         * configure.ac: Use GCC_HEADER_STDINT.
19999         * libgomp.h: Include gstdint.h.
20000         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20001         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20003 2006-01-24  Richard Henderson  <rth@redhat.com>
20005         PR libgomp/25942
20006         * configure.ac: Add AM_MAINTAINER_MODE.
20007         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20009 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
20011         * Makefile.in: Regenerate.
20012         * testsuite/Makefile.in: Regenerate.
20013         * aclocal.m4: Regenerate.
20015 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
20017         * config/posix/proc.c: Conditional include of sys/loadavg.h for
20018         Solaris.
20019         * configure.ac: Add check for loadavg.h.
20020         (link_gomp): Adjust comment.
20021         * configure: Regenerate.
20022         * config.h.in: Regenerate.
20024 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
20026         PR libgomp/25877
20027         * configure.ac: Remove check for alloca.h.
20028         * configure: Regenerate.
20029         * config.h.in: Regenerate.
20030         * libgomp.h: define gomp_alloca to be __builtin_alloca.
20031         * team.c: Remove use of alloca.h.
20032         Call gomp_alloca instead of alloca.
20034 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
20036         PR libgomp/25877
20037         * team.c: Add include of alloca.h.
20038         * configure.ac: Add check for alloca.h.
20039         * configure: Regenerate.
20040         * config.h.in: Regenerate.
20042 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
20044         PR fortran/25219
20045         * testsuite/libgomp.fortran/pr25219.f90: New test.
20047 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
20049         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20050         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20051         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20052         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20053         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20054         testsuite/libgomp.fortran/threadprivate1.f90,
20055         testsuite/libgomp.fortran/threadprivate2.f90,
20056         testsuite/libgomp.fortran/threadprivate3.f90,
20057         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20058         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20059         testsuite/libgomp.fortran/omp_parse3.f90: Change required
20060         effective-target to TLS runtime.
20062         * testsuite/libgomp.fortran/pr25162.f: Require
20063         effective-target TLS runtime.
20065 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
20067         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20068         * testsuite/libgomp.c/nestedfn-3.c: New test.
20070 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
20072         PR fortran/25162
20073         * testsuite/libgomp.fortran/pr25162.f: New test.
20075 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
20077         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20078         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20080 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
20082         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20083         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20084         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20085         single.c, team.c, work.c, config/linux/alpha/futex.h,
20086         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20087         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20088         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20089         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20090         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20091         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20092         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20093         FSF address.
20095 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20097         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20098         to nodist_noinst_HEADERS.
20099         * Makefile.in: Rebuilt.
20101         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20102         add integer count field.
20103         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20104         omp_nest_lock_t type change.
20105         (omp_init_nest_lock): Likewise.  Initialize count to 0.
20106         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20107         Increment count.
20108         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20109         Decrement count.
20110         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20111         Increment count if successful and return the new nesting level.
20112         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20113         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20114         * testsuite/libgomp.c/lib-1.c: New test.
20115         * testsuite/libgomp.fortran/lib1.f90: New test.
20116         * testsuite/libgomp.fortran/lib2.f: New test.
20117         * testsuite/libgomp.fortran/lib3.f: New test.
20119 2005-11-17  Richard Henderson  <rth@redhat.com>
20121         PR 24845
20122         * Makefile.am (nodist_toolexeclib_HEADERS): New.
20123         * configure.ac (link_gomp): New.  Substitute it.
20124         (AC_CONFIG_FILES): Add libgomp.spec.
20125         * libgomp.spec.in: New file.
20126         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20127         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20129 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20131         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20132         reduction(-:var) behaving the same as reduction(+:var).
20133         * testsuite/libgomp.c/reduction-4.c: New test.
20135 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
20137         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20138         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20139         testsuite/libgomp.c/copyin-3.c,
20140         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20141         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20142         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20143         testsuite/libgomp.c++/pr24455.C,
20144         testsuite/libgomp.fortran/threadprivate1.f90,
20145         testsuite/libgomp.fortran/threadprivate2.f90,
20146         testsuite/libgomp.fortran/threadprivate3.f90,
20147         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20148         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20149         testsuite/libgomp.fortran/omp_parse3.f90: Require
20150         effective-target TLS.
20152 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
20154         * HEADER: Remove.
20156 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
20158         PR libgomp/24797
20159         * team.c (initialize_team): Pass NULL rather than free as
20160         pthread_key_create destructor.  Initialize thread specific data
20161         pointer in initial thread to a static local variable rather than
20162         malloced memory.
20164 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
20166         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20167         its location to ld_library_path.
20169 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20171         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20173 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20175         * testsuite/libgomp.c: Rename from libgomp.dg.
20177 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
20179         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20180         threadprivate variable 'i'.
20182 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
20184         * config/linux/s390/futex.h: New file.
20185         * configure.tgt: Use it.
20187         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20188         before the parallel.
20190 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
20192         PR c++/24734
20193         * testsuite/libgomp.c++/master-1.C: New test.
20195 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20197         * testsuite/libgomp.dg/copyin-3.c: New test.
20199 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20201         * testsuite/libgomp.fortran/retval1.f90: New test.
20202         * testsuite/libgomp.fortran/vla7.f90: New test.
20204 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
20206         * testsuite/libgomp.fortran/vla2.f90: New test.
20207         * testsuite/libgomp.fortran/vla3.f90: New test.
20208         * testsuite/libgomp.fortran/vla4.f90: New test.
20209         * testsuite/libgomp.fortran/vla5.f90: New test.
20210         * testsuite/libgomp.fortran/vla6.f90: New test.
20212 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
20214         * config/linux/sparc/futex.h: New file.
20215         * configure.tgt: Use it.
20216         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20218         * critical.c: Include stdlib.h.
20219         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20220         ignoring return value.
20221         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20222         LIBGOMP_CHECK_SYNC_BUILTINS check.
20223         * configure: Rebuilt.
20225 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20227         * testsuite/libgomp.fortran/vla1.f90: New test.
20229 2005-10-31  Richard Henderson  <rth@redhat.com>
20231         * testsuite/libgomp.fortran/character2.f90: Fix race condition
20232         setting 's' in different threads.
20234 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20236         * libgomp.h (attribute_hidden, ialias): Define.
20237         * config/posix/proc.c (omp_get_num_procs): Add ialias.
20238         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20239         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20240         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20241         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20242         omp_test_lock, omp_test_nest_lock): Likewise.
20243         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20244         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20245         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20246         omp_test_lock, omp_test_nest_lock): Likewise.
20247         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20248         omp_get_dynamic, omp_get_nested): Likewise.
20249         * parallel.c (omp_get_num_threads, omp_get_max_threads,
20250         omp_get_thread_num, omp_in_parallel): Likewise.
20251         * fortran.c (ialias_redirect): Define.
20252         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20253         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20254         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20255         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20256         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20257         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20258         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20259         omp_get_wtime): Add ialias_redirect.
20261 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
20263         * fortran.c: Include stdlib.h.
20265 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
20267         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20268         * Makefile.in: Regenerated.
20270 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
20272         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20273         * libgomp_f.h.in (omp_check_defines): New function.
20274         * env.c: Include libgomp_f.h.
20275         (initialize_env): Call omp_check_defines.
20277         * testsuite/libgomp.dg/copyin-2.c: New test.
20278         * testsuite/libgomp.c++/copyin-2.C: New test.
20279         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20281         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20282         * testsuite/libgomp.fortran/sharing2.f90: New test.
20284         * testsuite/libgomp.dg/copyin-1.c: New test.
20285         * testsuite/libgomp.c++/copyin-1.C: New test.
20287 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
20289         * testsuite/libgomp.fortran/crayptr1.f90: New test.
20291         * testsuite/libgomp.fortran/workshare1.f90: New test.
20293         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20294         only test.
20295         * libgomp.fortran/sharing1.f90: New test.
20297 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
20299         PR c++/24502
20300         * testsuite/libgomp.c++/loop-7.C: New test.
20302         * testsuite/libgomp.dg/nestedfn-2.c: New test.
20304         * testsuite/libgomp.dg/nestedfn-1.c: New test.
20305         * testsuite/libgomp.fortran/reduction6.f90: New test.
20306         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20308 2005-10-23  Richard Henderson  <rth@redhat.com>
20310         * testsuite/libgomp.c++/ctor-1.C: New.
20311         * testsuite/libgomp.c++/ctor-2.C: New.
20312         * testsuite/libgomp.c++/ctor-3.C: New.
20313         * testsuite/libgomp.c++/ctor-4.C: New.
20314         * testsuite/libgomp.c++/ctor-5.C: New.
20315         * testsuite/libgomp.c++/ctor-6.C: New.
20316         * testsuite/libgomp.c++/ctor-7.C: New.
20317         * testsuite/libgomp.c++/ctor-8.C: New.
20318         * testsuite/libgomp.c++/ctor-9.C: New.
20320 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
20322         PR 24455
20323         * testsuite/libgomp.c++/pr24455-1.C: New test.
20324         * testsuite/libgomp.c++/pr24455.C: New test.
20325         * testsuite/libgomp.dg/pr24455-1.c: New test.
20326         * testsuite/libgomp.dg/pr24455.c: New test.
20328 2005-10-20  Richard Henderson  <rth@redhat.com>
20330         * testsuite/libgomp.c++/loop-6.C: New.
20331         * testsuite/libgomp.dg/loop-3.c: New.
20333 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
20335         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20336         explicitly private.
20337         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20338         explicitly shared.
20340 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
20342         * testsuite/libgomp.fortran/jacobi.f: New test.
20344 2005-10-19  Richard Henderson  <rth@redhat.com>
20346         * configure.tgt (i?86-linux): Default to with_arch instead of
20347         CFLAGS.  Add -mtune to match target_cpu.
20348         (x86_64-linux): Tune to i686.
20350         * fortran.c (omp_test_nest_lock_): Fix typo.
20352 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
20354         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20355         gomp_ordered_sync): Do nothing if team->nthreads == 1.
20356         * testsuite/libgomp.dg/ordered-3.c: New test.
20358         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20359         Remove volatile keyword.
20361         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20362         in COMMON block to avoid warnings on 64-bit targets.
20364 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
20366         * testsuite/libgomp.dg/shared-3.c: New test.
20368 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20370         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20371         * testsuite/libgomp.fortran/reduction5.f90: New test.
20373 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20375         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20376         dg-options.
20377         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
20378         flush loop now that __sync_synchronize has proper memory barrier.
20379         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20380         Add -ffixed-form to dg-options.
20382 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20384         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20385         from subdirectories.
20386         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20387         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20388         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20389         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20390         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20391         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20392         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20393         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20394         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20395         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20396         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20397         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20398         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20399         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20400         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20401         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20402         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20403         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20404         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20405         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20406         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20407         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20408         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20409         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20410         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20412 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
20414         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20415         lang_library_path exists.  Use find instead of glob to gather tests.
20416         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20418 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20420         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20421         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20422         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20423         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20424         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20425         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20426         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20427         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20428         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20429         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20430         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20431         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20432         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20434 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
20436         * testsuite/libgomp.dg/vla-1.c: New test.
20438         * testsuite/libgomp.fortran/reference2.f90: New test.
20440         * testsuite/libgomp.fortran/character2.f90: Remove explicit
20441         declaration of omp_get_thread_num.
20442         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
20443         use omp_lib.
20445         * testsuite/libgomp.fortran/reduction1.f90: New test.
20446         * testsuite/libgomp.fortran/reduction2.f90: New test.
20447         * testsuite/libgomp.fortran/reduction3.f90: New test.
20448         * testsuite/libgomp.fortran/reduction4.f90: New test.
20450 2005-10-13  Richard Henderson  <rth@redhat.com>
20452         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20453         * Makefile.in: Regenerate.
20454         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20455         * libgomp.h: Include bar.h.
20456         (struct gomp_barrier): Remove.
20457         (struct gomp_team): Add barrier.  Replace master_barrier with
20458         master_release.  Replace threads with ordered_release.
20459         (struct gomp_thread): Replace barrier with release.
20460         * ordered.c (gomp_ordered_first): Update for ordered_release change.
20461         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20462         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20463         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20464         (GOMP_single_copy_end): Likewise.
20465         * team.c (gomp_threads_dock): New.
20466         (gomp_barrier_init, gomp_barrier_destroy): Remove.
20467         (gomp_thread_start): Use gomp_barrier_wait.
20468         (new_team, free_team): Update for gomp_team changes.
20469         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20470         (gomp_team_end): Use gomp_barrier_wait.
20471         (initialize_team): Update for gomp_thread changes.
20472         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20473         (gomp_work_share_end_nowait): Use atomic ops when available.
20474         * config/linux/bar.c, config/linux/bar.h: New files.
20475         * config/posix/bar.c, config/posix/bar.h: New files.
20477 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
20479         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20480         * testsuite/libgomp.dg/single-2.c: New test.
20482         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20483         lang_link_flags): Unset, so that they aren't inherited from previously
20484         sourced *.exp.
20486         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20488 2005-10-12  Richard Henderson  <rth@redhat.com>
20490         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20491         (libgomp_init): Use lang_test_file, lang_library_path, and
20492         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
20494         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20495         (lang_test_file, lang_link_flags): New.
20496         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20498         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20499         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20500         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20501         testsuite/libgomp.c++/parallel-1.C,
20502         testsuite/libgomp.c++/reduction-1.C,
20503         testsuite/libgomp.c++/reduction-2.C,
20504         testsuite/libgomp.c++/reduction-3.C,
20505         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20506         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20507         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20508         New files, largely cribbed from the C testsuite.
20510 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
20512         * testsuite/libgomp.fortran/character1.f90: New test.
20513         * testsuite/libgomp.fortran/character2.f90: New test.
20515         * testsuite/libgomp.dg/nested-1.c: New test.
20516         * testsuite/libgomp.dg/nested-2.c: New test.
20517         * testsuite/libgomp.fortran/do1.f90: New test.
20518         * testsuite/libgomp.fortran/do2.f90: New test.
20520         * testsuite/libgomp.fortran/reference1.f90: New test.
20522 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
20524         * testsuite/libgomp.dg/reduction-1.c: New test.
20525         * testsuite/libgomp.dg/reduction-2.c: New test.
20526         * testsuite/libgomp.dg/reduction-3.c: New test.
20528 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20530         * testsuite/libgomp.dg/atomic-1.c: New test.
20531         * testsuite/libgomp.dg/atomic-2.c: New test.
20533 2005-10-09  Richard Henderson  <rth@redhat.com>
20535         * critical.c (atomic_lock): New.
20536         (initialize_critical): Initialize it.
20537         (GOMP_atomic_start, GOMP_atomic_end): New.
20538         * libgomp.map: Export them.
20539         * libgomp_g.h: Declare them.
20541         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20543 2005-10-02  Richard Henderson  <rth@redhat.com>
20545         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20546         to XCFLAGS instead of CFLAGS.
20548 2005-09-30  Richard Henderson  <rth@redhat.com>
20550         * configure.ac: Determine whether -pthread or -lpthread is needed.
20551         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20552         * Makefile.in, configure: Rebuild.
20554 2005-09-28  Richard Henderson  <rth@redhat.com>
20556         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20557         * testsuite/libgomp.dg/omp-single-3.c: New test.
20559 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20561         * testsuite/libgomp.dg/omp-single-2.c: New test.
20562         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20564 2005-09-27  Richard Henderson  <rth@redhat.com>
20566         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20567         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20569 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20571         * testsuite/libgomp.dg/omp-loop03.c: New test.
20573 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20575         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20577 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20579         * testsuite/libgomp.dg/omp-single-1.c: New test.
20580         * testsuite/libgomp.dg/shared-1.c: Return 0.
20581         Add prototype for abort.
20582         * testsuite/libgomp.dg/shared-2.c: Likewise.
20584 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20586         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20587         constructs.
20589 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20591         * testsuite/libgomp.dg/shared-1.c: New test.
20592         * testsuite/libgomp.dg/shared-2.c: New test.
20594 2005-09-24  Richard Henderson  <rth@redhat.com>
20596         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20598 2005-09-24  Richard Henderson  <rth@redhat.com>
20600         * iter.c (gomp_iter_static_next): Round up when computing number
20601         of iterations.  Don't bother distributing a remainder equally.
20603         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20604         Don't call srand.  Zero b before testing.
20605         (main): New.
20607 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20609         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20610         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20612 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20614         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20615         without !$omp end do, followed immediately by subroutine end.
20617 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20619         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20621 2005-09-22  Richard Henderson  <rth@redhat.com>
20623         * critical.c (GOMP_critical_name_start): Change argument to void**.
20624         Reuse the pointer space if the mutex fits.
20625         (GOMP_critical_name_end): Likewise.
20626         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20627         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20628         (GOMP_critical_name_end): Likewise.
20629         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20630         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20632 2005-09-20  Richard Henderson  <rth@redhat.com>
20634         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20635         (create_lock_lock): New.
20636         (initialize_critical): Initialize it.
20637         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20638         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20640 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20642         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20644 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20646         * testsuite/libgomp.dg/omp-loop01.c: New test.
20647         * testsuite/libgomp.dg/omp-loop02.c: New test.
20649 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20651         * configure.ac (AC_PROG_FC): Add.
20652         (USE_FORTRAN): New automake conditional.
20653         * configure: Rebuilt.
20654         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20655         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20656         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20657         Add rules to build them.
20658         * Makefile.in: Rebuilt.
20659         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20660         OMP_NEST_LOCK_KIND.
20661         * libgomp.map: Add Fortran wrappers.
20662         * libgomp_f.h.in: New file.
20663         * omp_lib.h.in: New file.
20664         * omp_lib.f90.in: New file.
20665         * fortran.c: New file.
20666         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20667         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20668         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20669         libgfortran has been built.
20670         * testsuite/libgomp.fortran/fortran.exp: New file.
20671         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20672         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20673         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20674         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20675         * testsuite/libgomp.fortran/omp_hello.f: New test.
20676         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20677         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20678         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20679         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20680         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20681         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20682         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20683         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20685 2005-08-30  Richard Henderson  <rth@redhat.com>
20687         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20688         function for when aliases are not usable.
20689         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20690         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20691         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20692         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20693         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20694         GOMP_loop_ordered_guided_next): Likewise.
20695         * ordered.c (GOMP_ordered_start): Likewise.
20697 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20699         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20700         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20701         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20702         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20703         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20704         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20705         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20706         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20707         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20709 2005-07-07  Eric Christopher  <echristo@redhat.com>
20710             Diego Novillo  <dnovillo@redhat.com>
20712         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20713         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20714         up code.
20715         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20716         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20717         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20718         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20719         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20720         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20721         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20723 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20725         * TOPLEVEL.patch: Remove.
20727 2005-05-16  Richard Henderson  <rth@redhat.com>
20729         * configure.ac: Test for clock_gettime.
20730         * config.h.in, configure: Rebuild.
20731         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20732         (omp_get_wtime): Use clock_gettime if available.
20733         (omp_get_wtick): Use clock_getres if available.
20735 2005-05-11  Richard Henderson  <rth@redhat.com>
20737         * config/linux/ia64/futex.h: New file.
20738         * configure.tgt: Use it.
20740         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20742 2005-05-07  Richard Henderson  <rth@redhat.com>
20744         * config/linux/powerpc/futex.h: New file.
20745         * configure.tgt: Use it.
20747         * config/linux/i486/futex.h: Merge ...
20748         * config/linux/x86_64/futex.h: ... into ...
20749         * config/linux/x86/futex.h: ... here.
20750         * configure.tgt: Update to match.
20752 2005-05-06  Richard Henderson  <rth@redhat.com>
20754         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20755         * config/linux/i486/futex.h: Likewise.
20756         * config/linux/x86_64/futex.h: Likewise.
20758         * config/linux/lock.c: New file.
20759         * config/linux/omp-lock.h: New file.
20761         * critical.c, env.h: Don't include omp.h
20762         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20763         * config/posix/time.c: Likewise.
20764         * config/posix/omp-lock.h: New file.
20765         * libgomp.h: Include omp-lock.h and omp.h.
20766         * Makefile.am (nodist_include_HEADERS): New.
20767         (omp.h): New rule.
20768         * configure.ac (PERL): New.
20769         * mkomp_h.pl: New file.
20770         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20771         with templates.
20772         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20774         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20775         build directory.  Re-add -march=i486 hack.
20777         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20778         (libgomp_link_flags): Remove.
20779         (libgomp_initialized): Remove.
20780         (libgomp_init): Don't protect from reinitialization.  Copy code
20781         from libstdc++ for getting the multilib set correctly.
20783 2005-05-05  Richard Henderson  <rth@redhat.com>
20785         * config/linux/alpha/futex.h: New file.
20786         * configure.tgt (alpha*-*-linux*): Use it.
20788         * config/posix/mutex.c: New file.
20789         * config/posix/sem.c: Use libgomp.h.
20791         * configure.tgt (x86_64-linux): Also test CC for -m32.
20792         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20794         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20795         after $gccpath.
20797         * Makefile.am (SUBDIRS): New.
20798         (libgomp_la_LDFLAGS): Add -lpthread.
20799         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20800         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20802         * libgomp_g.h: New file.
20803         * libgomp.h: Split out all public declarations to libgomp_g.h.
20804         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20805         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20806         * config/linux/sem.h: Likewise.
20807         * config/posix/sem.h: Likewise.
20809         * Makefile.am (AM_LDFLAGS): New.
20810         (libgomp_version_script): Split out from ...
20811         (libgomp_la_LDFLAGS): ... here.
20812         (libgomp_version_info): New.
20813         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20814         (LIBGOMP_ENABLE): New.
20815         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20816         (LIBGOMP_ENABLE_SYMVERS): New.
20817         * configure.ac (AC_INIT): Version 1.0.
20818         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20819         (enable-linux-futex): Likewise.  Rename from enable-futex.
20820         (libtool_VERSION): New.
20821         (LIBGOMP_ENABLE_SYMVERS): Use it.
20822         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20823         * Makefile.in, aclocal.m4, configure: Rebuild.
20825         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20826         (gomp_mutex_unlock_slow): Fix typo.
20827         * config/linux/sem.c: Similarly.
20828         (gomp_sem_post_slow): Fix typo.
20829         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20830         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20831         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20833         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20834         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20835         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20836         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20837         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20838         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20839         LDFLAGS.  Pull enable_futex check to top-level.
20840         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20841         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20843         First attempt at real configury.
20844         * Makefile, config.h: Remove file.
20845         * Makefile.am, Makefile.in: New file.
20846         * acinclude.m4 aclocal.m4: New file.
20847         * configure.ac, configure.tgt, configure: New file.
20849         * config/posix/lock.c: Rename from sys-lock.c.
20850         * config/posix/mutex.h: Rename from sys-mutex.h.
20851         * config/posix/sem.c: Rename from sys-sem.c.
20852         * config/posix/sem.h: Rename from sys-sem.h.
20853         * config/posix/proc.c: Rename from sys-proc.c.
20854         * config/posix/time.c: Rename from sys-proc.c.
20856         * config/linux/mutex.c: New file.
20857         * config/linux/mutex.h: New file.
20858         * config/linux/sem.c: New file.
20859         * config/linux/sem.h: New file.
20860         * config/linux/i486/futex.h: New file.
20861         * config/linux/x86_64/futex.h: New file.
20863 2005-05-04  Richard Henderson  <rth@redhat.com>
20865         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20866         * libgomp.h: Declare them.
20867         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20868         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20870 2005-05-04  Richard Henderson  <rth@redhat.com>
20872         * libgomp-1 code drop
20874 2005-05-04  Richard Henderson  <rth@redhat.com>
20876         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20877         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20878         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20879         (gomp_iter_static_next): Update.
20880         (gomp_ordered_static_next): Update.
20881         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20882         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20883         totally empty range.
20884         (gomp_loop_ordered_static_next): Refine test for calling
20885         gomp_ordered_static_next.
20886         * testsuite/ordered-1.c: Add case for more threads than iterations.
20888         * iter.c (gomp_iter_runtime_next_locked): Remove.
20889         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20890         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20891         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20892         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20893         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20894         gomp_loop_ordered_guided_next): Downcase name, make static, add
20895         an external alias with the old name.
20896         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20897         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20898         switch and call one of the above static functions.
20899         * libgomp.h: Update.
20901         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20902         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20903         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20904         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20905         GOMP_loop_ordered_guided_start): Update to match.
20906         * sections.c (GOMP_sections_start): Likewise.
20907         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20909         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20910         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20911         Use bounds check instead of modulus.
20912         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20913         (gomp_ordered_last): Don't sync with ordered_owner here.
20914         (gomp_ordered_next): Likewise.
20915         (gomp_ordered_static_loop_next): Likewise.
20916         * loop.c, libgomp.h: Update to match.
20918         * libgomp.h (GOMP_barrier): Declare.
20920         * testsuite/barrier-1.c: New file.
20921         * testsuite/critical-1.c: New file.
20922         * testsuite/ordered-2.c: New file.
20923         * testsuite/ordered-1.c: New file.
20924         * testsuite/sections-1.c: New file.
20925         * testsuite/single-1.c: New file.
20926         * testsuite/Makefile (TESTS): Add them.
20928 2005-05-04  Richard Henderson  <rth@redhat.com>
20930         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20931         * loop.c (GOMP_loop_static_start): If not the startup thread,
20932         acquire the mutex to wait for initialization complete.
20933         (GOMP_loop_ordered_static_start): Likewise.
20934         (GOMP_loop_ordered_runtime_start): Likewise.
20935         (GOMP_loop_ordered_static_first): Remove.
20936         (GOMP_loop_ordered_dynamic_first): Remove.
20937         (GOMP_loop_ordered_guided_first): Remove.
20938         (GOMP_loop_ordered_runtime_first): Remove.
20939         * ordered.c (gomp_ordered_loop_first): Post to own release when
20940         we're the first thread.
20941         (gomp_ordered_loop_last): Wait on release if not owner.
20942         (gomp_ordered_loop_next): Likewise.
20943         (gomp_ordered_static_loop_init): New.
20944         (gomp_ordered_static_loop_next): Use ordered_owner.
20945         (GOMP_ordered_start): Likewise.
20946         * work.c (gomp_new_work_share): Initialize ordered_owner.
20948 2005-05-03  Richard Henderson  <rth@redhat.com>
20950         * Makefile (OPT): New.
20951         (CFLAGS): Use it.
20953         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20954         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20955         * libgomp.h, libgomp.map, NOTES: Update to match.
20957         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20958         Add initialized and thr members.
20959         (gomp_thread_start): Pause when initially spawned to wait for
20960         the whole team to be created.
20961         (gomp_team_start): Release team members at the end.
20963         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20964         (f_foo_1): Use GOMP_loop_end.
20965         (f_foo_2): Use GOMP_loop_end_nowait.
20967         * testsuite/loop-2.c: New file.
20968         * testsuite/Makefile (TESTS): Add it.
20970 2005-05-03  Richard Henderson  <rth@redhat.com>
20972         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20973         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20974         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20975         initial work_share.
20977         * testsuite/Makefile: New file.
20978         * testsuite/loop-1.c: New file.
20980 2005-05-03  Richard Henderson  <rth@redhat.com>
20982         Initial implementation and checkin.
20984 Copyright (C) 2005-2024 Free Software Foundation, Inc.
20986 Copying and distribution of this file, with or without modification,
20987 are permitted in any medium without royalty provided the copyright
20988 notice and this notice are preserved.