Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blobe9b4da519f83074f5a9a2f2e07d2ddd59aa19df9
1 2024-01-11  Julian Brown  <julian@codesourcery.com>
3         * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
4         * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
5         * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
7 2024-01-10  Jakub Jelinek  <jakub@redhat.com>
9         PR libgomp/113192
10         * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
11         instead of \$(abs_top_srcdir)/testsuite/flock.
12         * configure: Regenerated.
14 2024-01-09  Julian Brown  <julian@codesourcery.com>
16         * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
17         now work.
18         * testsuite/libgomp.c++/baseptrs-6.C: New test.
19         * testsuite/libgomp.c++/ind-base-1.C: New test.
20         * testsuite/libgomp.c++/ind-base-2.C: New test.
21         * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
22         * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
23         * testsuite/libgomp.c++/map-comma-1.C: New test.
24         * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
25         * testsuite/libgomp.c++/struct-ref-1.C: New test.
26         * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
27         * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
28         * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
30 2024-01-09  Jakub Jelinek  <jakub@redhat.com>
32         PR libgomp/113192
33         * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
34         rather than $srcdir/testsuite/flock.
35         * configure: Regenerated.
37 2024-01-08  Thomas Schwinge  <thomas@codesourcery.com>
39         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
40         'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
42 2024-01-08  Julian Brown  <julian@codesourcery.com>
44         * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
45         hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
46         hsa_amd_memory_async_copy_rect_fn function pointers.
47         (init_hsa_runtime_functions): Add above functions, with
48         DLSYM_OPT_FN.
49         (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
51 2024-01-08  Tobias Burnus  <tobias@codesourcery.com>
53         * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
54         (gcn_isa_name_len): Fix length.
55         (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
57 2024-01-06  Tobias Burnus  <tobias@codesourcery.com>
59         * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
60         (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
61         omp_target_is_accessible.
62         (Environment Display Routine): Uncomment and add
63         omp_display_env description.
64         (OMP_DISPLAY_ENV): Update wording, add 'see also'.
66 2024-01-06  Mark Wielaard  <mark@klomp.org>
68         * configure: Regenerate.
70 2024-01-03  Jakub Jelinek  <jakub@redhat.com>
72         * libgomp.texi: Bump @copying's copyright year.
74 2023-12-21  Julian Brown  <julian@codesourcery.com>
76         * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
78 2023-12-20  Julian Brown  <julian@codesourcery.com>
80         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
81         avoid out-of-bounds array checks in CUDA runtime.
82         (GOMP_OFFLOAD_memcpy3d): Likewise.
83         * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
85 2023-12-18  Jakub Jelinek  <jakub@redhat.com>
87         * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
88         drop because of that unneeded target selector from other directives
89         and remove the aarch64 specific ones.
91 2023-12-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
93         * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
94         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
96 2023-12-15  Thomas Schwinge  <thomas@codesourcery.com>
98         * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
99         'dg-output's to 'target offload_device_nonshared_as'.
101 2023-12-15  Julian Brown  <julian@codesourcery.com>
103         * oacc-mem.c (find_group_last, goacc_enter_data_internal,
104         goacc_exit_data_internal, GOACC_enter_exit_data): Add
105         GOMP_MAP_STRUCT_UNORD support.
106         * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
107         Detect incorrect use of variable indexing of arrays of structs.
108         (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
109         GOMP_MAP_STRUCT_UNORD support.
110         * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
111         * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
112         * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
113         * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
115 2023-12-13  Julian Brown  <julian@codesourcery.com>
117         * testsuite/libgomp.fortran/map-subarray.f90: New test.
118         * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
119         * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
120         * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
121         * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
122         * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
123         * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
124         * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
125         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
126         descriptor-mapping changes.  Remove XFAIL.
128 2023-12-13  Julian Brown  <julian@codesourcery.com>
130         * target.c (gomp_map_pointer): Modify zero-length array section
131         pointer handling.
132         (gomp_attach_pointer): Likewise.
133         (gomp_map_fields_existing): Use gomp_map_0len_lookup.
134         (gomp_attach_pointer): Allow attaching null pointers (or Fortran
135         "unassociated" pointers).
136         (gomp_map_vars_internal): Handle zero-sized struct members.  Add
137         diagnostic for unmapped struct pointer members.
138         * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
139         * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
140         * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
141         * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
142         * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
143         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
144         "free".
145         * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
146         * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
147         * testsuite/libgomp.c++/class-array-1.C: New test.
148         * testsuite/libgomp.c++/baseptrs-3.C: New test.
149         * testsuite/libgomp.c++/baseptrs-4.C: New test.
150         * testsuite/libgomp.c++/baseptrs-5.C: New test.
151         * testsuite/libgomp.c++/baseptrs-8.C: New test.
152         * testsuite/libgomp.c++/baseptrs-9.C: New test.
153         * testsuite/libgomp.c++/ref-mapping-1.C: New test.
154         * testsuite/libgomp.c++/target-48.C: New test.
155         * testsuite/libgomp.c++/target-49.C: New test.
156         * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
157         * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
158         semantics.
159         * testsuite/libgomp.c++/target-this-3.C: Likewise.
160         * testsuite/libgomp.c++/target-this-4.C: Likewise.
161         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
162         * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
164 2023-12-13  Thomas Schwinge  <thomas@codesourcery.com>
166         * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
167         vs. '%ld' format string mismatch.
169 2023-12-13  Andrew Stubbs  <ams@codesourcery.com>
170             Thomas Schwinge  <thomas@codesourcery.com>
172         * allocator.c (MEMSPACE_ALLOC): Add PIN.
173         (MEMSPACE_CALLOC): Add PIN.
174         (MEMSPACE_REALLOC): Add PIN.
175         (MEMSPACE_FREE): Add PIN.
176         (MEMSPACE_VALIDATE): Add PIN.
177         (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
178         (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
179         (omp_aligned_calloc): Likewise.
180         (omp_realloc): Likewise.
181         (omp_free): Likewise.
182         * config/linux/allocator.c: New file.
183         * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
184         (MEMSPACE_CALLOC): Add PIN.
185         (MEMSPACE_REALLOC): Add PIN.
186         (MEMSPACE_FREE): Add PIN.
187         (MEMSPACE_VALIDATE): Add PIN.
188         * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
189         (MEMSPACE_CALLOC): Add PIN.
190         (MEMSPACE_REALLOC): Add PIN.
191         (MEMSPACE_FREE): Add PIN.
192         * libgomp.texi: Switch pinned trait to supported.
193         (MEMSPACE_VALIDATE): Add PIN.
194         * testsuite/libgomp.c/alloc-pinned-1.c: New test.
195         * testsuite/libgomp.c/alloc-pinned-2.c: New test.
196         * testsuite/libgomp.c/alloc-pinned-3.c: New test.
197         * testsuite/libgomp.c/alloc-pinned-4.c: New test.
199 2023-12-11  Lipeng Zhu  <lipeng.zhu@intel.com>
201         * testsuite/libgomp.fortran/rwlock_1.f90: New file.
202         * testsuite/libgomp.fortran/rwlock_2.f90: New file.
203         * testsuite/libgomp.fortran/rwlock_3.f90: New file.
205 2023-12-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>
207         * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
208         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
210 2023-12-11  Tobias Burnus  <tobias@codesourcery.com>
212         * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
214 2023-12-08  Tobias Burnus  <tobias@codesourcery.com>
216         * allocator.c (struct fort_alloc_splay_tree_key_s,
217         fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
218         * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
219         * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
220         GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
221         (GOMP_5.1.1): ... here.
222         * libgomp.texi (Impl. Status, Memory management): Update for
223         allocators/allocate directives.
224         * splay-tree.c: Handle splay_tree_static define to declare all
225         functions as static.
226         (splay_tree_lookup_node): New.
227         * splay-tree.h: Handle splay_tree_decl_only define.
228         (splay_tree_lookup_node): New prototype.
229         * target.c: Define splay_tree_static for 'reverse'.
230         * testsuite/libgomp.fortran/allocators-1.f90: New test.
231         * testsuite/libgomp.fortran/allocators-2.f90: New test.
232         * testsuite/libgomp.fortran/allocators-3.f90: New test.
233         * testsuite/libgomp.fortran/allocators-4.f90: New test.
234         * testsuite/libgomp.fortran/allocators-5.f90: New test.
236 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
238         * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
239         (TEAM_ARENA_FREE): Likewise.
240         (TEAM_ARENA_END): Likewise.
241         (GCN_LOWLAT_HEAP): New.
242         * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
243         (__gcn_lowlat_init): New prototype.
244         (gomp_gcn_enter_kernel): Initialize the low-latency heap.
245         * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
246         (TEAM_ARENA_FREE): Likewise.
247         (TEAM_ARENA_END): Likewise.
248         * plugin/plugin-gcn.c (lowlat_size): New variable.
249         (print_kernel_dispatch): Label the group_segment_size purpose.
250         (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
251         (create_kernel_dispatch): Pass low-latency head allocation to kernel.
252         (run_kernel): Use shadow; don't assume values.
253         * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
254         * config/gcn/allocator.c: New file.
255         * libgomp.texi: Document low-latency implementation details.
257 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
259         * allocator.c (MEMSPACE_VALIDATE): New macro.
260         (omp_init_allocator): Use MEMSPACE_VALIDATE.
261         (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
262         (omp_aligned_calloc): Likewise.
263         (omp_realloc): Likewise.
264         * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
265         (MEMSPACE_VALIDATE): New macro.
266         (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
267         * libgomp.texi: Document low-latency implementation details.
268         * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
269         * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
270         * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
271         * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
272         * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
273         * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
274         * testsuite/libgomp.c/omp_alloc-traits.c: New test.
276 2023-12-06  Andrew Stubbs  <ams@codesourcery.com>
277             Kwok Cheung Yeung   <kcy@codesourcery.com>
278             Thomas Schwinge  <thomas@codesourcery.com>
280         * allocator.c (MEMSPACE_ALLOC): New macro.
281         (MEMSPACE_CALLOC): New macro.
282         (MEMSPACE_REALLOC): New macro.
283         (MEMSPACE_FREE): New macro.
284         (predefined_alloc_mapping): New array.  Add _Static_assert to match.
285         (ARRAY_SIZE): New macro.
286         (omp_aligned_alloc): Use MEMSPACE_ALLOC.
287         Implement fall-backs for predefined allocators.  Simplify existing
288         fall-backs.
289         (omp_free): Use MEMSPACE_FREE.
290         (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
291         predefined allocators.  Simplify existing fall-backs.
292         (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
293         Implement fall-backs for predefined allocators.  Simplify existing
294         fall-backs.
295         * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
296         (__nvptx_lowlat_init): New prototype.
297         (gomp_nvptx_main): Call __nvptx_lowlat_init.
298         * libgomp.texi: Update memory space table.
299         * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
300         (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
301         (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
302         * basic-allocator.c: New file.
303         * config/nvptx/allocator.c: New file.
304         * testsuite/libgomp.c/omp_alloc-1.c: New test.
305         * testsuite/libgomp.c/omp_alloc-2.c: New test.
306         * testsuite/libgomp.c/omp_alloc-3.c: New test.
307         * testsuite/libgomp.c/omp_alloc-4.c: New test.
308         * testsuite/libgomp.c/omp_alloc-5.c: New test.
309         * testsuite/libgomp.c/omp_alloc-6.c: New test.
311 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
313         * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
314         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
315         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
316         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
317         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
318         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
319         * testsuite/libgomp.c/declare-variant-4.h: Likewise.
320         * testsuite/libgomp.c/declare-variant-4.c: New.
322 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
324         * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
325         into 'dg-do link'.
326         * testsuite/libgomp.c/declare-variant-3.c: New.
327         * testsuite/libgomp.c/declare-variant-3.h: Extend.
329 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
331         * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
332         'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
333         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
334         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
335         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
336         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
337         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
338         * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
339         'scan-offload-tree-dump' to
340         'only_for_offload_target amdgcn-amdhsa'.
341         * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
342         * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
343         * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
344         * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
345         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
347 2023-11-30  Thomas Schwinge  <thomas@codesourcery.com>
349         * testsuite/libgomp.c/declare-variant-3-sm30.c:
350         'dg-additional-options -foffload=nvptx-none'.
351         * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
352         * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
353         * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
354         * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
355         * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
357 2023-11-29  Thomas Schwinge  <thomas@codesourcery.com>
359         * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
360         'scan-offload-ipa-dump's to
361         'only_for_offload_target amdgcn-amdhsa'.
362         * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
363         * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
365 2023-11-24  Tobias Burnus  <tobias@codesourcery.com>
367         * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
368         is now supported.
370 2023-11-22  Thomas Schwinge  <thomas@codesourcery.com>
372         * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
373         (f75, f80, f): Add '__attribute__ ((noipa))'.
374         * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
375         (gfx908, gfx90a, f): Likewise.
377 2023-11-15  Andrew Stubbs  <ams@codesourcery.com>
378             Andrew Jenner   <andrew@codesourcery.com>
380         * plugin/plugin-gcn.c (max_isa_vgprs): New.
381         (run_kernel): CDNA2 devices have more VGPRs.
383 2023-11-10  Tobias Burnus  <tobias@codesourcery.com>
385         * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
386         renamed section from TR11.
388 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
390         * config/linux/target-indirect.c: Move to...
391         * target-indirect.c: ...here.
393 2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>
395         * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
396         * Makefile.in: Regenerate.
397         * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
398         (GOMP_OFFLOAD_load_image): Add extra argument.
399         * libgomp.h (struct indirect_splay_tree_key_s): New.
400         (indirect_splay_tree_node, indirect_splay_tree,
401         indirect_splay_tree_key): New.
402         (indirect_splay_compare): New.
403         * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
404         * libgomp.texi (OpenMP 5.1): Update documentation on indirect
405         calls in target region and on indirect clause.
406         (Other new OpenMP 5.2 features): Add entry for virtual function calls.
407         * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
408         * oacc-host.c (host_load_image): Add extra argument.
409         * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
410         enough, read host indirect functions table and pass to
411         load_image_func.
412         * config/accel/target-indirect.c: New.
413         * config/linux/target-indirect.c: New.
414         * config/gcn/team.c (build_indirect_map): Add prototype.
415         (gomp_gcn_enter_kernel): Initialize support for indirect
416         function calls on GCN target.
417         * config/nvptx/team.c (build_indirect_map): Add prototype.
418         (gomp_nvptx_main): Initialize support for indirect function
419         calls on NVPTX target.
420         * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
421         indirect functions count.
422         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
423         is high enough, build address translation table and copy it to target
424         memory.
425         * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
426         functions count.
427         (GOMP_OFFLOAD_load_image): Add extra argument.  If the GOMP_VERSION
428         is high enough, Build address translation table and copy it to target
429         memory.
430         * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
431         * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
432         * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
434 2023-11-05  Jakub Jelinek  <jakub@redhat.com>
436         * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
437         supported also in C.
439 2023-10-31  Thomas Schwinge  <thomas@codesourcery.com>
441         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
442         'acc_map_data' variant.
444 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
446         * oacc-parallel.c (GOACC_data_start): Handle
447         'GOACC_FLAG_LOCAL_DEVICE'.
448         (GOACC_parallel_keyed): Simplify accordingly.
449         * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
451 2023-10-25  Thomas Schwinge  <thomas@codesourcery.com>
453         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
454         * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
455         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
456         * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
457         * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
459 2023-10-25  Chung-Lin Tang  <cltang@codesourcery.com>
461         * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
462         GOACC_FLAG_LOCAL_DEVICE case.
463         * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
465 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
467         * Makefile.am: Handle Darwin rpaths.
468         * Makefile.in: Regenerate.
469         * configure: Regenerate.
470         * configure.ac: Handle Darwin rpaths
472 2023-10-20  Andrew Stubbs  <ams@codesourcery.com>
474         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
475         (isa_hsa_name): Recognise gfx1030.
476         (isa_code): Likewise.
477         * team.c (defined): Remove s_endpgm.
479 2023-10-20  Tobias Burnus  <tobias@codesourcery.com>
481         * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
482         _OPENMP >= 201811.
484 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
486         * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
487         improve wording especially for Fortran; mention -fopenmp-simd.
488         (Enabling OpenACC): Minor cleanup; remove conditional compilation
489         sentinel.
491 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
493         * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
494         Actually document what the function does.
495         (GCC_ACC_NOTIFY): Remove unused env var.
497 2023-10-15  Tobias Burnus  <tobias@codesourcery.com>
499         * libgomp.texi: Replace most future tense by present tense.
501 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
503         * testsuite/libgomp.fortran/allocate-6.f90: Add missing
504         dg-additional-options "-fdump-tree-gimple"; fix scan.
506 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
508         * libgomp.texi: Fix some typos.
509         (Memory Management Routines): Document remaining 5.x routines.
510         (Memory allocation): Make clear when the section applies.
512 2023-10-14  Tobias Burnus  <tobias@codesourcery.com>
514         * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
515         supports the allocate directive for stack variables.
516         * testsuite/libgomp.fortran/allocate-5.f90: New test.
517         * testsuite/libgomp.fortran/allocate-6.f90: New test.
518         * testsuite/libgomp.fortran/allocate-7.f90: New test.
519         * testsuite/libgomp.fortran/allocate-8.f90: New test.
521 2023-10-12  Tobias Burnus  <tobias@codesourcery.com>
523         * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
524         OMP_TARGET_OFFLOAD.
525         (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
526         clarify MANDATORY behavior.
528 2023-10-12  Zhang, Jun  <jun.zhang@intel.com>
530         * env.c (initialize_env): Use do_adjust_default_spincount.
531         * config/linux/x86/spincount.h: New file.
533 2023-10-08  Tobias Burnus  <tobias@codesourcery.com>
535         * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
537 2023-10-06  Tobias Burnus  <tobias@codesourcery.com>
539         * libgomp.texi (Device Memory Routines): New.
541 2023-10-04  Tobias Burnus  <tobias@codesourcery.com>
543         * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
544         and that other target archs have no 'arch'/'isa' traits implemented.
546 2023-09-20  Tobias Burnus  <tobias@codesourcery.com>
548         * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
549         implemented for C only.
550         * testsuite/libgomp.c/allocate-4.c: New test.
551         * testsuite/libgomp.c/allocate-5.c: New test.
552         * testsuite/libgomp.c/allocate-6.c: New test.
554 2023-09-20  Jakub Jelinek  <jakub@redhat.com>
556         PR c++/111392
557         * libgomp.texi: Mark decl attribute was added to the C++ attribute
558         syntax as implemented.
560 2023-09-19  Jakub Jelinek  <jakub@redhat.com>
562         PR libgomp/111413
563         * env.c (initialize_env): Don't dereference environ if it is NULL.
564         Reindent.
566 2023-09-18  Richard Biener  <rguenther@suse.de>
568         PR tree-optimization/111294
569         * team.c (gomp_team_start): Assert alloca size to avoid false
570         positive alloc-size diagnostic.
572 2023-09-12  Thomas Schwinge  <thomas@codesourcery.com>
573             Chung-Lin Tang  <cltang@codesourcery.com>
575         PR testsuite/91884
576         PR testsuite/109951
577         * configure.ac: Revert earlier changes, instead
578         'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
579         * Makefile.in: Regenerate.
580         * configure: Likewise.
581         * testsuite/Makefile.in: Likewise.
582         * testsuite/lib/libgomp.exp (libgomp_init): Remove
583         "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
584         If '--with-build-sysroot=[...]' was specified, use it for
585         build-tree testing.
586         * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
587         (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
588         (SYSROOT_CFLAGS_FOR_TARGET): Set.
589         * testsuite/libgomp.c++/c++.exp (lang_source_re)
590         (lang_include_flags): Set for build-tree testing.
591         * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
592         (lang_include_flags): Likewise.
594 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
596         * libgomp.texi (Memory Management Routines): New; add documentation for
597         omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
598         omp_get_default_allocator.
599         (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
601 2023-09-07  Tobias Burnus  <tobias@codesourcery.com>
603         * target.c (gomp_unload_device): Remove tailing whitespace.
605 2023-09-04  Tobias Burnus  <tobias@codesourcery.com>
606             Thomas Schwinge  <thomas@codesourcery.com>
608         * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
610 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
612         * libgomp.texi (OpenMP 5.0):  Imperfectly-nested loops are done.
614 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
616         * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
617         * testsuite/libgomp.fortran/imperfect1.f90: New.
618         * testsuite/libgomp.fortran/imperfect2.f90: New.
619         * testsuite/libgomp.fortran/imperfect3.f90: New.
620         * testsuite/libgomp.fortran/imperfect4.f90: New.
621         * testsuite/libgomp.fortran/target-imperfect1.f90: New.
622         * testsuite/libgomp.fortran/target-imperfect2.f90: New.
623         * testsuite/libgomp.fortran/target-imperfect3.f90: New.
624         * testsuite/libgomp.fortran/target-imperfect4.f90: New.
626 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
628         * testsuite/libgomp.c-c++-common/imperfect1.c: New.
629         * testsuite/libgomp.c-c++-common/imperfect2.c: New.
630         * testsuite/libgomp.c-c++-common/imperfect3.c: New.
631         * testsuite/libgomp.c-c++-common/imperfect4.c: New.
632         * testsuite/libgomp.c-c++-common/imperfect5.c: New.
633         * testsuite/libgomp.c-c++-common/imperfect6.c: New.
634         * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
635         * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
636         * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
637         * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
639 2023-08-25  Sandra Loosemore  <sandra@codesourcery.com>
641         * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
642         * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
643         * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
644         * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
645         * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
646         * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
647         * testsuite/libgomp.c++/imperfect-class-1.C: New test.
648         * testsuite/libgomp.c++/imperfect-class-2.C: New test.
649         * testsuite/libgomp.c++/imperfect-class-3.C: New test.
650         * testsuite/libgomp.c++/imperfect-destructor.C: New test.
651         * testsuite/libgomp.c++/imperfect-template-1.C: New test.
652         * testsuite/libgomp.c++/imperfect-template-2.C: New test.
653         * testsuite/libgomp.c++/imperfect-template-3.C: New test.
655 2023-08-22  Francois-Xavier Coudert  <fxcoudert@gmail.com>
657         * testsuite/lib/libgomp.exp: Add effective target.
658         * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
659         functions.
661 2023-08-22  Tobias Burnus  <tobias@codesourcery.com>
663         * libgomp.texi (OpenMP 5.2 status): Add depobj with
664         destroy-var argument as 'N'. Mark defaultmap with
665         'all' category as 'Y'.
667 2023-08-19  Tobias Burnus  <tobias@codesourcery.com>
669         PR middle-end/111017
670         * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
672 2023-08-17  Tobias Burnus  <tobias@codesourcery.com>
674         PR libgomp/111024
675         * allocator.c (gomp_init_libnuma): Call numa_available; if
676         not available or not returning 0, disable libnuma usage.
678 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
680         * configure: Regenerate.
682 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
684         * configure: Regenerate.
686 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
688         * configure: Regenerate.
690 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
692         * configure: Regenerate.
694 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
696         * configure: Regenerate.
698 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
700         * configure: Regenerate.
702 2023-07-29  Tobias Burnus  <tobias@codesourcery.com>
704         * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
705         GOMP_OFFLOAD_CAP_SHARED_MEM.
706         (omp_target_memcpy_rect_copy): Likewise for lock condition.
707         (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
708         memcpy3d/memcpy2d.
709         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
710         GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
711         unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
713 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
715         * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
716         GOMP_OFFLOAD_memcpy3d): New prototypes.
717         * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
718         and memcpy3d_func.
719         * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
720         * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
721         * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
722         cuMemcpy3D): Invoke via CUDA_ONE_CALL.
723         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
724         GOMP_OFFLOAD_memcpy3d): New.
725         * target.c (omp_target_memcpy_rect_worker):
726         (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
727         Permit all device-to-device copyies; invoke new plugins for
728         2D and 3D copying when available.
729         (gomp_load_plugin_for_device): DLSYM the new plugin functions.
730         * testsuite/libgomp.c/target-12.c: Fix dimension bug.
731         * testsuite/libgomp.fortran/target-12.f90: Likewise.
732         * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
734 2023-07-26  Tobias Burnus  <tobias@codesourcery.com>
736         * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
737         (Tasking Routines): Document omp_in_explicit_task.
738         (Implementation-defined ICV Initialization): Use @ref not @code.
740 2023-07-20  Tobias Burnus  <tobias@codesourcery.com>
742         * libgomp.texi (OpenMP Runtime Library Routines):
743         Split long list by adding sections and moving routines there.
744         (OMP_ALLOCATORS): Fix typo.
746 2023-07-19  Tobias Burnus  <tobias@codesourcery.com>
748         PR fortran/107424
749         * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
750         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
751         commented tests.
752         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
753         test file; tests are in non-rectangular-loop-1.f90.
754         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
755         testcase to use a non-constant step to retain the 'sorry' test.
756         * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
758 2023-07-17  Tobias Burnus  <tobias@codesoucery.com>
759             Chung-Lin Tang  <cltang@codesourcery.com>
761         * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
762         * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
764 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
766         * libgomp.texi (OMP_ALLOCATOR): Document the default values for
767         the traits. Add crossref to 'Memory allocation'.
768         (Memory allocation): Refer to OMP_ALLOCATOR for the available
769         traits and allocators/mem spaces; document the default value
770         for the pool_size trait.
772 2023-07-14  Tobias Burnus  <tobias@codesourcery.com>
774         * allocator.c (omp_init_allocator): Check whether symbol from
775         dlopened libnuma is available before using libnuma for
776         allocations.
778 2023-07-13  David Edelsohn  <dje.gcc@gmail.com>
780         * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
781         * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
782         * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
784 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
786         * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
787         'Memory allocation' section which contains the full status.
788         (TR11): Remove differently worded duplicated entry.
790 2023-07-12  Tobias Burnus  <tobias@codesourcery.com>
792         * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
793         (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
794         add GOMP_MEMKIND_LIBNUMA.
795         (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
796         (omp_init_allocator): Handle partition=nearest with libnuma if avail.
797         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
798         numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
799         needed.
800         * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
801         * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
802         (Memory allocation): Renamed from 'Memory allocation with libmemkind';
803         updated for libnuma usage.
804         * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
805         * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
807 2023-07-11  Tobias Burnus  <tobias@codesourcery.com>
809         * allocator.c (omp_init_allocator): Use malloc for
810         omp_high_bw_mem_space when the memkind lib is unavailable
811         instead of returning omp_null_allocator.
812         * libgomp.texi (OpenMP 5.0): Fix typo.
813         (Memory allocation with libmemkind): Document implementation
814         in more detail.
816 2023-06-22  Tobias Burnus  <tobias@codesourcery.com>
818         * libgomp.texi: Use @var for ICV vars.
819         (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
820         document which ICV is set and which scope the ICV has; extend/cleanup
821         some @ref.
822         (Implementation-defined ICV Initialization): New.
823         (nvptx): Document the implementation-defined used per-warp stack size.
825 2023-06-19  Thomas Schwinge  <thomas@codesourcery.com>
827         * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
828         error.
830 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
832         * testsuite/libgomp.c/target-51.c: Accept more error msg variants
833         as expected dg-output.
835 2023-06-19  Tobias Burnus  <tobias@codesourcery.com>
837         PR middle-end/110270
838         * target.c (gomp_map_vars_internal): Copy host value instead of NULL
839         for  GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
840         * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
841         * testsuite/libgomp.c/target-19.c: Update expected value.
842         * testsuite/libgomp.c++/target-18.C: Likewise.
843         * testsuite/libgomp.c++/target-19.C: Likewise.
844         * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
845         * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
846         * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
848 2023-06-16  Tobias Burnus  <tobias@codesourcery.com>
850         * target.c (resolve_device): Call gomp_get_num_devices early to ensure
851         gomp_init_targets_once was called before using default-device-var.
852         * testsuite/libgomp.c/target-55.c: New test.
853         * testsuite/libgomp.c/target-55a.c: New test.
855 2023-06-15  Tobias Burnus  <tobias@codesourcery.com>
857         * env.c (gomp_def_allocator_envvar): New var.
858         (parse_allocator): Handle OpenMP 5.1 syntax.
859         (cleanup_env): New.
860         (omp_display_env): Output gomp_def_allocator_envvar
861         for an allocator with traits.
862         * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
863         OMP_DISPLAY_AFFINITY): New.
864         * testsuite/libgomp.c/allocator-1.c: New test.
865         * testsuite/libgomp.c/allocator-2.c: New test.
866         * testsuite/libgomp.c/allocator-3.c: New test.
867         * testsuite/libgomp.c/allocator-4.c: New test.
868         * testsuite/libgomp.c/allocator-5.c: New test.
869         * testsuite/libgomp.c/allocator-6.c: New test.
871 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
873         * target.c (resolve_device): Align a
874         'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
875         * testsuite/libgomp.c/target-51.c: Adjust.
877 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
879         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
880         set.
881         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
882         Likewise.
883         * testsuite/libgomp.c/simd-math-1.c: Remove
884         '-foffload-options=-lm'.
885         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
886         Likewise.
887         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
888         Likewise.
890 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
892         * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
893         * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
894         Likewise.
896 2023-06-14  Thomas Schwinge  <thomas@codesourcery.com>
898         * testsuite/libgomp.c/target-51.c: Fix typo.
900 2023-06-14  Tobias Burnus  <tobias@codesourcery.com>
902         * env.c (gomp_default_icv_values): Init default_device_var to
903         an nonconforming value - INT_MIN.
904         (initialize_env): After env-var parsing, set default_device_var to
905         device 0 unless OMP_TARGET_OFFLOAD=mandatory.
906         (omp_display_env): If default_device_var is INT_MIN, call
907         gomp_init_targets_once.
908         * icv-device.c (omp_get_default_device): Likewise.
909         * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
910         (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
911         * target.c (resolve_device): Improve error message device-num < 0
912         with 'mandatory' and no no-host devices available.
913         (gomp_target_init): Set default-device-var if INT_MIN.
914         * testsuite/libgomp.c/target-48.c: New test.
915         * testsuite/libgomp.c/target-49.c: New test.
916         * testsuite/libgomp.c/target-50.c: New test.
917         * testsuite/libgomp.c/target-50a.c: New test.
918         * testsuite/libgomp.c/target-51.c: New test.
919         * testsuite/libgomp.c/target-52.c: New test.
920         * testsuite/libgomp.c/target-53.c: New test.
921         * testsuite/libgomp.c/target-54.c: New test.
923 2023-06-13  Tobias Burnus  <tobias@codesourcery.com>
925         PR libgomp/109837
926         * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
927         * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
929 2023-06-12  Tobias Burnus  <tobias@codesourcery.com>
931         * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
932         GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
933         (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
934         error message.
935         * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
936         changed error message.
937         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
938         * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
939         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
940         * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
941         extend testcase to check that data is copied when needed.
942         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
943         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
945 2023-06-07  Thomas Schwinge  <thomas@codesourcery.com>
946             Tobias Burnus  <tobias@codesourcery.com>
948         * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
949         also for non-offload_device targets; check that it runs
950         successfully for those and for all until a checkpoint for all
951         * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
952         * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
953         * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
954         * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
955         * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
956         add missing vars to map clause.
958 2023-06-06  Tobias Burnus  <tobias@codesourcery.com>
960         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
961         unified_address requirement as supported.
962         * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
963         'unified_address' from the not-supported requirements.
965 2023-06-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
966             Tobias Burnus  <tobias@codesourcery.com>
968         * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
969         defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
970         * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
971         modifier.
972         (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
973         (gomp_map_vars_internal, gomp_update, gomp_target_rev):
974         Emit runtime error if memory region not present.
975         * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
976         * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
977         * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
978         * testsuite/libgomp.fortran/target-present-1.f90: New test.
979         * testsuite/libgomp.fortran/target-present-2.f90: New test.
980         * testsuite/libgomp.fortran/target-present-3.f90: New test.
982 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
984         PR testsuite/66005
985         * testsuite/lib/libgomp.exp: 'flock' through stdout.
986         * testsuite/flock: New.
987         * configure.ac (FLOCK): Point to that if no 'flock' available, but
988         'perl' is.
989         * configure: Regenerate.
991 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
993         * configure.ac (PERL): Remove.
994         * configure: Regenerate.
995         * Makefile.in: Likewise.
996         * testsuite/Makefile.in: Likewise.
998 2023-06-01  Tobias Burnus  <tobias@codesourcery.com>
1000         * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1002 2023-05-26  Tobias Burnus  <tobias@codesourcery.com>
1004         * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1006 2023-05-21  Tobias Burnus  <tobias@codesourcery.com>
1008         PR libgomp/109875
1009         * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1010         * config/nvptx/target.c (GOMP_teams4): Likewise.
1011         * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1012         * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1013         * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1014         * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1016 2023-05-19  Jakub Jelinek  <jakub@redhat.com>
1018         PR libgomp/109904
1019         * configure.ac (link_gomp): Include also $DL_LIBS.
1020         * configure: Regenerated.
1022 2023-05-17  Tobias Burnus  <tobias@codesourcery.com>
1024         * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1025         'target exit data'.
1026         * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1027         * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1028         * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1029         * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1031 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1033         PR testsuite/66005
1034         * configure.ac: Look for 'flock'.
1035         * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1036         * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1037         * testsuite/lib/libgomp.exp: ... but here, instead.
1038         (libgomp_load): Override for parallel testing.
1039         * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1040         * configure: Regenerate.
1041         * Makefile.in: Regenerate.
1042         * testsuite/Makefile.in: Regenerate.
1044 2023-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1045             Thomas Schwinge  <thomas@codesourcery.com>
1047         PR testsuite/66005
1048         * testsuite/Makefile.am (PWD_COMMAND): New variable.
1049         (%/site.exp): New target.
1050         (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1051         (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1052         (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1053         (check_p_subdirs)
1054         (check_DEJAGNU_libgomp_targets): New variables.
1055         ($(check_DEJAGNU_libgomp_targets)): New target.
1056         ($(check_DEJAGNU_libgomp_targets)): New dependency.
1057         (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1058         * testsuite/Makefile.in: Regenerate.
1059         * testsuite/lib/libgomp.exp: For parallel testing,
1060         'load_file ../libgomp-test-support.exp'.
1062 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1064         PR testsuite/91884
1065         * configure.ac: 'AC_SUBST(CXX)'.
1066         * configure: Regenerate.
1067         * Makefile.in: Likewise.
1068         * testsuite/Makefile.in: Likewise.
1069         * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1070         (GFORTRAN_UNDER_TEST): Set.
1071         * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1072         * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1073         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1074         * testsuite/libgomp.fortran/fortran.exp: Use
1075         'GFORTRAN_UNDER_TEST'.
1076         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1078 2023-05-15  Thomas Schwinge  <thomas@codesourcery.com>
1080         PR testsuite/91884
1081         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1082         specify compiler.
1083         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1084         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1085         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1086         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1087         Likewise.
1088         * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1089         * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1090         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1091         Likewise.
1093 2023-05-12  Tobias Burnus  <tobias@codesourcery.com>
1095         PR libstdc++/109816
1096         * testsuite/libgomp.c++/target-map-class-1.C: New test.
1097         * testsuite/libgomp.c++/target-map-class-2.C: New test.
1099 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1101         * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1102         'lang_library_path' into a list of 'lang_library_paths'.
1103         * testsuite/libgomp.c++/c++.exp: Adjust.
1104         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1105         * testsuite/libgomp.fortran/fortran.exp: Adjust.  Use that for
1106         libquadmath, too.
1107         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1109 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1111         * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1112         at 'lang_test_file_found'.
1113         * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1114         'return' early if not able to test.  Simplify 'ld_library_path' setup.
1115         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1116         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1117         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1119 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1121         * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1122         first.
1123         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1124         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1125         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1127 2023-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1129         * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1130         * testsuite/libgomp.c/c.exp: Likewise.
1131         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1132         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1133         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1134         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1135         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1137 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1139         * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1140         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1141         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1142         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1143         * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1144         'lang_test_file'.
1145         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1146         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1147         * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1148         'lang_test_file_found' instead of 'lang_test_file'.
1150 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1152         * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1153         set.
1154         * testsuite/libgomp.c++/c++.exp: Likewise.
1155         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1157 2023-05-09  Thomas Schwinge  <thomas@codesourcery.com>
1159         * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1160         * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1162 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1164         * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1165         of 'libstdcxx_includes'.
1166         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1168 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
1170         * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1171         'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1172         * libgomp.h (gomp_target_rev): Adjust.
1173         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1174         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1175         * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1176         * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1177         (rev_off_host_to_dev_cpy): Remove.
1178         (GOMP_OFFLOAD_run): Adjust.
1180 2023-05-04  Julian Brown  <julian@codesourcery.com>
1182         PR fortran/109622
1183         * testsuite/libgomp.fortran/pr109622.f90: Move test...
1184         * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1185         vector length warning.
1186         * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1187         * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here.  Add
1188         missing copyin/copyout variable. Ignore vector length warnings.
1189         * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1190         * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here.  Ignore
1191         vector length warnings.
1192         * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1194 2023-04-28  Julian Brown  <julian@codesourcery.com>
1196         PR fortran/109622
1197         * testsuite/libgomp.fortran/pr109622.f90: New test.
1198         * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1199         * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1201 2023-04-25  Tobias Burnus  <tobias@codesourcery.com>
1203         * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1204         * testsuite/libgomp.c/scan-23.c: New test.
1205         * testsuite/libgomp.fortran/scan-2.f90: New test.
1207 2023-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1209         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1210         weak_undefined options.
1212 2023-03-24  Tobias Burnus  <tobias@codesourcery.com>
1214         * libgomp.texi (Offload-Target Specifics): Grammar fix.
1216 2023-03-24  Thomas Schwinge  <thomas@codesourcery.com>
1218         PR fortran/104949
1219         * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1220         caveat/safeguard.
1222 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1224         PR libgomp/90596
1225         * target.c (gomp_map_vars_internal): Allow for
1226         'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1227         * oacc-parallel.c (GOACC_parallel_keyed): Pass
1228         'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1229         * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1230         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1231         Adjust, simplify.
1232         (gomp_offload_free): Remove.
1233         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1234         (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1235         (cuda_free_argmem): Remove.
1236         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1237         Adjust.
1239 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1241         * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1242         libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1243         data.
1245 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1247         * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1248         'GOMP_MAP_IF_PRESENT'.
1249         * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1250         (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1251         * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1252         (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1253         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1254         testing.
1255         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1257 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1259         * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1260         shortcut.
1262 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1264         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1265         another aspect of OpenACC 'async' semantics.
1267 2023-03-10  Thomas Schwinge  <thomas@codesourcery.com>
1269         * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1270         position.
1271         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1272         Verify 'acc_ev_alloc', 'acc_ev_free'.
1274 2023-03-09  Hongyu Wang  <hongyu.wang@intel.com>
1276         PR libgomp/109062
1277         * env.c (wait_policy): Initialize to -1.
1278         (initialize_icvs): Initialize icvs->wait_policy to -1.
1279         * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1281 2023-03-08  Tobias Burnus  <tobias@codesourcery.com>
1283         * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1285 2023-03-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1286             Paul-Antoine Arras  <pa@codesourcery.com>
1288         * testsuite/libgomp.c/simd-math-1.c: New testcase.
1290 2023-03-01  Tobias Burnus  <tobias@codesourcery.com>
1292         PR middle-end/108546
1293         * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1294         * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1296 2023-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1298         * testsuite/libgomp.fortran/alloc-10.f90: Use
1299         '-Wno-complain-wrong-lang'.
1300         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1301         * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1302         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1303         * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1304         * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1305         * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1306         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1307         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1308         * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1309         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1310         Likewise.
1311         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1312         Likewise.
1313         * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1314         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1315         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1316         * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1317         'dg-prune-output'.
1319 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1321         * libgomp.texi: Fix typos - theads -> threads.
1323 2023-02-16  Jakub Jelinek  <jakub@redhat.com>
1325         * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1326         comment typo and improve its wording.
1328 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1330         * target.c (gomp_target_rev): Dereference ptr
1331         to get device address.
1332         * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1333         for unallocated allocatable.
1335 2023-02-15  Tobias Burnus  <tobias@codesourcery.com>
1337         * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1338         kind check.
1339         (GOMP_target_enter_exit_data): If the next map item is
1340         GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1341         * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1343 2023-02-09  Tobias Burnus  <tobias@codesourcery.com>
1345         PR fortran/107424
1346         * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1347         * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1348         * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1349         * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1350         * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1351         * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1353 2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
1355         * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1356         offloading compilation.
1358 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1360         * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1361         freeing not allocated memory.
1362         * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1364 2023-02-03  Tobias Burnus  <tobias@codesourcery.com>
1366         * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1367         reverse offload.
1368         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1369         reverse-offload requirement.
1371 2023-02-02  Andrew Stubbs  <ams@codesourcery.com>
1373         * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1374         (DEFAULT_TEAM_ARENA_SIZE): New define.
1375         (struct heap): Move to this file.
1376         (struct kernargs_abi): Likewise.
1377         * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1378         the kernargs.
1379         * libgomp.h: Include libgomp-gcn.h.
1380         (TEAM_ARENA_SIZE): Remove.
1381         (team_malloc): Update the error message.
1382         * plugin/plugin-gcn.c (struct kernargs): Move common content to
1383         struct kernargs_abi.
1384         (struct agent_info): Rename team arenas to ephemeral memories.
1385         (struct team_arena_list): Rename ....
1386         (struct ephemeral_memories_list): to this.
1387         (struct heap): Delete.
1388         (team_arena_size): New variable.
1389         (stack_size): New variable.
1390         (print_kernel_dispatch): Update debug messages.
1391         (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1392         Read GCN_STACK_SIZE.
1393         (get_team_arena): Rename ...
1394         (configure_ephemeral_memories): ... to this, and set up stacks.
1395         (release_team_arena): Rename ...
1396         (release_ephemeral_memories): ... to this.
1397         (destroy_team_arenas): Rename ...
1398         (destroy_ephemeral_memories): ... to this.
1399         (create_kernel_dispatch): Add num_threads parameter.
1400         Adjust for kernargs_abi refactor and ephemeral memories.
1401         (release_kernel_dispatch): Adjust for ephemeral memories.
1402         (run_kernel): Pass thread-count to create_kernel_dispatch.
1403         (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1404         (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1406 2023-02-02  Tobias Burnus  <tobias@codesourcery.com>
1408         * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1410 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1412         * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1413         usage, remove unused -fdump-tree-original.
1414         * testsuite/libgomp.fortran/allocate-4.f90: New.
1416 2023-02-01  Tobias Burnus  <tobias@codesourcery.com>
1418         * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1419         (GCN): Add item about 'omp requires'.
1420         (nvptx): Likewise; add item about reverse offload.
1422 2023-01-27  Tobias Burnus  <tobias@codesourcery.com>
1424         PR fortran/108558
1425         * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1427 2023-01-23  Tobias Burnus  <tobias@codesourcery.com>
1429         * libgomp.texi (OpenMP 5.0): Set non-rectangular
1430         loop nest back to 'P' as Fortran support is incomplete.
1432 2023-01-19  Jakub Jelinek  <jakub@redhat.com>
1434         PR middle-end/108459
1435         * testsuite/libgomp.c/pr108459.c: New test.
1437 2023-01-17  Martin Liska  <mliska@suse.cz>
1439         * Makefile.in: Regenerate.
1440         * configure: Regenerate.
1442 2023-01-07  LIU Hao  <lh_mouse@126.com>
1444         PR middle-end/108300
1445         * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1446         <windows.h>.
1448 2023-01-05  Jakub Jelinek  <jakub@redhat.com>
1450         PR c++/108286
1451         * testsuite/libgomp.c++/pr108286.C: New test.
1453 2023-01-02  Jakub Jelinek  <jakub@redhat.com>
1455         * libgomp.texi: Bump @copying's copyright year.
1457 2022-12-21  Chung-Lin Tang  <cltang@codesourcery.com>
1459         PR target/99555
1460         * config/nvptx/bar.c (generation_to_barrier): Remove.
1461         (futex_wait,futex_wake,do_spin,do_wait): Remove.
1462         (GOMP_WAIT_H): Remove.
1463         (#include "../linux/bar.c"): Remove.
1464         (gomp_barrier_wait_end): New function.
1465         (gomp_barrier_wait): Likewise.
1466         (gomp_barrier_wait_last): Likewise.
1467         (gomp_team_barrier_wait_end): Likewise.
1468         (gomp_team_barrier_wait): Likewise.
1469         (gomp_team_barrier_wait_final): Likewise.
1470         (gomp_team_barrier_wait_cancel_end): Likewise.
1471         (gomp_team_barrier_wait_cancel): Likewise.
1472         (gomp_team_barrier_cancel): Likewise.
1473         * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1474         (gomp_barrier_init): Remove init of waiters, lock fields.
1475         (gomp_team_barrier_wake): Remove prototype, add new static inline
1476         function.
1478 2022-12-21  Jakub Jelinek  <jakub@redhat.com>
1480         PR c++/108180
1481         * testsuite/libgomp.c++/pr108180.C: New test.
1483 2022-12-16  Tobias Burnus  <tobias@codesourcery.com>
1485         PR libfortran/108056
1486         * testsuite/libgomp.fortran/allocate-4.f90: Remove
1487         accidentally added file.
1489 2022-12-15  Tobias Burnus  <tobias@codesourcery.com>
1491         PR libfortran/108056
1492         * testsuite/libgomp.fortran/allocate-4.f90: New file.
1494 2022-12-14  Julian Brown  <julian@codesourcery.com>
1496         * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1497         test.
1499 2022-12-10  Tobias Burnus  <tobias@codesourcery.com>
1501         * libgomp.h (struct target_mem_desc): Predeclare; move
1502         below after 'reverse_splay_tree_node' and add rev_array
1503         member.
1504         (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1505         (reverse_splay_tree_node, reverse_splay_tree,
1506         reverse_splay_tree_key): New typedef.
1507         (struct gomp_device_descr): Add mem_map_rev member.
1508         * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1509         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1510         support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1511         * splay-tree.h (splay_tree_callback_stop): New typedef; like
1512         splay_tree_callback but returning int not void.
1513         (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1514         taking splay_tree_callback_stop as argument.
1515         * splay-tree.c (splay_tree_foreach_internal_lazy,
1516         splay_tree_foreach_lazy): New; but early exit if callback returns
1517         nonzero.
1518         * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1519         (gomp_map_lookup_rev): New.
1520         (gomp_load_image_to_device): Handle reverse-offload function
1521         lookup table.
1522         (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1523         (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1524         gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1525         gomp_map_cdata_lookup): New auxiliary structs and functions for
1526         gomp_target_rev.
1527         (gomp_target_rev): Implement reverse offloading and its mapping.
1528         (gomp_target_init): Init current_device.mem_map_rev.root.
1529         * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1530         * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1531         * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1532         * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1533         * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1534         mapping of on-device allocated variables.
1536 2022-12-09  Tobias Burnus  <tobias@codesourcery.com>
1538         * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1539         item about 'align'; mark clause as 'Y' and directive as 'N'.
1540         * testsuite/libgomp.fortran/allocate-2.f90: New test.
1541         * testsuite/libgomp.fortran/allocate-3.f90: New test.
1543 2022-12-06  Marcel Vollweiler  <marcel@codesourcery.com>
1545         * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1546         allow processing of device-specific values.
1547         (omp_set_teams_thread_limit): Likewise.
1548         (ialias): Likewise.
1549         * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1550         (omp_set_teams_thread_limit): Likewise.
1551         (ialias): Likewise.
1552         * icv-device.c (omp_get_teams_thread_limit): Likewise.
1553         (ialias): Likewise.
1554         (omp_set_teams_thread_limit): Likewise.
1555         * icv.c (omp_set_teams_thread_limit): Removed.
1556         (omp_get_teams_thread_limit): Likewise.
1557         (ialias): Likewise.
1558         * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1559         to the limitation of the number of teams.
1560         * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1561         the number of teams by twice the number of compute units.
1562         (parse_target_attributes): Limit the number of teams on gcn offload
1563         devices.
1564         * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1565         handling.
1566         (gomp_load_image_to_device): Added a size check for the ICVs struct
1567         variable.
1568         (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1569         copy back the ICV values from device to host.
1570         (GOMP_target_ext): Update the number of teams and threads in the kernel
1571         args also considering device-specific values.
1572         * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1573         of OMP_TEAMS_THREAD_LIMIT from the environment.
1574         * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1575         * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1576         * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1577         * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1578         * testsuite/libgomp.fortran/icv-5.f90: New test.
1579         * testsuite/libgomp.fortran/icv-6.f90: New test.
1581 2022-12-06  Tobias Burnus  <tobias@codesourcery.com>
1583         * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1584         (TR11): Add missing '@tab N @tab'.
1586 2022-11-30  Tobias Burnus  <tobias@codesourcery.com>
1588         * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1590 2022-11-30  Paul-Antoine Arras  <pa@codesourcery.com>
1592         * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1593         * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1594         * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1595         * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1596         * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1597         * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1598         * testsuite/libgomp.c/declare-variant-4.h: New header file.
1600 2022-11-28  Tobias Burnus  <tobias@codesourcery.com>
1602         * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1604 2022-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1606         * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1607         * testsuite/libgomp.c/target-simd-clone-1.c: New.
1608         * testsuite/libgomp.c/target-simd-clone-2.c: New.
1609         * testsuite/libgomp.c/target-simd-clone-3.c: New.
1611 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1613         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1614         for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1615         as valid and the code having no reverse-offload code.
1616         * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1618 2022-11-25  Tobias Burnus  <tobias@codesourcery.com>
1620         * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1621         and status for Technical Report (TR) 11.
1623 2022-11-21  Tobias Burnus  <tobias@codesourcery.com>
1625         * config/gcn/libgomp-gcn.h (struct output):
1626         Remove 'msg_u64' from the union, change
1627         value_u64[2] to value_u64[6].
1628         * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1629         * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1630         Likewise.
1632 2022-11-19  Tobias Burnus  <tobias@codesourcery.com>
1634         * config/gcn/libgomp-gcn.h: New file; contains
1635         struct output, declared previously in plugin-gcn.c.
1636         * config/gcn/target.c: Include it.
1637         (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1638         (GOMP_target_ext): Handle reverse offload.
1639         * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1640         (struct kernargs): Replace struct def by the one
1641         from libgomp-gcn.h for output_data.
1642         (process_reverse_offload): New.
1643         (console_output): Call it.
1645 2022-11-16  Tobias Burnus  <tobias@codesourcery.com>
1646             Andrew Stubbs  <ams@codesourcery.com>
1648         * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1649         __builtin_gcn_kernarg_ptr instead of asm ("s8").
1651 2022-11-14  Martin Liska  <mliska@suse.cz>
1653         Revert:
1654         2022-11-14  Martin Liska  <mliska@suse.cz>
1656         * doc/amd-radeon-gcn.rst: New file.
1657         * doc/conf.py: New file.
1658         * doc/copyright.rst: New file.
1659         * doc/cuda-streams-usage.rst: New file.
1660         * doc/enabling-openacc.rst: New file.
1661         * doc/enabling-openmp.rst: New file.
1662         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1663         * doc/first-invocation-openacc-library-api.rst: New file.
1664         * doc/funding.rst: New file.
1665         * doc/general-public-license-3.rst: New file.
1666         * doc/gnu-free-documentation-license.rst: New file.
1667         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1668         * doc/index.rst: New file.
1669         * doc/indices-and-tables.rst: New file.
1670         * doc/introduction.rst: New file.
1671         * doc/memory-allocation-with-libmemkind.rst: New file.
1672         * doc/nvptx.rst: New file.
1673         * doc/offload-target-specifics.rst: New file.
1674         * doc/openacc-environment-variables.rst: New file.
1675         * doc/openacc-environment-variables/accdevicenum.rst: New file.
1676         * doc/openacc-environment-variables/accdevicetype.rst: New file.
1677         * doc/openacc-environment-variables/accproflib.rst: New file.
1678         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1679         * doc/openacc-introduction.rst: New file.
1680         * doc/openacc-library-and-environment-variables.rst: New file.
1681         * doc/openacc-library-interoperability.rst: New file.
1682         * doc/openacc-profiling-interface.rst: New file.
1683         * doc/openacc-runtime-library-routines.rst: New file.
1684         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1685         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1686         * doc/openacc-runtime-library-routines/accattach.rst: New file.
1687         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1688         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1689         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1690         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1691         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1692         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1693         * doc/openacc-runtime-library-routines/accfree.rst: New file.
1694         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1695         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1696         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1697         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1698         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1699         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1700         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1701         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1702         * doc/openacc-runtime-library-routines/accinit.rst: New file.
1703         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1704         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1705         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1706         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1707         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1708         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1709         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1710         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1711         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1712         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1713         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1714         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1715         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1716         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1717         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1718         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1719         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1720         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1721         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1722         * doc/openacc-runtime-library-routines/accwait.rst: New file.
1723         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1724         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1725         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1726         * doc/openmp-context-selectors.rst: New file.
1727         * doc/openmp-environment-variables.rst: New file.
1728         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1729         * doc/openmp-environment-variables/gompdebug.rst: New file.
1730         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1731         * doc/openmp-environment-variables/gompspincount.rst: New file.
1732         * doc/openmp-environment-variables/gompstacksize.rst: New file.
1733         * doc/openmp-environment-variables/ompcancellation.rst: New file.
1734         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1735         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1736         * doc/openmp-environment-variables/ompdynamic.rst: New file.
1737         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1738         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1739         * doc/openmp-environment-variables/ompnested.rst: New file.
1740         * doc/openmp-environment-variables/ompnumteams.rst: New file.
1741         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1742         * doc/openmp-environment-variables/ompplaces.rst: New file.
1743         * doc/openmp-environment-variables/ompprocbind.rst: New file.
1744         * doc/openmp-environment-variables/ompschedule.rst: New file.
1745         * doc/openmp-environment-variables/ompstacksize.rst: New file.
1746         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1747         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1748         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1749         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1750         * doc/openmp-implementation-specifics.rst: New file.
1751         * doc/openmp-implementation-status.rst: New file.
1752         * doc/openmp-implementation-status/openmp-45.rst: New file.
1753         * doc/openmp-implementation-status/openmp-50.rst: New file.
1754         * doc/openmp-implementation-status/openmp-51.rst: New file.
1755         * doc/openmp-implementation-status/openmp-52.rst: New file.
1756         * doc/openmp-runtime-library-routines.rst: New file.
1757         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1758         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1759         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1760         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1761         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1762         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1763         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1764         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1765         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1766         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1767         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1768         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1769         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1770         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1771         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1772         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1773         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1774         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1775         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1776         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1777         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1778         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1779         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1780         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1781         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1782         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1783         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1784         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1785         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1786         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1787         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1788         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1789         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1790         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1791         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1792         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1793         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1794         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1795         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1796         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1797         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1798         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1799         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1800         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1801         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1802         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1803         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1804         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1805         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1806         * doc/reporting-bugs.rst: New file.
1807         * doc/the-libgomp-abi.rst: New file.
1808         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1809         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1810         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1811         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1812         New file.
1813         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1814         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1815         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1816         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1817         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1818         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1819         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1820         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1821         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1822         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1823         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1825 2022-11-14  Martin Liska  <mliska@suse.cz>
1827         Revert:
1828         2022-11-14  Martin Liska  <mliska@suse.cz>
1830         * Makefile.in: Support Sphinx based documentation.
1832 2022-11-14  Martin Liska  <mliska@suse.cz>
1834         Revert:
1835         2022-11-14  Martin Liska  <mliska@suse.cz>
1837         * libgomp.texi: Removed.
1839 2022-11-14  Martin Liska  <mliska@suse.cz>
1841         Revert:
1842         2022-11-14  Martin Liska  <mliska@suse.cz>
1844         * Makefile.in: Support --with-sphinx-build.
1845         * configure.ac: Likewise..
1846         * configure: Regenerate.
1848 2022-11-14  Martin Liska  <mliska@suse.cz>
1850         Revert:
1851         2022-11-09  Martin Liska  <mliska@suse.cz>
1853         * Makefile.in: Build info pages conditionally.
1855 2022-11-14  Martin Liska  <mliska@suse.cz>
1857         Revert:
1858         2022-11-14  Martin Liska  <mliska@suse.cz>
1860         * doc/amd-radeon-gcn.rst:
1861         Add trailing newline.
1862         * doc/copyright.rst:
1863         Add trailing newline.
1864         * doc/cuda-streams-usage.rst:
1865         Add trailing newline.
1866         * doc/enabling-openacc.rst:
1867         Add trailing newline.
1868         * doc/enabling-openmp.rst:
1869         Add trailing newline.
1870         * doc/first-invocation-nvidia-cublas-library-api.rst:
1871         Add trailing newline.
1872         * doc/first-invocation-openacc-library-api.rst:
1873         Add trailing newline.
1874         * doc/funding.rst:
1875         Add trailing newline.
1876         * doc/general-public-license-3.rst:
1877         Add trailing newline.
1878         * doc/gnu-free-documentation-license.rst:
1879         Add trailing newline.
1880         * doc/implementation-status-and-implementation-defined-behavior.rst:
1881         Add trailing newline.
1882         * doc/index.rst:
1883         Add trailing newline.
1884         * doc/indices-and-tables.rst:
1885         Add trailing newline.
1886         * doc/introduction.rst:
1887         Add trailing newline.
1888         * doc/memory-allocation-with-libmemkind.rst:
1889         Add trailing newline.
1890         * doc/nvptx.rst:
1891         Add trailing newline.
1892         * doc/offload-target-specifics.rst:
1893         Add trailing newline.
1894         * doc/openacc-environment-variables.rst:
1895         Add trailing newline.
1896         * doc/openacc-environment-variables/accdevicenum.rst:
1897         Add trailing newline.
1898         * doc/openacc-environment-variables/accdevicetype.rst:
1899         Add trailing newline.
1900         * doc/openacc-environment-variables/accproflib.rst:
1901         Add trailing newline.
1902         * doc/openacc-environment-variables/gccaccnotify.rst:
1903         Add trailing newline.
1904         * doc/openacc-introduction.rst:
1905         Add trailing newline.
1906         * doc/openacc-library-and-environment-variables.rst:
1907         Add trailing newline.
1908         * doc/openacc-library-interoperability.rst:
1909         Add trailing newline.
1910         * doc/openacc-profiling-interface.rst:
1911         Add trailing newline.
1912         * doc/openacc-runtime-library-routines.rst:
1913         Add trailing newline.
1914         * doc/openacc-runtime-library-routines/accasynctest.rst:
1915         Add trailing newline.
1916         * doc/openacc-runtime-library-routines/accasynctestall.rst:
1917         Add trailing newline.
1918         * doc/openacc-runtime-library-routines/accattach.rst:
1919         Add trailing newline.
1920         * doc/openacc-runtime-library-routines/acccopyin.rst:
1921         Add trailing newline.
1922         * doc/openacc-runtime-library-routines/acccopyout.rst:
1923         Add trailing newline.
1924         * doc/openacc-runtime-library-routines/acccreate.rst:
1925         Add trailing newline.
1926         * doc/openacc-runtime-library-routines/accdelete.rst:
1927         Add trailing newline.
1928         * doc/openacc-runtime-library-routines/accdetach.rst:
1929         Add trailing newline.
1930         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1931         Add trailing newline.
1932         * doc/openacc-runtime-library-routines/accfree.rst:
1933         Add trailing newline.
1934         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1935         Add trailing newline.
1936         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1937         Add trailing newline.
1938         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1939         Add trailing newline.
1940         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1941         Add trailing newline.
1942         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1943         Add trailing newline.
1944         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1945         Add trailing newline.
1946         * doc/openacc-runtime-library-routines/accgetproperty.rst:
1947         Add trailing newline.
1948         * doc/openacc-runtime-library-routines/acchostptr.rst:
1949         Add trailing newline.
1950         * doc/openacc-runtime-library-routines/accinit.rst:
1951         Add trailing newline.
1952         * doc/openacc-runtime-library-routines/accispresent.rst:
1953         Add trailing newline.
1954         * doc/openacc-runtime-library-routines/accmalloc.rst:
1955         Add trailing newline.
1956         * doc/openacc-runtime-library-routines/accmapdata.rst:
1957         Add trailing newline.
1958         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1959         Add trailing newline.
1960         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1961         Add trailing newline.
1962         * doc/openacc-runtime-library-routines/accondevice.rst:
1963         Add trailing newline.
1964         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1965         Add trailing newline.
1966         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1967         Add trailing newline.
1968         * doc/openacc-runtime-library-routines/accproflookup.rst:
1969         Add trailing newline.
1970         * doc/openacc-runtime-library-routines/accprofregister.rst:
1971         Add trailing newline.
1972         * doc/openacc-runtime-library-routines/accprofunregister.rst:
1973         Add trailing newline.
1974         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1975         Add trailing newline.
1976         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1977         Add trailing newline.
1978         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1979         Add trailing newline.
1980         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1981         Add trailing newline.
1982         * doc/openacc-runtime-library-routines/accshutdown.rst:
1983         Add trailing newline.
1984         * doc/openacc-runtime-library-routines/accunmapdata.rst:
1985         Add trailing newline.
1986         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1987         Add trailing newline.
1988         * doc/openacc-runtime-library-routines/accupdateself.rst:
1989         Add trailing newline.
1990         * doc/openacc-runtime-library-routines/accwait.rst:
1991         Add trailing newline.
1992         * doc/openacc-runtime-library-routines/accwaitall.rst:
1993         Add trailing newline.
1994         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
1995         Add trailing newline.
1996         * doc/openacc-runtime-library-routines/accwaitasync.rst:
1997         Add trailing newline.
1998         * doc/openmp-context-selectors.rst:
1999         Add trailing newline.
2000         * doc/openmp-environment-variables.rst:
2001         Add trailing newline.
2002         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2003         Add trailing newline.
2004         * doc/openmp-environment-variables/gompdebug.rst:
2005         Add trailing newline.
2006         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2007         Add trailing newline.
2008         * doc/openmp-environment-variables/gompspincount.rst:
2009         Add trailing newline.
2010         * doc/openmp-environment-variables/gompstacksize.rst:
2011         Add trailing newline.
2012         * doc/openmp-environment-variables/ompcancellation.rst:
2013         Add trailing newline.
2014         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2015         Add trailing newline.
2016         * doc/openmp-environment-variables/ompdisplayenv.rst:
2017         Add trailing newline.
2018         * doc/openmp-environment-variables/ompdynamic.rst:
2019         Add trailing newline.
2020         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2021         Add trailing newline.
2022         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2023         Add trailing newline.
2024         * doc/openmp-environment-variables/ompnested.rst:
2025         Add trailing newline.
2026         * doc/openmp-environment-variables/ompnumteams.rst:
2027         Add trailing newline.
2028         * doc/openmp-environment-variables/ompnumthreads.rst:
2029         Add trailing newline.
2030         * doc/openmp-environment-variables/ompplaces.rst:
2031         Add trailing newline.
2032         * doc/openmp-environment-variables/ompprocbind.rst:
2033         Add trailing newline.
2034         * doc/openmp-environment-variables/ompschedule.rst:
2035         Add trailing newline.
2036         * doc/openmp-environment-variables/ompstacksize.rst:
2037         Add trailing newline.
2038         * doc/openmp-environment-variables/omptargetoffload.rst:
2039         Add trailing newline.
2040         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2041         Add trailing newline.
2042         * doc/openmp-environment-variables/ompthreadlimit.rst:
2043         Add trailing newline.
2044         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2045         Add trailing newline.
2046         * doc/openmp-implementation-specifics.rst:
2047         Add trailing newline.
2048         * doc/openmp-implementation-status.rst:
2049         Add trailing newline.
2050         * doc/openmp-implementation-status/openmp-45.rst:
2051         Add trailing newline.
2052         * doc/openmp-implementation-status/openmp-50.rst:
2053         Add trailing newline.
2054         * doc/openmp-implementation-status/openmp-51.rst:
2055         Add trailing newline.
2056         * doc/openmp-implementation-status/openmp-52.rst:
2057         Add trailing newline.
2058         * doc/openmp-runtime-library-routines.rst:
2059         Add trailing newline.
2060         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2061         Add trailing newline.
2062         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2063         Add trailing newline.
2064         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2065         Add trailing newline.
2066         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2067         Add trailing newline.
2068         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2069         Add trailing newline.
2070         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2071         Add trailing newline.
2072         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2073         Add trailing newline.
2074         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2075         Add trailing newline.
2076         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2077         Add trailing newline.
2078         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2079         Add trailing newline.
2080         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2081         Add trailing newline.
2082         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2083         Add trailing newline.
2084         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2085         Add trailing newline.
2086         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2087         Add trailing newline.
2088         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2089         Add trailing newline.
2090         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2091         Add trailing newline.
2092         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2093         Add trailing newline.
2094         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2095         Add trailing newline.
2096         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2097         Add trailing newline.
2098         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2099         Add trailing newline.
2100         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2101         Add trailing newline.
2102         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2103         Add trailing newline.
2104         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2105         Add trailing newline.
2106         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2107         Add trailing newline.
2108         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2109         Add trailing newline.
2110         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2111         Add trailing newline.
2112         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2113         Add trailing newline.
2114         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2115         Add trailing newline.
2116         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2117         Add trailing newline.
2118         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2119         Add trailing newline.
2120         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2121         Add trailing newline.
2122         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2123         Add trailing newline.
2124         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2125         Add trailing newline.
2126         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2127         Add trailing newline.
2128         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2129         Add trailing newline.
2130         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2131         Add trailing newline.
2132         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2133         Add trailing newline.
2134         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2135         Add trailing newline.
2136         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2137         Add trailing newline.
2138         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2139         Add trailing newline.
2140         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2141         Add trailing newline.
2142         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2143         Add trailing newline.
2144         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2145         Add trailing newline.
2146         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2147         Add trailing newline.
2148         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2149         Add trailing newline.
2150         * doc/openmp-runtime-library-routines/omptestlock.rst:
2151         Add trailing newline.
2152         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2153         Add trailing newline.
2154         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2155         Add trailing newline.
2156         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2157         Add trailing newline.
2158         * doc/reporting-bugs.rst:
2159         Add trailing newline.
2160         * doc/the-libgomp-abi.rst:
2161         Add trailing newline.
2162         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2163         Add trailing newline.
2164         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2165         Add trailing newline.
2166         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2167         Add trailing newline.
2168         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2169         Add trailing newline.
2170         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2171         Add trailing newline.
2172         * doc/the-libgomp-abi/implementing-for-construct.rst:
2173         Add trailing newline.
2174         * doc/the-libgomp-abi/implementing-master-construct.rst:
2175         Add trailing newline.
2176         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2177         Add trailing newline.
2178         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2179         Add trailing newline.
2180         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2181         Add trailing newline.
2182         * doc/the-libgomp-abi/implementing-private-clause.rst:
2183         Add trailing newline.
2184         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2185         Add trailing newline.
2186         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2187         Add trailing newline.
2188         * doc/the-libgomp-abi/implementing-single-construct.rst:
2189         Add trailing newline.
2190         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2191         Add trailing newline.
2193 2022-11-14  Martin Liska  <mliska@suse.cz>
2195         Revert:
2196         2022-11-09  Martin Liska  <mliska@suse.cz>
2198         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2200 2022-11-14  Martin Liska  <mliska@suse.cz>
2202         Revert:
2203         2022-11-14  Martin Liska  <mliska@suse.cz>
2205         * doc/conf.py: Add newline at last line.
2207 2022-11-14  Martin Liska  <mliska@suse.cz>
2209         Revert:
2210         2022-11-14  Martin Liska  <mliska@suse.cz>
2212         PR other/107620
2213         * configure: Regenerate.
2214         * configure.ac: Always set sphinx-build.
2216 2022-11-13  Martin Liska  <mliska@suse.cz>
2218         PR other/107620
2219         * configure: Regenerate.
2220         * configure.ac: Always set sphinx-build.
2222 2022-11-12  Jakub Jelinek  <jakub@redhat.com>
2224         PR libgomp/107641
2225         * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2226         unsigned long.  Change type of upper from unsigned to unsigned long.
2228 2022-11-10  Martin Liska  <mliska@suse.cz>
2230         * doc/conf.py: Add newline at last line.
2232 2022-11-09  Martin Liska  <mliska@suse.cz>
2234         * Makefile.in: Add missing HAS_SPHINX_BUILD.
2236 2022-11-09  Martin Liska  <mliska@suse.cz>
2238         * doc/amd-radeon-gcn.rst:
2239         Add trailing newline.
2240         * doc/copyright.rst:
2241         Add trailing newline.
2242         * doc/cuda-streams-usage.rst:
2243         Add trailing newline.
2244         * doc/enabling-openacc.rst:
2245         Add trailing newline.
2246         * doc/enabling-openmp.rst:
2247         Add trailing newline.
2248         * doc/first-invocation-nvidia-cublas-library-api.rst:
2249         Add trailing newline.
2250         * doc/first-invocation-openacc-library-api.rst:
2251         Add trailing newline.
2252         * doc/funding.rst:
2253         Add trailing newline.
2254         * doc/general-public-license-3.rst:
2255         Add trailing newline.
2256         * doc/gnu-free-documentation-license.rst:
2257         Add trailing newline.
2258         * doc/implementation-status-and-implementation-defined-behavior.rst:
2259         Add trailing newline.
2260         * doc/index.rst:
2261         Add trailing newline.
2262         * doc/indices-and-tables.rst:
2263         Add trailing newline.
2264         * doc/introduction.rst:
2265         Add trailing newline.
2266         * doc/memory-allocation-with-libmemkind.rst:
2267         Add trailing newline.
2268         * doc/nvptx.rst:
2269         Add trailing newline.
2270         * doc/offload-target-specifics.rst:
2271         Add trailing newline.
2272         * doc/openacc-environment-variables.rst:
2273         Add trailing newline.
2274         * doc/openacc-environment-variables/accdevicenum.rst:
2275         Add trailing newline.
2276         * doc/openacc-environment-variables/accdevicetype.rst:
2277         Add trailing newline.
2278         * doc/openacc-environment-variables/accproflib.rst:
2279         Add trailing newline.
2280         * doc/openacc-environment-variables/gccaccnotify.rst:
2281         Add trailing newline.
2282         * doc/openacc-introduction.rst:
2283         Add trailing newline.
2284         * doc/openacc-library-and-environment-variables.rst:
2285         Add trailing newline.
2286         * doc/openacc-library-interoperability.rst:
2287         Add trailing newline.
2288         * doc/openacc-profiling-interface.rst:
2289         Add trailing newline.
2290         * doc/openacc-runtime-library-routines.rst:
2291         Add trailing newline.
2292         * doc/openacc-runtime-library-routines/accasynctest.rst:
2293         Add trailing newline.
2294         * doc/openacc-runtime-library-routines/accasynctestall.rst:
2295         Add trailing newline.
2296         * doc/openacc-runtime-library-routines/accattach.rst:
2297         Add trailing newline.
2298         * doc/openacc-runtime-library-routines/acccopyin.rst:
2299         Add trailing newline.
2300         * doc/openacc-runtime-library-routines/acccopyout.rst:
2301         Add trailing newline.
2302         * doc/openacc-runtime-library-routines/acccreate.rst:
2303         Add trailing newline.
2304         * doc/openacc-runtime-library-routines/accdelete.rst:
2305         Add trailing newline.
2306         * doc/openacc-runtime-library-routines/accdetach.rst:
2307         Add trailing newline.
2308         * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2309         Add trailing newline.
2310         * doc/openacc-runtime-library-routines/accfree.rst:
2311         Add trailing newline.
2312         * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2313         Add trailing newline.
2314         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2315         Add trailing newline.
2316         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2317         Add trailing newline.
2318         * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2319         Add trailing newline.
2320         * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2321         Add trailing newline.
2322         * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2323         Add trailing newline.
2324         * doc/openacc-runtime-library-routines/accgetproperty.rst:
2325         Add trailing newline.
2326         * doc/openacc-runtime-library-routines/acchostptr.rst:
2327         Add trailing newline.
2328         * doc/openacc-runtime-library-routines/accinit.rst:
2329         Add trailing newline.
2330         * doc/openacc-runtime-library-routines/accispresent.rst:
2331         Add trailing newline.
2332         * doc/openacc-runtime-library-routines/accmalloc.rst:
2333         Add trailing newline.
2334         * doc/openacc-runtime-library-routines/accmapdata.rst:
2335         Add trailing newline.
2336         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2337         Add trailing newline.
2338         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2339         Add trailing newline.
2340         * doc/openacc-runtime-library-routines/accondevice.rst:
2341         Add trailing newline.
2342         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2343         Add trailing newline.
2344         * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2345         Add trailing newline.
2346         * doc/openacc-runtime-library-routines/accproflookup.rst:
2347         Add trailing newline.
2348         * doc/openacc-runtime-library-routines/accprofregister.rst:
2349         Add trailing newline.
2350         * doc/openacc-runtime-library-routines/accprofunregister.rst:
2351         Add trailing newline.
2352         * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2353         Add trailing newline.
2354         * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2355         Add trailing newline.
2356         * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2357         Add trailing newline.
2358         * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2359         Add trailing newline.
2360         * doc/openacc-runtime-library-routines/accshutdown.rst:
2361         Add trailing newline.
2362         * doc/openacc-runtime-library-routines/accunmapdata.rst:
2363         Add trailing newline.
2364         * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2365         Add trailing newline.
2366         * doc/openacc-runtime-library-routines/accupdateself.rst:
2367         Add trailing newline.
2368         * doc/openacc-runtime-library-routines/accwait.rst:
2369         Add trailing newline.
2370         * doc/openacc-runtime-library-routines/accwaitall.rst:
2371         Add trailing newline.
2372         * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2373         Add trailing newline.
2374         * doc/openacc-runtime-library-routines/accwaitasync.rst:
2375         Add trailing newline.
2376         * doc/openmp-context-selectors.rst:
2377         Add trailing newline.
2378         * doc/openmp-environment-variables.rst:
2379         Add trailing newline.
2380         * doc/openmp-environment-variables/gompcpuaffinity.rst:
2381         Add trailing newline.
2382         * doc/openmp-environment-variables/gompdebug.rst:
2383         Add trailing newline.
2384         * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2385         Add trailing newline.
2386         * doc/openmp-environment-variables/gompspincount.rst:
2387         Add trailing newline.
2388         * doc/openmp-environment-variables/gompstacksize.rst:
2389         Add trailing newline.
2390         * doc/openmp-environment-variables/ompcancellation.rst:
2391         Add trailing newline.
2392         * doc/openmp-environment-variables/ompdefaultdevice.rst:
2393         Add trailing newline.
2394         * doc/openmp-environment-variables/ompdisplayenv.rst:
2395         Add trailing newline.
2396         * doc/openmp-environment-variables/ompdynamic.rst:
2397         Add trailing newline.
2398         * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2399         Add trailing newline.
2400         * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2401         Add trailing newline.
2402         * doc/openmp-environment-variables/ompnested.rst:
2403         Add trailing newline.
2404         * doc/openmp-environment-variables/ompnumteams.rst:
2405         Add trailing newline.
2406         * doc/openmp-environment-variables/ompnumthreads.rst:
2407         Add trailing newline.
2408         * doc/openmp-environment-variables/ompplaces.rst:
2409         Add trailing newline.
2410         * doc/openmp-environment-variables/ompprocbind.rst:
2411         Add trailing newline.
2412         * doc/openmp-environment-variables/ompschedule.rst:
2413         Add trailing newline.
2414         * doc/openmp-environment-variables/ompstacksize.rst:
2415         Add trailing newline.
2416         * doc/openmp-environment-variables/omptargetoffload.rst:
2417         Add trailing newline.
2418         * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2419         Add trailing newline.
2420         * doc/openmp-environment-variables/ompthreadlimit.rst:
2421         Add trailing newline.
2422         * doc/openmp-environment-variables/ompwaitpolicy.rst:
2423         Add trailing newline.
2424         * doc/openmp-implementation-specifics.rst:
2425         Add trailing newline.
2426         * doc/openmp-implementation-status.rst:
2427         Add trailing newline.
2428         * doc/openmp-implementation-status/openmp-45.rst:
2429         Add trailing newline.
2430         * doc/openmp-implementation-status/openmp-50.rst:
2431         Add trailing newline.
2432         * doc/openmp-implementation-status/openmp-51.rst:
2433         Add trailing newline.
2434         * doc/openmp-implementation-status/openmp-52.rst:
2435         Add trailing newline.
2436         * doc/openmp-runtime-library-routines.rst:
2437         Add trailing newline.
2438         * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2439         Add trailing newline.
2440         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2441         Add trailing newline.
2442         * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2443         Add trailing newline.
2444         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2445         Add trailing newline.
2446         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2447         Add trailing newline.
2448         * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2449         Add trailing newline.
2450         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2451         Add trailing newline.
2452         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2453         Add trailing newline.
2454         * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2455         Add trailing newline.
2456         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2457         Add trailing newline.
2458         * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2459         Add trailing newline.
2460         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2461         Add trailing newline.
2462         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2463         Add trailing newline.
2464         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2465         Add trailing newline.
2466         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2467         Add trailing newline.
2468         * doc/openmp-runtime-library-routines/ompgetnested.rst:
2469         Add trailing newline.
2470         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2471         Add trailing newline.
2472         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2473         Add trailing newline.
2474         * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2475         Add trailing newline.
2476         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2477         Add trailing newline.
2478         * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2479         Add trailing newline.
2480         * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2481         Add trailing newline.
2482         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2483         Add trailing newline.
2484         * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2485         Add trailing newline.
2486         * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2487         Add trailing newline.
2488         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2489         Add trailing newline.
2490         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2491         Add trailing newline.
2492         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2493         Add trailing newline.
2494         * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2495         Add trailing newline.
2496         * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2497         Add trailing newline.
2498         * doc/openmp-runtime-library-routines/ompinfinal.rst:
2499         Add trailing newline.
2500         * doc/openmp-runtime-library-routines/ompinitlock.rst:
2501         Add trailing newline.
2502         * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2503         Add trailing newline.
2504         * doc/openmp-runtime-library-routines/ompinparallel.rst:
2505         Add trailing newline.
2506         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2507         Add trailing newline.
2508         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2509         Add trailing newline.
2510         * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2511         Add trailing newline.
2512         * doc/openmp-runtime-library-routines/ompsetlock.rst:
2513         Add trailing newline.
2514         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2515         Add trailing newline.
2516         * doc/openmp-runtime-library-routines/ompsetnested.rst:
2517         Add trailing newline.
2518         * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2519         Add trailing newline.
2520         * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2521         Add trailing newline.
2522         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2523         Add trailing newline.
2524         * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2525         Add trailing newline.
2526         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2527         Add trailing newline.
2528         * doc/openmp-runtime-library-routines/omptestlock.rst:
2529         Add trailing newline.
2530         * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2531         Add trailing newline.
2532         * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2533         Add trailing newline.
2534         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2535         Add trailing newline.
2536         * doc/reporting-bugs.rst:
2537         Add trailing newline.
2538         * doc/the-libgomp-abi.rst:
2539         Add trailing newline.
2540         * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2541         Add trailing newline.
2542         * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2543         Add trailing newline.
2544         * doc/the-libgomp-abi/implementing-critical-construct.rst:
2545         Add trailing newline.
2546         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2547         Add trailing newline.
2548         * doc/the-libgomp-abi/implementing-flush-construct.rst:
2549         Add trailing newline.
2550         * doc/the-libgomp-abi/implementing-for-construct.rst:
2551         Add trailing newline.
2552         * doc/the-libgomp-abi/implementing-master-construct.rst:
2553         Add trailing newline.
2554         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2555         Add trailing newline.
2556         * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2557         Add trailing newline.
2558         * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2559         Add trailing newline.
2560         * doc/the-libgomp-abi/implementing-private-clause.rst:
2561         Add trailing newline.
2562         * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2563         Add trailing newline.
2564         * doc/the-libgomp-abi/implementing-sections-construct.rst:
2565         Add trailing newline.
2566         * doc/the-libgomp-abi/implementing-single-construct.rst:
2567         Add trailing newline.
2568         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2569         Add trailing newline.
2571 2022-11-09  Martin Liska  <mliska@suse.cz>
2573         * Makefile.in: Build info pages conditionally.
2575 2022-11-09  Martin Liska  <mliska@suse.cz>
2577         * Makefile.in: Support --with-sphinx-build.
2578         * configure.ac: Likewise..
2579         * configure: Regenerate.
2581 2022-11-09  Martin Liska  <mliska@suse.cz>
2583         * libgomp.texi: Removed.
2585 2022-11-09  Martin Liska  <mliska@suse.cz>
2587         * Makefile.in: Support Sphinx based documentation.
2589 2022-11-09  Martin Liska  <mliska@suse.cz>
2591         * doc/amd-radeon-gcn.rst: New file.
2592         * doc/conf.py: New file.
2593         * doc/copyright.rst: New file.
2594         * doc/cuda-streams-usage.rst: New file.
2595         * doc/enabling-openacc.rst: New file.
2596         * doc/enabling-openmp.rst: New file.
2597         * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2598         * doc/first-invocation-openacc-library-api.rst: New file.
2599         * doc/funding.rst: New file.
2600         * doc/general-public-license-3.rst: New file.
2601         * doc/gnu-free-documentation-license.rst: New file.
2602         * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2603         * doc/index.rst: New file.
2604         * doc/indices-and-tables.rst: New file.
2605         * doc/introduction.rst: New file.
2606         * doc/memory-allocation-with-libmemkind.rst: New file.
2607         * doc/nvptx.rst: New file.
2608         * doc/offload-target-specifics.rst: New file.
2609         * doc/openacc-environment-variables.rst: New file.
2610         * doc/openacc-environment-variables/accdevicenum.rst: New file.
2611         * doc/openacc-environment-variables/accdevicetype.rst: New file.
2612         * doc/openacc-environment-variables/accproflib.rst: New file.
2613         * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2614         * doc/openacc-introduction.rst: New file.
2615         * doc/openacc-library-and-environment-variables.rst: New file.
2616         * doc/openacc-library-interoperability.rst: New file.
2617         * doc/openacc-profiling-interface.rst: New file.
2618         * doc/openacc-runtime-library-routines.rst: New file.
2619         * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2620         * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2621         * doc/openacc-runtime-library-routines/accattach.rst: New file.
2622         * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2623         * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2624         * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2625         * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2626         * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2627         * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2628         * doc/openacc-runtime-library-routines/accfree.rst: New file.
2629         * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2630         * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2631         * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2632         * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2633         * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2634         * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2635         * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2636         * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2637         * doc/openacc-runtime-library-routines/accinit.rst: New file.
2638         * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2639         * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2640         * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2641         * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2642         * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2643         * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2644         * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2645         * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2646         * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2647         * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2648         * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2649         * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2650         * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2651         * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2652         * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2653         * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2654         * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2655         * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2656         * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2657         * doc/openacc-runtime-library-routines/accwait.rst: New file.
2658         * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2659         * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2660         * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2661         * doc/openmp-context-selectors.rst: New file.
2662         * doc/openmp-environment-variables.rst: New file.
2663         * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2664         * doc/openmp-environment-variables/gompdebug.rst: New file.
2665         * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2666         * doc/openmp-environment-variables/gompspincount.rst: New file.
2667         * doc/openmp-environment-variables/gompstacksize.rst: New file.
2668         * doc/openmp-environment-variables/ompcancellation.rst: New file.
2669         * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2670         * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2671         * doc/openmp-environment-variables/ompdynamic.rst: New file.
2672         * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2673         * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2674         * doc/openmp-environment-variables/ompnested.rst: New file.
2675         * doc/openmp-environment-variables/ompnumteams.rst: New file.
2676         * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2677         * doc/openmp-environment-variables/ompplaces.rst: New file.
2678         * doc/openmp-environment-variables/ompprocbind.rst: New file.
2679         * doc/openmp-environment-variables/ompschedule.rst: New file.
2680         * doc/openmp-environment-variables/ompstacksize.rst: New file.
2681         * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2682         * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2683         * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2684         * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2685         * doc/openmp-implementation-specifics.rst: New file.
2686         * doc/openmp-implementation-status.rst: New file.
2687         * doc/openmp-implementation-status/openmp-45.rst: New file.
2688         * doc/openmp-implementation-status/openmp-50.rst: New file.
2689         * doc/openmp-implementation-status/openmp-51.rst: New file.
2690         * doc/openmp-implementation-status/openmp-52.rst: New file.
2691         * doc/openmp-runtime-library-routines.rst: New file.
2692         * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2693         * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2694         * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2695         * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2696         * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2697         * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2698         * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2699         * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2700         * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2701         * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2702         * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2703         * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2704         * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2705         * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2706         * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2707         * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2708         * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2709         * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2710         * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2711         * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2712         * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2713         * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2714         * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2715         * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2716         * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2717         * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2718         * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2719         * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2720         * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2721         * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2722         * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2723         * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2724         * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2725         * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2726         * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2727         * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2728         * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2729         * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2730         * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2731         * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2732         * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2733         * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2734         * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2735         * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2736         * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2737         * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2738         * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2739         * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2740         * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2741         * doc/reporting-bugs.rst: New file.
2742         * doc/the-libgomp-abi.rst: New file.
2743         * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2744         * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2745         * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2746         * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2747         New file.
2748         * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2749         * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2750         * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2751         * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2752         * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2753         * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2754         * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2755         * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2756         * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2757         * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2758         * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2760 2022-11-04  Thomas Schwinge  <thomas@codesourcery.com>
2762         * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2763         * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2764         documentation.
2765         * plugin/configfrag.ac <enable_offload_targets>
2766         [*-intelmic-* | *-intelmicemul-*]: Remove.
2767         * configure: Regenerate.
2768         * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2769         handling.
2770         (offload_target_to_openacc_device_type)
2771         [$offload_target = *-intelmic*]: Remove.
2772         (check_effective_target_offload_device_intel_mic)
2773         (check_effective_target_offload_device_any_intel_mic): Remove.
2774         * testsuite/libgomp.c-c++-common/on_device_arch.h
2775         (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2776         (any_device_arch_intel_mic): Remove.
2777         * testsuite/libgomp.c-c++-common/target-45.c: Remove
2778         'offload_device_any_intel_mic' XFAIL.
2779         * testsuite/libgomp.fortran/target10.f90: Likewise.
2781 2022-11-03  Tobias Burnus  <tobias@codesourcery.com>
2783         * testsuite/libgomp.fortran/target-11.f90: New test.
2784         * testsuite/libgomp.fortran/target-13.f90: New test.
2786 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2788         PR libgomp/106643
2789         PR fortran/96668
2790         * oacc-mem.c (goacc_enter_data_internal): Support
2791         OpenACC 'declare create' with Fortran allocatable arrays, part II.
2792         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2793         Adjust.
2794         * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2796 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2798         PR libgomp/106643
2799         * oacc-mem.c (goacc_enter_data_internal): Support
2800         OpenACC 'declare create' with Fortran allocatable arrays, part I.
2801         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2802         New.
2803         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2804         New.
2806 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2808         * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2809         New.
2811 2022-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2813         * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2814         New.
2816 2022-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2817             Thomas Schwinge  <thomas@codesourcery.com>
2819         * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2821 2022-10-28  Julian Brown  <julian@codesourcery.com>
2822             Thomas Schwinge  <thomas@codesourcery.com>
2824         PR middle-end/90115
2825         * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2826         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2827         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2828         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2829         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2831 2022-10-24  Thomas Schwinge  <thomas@codesourcery.com>
2833         * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2834         'ptx_dev->rev_data'.
2836 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
2838         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2839         'static' for this variable.
2840         * config/nvptx/libgomp-nvptx.h: New file.
2841         * config/nvptx/target.c: Include it.
2842         (GOMP_ADDITIONAL_ICVS): Declare extern var.
2843         (GOMP_REV_OFFLOAD_VAR): Declare var.
2844         (GOMP_target_ext): Handle reverse offload.
2845         * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2846         * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2847         * target.c (gomp_target_rev): ... this new stub function.
2848         * libgomp.h (gomp_target_rev): Declare.
2849         * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2850         * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2851         * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2852         (struct ptx_device): Add rev_data member.
2853         (nvptx_open_device): Remove async_engines query, last used in
2854         r10-304-g1f4c5b9b; add unified-address assert check.
2855         (GOMP_OFFLOAD_get_num_devices): Claim unified address
2856         support.
2857         (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2858         offload functions exist. Make offload var available
2859         on host and device.
2860         (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2861         (GOMP_OFFLOAD_run): Handle reverse offload.
2863 2022-10-21  Thomas Schwinge  <thomas@codesourcery.com>
2865         PR tree-optimization/107195
2866         PR target/107344
2867         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2868         regions checking.
2870 2022-10-20  Tobias Burnus  <tobias@codesourcery.com>
2872         * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2873         New.
2874         * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2875         on_device_arch_gcn): New.
2876         * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2877         requires-4.c but using heap-allocated memory.
2879 2022-10-20  Thomas Schwinge  <thomas@codesourcery.com>
2881         PR target/105421
2882         * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2884 2022-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2886         * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2887         '-foffload-options' syntax.
2889 2022-10-13  Tobias Burnus  <tobias@codesourcery.com>
2891         * testsuite/libgomp.fortran/task-7.f90: New test.
2892         * testsuite/libgomp.fortran/task-8.f90: New test.
2893         * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2894         * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2895         * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2896         * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2897         * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2899 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2901         * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2902         in deprecation bullet.
2904 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2906         * omp.h.in (omp_in_explicit_task): Declare.
2907         * omp_lib.h.in (omp_in_explicit_task): Likewise.
2908         * omp_lib.f90.in (omp_in_explicit_task): New interface.
2909         * libgomp.map (OMP_5.2): New symbol version, export
2910         omp_in_explicit_task and omp_in_explicit_task_.
2911         * task.c (omp_in_explicit_task): New function.
2912         * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2913         (omp_in_explicit_task_): New function.
2914         * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2915         * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2916         * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2917         * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2919 2022-10-12  Jakub Jelinek  <jakub@redhat.com>
2921         * task.c (gomp_create_artificial_team): Fix up handling of invocations
2922         from within explicit task.
2923         * target.c (GOMP_target_ext): Likewise.
2924         * testsuite/libgomp.c/task-7.c: New test.
2925         * testsuite/libgomp.c/task-8.c: New test.
2926         * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2927         * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2929 2022-10-12  Martin Liska  <mliska@suse.cz>
2931         * configure: Regenerate.
2933 2022-10-11  Olivier Hainque  <hainque@adacore.com>
2934             Olivier Hainque  <hainque@adacore.com>
2936         * configure: Regenerate.
2938 2022-10-05  Tobias Burnus  <tobias@codesourcery.com>
2940         * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2942 2022-10-04  Jakub Jelinek  <jakub@redhat.com>
2944         * libgomp.texi (Support begin/end declare target syntax in C/C++):
2945         Mark as implemented.
2947 2022-09-30  Tobias Burnus  <tobias@codesourcery.com>
2949         PR fortran/105318
2950         * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2952 2022-09-28  Tobias Burnus  <tobias@codesourcery.com>
2954         * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2955         for C/C++. Remove duplicated 'begin declare target' entry.
2957 2022-09-24  Jakub Jelinek  <jakub@redhat.com>
2959         PR c/106981
2960         * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2962 2022-09-14  Julian Brown  <julian@codesourcery.com>
2964         * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2965         * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2966         * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2967         * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2968         test to here, make "run" test.
2970 2022-09-13  Jakub Jelinek  <jakub@redhat.com>
2972         PR libgomp/106906
2973         * env.c (get_icv_member_addr): Cast false to void * before assigning
2974         it to icv_addr[1], and comment the whole assignment out.
2976 2022-09-13  Tobias Burnus  <tobias@codesourcery.com>
2978         * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2979         (nvptx): ... here.
2981 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2983         * libgomp.texi (Offload-Target Specifics: nvptx): Document
2984         that reverse offload requires >= -march=sm_35.
2985         * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2986         with -misa=sm_35.
2987         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2988         * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2989         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2990         * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2991         * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2993 2022-09-12  Tobias Burnus  <tobias@codesourcery.com>
2995         * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
2996         (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
2998 2022-09-12  Jakub Jelinek  <jakub@redhat.com>
3000         PR libgomp/106894
3001         * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3002         (main): Avoid tests for which corresponding non-_ALL suffixed variable
3003         is in the environment, or for OMP_NUM_TEAMS on the device
3004         OMP_NUM_TEAMS_DEV_?.
3006 2022-09-10  Iain Sandoe  <iain@sandoe.co.uk>
3008         * env.c (initialize_env): Include libiberty environ.h.
3010 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3012         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3013         function address table '$offload_func_table' if rev_fn_table
3014         is not NULL.
3016 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3018         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3019         .offload_func_table to populate rev_fn_table when requested.
3021 2022-09-09  Tobias Burnus  <tobias@codesourcery.com>
3023         * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3024         'uint64_t **rev_fn_table' argument.
3025         * oacc-host.c (host_load_image): Likewise.
3026         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3027         currently unused.
3028         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3029         * target.c (gomp_load_image_to_device): Update call but pass
3030         NULL for now.
3032 2022-09-09  Jakub Jelinek  <jakub@redhat.com>
3034         PR libgomp/106894
3035         * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3036         char * for dest[1] initialization from params[1].  Formatting fixes.
3038 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3040         PR fortran/106670
3041         * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3043 2022-09-08  Tobias Burnus  <tobias@codesourcery.com>
3045         * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3046         section; move OpenMP Context Selectors from ...
3047         (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3048         'nvptx' sections.
3050 2022-09-08  Marcel Vollweiler  <marcel@codesourcery.com>
3052         * config/gcn/icv-device.c (omp_get_default_device): Return device-
3053         specific ICV.
3054         (omp_get_max_teams): Added for GCN devices.
3055         (omp_set_num_teams): Likewise.
3056         (ialias): Likewise.
3057         * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3058         specific ICV.
3059         (omp_get_max_teams): Added for NVPTX devices.
3060         (omp_set_num_teams): Likewise.
3061         (ialias): Likewise.
3062         * env.c (struct gomp_icv_list): New struct to store entries of initial
3063         ICV values.
3064         (struct gomp_offload_icv_list): New struct to store entries of device-
3065         specific ICV values that are copied to the device and back.
3066         (struct gomp_default_icv_values): New struct to store default values of
3067         ICVs according to the OpenMP standard.
3068         (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3069         (print_env_var_error): Function that prints an error for invalid values
3070         for ICVs.
3071         (parse_unsigned_long_1): Removed getenv.  Generalized.
3072         (parse_unsigned_long): Likewise.
3073         (parse_int_1): Likewise.
3074         (parse_int): Likewise.
3075         (parse_int_secure): Likewise.
3076         (parse_unsigned_long_list): Likewise.
3077         (parse_target_offload): Likewise.
3078         (parse_bind_var): Likewise.
3079         (parse_stacksize): Likewise.
3080         (parse_boolean): Likewise.
3081         (parse_wait_policy): Likewise.
3082         (parse_allocator): Likewise.
3083         (omp_display_env): Extended to output different variants of environment
3084         variables.
3085         (print_schedule): New helper function for omp_display_env which prints
3086         the values of run_sched_var.
3087         (print_proc_bind): New helper function for omp_display_env which prints
3088         the values of proc_bind_var.
3089         (enum gomp_parse_type): Collection of types used for parsing environment
3090         variables.
3091         (ENTRY): Preprocess string lengths of environment variables.
3092         (OMP_VAR_CNT): Preprocess table size.
3093         (OMP_HOST_VAR_CNT): Likewise.
3094         (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3095         number.
3096         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3097         (gomp_set_icv_flag): Sets a flag for a particular ICV.
3098         (print_device_specific_icvs): New helper function for omp_display_env to
3099         print device specific ICV values.
3100         (get_device_num): New helper function for parse_device_specific.
3101         Extracts the device number from an environment variable name.
3102         (get_icv_member_addr): Gets the memory address for a particular member
3103         of an ICV struct.
3104         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3105         (initialize_icvs): New function to initialize a gomp_initial_icvs
3106         struct.
3107         (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3108         (startswith): Checks if a string starts with a given prefix.
3109         (initialize_env): Extended to parse the new syntax of environment
3110         variables.
3111         * icv-device.c (omp_get_max_teams): Added.
3112         (ialias): Likewise.
3113         (omp_set_num_teams): Likewise.
3114         * icv.c (omp_set_num_teams): Moved to icv-device.c.
3115         (omp_get_max_teams): Likewise.
3116         (ialias): Likewise.
3117         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3118         (GOMP_ADDITIONAL_ICVS): New target-side struct that
3119         holds the designated ICVs of the target device.
3120         * libgomp.h (enum gomp_icvs): Collection of ICVs.
3121         (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3122         no suffix.
3123         (enum gomp_env_suffix): Collection of possible suffixes of environment
3124         variables.
3125         (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3126         initial values.
3127         (struct gomp_default_icv):New struct to hold ICVs for which we need
3128         to store initial values.
3129         (struct gomp_icv_list): Definition of a linked list that is used for
3130         storing ICVs for the devices and also for _DEV, _ALL, and without
3131         suffix.
3132         (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3133         a device.
3134         (struct gomp_offload_icv_list): Definition of a linked list that holds
3135         device-specific ICVs that are copied to devices.
3136         (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3137         (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3138         * libgomp.texi: Updated.
3139         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3140         further ICVs from the offload image.
3141         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3142         * target.c (gomp_get_offload_icv_item): Get a list item of
3143         gomp_offload_icv_list.
3144         (get_gomp_offload_icvs): New. Returns the ICV values
3145         depending on the device num and the variable hierarchy.
3146         (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3147         * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3148         * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3149         * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3150         * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3151         * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3152         * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3154 2022-09-08  Jakub Jelinek  <jakub@redhat.com>
3156         * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3157         fully supported.
3158         * testsuite/libgomp.c/doacross-4.c: New test.
3159         * testsuite/libgomp.c/doacross-5.c: New test.
3160         * testsuite/libgomp.c/doacross-6.c: New test.
3161         * testsuite/libgomp.c/doacross-7.c: New test.
3163 2022-09-05  Tobias Burnus  <tobias@codesourcery.com>
3165         * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3167 2022-08-26  Tobias Burnus  <tobias@codesourcery.com>
3169         * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3170         refer to 'requires'.
3171         * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3172         * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3173         * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3174         * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3176 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3178         PR middle-end/106548
3179         * testsuite/libgomp.c/linear-2.c: New test.
3181 2022-08-17  Tobias Burnus  <tobias@codesourcery.com>
3183         * splay-tree.h: Fix splay_* macro unsetting if
3184         splay_tree_prefix is defined.
3186 2022-07-29  Tobias Burnus  <tobias@codesourcery.com>
3188         * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3190 2022-07-29  Jakub Jelinek  <jakub@redhat.com>
3192         PR middle-end/106449
3193         * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3195 2022-07-12  Tobias Burnus  <tobias@codesourcery.com>
3197         * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3199 2022-07-12  Thomas Schwinge  <thomas@codesourcery.com>
3201         PR middle-end/101551
3202         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3203         'offloading_enabled' diagnostics issue.
3205 2022-07-11  Thomas Schwinge  <thomas@codesourcery.com>
3207         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3208         '_Pragma' diagnostics verification.
3210 2022-07-10  Lewis Hyatt  <lhyatt@gmail.com>
3212         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3213         improved warning locations.
3214         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3216 2022-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3218         * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3219         * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3220         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3221         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3222         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3224 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3226         * target.c (GOMP_offload_register, GOMP_offload_unregister):
3227         Denote as legacy entry points.
3228         * testsuite/lib/libgomp.exp
3229         (check_effective_target_offload_target_any): New proc.
3230         * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3231         'offload_target_any'.
3232         * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3233         * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3234         * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3236 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3238         * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3239         * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3241 2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
3243         * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3245 2022-07-06  Thomas Schwinge  <thomas@codesourcery.com>
3247         * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3248         'data'.
3249         (GOMP_offload_unregister_ver): Likewise.  Fix up 'target_data'.
3251 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3252             Jakub Jelinek  <jakub@redhat.com>
3254         * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3256 2022-07-04  Tobias Burnus  <tobias@codesourcery.com>
3257             Chung-Lin Tang  <cltang@codesourcery.com>
3258             Thomas Schwinge  <thomas@codesourcery.com>
3260         * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3261         omp_requires_mask arg.
3262         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3263         return -1 when device available but omp_requires_mask != 0.
3264         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3265         * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3266         Update call.
3267         * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3268         goacc_attach_host_thread_to_device, acc_get_num_devices,
3269         acc_set_device_num, get_property_any): Likewise.
3270         * target.c (omp_requires_mask): New global var.
3271         (gomp_requires_to_name): New.
3272         (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3273         (gomp_target_init): Handle omp_requires_mask.
3274         * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3275         (OpenMP 5.1): Add a missed item.
3276         (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3277         * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3278         * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3279         * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3280         * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3281         * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3282         * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3283         * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3284         * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3285         * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3286         * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3287         * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3288         * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3289         * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3290         * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3291         * testsuite/libgomp.fortran/requires-1.f90: New test.
3293 2022-07-01  Tobias Burnus  <tobias@codesourcery.com>
3295         * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3296         with fromto as implemented.
3298 2022-06-28  Martin Liska  <mliska@suse.cz>
3300         * acinclude.m4: Fix typo in mold linker detection.
3301         * Makefile.in: Regenerate.
3302         * configure: Regenerate.
3304 2022-06-21  Jakub Jelinek  <jakub@redhat.com>
3305             Paul Iannetta  <piannetta@kalrayinc.com>
3307         PR libgomp/106045
3308         * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3310 2022-06-17  Martin Liska  <mliska@suse.cz>
3312         * libgomp.texi: Add table header for new features of
3313         OpenMP 5.2.
3315 2022-06-15  Jakub Jelinek  <jakub@redhat.com>
3317         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3318         q to ddress of an automatic variable.  Use -5 instead of -1 in
3319         omp_get_mapped_ptr call.  Add test with omp_initial_device.
3320         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3321         of -1 in omp_get_mapped_ptr call.  Add test with omp_initial_device.
3322         Renumber stop arguments afterwards.
3324 2022-06-13  Jakub Jelinek  <jakub@redhat.com>
3326         * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3327         * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3328         parameters.
3329         * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3330         * target.c (resolve_device): Add remapped argument, handle
3331         GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3332         for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3333         if remapped, otherwise treat omp_initial_device that way.  For
3334         omp_invalid_device, always emit gomp_fatal, even when
3335         OMP_TARGET_OFFLOAD isn't mandatory.
3336         (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3337         GOMP_target_update, GOMP_target_update_ext,
3338         GOMP_target_enter_exit_data): Pass true as remapped argument to
3339         resolve_device.
3340         (omp_target_alloc, omp_target_free, omp_target_is_present,
3341         omp_target_memcpy_check, omp_target_associate_ptr,
3342         omp_target_disassociate_ptr, omp_get_mapped_ptr,
3343         omp_target_is_accessible): Pass false as remapped argument to
3344         resolve_device.  Treat omp_initial_device the same as
3345         gomp_get_num_devices ().  Don't bypass resolve_device calls if
3346         device_num is negative.
3347         (omp_pause_resource): Treat omp_initial_device the same as
3348         gomp_get_num_devices ().  Call resolve_device.
3349         * icv-device.c (omp_set_default_device): Always set to device_num
3350         even when it is negative.
3351         * libgomp.texi: Document that Conforming device numbers,
3352         omp_initial_device and omp_invalid_device is implemented.
3353         * testsuite/libgomp.c/target-41.c (main): Add test with
3354         omp_initial_device.
3355         * testsuite/libgomp.c/target-45.c: New test.
3356         * testsuite/libgomp.c/target-46.c: New test.
3357         * testsuite/libgomp.c/target-47.c: New test.
3358         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3359         test with omp_initial_device.  Use -5 instead of -1 for negative value
3360         test.
3361         * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3362         Likewise.  Reorder stop numbers.
3364 2022-06-10  Jakub Jelinek  <jakub@redhat.com>
3366         * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3367         rather than "libmemkind.so".
3369 2022-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3371         * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3372         * plugin/configfrag.ac (--with-cuda-driver)
3373         (--with-cuda-driver-include, --with-cuda-driver-lib)
3374         (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3375         (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3376         Remove.
3377         * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3378         (cuda_driver_lib): Remove.
3379         * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3380         * Makefile.in: Regenerate.
3381         * configure: Likewise.
3382         * testsuite/Makefile.in: Likewise.
3384 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3386         * config/linux/allocator.c: Fix up #include directive.
3388 2022-06-09  Jakub Jelinek  <jakub@redhat.com>
3390         * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3391         (enum gomp_memkind_kind): New type.
3392         (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3393         is defined.
3394         (struct gomp_memkind_data): New type.
3395         (memkind_data, memkind_data_once): New variables.
3396         (gomp_init_memkind, gomp_get_memkind): New functions.
3397         (omp_init_allocator): Initialize data.memkind, don't fail for
3398         omp_high_bw_mem_space if libmemkind supports it.
3399         (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3400         memkind support of LIBGOMP_USE_MEMKIND is defined.
3401         * config/linux/allocator.c: New file.
3403 2022-06-03  Tobias Burnus  <tobias@codesourcery.com>
3405         * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3406         * testsuite/libgomp.fortran/scope-2.f90: New test.
3408 2022-06-02  David Malcolm  <dmalcolm@redhat.com>
3410         * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3412 2022-05-31  Jakub Jelinek  <jakub@redhat.com>
3414         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3415         scope construct with allocate clause.
3416         * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3417         * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3419 2022-05-28  Tobias Burnus  <tobias@codesourcery.com>
3421         * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3422         * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3423         explicit 'to' and 'enter' clause.
3424         * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3426 2022-05-28  Jakub Jelinek  <jakub@redhat.com>
3428         PR libgomp/105745
3429         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3430         defined(HAVE__ALIGNED_MALLOC) case.
3431         * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3432         handling as last option before fallback instead of first.
3433         (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3434         _aligned_free.
3436 2022-05-27  Jakub Jelinek  <jakub@redhat.com>
3438         * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3439         clauses to enter.
3440         * testsuite/libgomp.c/target-41.c: Likewise.
3442 2022-05-27  Tobias Burnus  <tobias@codesourcery.com>
3444         * libgomp.texi (Other new OpenMP 5.1 features): Add
3445         'begin declare target'.
3446         (Other new OpenMP 5.2 features): New.
3448 2022-05-25  Jakub Jelinek  <jakub@redhat.com>
3450         * task.c (gomp_task_run_post_handle_dependers): If empty_task
3451         is the last task taskwait depend depends on, wake it up.
3452         Similarly if it is the last child of a taskgroup, use atomic
3453         store instead of decrement and awak taskgroup wait if any.
3454         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3456 2022-05-24  Andrew Stubbs  <ams@codesourcery.com>
3458         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3459         EF_AMDGPU_MACH_AMDGCN_GFX90a.
3460         (gcn_gfx90a_s): New.
3461         (isa_hsa_name): Support gfx90a.
3462         (isa_code): Likewise.
3464 2022-05-24  Tobias Burnus  <tobias@codesourcery.com>
3466         PR c/105378
3467         * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3468         * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3470 2022-05-24  Jakub Jelinek  <jakub@redhat.com>
3472         PR c/105378
3473         * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3474         * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3475         * task.c (empty_task): New function.
3476         (gomp_task_run_post_handle_depend_hash): Declare earlier.
3477         (gomp_task_run_post_handle_depend): Declare.
3478         (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3479         for.
3480         (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3481         (GOMP_taskwait_depend_nowait): New function.
3482         * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3484 2022-05-23  Tobias Burnus  <tobias@codesourcery.com>
3486         PR fortran/104949
3487         * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3488         Support attach for GOMP_MAP_FIRSTPRIVATE.
3489         * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3490         * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3491         * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3493 2022-05-20  Marcel Vollweiler  <marcel@codesourcery.com>
3495         * libgomp.map: Added omp_target_memcpy_async and
3496         omp_target_memcpy_rect_async.
3497         * libgomp.texi: Both functions are now supported.
3498         * omp.h.in: Added omp_target_memcpy_async and
3499         omp_target_memcpy_rect_async.
3500         * omp_lib.f90.in: Added interfaces for both new functions.
3501         * omp_lib.h.in: Likewise.
3502         * target.c (ialias_redirect): Added for GOMP_task.
3503         (omp_target_memcpy): Restructured into check and copy part.
3504         (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3505         omp_target_memcpy_async that checks requirements.
3506         (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3507         omp_target_memcpy_async that performs the memcpy.
3508         (omp_target_memcpy_async_helper): New helper function that is used in
3509         omp_target_memcpy_async for the asynchronous task.
3510         (omp_target_memcpy_async): Added.
3511         (omp_target_memcpy_rect): Restructured into check and copy part.
3512         (omp_target_memcpy_rect_check): New helper function for
3513         omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3514         requirements.
3515         (omp_target_memcpy_rect_copy): New helper function for
3516         omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3517         the memcpy.
3518         (omp_target_memcpy_rect_async_helper): New helper function that is used
3519         in omp_target_memcpy_rect_async for the asynchronous task.
3520         (omp_target_memcpy_rect_async): Added.
3521         * task.c (ialias): Added for GOMP_task.
3522         * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3523         * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3524         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3525         * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3526         * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3527         * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3528         * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3529         * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3531 2022-05-18  Tobias Burnus  <tobias@codesourcery.com>
3533         * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3534         (OpenMP Context Selectors): Add missing comma.
3535         * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3536         * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3537         * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3538         * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3540 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3542         * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3543         comment for omp_display_env feature.
3545 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3547         * libgomp.texi (Offload-Target Specifics): New chapter; add section
3548         to document OpenMP context selectors.
3550 2022-05-17  Jakub Jelinek  <jakub@redhat.com>
3552         * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3553         from bool to unsigned char.
3554         * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3555         Ignore dependencies where
3556         task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3557         rather than just task->depend[i].is_in && ent->is_in.  Remember
3558         whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3559         conditional.
3560         (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3561         Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3562         rather than just elem.is_in && ent->is_in.
3563         * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3564         inoutset depend-kind.
3565         * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3566         * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3567         * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3569 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3571         * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3573 2022-05-17  Tobias Burnus  <tobias@codesourcery.com>
3575         * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3576         * testsuite/libgomp.fortran/depend-5.f90: New test.
3577         * testsuite/libgomp.fortran/depend-6.f90: New test.
3578         * testsuite/libgomp.fortran/depend-7.f90: New test.
3580 2022-05-16  Marcel Vollweiler  <marcel@codesourcery.com>
3582         * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3583         * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3584         * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3586 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3588         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3590 2022-05-13  Tobias Burnus  <tobias@codesourcery.com>
3592         * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3594 2022-05-13  Thomas Schwinge  <thomas@codesourcery.com>
3596         * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3597         [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3598         (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3599         append '$(PLUGIN_NVPTX_LDFLAGS)'.
3600         * Makefile.in: Regenerate.
3602 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3604         * Makefile.am (libgomp_la_LIBADD): Initialize.
3605         * plugin/configfrag.ac (DL_LIBS): New.
3606         (PLUGIN_GCN_LIBS): Remove.
3607         (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3608         * plugin/Makefrag.am (libgomp_la_LIBADD)
3609         (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3610         (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3611         * Makefile.in: Regenerate.
3612         * config.h.in: Likewise.
3613         * configure: Likewise.
3614         * testsuite/Makefile.in: Likewise.
3616 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3618         * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3619         * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3620         'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3621         * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3622         'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3623         'PLUGIN_NVPTX_LINK_LIBCUDA'.
3624         * Makefile.in: Regenerate.
3625         * config.h.in: Likewise.
3626         * configure: Likewise.
3628 2022-05-12  Thomas Schwinge  <thomas@codesourcery.com>
3630         * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3631         for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3632         * Makefile.in: Regenerate.
3633         * config.h.in: Likewise.
3634         * configure: Likewise.
3635         * testsuite/Makefile.in: Likewise.
3637 2022-05-12  Jakub Jelinek  <jakub@redhat.com>
3639         * libgomp.h (struct gomp_task): Add depend_all_memory member.
3640         * task.c (gomp_init_task): Initialize depend_all_memory.
3641         (gomp_task_handle_depend): Handle omp_all_memory.
3642         (gomp_task_run_post_handle_depend_hash): Clear
3643         parent->depend_all_memory if equal to current task.
3644         (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3645         * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3646         * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3647         * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3649 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3651         * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3652         '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3653         * Makefile.in: Regenerate.
3654         * configure: Likewise.
3655         * testsuite/Makefile.in: Likewise.
3657 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3659         * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3660         consider 'PLUGIN_GCN_CPPFLAGS'.
3661         (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3662         'PLUGIN_GCN_LDFLAGS'.
3663         * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3664         Remove.
3665         * Makefile.in: Regenerate.
3666         * configure: Likewise.
3667         * testsuite/Makefile.in: Likewise.
3669 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3671         * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3672         (HSA_RUNTIME_LDFLAGS): Remove.
3673         * configure: Regenerate.
3675 2022-05-11  Thomas Schwinge  <thomas@codesourcery.com>
3677         * testsuite/lib/libgomp.exp (libgomp_init): Don't
3678         'append always_ld_library_path ":$hsa_runtime_lib"'.
3679         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3681 2022-05-10  Thomas Schwinge  <thomas@codesourcery.com>
3683         * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3684         multi-device testing.
3686 2022-05-06  Marcel Vollweiler  <marcel@codesourcery.com>
3688         * libgomp.map: Added omp_target_is_accessible.
3689         * libgomp.texi: Tagged omp_target_is_accessible as supported.
3690         * omp.h.in: Added omp_target_is_accessible.
3691         * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3692         * omp_lib.h.in: Likewise.
3693         * target.c (omp_target_is_accessible): Added implementation of
3694         omp_target_is_accessible.
3695         * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3696         * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3698 2022-05-05  Sandra Loosemore  <sandra@codesourcery.com>
3700         * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3702 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3704         * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3706 2022-05-04  Tobias Burnus  <tobias@codesourcery.com>
3708         * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3710 2022-05-03  Marcel Vollweiler  <marcel@codesourcery.com>
3712         * libgomp.map: Added omp_get_mapped_ptr.
3713         * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3714         * omp.h.in: Added omp_get_mapped_ptr.
3715         * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3716         * omp_lib.h.in: Likewise.
3717         * target.c (omp_get_mapped_ptr): Added implementation of
3718         omp_get_mapped_ptr.
3719         * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3720         * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3721         * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3722         * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3723         * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3724         * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3725         * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3726         * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3728 2022-04-28  Thomas Schwinge  <thomas@codesourcery.com>
3730         PR fortran/104717
3731         * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3732         privatization scanning.  For GCN offloading compilation, raise
3733         '-mgang-private-size'.
3735 2022-04-26  Jakub Jelinek  <jakub@redhat.com>
3737         PR libgomp/105358
3738         * work.c (gomp_init_work_share): Don't mask of adjustment for
3739         dynamic long long realignment if struct gomp_work_share has smaller
3740         alignof than long long.
3741         * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3742         struct gomp_work_share has smaller alignof than long long or if
3743         sizeof (struct gomp_work_share) is smaller than
3744         INLINE_ORDERED_TEAM_IDS_OFF.
3745         * loop_ull.c (GOMP_loop_ull_start): Likewise.
3746         * sections.c (GOMP_sections2_start): Likewise.
3748 2022-04-25  Jakub Jelinek  <jakub@redhat.com>
3749             Thomas Schwinge  <thomas@codesourcery.com>
3751         PR fortran/104717
3752         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3754 2022-04-13  Jakub Jelinek  <jakub@redhat.com>
3756         * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3758 2022-04-06  Thomas Schwinge  <thomas@codesourcery.com>
3760         * plugin/cuda/cuda.h: Remove file.
3761         * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3762         "cuda/cuda.h" instead of <cuda.h>.
3763         * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3764         'PLUGIN_NVPTX_CPPFLAGS'.
3765         * configure: Regenerate.
3767 2022-04-05  Chung-Lin Tang  <cltang@codesourcery.com>
3769         * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3771 2022-04-04  Tom de Vries  <tdevries@suse.de>
3773         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3774         on_device_arch_nvptx instead of offload_target_nvptx.
3775         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3777 2022-04-01  Tom de Vries  <tdevries@suse.de>
3779         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3780         and use REC_DEPTH.
3781         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3783 2022-04-01  Tom de Vries  <tdevries@suse.de>
3785         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3786         num_workers check.
3788 2022-03-29  Chenghua Xu  <xuchenghua@loongson.cn>
3789             Lulu Cheng  <chenglulu@loongson.cn>
3791         * configure.tgt: Add LoongArch triplet.
3793 2022-03-28  Tom de Vries  <tdevries@suse.de>
3795         * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3796         instead of /libexec/.
3797         * configure: Regenerate.
3799 2022-03-25  Tom de Vries  <tdevries@suse.de>
3801         PR libgomp/105042
3802         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3803         execution time.
3804         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3805         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3807 2022-03-23  Tobias Burnus  <tobias@codesourcery.com>
3809         PR middle-end/104285
3810         * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3811         * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3812         * testsuite/libgomp.c++/target-same-name-2.C: New test.
3813         * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3814         * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3815         * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3817 2022-03-22  Tom de Vries  <tdevries@suse.de>
3819         PR target/104916
3820         PR target/104783
3821         * testsuite/libgomp.c/pr104783-2.c: New test.
3823 2022-03-18  Tobias Burnus  <tobias@codesourcery.com>
3825         PR fortran/103039
3826         * testsuite/libgomp.fortran/associate4.f90: New test.
3828 2022-03-18  Tom de Vries  <tdevries@suse.de>
3830         PR target/104952
3831         * testsuite/libgomp.c/pr104952-1.c: New test.
3832         * testsuite/libgomp.c/pr104952-2.c: New test.
3834 2022-03-18  Jakub Jelinek  <jakub@redhat.com>
3836         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3837         variable next to pl variable.
3839 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3841         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3842         Enhance.
3843         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3844         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3846 2022-03-17  Thomas Schwinge  <thomas@codesourcery.com>
3848         PR middle-end/90115
3849         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3850         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3852 2022-03-16  Marcel Vollweiler  <marcel@codesourcery.com>
3854         * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3855         omp_set_max_active_levels.
3856         * testsuite/libgomp.fortran/icv-8.f90: New test.
3858 2022-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3860         PR testsuite/102841
3861         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3863 2022-03-13  Tobias Burnus  <tobias@codesourcery.com>
3865         * libgomp.texi: Fix typo.
3867 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3869         PR middle-end/100280
3870         PR middle-end/104892
3871         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3872         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3873         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3874         Likewise.
3875         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3876         Likewise.
3877         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3878         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3879         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3880         Likewise.
3882 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3884         PR middle-end/104892
3885         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3886         to PR104892.
3887         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3888         enable '--param=openacc-kernels=decompose' and adjust.
3889         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3890         Likewise.
3891         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3892         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3893         Likewise.
3895 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3897         PR middle-end/90115
3898         * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3899         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3900         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3901         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3903 2022-03-12  Thomas Schwinge  <thomas@codesourcery.com>
3905         PR middle-end/100280
3906         PR middle-end/104086
3907         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3908         Merge this...
3909         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3910         ..., and this...
3911         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3912         this, and adjust.
3913         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3914         Extend.
3916 2022-03-10  Hafiz Abid Qadeer  <abidh@codesourcery.com>
3918         * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3919         trait.  Test last index in w and v array.  Remove redundant
3920         assignment to V(1).  Move alignment checks at the end of
3921         parallel region.
3923 2022-03-10  Tom de Vries  <tdevries@suse.de>
3925         * testsuite/libgomp.c/pr104783.c: New test.
3927 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3929         PR middle-end/90115
3930         PR middle-end/102330
3931         PR middle-end/104774
3932         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3933         Enhance.
3934         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3935         Adjust.
3936         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3937         Likewise.
3938         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3939         Likewise.
3940         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3941         Likewise.
3942         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3943         Likewise.
3944         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3945         Likewise.
3946         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3947         Likewise.
3948         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3949         Likewise.
3950         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3951         Likewise.
3952         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3953         Likewise.
3954         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3955         Likewise.
3956         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3957         Likewise.
3958         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3959         Likewise.
3960         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3961         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3962         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3964 2022-03-10  Thomas Schwinge  <thomas@codesourcery.com>
3966         PR middle-end/90115
3967         * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3968         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3969         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3970         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3972 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3974         PR testsuite/104791
3975         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3976         expected diagnostics.
3978 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
3980         PR middle-end/104784
3981         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3982         Test with '--param=openacc-kernels=decompose'.
3983         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3984         Likewise.
3985         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3986         Likewise.
3987         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3988         Likewise.
3989         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3990         Likewise.
3991         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3992         Likewise.
3993         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3994         Likewise.
3995         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3996         Likewise.
3997         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3998         Likewise.
3999         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4000         Likewise.
4001         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4002         Likewise.
4003         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4004         Likewise.
4005         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4006         Likewise.
4007         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4008         Likewise.
4009         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4010         Likewise.
4011         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4012         Likewise.
4013         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4014         Likewise.
4015         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4016         Likewise.
4017         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4018         Likewise.
4019         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4020         Likewise.
4021         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4022         Likewise.
4023         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4024         Likewise.
4025         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4026         Likewise.
4027         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4028         Likewise.
4029         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4030         Likewise.
4031         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4032         Likewise.
4033         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4034         Likewise.
4035         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4036         Likewise.
4037         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4038         Likewise.
4039         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4040         Likewise.
4041         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4042         Likewise.
4043         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4044         Likewise.
4045         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4046         Likewise.
4048 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4050         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4051         Test '-fopt-info-omp-all'.
4052         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4053         Likewise.
4054         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4055         Likewise.
4056         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4057         Likewise.
4058         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4059         Likewise.
4060         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4061         Likewise.
4062         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4063         Likewise.
4064         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4065         Likewise.
4066         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4067         Likewise.
4068         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4069         Likewise.
4070         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4071         Likewise.
4072         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4073         Likewise.
4074         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4075         Likewise.
4076         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4077         Likewise.
4078         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4079         Likewise.
4080         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4081         Likewise.
4082         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4083         Likewise.
4084         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4085         Likewise.
4086         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4087         Likewise.
4088         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4089         Likewise.
4090         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4091         Likewise.
4092         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4093         Likewise.
4094         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4095         Likewise.
4096         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4097         Likewise.
4098         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4099         Likewise.
4100         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4101         Likewise.
4102         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4103         Likewise.
4104         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4105         Likewise.
4106         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4107         Likewise.
4108         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4109         Likewise.
4110         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4111         Likewise.
4112         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4113         Likewise.
4114         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4115         Likewise.
4117 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4119         PR middle-end/100280
4120         PR middle-end/104132
4121         PR middle-end/104133
4122         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4123         Extend.
4125 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4127         PR middle-end/100280
4128         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4129         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4130         Likewise.
4132 2022-03-04  Thomas Schwinge  <thomas@codesourcery.com>
4134         PR middle-end/100280
4135         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4136         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4137         Likewise.
4139 2022-02-28  Tom de Vries  <tdevries@suse.de>
4141         * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4142         * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4143         * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4144         * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4145         * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4146         * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4148 2022-02-24  Tom de Vries  <tdevries@suse.de>
4150         * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4151         * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4152         * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4153         * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4154         * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4155         * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4156         * testsuite/libgomp.c/declare-variant-3.h: New header file.
4158 2022-02-22  Thomas Schwinge  <thomas@codesourcery.com>
4160         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4161         gang-redundant execution.
4163 2022-02-22  Tom de Vries  <tdevries@suse.de>
4165         PR target/99555
4166         * config/nvptx/bar.c (generation_to_barrier): New function, copied
4167         from config/rtems/bar.c.
4168         (futex_wait, futex_wake): New function.
4169         (do_spin, do_wait): New function, copied from config/linux/wait.h.
4170         (gomp_barrier_wait_end, gomp_barrier_wait_last)
4171         (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4172         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4173         and replace with include of config/linux/bar.c.
4174         * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4175         (gomp_barrier_init): Init new fields.
4176         * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4177         workarounds.
4178         * testsuite/libgomp.c/pr99555-1.c: Same.
4179         * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4181 2022-02-22  Tom de Vries  <tdevries@suse.de>
4183         PR testsuite/104146
4184         * testsuite/libgomp.c++/pr96390.C: Add additional-option
4185         -foffload=-Wa,--verify for nvptx.
4186         * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4188 2022-02-15  Tobias Burnus  <tobias@codesourcery.com>
4190         * testsuite/libgomp.fortran/depend-4.f90: New test.
4192 2022-02-10  Tobias Burnus  <tobias@codesourcery.com>
4194         PR c++/102204
4195         * testsuite/libgomp.c++/target-virtual-1.C: New test.
4197 2022-02-10  Marcel Vollweiler  <marcel@codesourcery.com>
4199         * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4200         * target.c (copy_firstprivate_data): Copy only if host address is not
4201         NULL.
4202         * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4203         * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4204         * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4205         * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4206         * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4207         * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4208         * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4209         * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4210         * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4211         * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4213 2022-02-08  Jakub Jelinek  <jakub@redhat.com>
4215         PR libgomp/104385
4216         * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4217         clear task->parent.
4218         * testsuite/libgomp.c/pr104385.c: New test.
4220 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4222         * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4223         STOP of previous commit.
4225 2022-02-04  Tobias Burnus  <tobias@codesourcery.com>
4227         * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4228         from is_64bit_aligned_.
4229         * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4230         and use it, more implicit none, remove unused argument.
4232 2022-02-03  David Seifert  <soap@gentoo.org>
4233             Jakub Jelinek  <jakub@redhat.com>
4235         * configure.ac: Support --disable-werror.
4236         * configure: Regenerate.
4238 2022-02-01  Tom de Vries  <tdevries@suse.de>
4240         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4241         PR83812 workaround.
4242         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4243         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4245 2022-02-01  Tom de Vries  <tdevries@suse.de>
4247         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4248         num_workers for nvidia accelerator to fix libgomp error 'insufficient
4249         resources'.
4250         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4251         Same.
4252         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4254 2022-02-01  Tom de Vries  <tdevries@suse.de>
4256         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4257         recursion depth.
4258         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4260 2022-01-31  Martin Liska  <mliska@suse.cz>
4262         * acinclude.m4: Detect *_ld_is_mold and use it.
4263         * configure: Regenerate.
4265 2022-01-27  Tobias Burnus  <tobias@codesourcery.com>
4267         * libgomp.texi (OpenMP 5.0): Update implementation status.
4269 2022-01-21  Thomas Schwinge  <thomas@codesourcery.com>
4271         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4272         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4273         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4274         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4275         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4276         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4277         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4278         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4279         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4280         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4281         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4282         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4283         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4284         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4285         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4287 2022-01-19  Marcel Vollweiler  <marcel@codesourcery.com>
4289         * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4290         "static") to make the device num available in the offload image.
4292 2022-01-19  Martin Liska  <mliska@suse.cz>
4293             Thomas Schwinge  <thomas@codesourcery.com>
4295         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4296         patterns.
4297         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4298         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4299         Likewise.
4300         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4301         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4302         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4303         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4304         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4305         Likewise.
4306         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4307         Likewise.
4308         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4309         Likewise.
4310         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4311         Likewise.
4312         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4313         Likewise.
4314         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4315         Likewise.
4316         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4317         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4318         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4320 2022-01-18  Martin Liska  <mliska@suse.cz>
4322         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4323         in dg-warning.
4324         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4325         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4326         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4327         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4328         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4329         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4330         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4331         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4332         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4333         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4334         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4335         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4336         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4337         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4338         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4340 2022-01-17  Thomas Schwinge  <thomas@codesourcery.com>
4342         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4343         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4344         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4346 2022-01-17  Julian Brown  <julian@codesourcery.com>
4347             Thomas Schwinge  <thomas@codesourcery.com>
4349         * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4350         * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4351         * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4353 2022-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
4354             Andrew Stubbs   <ams@codesourcery.com>
4356         * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4357         the number of teams and threads if necessary.
4358         (gcn_exec): Automatically set the number of gangs and workers if
4359         necessary.
4361 2022-01-13  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4363         * testsuite/libgomp.fortran/allocate-1.c: New test.
4364         * testsuite/libgomp.fortran/allocate-1.f90: New test.
4365         * libgomp.texi: Remove string that says that allocate clause
4366         support is for C/C++ only.
4368 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4370         * testsuite/libgomp.c-c++-common/on_device_arch.h
4371         (any_device_arch, any_device_arch_intel_mic): New.
4372         * testsuite/lib/libgomp.exp
4373         (check_effective_target_offload_device_any_intel_mic): New.
4374         * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4375         * testsuite/libgomp.fortran/target10.f90: Likewise.
4377 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4379         PR tree-optimization/102192
4380         * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4381         '-Wuninitialized' diagnostics.
4383 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4385         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4386         current '-Wuninitialized' diagnostics.
4387         * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4388         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4389         * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4390         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4391         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4392         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4393         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4394         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4395         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4396         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4397         * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4398         Likewise.
4400 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4402         * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4403         for 'offload_device_intel_mic'.
4405 2022-01-13  Julian Brown  <julian@codesourcery.com>
4406             Thomas Schwinge  <thomas@codesourcery.com>
4408         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4409         offloading execution XFAIL.
4411 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4413         PR middle-end/100280
4414         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4415         Update.
4416         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4417         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4418         Likewise.
4420 2022-01-13  Thomas Schwinge  <thomas@codesourcery.com>
4422         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4423         Enhance.
4424         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4425         Likewise.
4426         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4427         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4428         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4429         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4430         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4431         Likewise.
4432         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4433         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4434         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4435         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4437 2022-01-04  Tobias Burnus  <tobias@codesourcery.com>
4439         * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4440         * testsuite/libgomp.fortran/target10.f90: Likewise.
4442 2022-01-04  Chung-Lin Tang  <cltang@codesourcery.com>
4444         * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4445         into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4446         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4448 2022-01-03  Jakub Jelinek  <jakub@redhat.com>
4450         * libgomp.texi: Bump @copying's copyright year.
4452 2021-12-13  Tobias Burnus  <tobias@codesourcery.com>
4454         * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4455         * testsuite/libgomp.fortran/atomic-19.f90: New test.
4457 2021-12-10  Andrew Stubbs  <ams@codesourcery.com>
4459         * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4460         (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4461         table, not individual symbols.
4463 2021-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
4465         * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4466         "target offload_device_nonshared_as"
4467         * testsuite/libgomp.c++/target-this-3.C: Likewise.
4468         * testsuite/libgomp.c++/target-this-4.C: Likewise.
4470 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4472         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4473         not overwritten during cross-host/device copying.
4474         (gomp_update): Likewise.
4475         (gomp_exit_data): Likewise.
4476         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4477         * testsuite/libgomp.c++/target-12.C: Likewise.
4478         * testsuite/libgomp.c++/target-15.C: Likewise.
4479         * testsuite/libgomp.c++/target-16.C: Likewise.
4480         * testsuite/libgomp.c++/target-17.C: Likewise.
4481         * testsuite/libgomp.c++/target-21.C: Likewise.
4482         * testsuite/libgomp.c++/target-23.C: Likewise.
4483         * testsuite/libgomp.c/target-23.c: Likewise.
4484         * testsuite/libgomp.c/target-29.c: Likewise.
4485         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4487 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
4489         PR middle-end/92120
4490         * libgomp.h (gomp_attach_pointer): Add bool parameter.
4491         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4492         (goacc_enter_data_internal): Likewise.
4493         * target.c (gomp_map_vars_existing): Update assert condition to
4494         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4495         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4496         parameter, add support for mapping a pointer with NULL target.
4497         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4498         parameter, add support for attaching a pointer with NULL target.
4499         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4500         gomp_attach_pointer, add handling for
4501         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4502         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4503         * testsuite/libgomp.c++/target-23.C: New testcase.
4504         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4505         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4506         * testsuite/libgomp.c++/target-this-1.C: New testcase.
4507         * testsuite/libgomp.c++/target-this-2.C: New testcase.
4508         * testsuite/libgomp.c++/target-this-3.C: New testcase.
4509         * testsuite/libgomp.c++/target-this-4.C: New testcase.
4510         * testsuite/libgomp.c++/target-this-5.C: New testcase.
4512 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4514         * libgomp.texi (OpenMP 5.1): Update status.
4516 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
4518         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4520 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
4522         PR fortran/90030
4523         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4524         * testsuite/libgomp.fortran/pr90030.f90: New test.
4526 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4527             Thomas Schwinge  <thomas@codesourcery.com>
4529         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4530         temporary skip.
4532 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4533             Thomas Schwinge  <thomas@codesourcery.com>
4535         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4536         skip.
4538 2021-11-29  Richard Biener  <rguenther@suse.de>
4540         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4541         return.
4543 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
4545         PR middle-end/103384
4546         * testsuite/libgomp.c/declare-variant-2.c: New test.
4548 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
4550         * alloc.c (gomp_aligned_alloc): Fix typo.
4552 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4554         PR libgomp/102838
4555         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4556         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4557         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4558         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4559         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4560         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4561         gomp_aligned_alloc instead of team_malloc.
4563 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
4565         PR libgomp/102838
4566         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4567         memalign over posix_memalign over aligned_alloc over fallback
4568         with malloc instead of aligned_alloc over _aligned_alloc over
4569         posix_memalign over memalign over fallback with malloc.  For
4570         aligned_alloc, round up size up to multiple of al.
4572 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
4574         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4575         construct as implemented.
4577 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
4579         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4581 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4583         * task.c (gomp_create_target_task): Copy args array as well.
4584         * target.c (gomp_target_fallback): Add args argument.
4585         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4586         (GOMP_target): Adjust gomp_target_fallback caller.
4587         (GOMP_target_ext): Likewise.
4588         (gomp_target_task_fn): Likewise.
4589         * config/nvptx/team.c (gomp_nvptx_main): Set
4590         gomp_global_icv.thread_limit_var.
4591         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4593 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4595         * config/nvptx/team.c (__gomp_team_num): Define as
4596         __attribute__((shared)) var.
4597         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4598         * config/nvptx/target.c (__gomp_team_num): Declare as
4599         extern __attribute__((shared)) var.
4600         (GOMP_teams4): Use __gomp_team_num as the team number instead of
4601         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
4602         is bigger than num_blocks, use num_teams_lower teams and arrange for
4603         bumping of __gomp_team_num if !first and returning false once we run
4604         out of teams.
4605         * config/nvptx/teams.c (__gomp_team_num): Declare as
4606         extern __attribute__((shared)) var.
4607         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4609 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
4611         * testsuite/libgomp.c/teams-5.c: New test.
4613 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4615         PR target/103201
4616         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4617         to ...
4618         * config/gcn/teams.c: ... here.  New file.
4620 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
4622         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4623         implicit map handling to allow a "superset" existing map as valid case.
4624         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4625         (get_implicit): New function to extract implicit status.
4626         (gomp_map_fields_existing): Adjust arguments in calls to
4627         gomp_map_vars_existing, and add uses of get_implicit.
4628         (gomp_map_vars_internal): Likewise.
4629         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4631 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
4633         * libgomp_g.h (GOMP_teams4): Declare.
4634         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4635         * target.c (GOMP_teams4): New function.
4636         * config/nvptx/target.c (GOMP_teams): Remove.
4637         (GOMP_teams4): New function.
4638         * config/gcn/target.c (GOMP_teams): Remove.
4639         (GOMP_teams4): New function.
4640         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4641         teams instead of <= 2.
4642         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4644 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
4646         * testsuite/libgomp.fortran/teams-1.f90: New test.
4648 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4650         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4651         * team.c (struct gomp_thread_start_data): Likewise.
4652         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4653         (gomp_team_start): Initialize start_data->num_teams and
4654         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
4655         * teams.c (gomp_num_teams, gomp_team_num): Remove.
4656         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4657         instead of gomp_num_teams and gomp_team_num.
4658         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4659         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4660         * testsuite/libgomp.c/teams-4.c: New test.
4662 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
4664         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4666 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
4668         * env.c (parse_gomp_openacc_dim): Restore parsing.
4670 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
4672         PR middle-end/102972
4673         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4674         parallel construct.
4675         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4676         * testsuite/libgomp.c/target-3.c: Likewise.
4677         * testsuite/libgomp.c/target-5.c: Likewise.
4678         * testsuite/libgomp.c/target-6.c: Likewise.
4679         * testsuite/libgomp.c/target-teams-1.c: Likewise.
4680         * testsuite/libgomp.c/teams-1.c: Likewise.
4681         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4682         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4683         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4684         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4685         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4686         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4687         * testsuite/libgomp.fortran/teams1.f90: Likewise.
4689 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
4691         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4692         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4694 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4696         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4697         aren't implemented for Fortran yet.
4699 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
4701         * testsuite/libgomp.c/loop-26.c: New test.
4702         * testsuite/libgomp.c/loop-27.c: New test.
4704 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
4706         PR testsuite/102910
4707         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4708         instead of #include <alloca.h> + alloca.
4710 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
4712         * libgomp.texi (Support of strictly structured blocks in Fortran):
4713         Adjust to 'Y'.
4714         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4716 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
4718         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4719         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4721 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
4723         PR libgomp/102838
4724         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4725         (struct gomp_work_share): Only use aligned(64) attribute if
4726         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4727         add padding before lock to ensure lock is at offset 64 bytes
4728         into the structure.
4729         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4730         New poor man's static assertions.
4731         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4732         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4734 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
4735             Richard Biener  <rguenther@suse.de>
4737         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4739 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
4741         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4742         && gomp_places_list_len < count after nfirst <= nlast loop condition.
4744 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
4746         PR fortran/102086
4747         PR fortran/92189
4748         PR fortran/92621
4749         PR fortran/101308
4750         PR fortran/101309
4751         PR fortran/101635
4752         PR fortran/92482
4753         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4755 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4757         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4758         type from char [50] to const char *.
4759         (places_array): Add a testcase for simplified syntax place followed
4760         by length or length and stride.
4762 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4764         * env.c (parse_one_place): Handle non-negative-number the same
4765         as { non-negative-number }.  Reject even !number:1 and
4766         !number:1:stride or !place:1 or !place:1:stride instead of just
4767         length other than 1.
4768         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4769         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4770         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4771         as implemented.
4772         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4773         simplified syntax.
4775 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4777         * env.c (parse_schedule): For strtoul or strtoull calls which don't
4778         clearly reject return value 0 as invalid handle the case where end
4779         pointer is the same as first argument as invalid.
4780         (parse_unsigned_long_1): Likewise.
4781         (parse_one_place): Likewise.
4782         (parse_places_var): Likewise.
4783         (parse_stacksize): Likewise.
4784         (parse_spincount): Likewise.
4785         (parse_affinity): Likewise.
4786         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
4787         Make code valid C89.
4788         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4789         For strtoul calls which don't clearly reject return value 0 as
4790         invalid handle the case where end pointer is the same as first
4791         argument as invalid.
4792         (gomp_affinity_init_level_1): Likewise.
4793         (gomp_affinity_init_numa_domains): Likewise.
4794         * config/rtems/proc.c (parse_thread_pools): Likewise.
4796 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4798         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4799         after creating count places clean up and return immediately.
4800         * testsuite/libgomp.c/places-6.c: New test.
4801         * testsuite/libgomp.c/places-7.c: New test.
4802         * testsuite/libgomp.c/places-8.c: New test.
4803         * testsuite/libgomp.c/places-9.c: New test.
4804         * testsuite/libgomp.c/places-10.c: New test.
4806 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4808         * env.c (parse_places_var): Handle numa_domains as level 5.
4809         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4810         function.
4811         (gomp_affinity_init_level): Use it instead of
4812         gomp_affinity_init_level_1 for level == 5.
4813         * testsuite/libgomp.c/places-5.c: New test.
4815 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
4817         * env.c (parse_places_var): Handle ll_caches as level 4.
4818         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4819         function.
4820         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4821         last level cache.
4822         (gomp_affinity_init_level): Likewise.
4823         * testsuite/libgomp.c/places-1.c: New test.
4824         * testsuite/libgomp.c/places-2.c: New test.
4825         * testsuite/libgomp.c/places-3.c: New test.
4826         * testsuite/libgomp.c/places-4.c: New test.
4828 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4830         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4831         directive.
4833 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
4835         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4837 2021-10-12  Julian Brown  <julian@codesourcery.com>
4839         * target.c (gomp_copy_host2dev): Release device lock on cbuf
4840         error path.
4842 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
4844         * testsuite/libgomp.fortran/icv-3.f90: New.
4845         * testsuite/libgomp.fortran/icv-4.f90: New.
4847 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4849         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4850         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4851         OMP_TEAMS_THREAD_LIMIT): Document.
4853 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4855         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4856         to avoid makeinfo warnings.
4858 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4860         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4861         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4863 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4865         PR libgomp/102628
4866         PR libgomp/102668
4867         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4868         allocation sizes from 420 to 320 and from 768 to 568.
4869         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4870         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4871         for cr from 16 to 4.
4873 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
4875         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4876         * testsuite/libgomp.c/scan-12.c: Likewise.
4877         * testsuite/libgomp.c/scan-13.c: Likewise.
4878         * testsuite/libgomp.c/scan-14.c: Likewise.
4879         * testsuite/libgomp.c/scan-15.c: Likewise.
4880         * testsuite/libgomp.c/scan-16.c: Likewise.
4881         * testsuite/libgomp.c/scan-17.c: Likewise.
4882         * testsuite/libgomp.c/scan-18.c: Likewise.
4883         * testsuite/libgomp.c/scan-19.c: Likewise.
4884         * testsuite/libgomp.c/scan-20.c: Likewise.
4885         * testsuite/libgomp.c/scan-21.c: Likewise.
4886         * testsuite/libgomp.c/scan-22.c: Likewise.
4887         * testsuite/libgomp.c++/scan-9.C: Likewise.
4888         * testsuite/libgomp.c++/scan-10.C: Likewise.
4889         * testsuite/libgomp.c++/scan-11.C: Likewise.
4890         * testsuite/libgomp.c++/scan-12.C: Likewise.
4891         * testsuite/libgomp.c++/scan-13.C: Likewise.
4892         * testsuite/libgomp.c++/scan-14.C: Likewise.
4893         * testsuite/libgomp.c++/scan-15.C: Likewise.
4894         * testsuite/libgomp.c++/scan-16.C: Likewise.
4896 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
4898         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4900 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
4902         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4903         omp_atv_serialized.
4904         * omp.h.in: Add deprecated flag for omp_atv_sequential.
4905         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4906         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4907         * testsuite/libgomp.fortran/alloc-12.f90: New test.
4909 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
4911         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4912         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4913         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4914         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4915         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4916         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4917         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4918         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4919         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4920         omp_set_teams_thread_limit{,_,_8_}.
4921         * icv.c (omp_set_num_teams, omp_get_max_teams,
4922         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4923         functions.
4924         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4925         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4926         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4927         vars.
4928         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4929         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
4930         is not specified, use gomp_nteams_var.
4931         * fortran.c (omp_set_num_teams, omp_get_max_teams,
4932         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4933         ialias_redirect.
4934         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4935         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4936         omp_get_teams_thread_limit_): New functions.
4938 2021-10-09  liuhongt  <hongtao.liu@intel.com>
4940         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4941         * testsuite/libgomp.c++/scan-11.C: Ditto.
4942         * testsuite/libgomp.c++/scan-12.C: Ditto.
4943         * testsuite/libgomp.c++/scan-13.C: Ditto.
4944         * testsuite/libgomp.c++/scan-14.C: Ditto.
4945         * testsuite/libgomp.c++/scan-15.C: Ditto.
4946         * testsuite/libgomp.c++/scan-16.C: Ditto.
4947         * testsuite/libgomp.c++/scan-9.C: Ditto.
4948         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4949         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4950         * testsuite/libgomp.c/scan-11.c: Ditto.
4951         * testsuite/libgomp.c/scan-12.c: Ditto.
4952         * testsuite/libgomp.c/scan-13.c: Ditto.
4953         * testsuite/libgomp.c/scan-14.c: Ditto.
4954         * testsuite/libgomp.c/scan-15.c: Ditto.
4955         * testsuite/libgomp.c/scan-16.c: Ditto.
4956         * testsuite/libgomp.c/scan-17.c: Ditto.
4957         * testsuite/libgomp.c/scan-18.c: Ditto.
4958         * testsuite/libgomp.c/scan-19.c: Ditto.
4959         * testsuite/libgomp.c/scan-20.c: Ditto.
4960         * testsuite/libgomp.c/scan-21.c: Ditto.
4961         * testsuite/libgomp.c/scan-22.c: Ditto.
4963 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
4965         * libgomp.texi (OpenMP 5.1): Mention implemented support for
4966         structured block sequences in C/C++.  Mention support for
4967         unconstrained/reproducible modifiers on order clause.
4968         Mention partial (C/C++ only) support of extentensions to atomics
4969         construct.  Mention partial (C/C++ on clause only) support of
4970         align/allocator modifiers on allocate clause.
4972 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
4974         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4975         based on libgomp.c-c++-common/order-reproducible-1.c.
4976         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4977         * testsuite/libgomp.fortran/my-usleep.c: New test.
4979 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
4981         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4982         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4983         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4984         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4985         based on libgomp.c-c++-common/alloc-9.c.
4987 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4989         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4990         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4992 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
4994         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
4995         ialias_redirect.
4996         * env.c (handle_omp_display_env): Use ialias_call.
4997         * icv-device.c: Move ialias right below each function.
4998         (omp_get_device_num): Use ialias_call.
4999         * fortran.c (omp_fulfill_event): Add ialias_redirect.
5000         * icv.c (omp_get_active_level): Add ialias_redirect.
5002 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
5004         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5005         __alloc_align__ (1) attribute.
5006         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5008 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5010         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5011         for -fintrinsic-modules-path= warning of the C compiler.
5012         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5013         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5015 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
5017         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5018         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5019         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5020         omp_realloc): Add.
5021         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5022         omp_realloc): Add.
5023         * testsuite/libgomp.fortran/alloc-10.f90: New test.
5024         * testsuite/libgomp.fortran/alloc-6.f90: New test.
5025         * testsuite/libgomp.fortran/alloc-7.c: New test.
5026         * testsuite/libgomp.fortran/alloc-7.f90: New test.
5027         * testsuite/libgomp.fortran/alloc-8.f90: New test.
5028         * testsuite/libgomp.fortran/alloc-9.f90: New test.
5030 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
5032         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5033         omp_realloc): New prototypes.
5034         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5035         attribute.
5036         * allocator.c: Include string.h.
5037         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
5038         variable and use it instead of alignment so that when retrying the old
5039         alignment is used again.  Don't retry if new alignment is the same
5040         as old alignment, unless allocator had pool size.
5041         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5042         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5043         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5044         omp_aligned_calloc and omp_realloc.
5045         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5046         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5047         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5048         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5049         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5050         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5052 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
5054         PR libgomp/96661
5055         * configure.ac: Only check for int-type = 2*size_t support when
5056         building with Fortran support.
5057         * configure: Regenerate.
5059 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
5061         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5062         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5064 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
5066         * team.c: Initialize start_data.
5067         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5068         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5070 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5072         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5073         dg-message back to dg-note.
5075 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
5077         PR fortran/94070
5078         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5079         expected dg-note output.
5081 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
5083         PR fortran/55534
5084         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5085         r12-3722 by removing -Wno-missing-include-dirs.
5086         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5088 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
5090         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5091         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5093 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
5095         PR fortran/55534
5096         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5097         to ALWAYS_CFLAGS.
5098         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5100 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
5102         * testsuite/libgomp.c++/default-1.C: New test.
5103         * testsuite/libgomp.c-c++-common/default-1.c: New test.
5104         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5105         to default clause in C and C++" as implemented.
5107 2021-09-17  Julian Brown  <julian@codesourcery.com>
5109         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5111 2021-09-17  Julian Brown  <julian@codesourcery.com>
5113         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5115 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5117         * libgomp.texi (OpenMP 5.1): Spelling fix,
5118         declare variante -> declare variant.
5120 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
5122         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5123         Use /* */ comments instead of //.
5124         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5125         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5126         * testsuite/libgomp.c++/atomic-16.C: New test.
5127         * testsuite/libgomp.c++/atomic-17.C: New test.
5129 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
5131         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5132         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5133         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5135 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5137         * libgomp.texi (OpenMP Implementation Status): Extend
5138         OpenMP 5.0 section.
5139         (OpenACC Profiling Interface): Fix typo.
5141 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
5143         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5144         not to 4.5; link to new section.
5145         (OpenMP Implementation Status): New.
5147 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
5149         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5151 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
5153         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5154         dg-output.
5155         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5157 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5158             Jakub Jelinek  <jakub@redhat.com>
5160         * testsuite/libgomp.c/address-space-1.c: New file.
5162 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
5164         * testsuite/lib/libgomp.exp
5165         (check_effective_target_offload_target_intelmic): Remove 'proc'.
5166         (check_effective_target_offload_device_intel_mic): New 'proc'.
5167         * testsuite/libgomp.c-c++-common/on_device_arch.h
5168         (device_arch_intel_mic, on_device_arch_intel_mic): New.
5169         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5170         'dg-xfail-run-if'.
5171         * testsuite/libgomp.fortran/target10.f90: Likewise.
5173 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
5175         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5176         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5177         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5178         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5180 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
5182         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5183         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5184         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5186 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
5188         * config/nvptx/error.c (fwrite, exit): Override, too.
5189         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5190         of offloading testing.
5191         * testsuite/libgomp.fortran/error-1.f90: Likewise.
5193 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
5195         * testsuite/libgomp.fortran/error-1.f90: New test.
5197 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
5199         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5200         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5201         * error.c (GOMP_warning, GOMP_error): New functions.
5202         * testsuite/libgomp.c-c++-common/error-1.c: New test.
5204 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
5206         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5207         omp_target_free. omp_target_is_present, omp_target_memcpy,
5208         omp_target_memcpy_rect, omp_target_associate_ptr,
5209         omp_target_disassociate_ptr): Add interface.
5210         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5211         omp_target_free. omp_target_is_present, omp_target_memcpy,
5212         omp_target_memcpy_rect, omp_target_associate_ptr,
5213         omp_target_disassociate_ptr): Add interface.
5214         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5215         interface block for omp_alloc + omp_free.
5216         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5217         * testsuite/libgomp.fortran/refcount-1.f90: New test.
5218         * testsuite/libgomp.fortran/target-12.f90: New test.
5220 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
5222         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5224 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
5226         * testsuite/libgomp.fortran/scope-1.f90: New test.
5227         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5229 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
5231         * Makefile.am (libgomp_la_SOURCES): Add scope.c
5232         * Makefile.in: Regenerated.
5233         * libgomp_g.h (GOMP_scope_start): Declare.
5234         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5235         * scope.c: New file.
5236         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5237         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5239 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
5241         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5242         '?:' issues.
5244 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
5246         * testsuite/libgomp.fortran/masked-1.f90: New test.
5248 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
5250         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5252 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
5254         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5256 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
5258         * env.c (parse_bind_var): Accept 'primary' as alias for
5259         'master'.
5260         (omp_display_env): Add TODO comment to
5261         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5262         * libgomp.texi: Change 'master thread' to 'primary thread'
5263         in line with OpenMP 5.1.
5264         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5265         omp_proc_bind_master is an alias of it.
5266         (OMP_PROC_BIND): Mention 'PRIMARY'.
5267         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5268         (omp_proc_bind_primary): Add.
5269         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5270         * omp_lib.f90.in (omp_proc_bind_primary): Add.
5271         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5272         * omp_lib.h.in (omp_proc_bind_primary): Add.
5273         * testsuite/libgomp.c/affinity-1.c: Check that
5274         'primary' works and is identical to 'master'.
5276 2021-08-09  Julian Brown  <julian@codesourcery.com>
5277             Kwok Cheung Yeung  <kcy@codesourcery.com>
5278             Thomas Schwinge  <thomas@codesourcery.com>
5280         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5281         16.
5282         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5283         [acc_device_radeon]: Update.
5284         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5285         [ACC_DEVICE_TYPE_radeon]: Likewise.
5286         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5287         [acc_device_radeon]: Likewise.
5288         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5289         [ACC_DEVICE_TYPE_radeon]: Likewise.
5290         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5291         'openacc_radeon_accel_selected' and '-O0'.
5292         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5294 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
5296         * icv-device.c (omp_get_device_num): New API function, host side.
5297         * fortran.c (omp_get_device_num_): New interface function.
5298         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5299         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5300         omp_get_device_num_.
5301         * libgomp.texi (omp_get_device_num): Add documentation for new API
5302         function.
5303         * omp.h.in (omp_get_device_num): Add declaration.
5304         * omp_lib.f90.in (omp_get_device_num): Likewise.
5305         * omp_lib.h.in (omp_get_device_num): Likewise.
5306         * target.c (gomp_load_image_to_device): If additional entry for device
5307         number exists at end of returned entries from 'load_image_func' hook,
5308         copy the assigned device number over to the device variable.
5309         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5310         (omp_get_device_num): New API function, device side.
5311         * plugin/plugin-gcn.c ("symcat.h"): Add include.
5312         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5313         at end of returned 'target_table' entries.
5314         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5315         (omp_get_device_num): New API function, device side.
5316         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5317         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5318         at end of returned 'target_table' entries.
5319         * testsuite/lib/libgomp.exp
5320         (check_effective_target_offload_target_intelmic): New function for
5321         testing for intelmic offloading.
5322         * testsuite/libgomp.c-c++-common/target-45.c: New test.
5323         * testsuite/libgomp.fortran/target10.f90: New test.
5325 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
5326             Ulrich Drepper  <drepper@redhat.com>
5328         * fortran.c (omp_display_env_, omp_display_env_8_): Only
5329         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5331 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
5332             Julian Brown  <julian@codesourcery.com>
5333             Kwok Cheung Yeung  <kcy@codesourcery.com>
5335         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5336         's%oaccdevlow%oaccloops%g'.
5337         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5338         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5339         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5340         Likewise.
5341         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5342         Likewise.
5343         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5344         Likewise.
5345         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5346         Likewise.
5347         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5348         Likewise.
5349         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5350         Likewise.
5351         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5352         Likewise.
5353         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5354         Likewise.
5355         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5357 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
5359         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5360         threader.
5361         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5363 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
5365         * env.c (wait_policy, stacksize): New static variables,
5366         move out of handle_omp_display_env.
5367         (omp_display_env): New function.  The meat of the old
5368         handle_omp_display_env function.
5369         (handle_omp_display_env): Change to not take parameters
5370         and instead use the global variables.  Only perform
5371         parsing, defer to omp_display_env for the implementation.
5372         (initialize_env): Remove local variables wait_policy and
5373         stacksize.  Don't pass parameters to handle_omp_display_env.
5374         * fortran.c: Add ialias_redirect for omp_display_env.
5375         (omp_display_env_, omp_display_env_8_): New functions.
5376         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
5377         omp_display_env_, and omp_display_env_8_.
5378         * omp.h.in: Declare omp_display_env.
5379         * omp_lib.f90.in: Likewise.
5380         * omp_lib.h.in: Likewise.
5382 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5383             Julian Brown  <julian@codesourcery.com>
5385         * target.c (gomp_coalesce_buf_add): Update comment.
5386         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5387         'aq && cbuf'.
5388         (gomp_map_vars_internal): Only 'if (!aq)', do
5389         'gomp_coalesce_buf_add'.
5390         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5391         XFAIL.
5393 2021-07-27  Julian Brown  <julian@codesourcery.com>
5394             Thomas Schwinge  <thomas@codesourcery.com>
5396         * libgomp.h (gomp_copy_host2dev): Update prototype.
5397         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5398         argument to gomp_copy_host2dev (false).
5399         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5400         (copy_data): Don't free src.
5401         (queue_push_copy): Remove free_src handling.
5402         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5403         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5404         snapshotting.
5405         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5406         queue_push_copy.
5407         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5408         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
5409         data when true, and set up deferred freeing of temporary buffer.
5410         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5411         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5412         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5413         calls to gomp_copy_host2dev with appropriate ephemeral argument.
5414         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5415         XFAIL.
5417 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5418             Tom de Vries  <tom@codesourcery.com>
5420         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5421         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5423 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5425         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5426         sequencing of 'async' data copying vs. profiling events.
5427         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5428         Likewise.
5430 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
5431             Julian Brown  <julian@codesourcery.com>
5433         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5434         'async'/'wait' issue.
5435         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5436         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5437         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5439 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
5440             Joseph Myers  <joseph@codesourcery.com>
5441             Cesar Philippidis  <cesar@codesourcery.com>
5443         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5444         file.
5445         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5446         Likewise.
5447         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5448         Likewise.
5449         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5451 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
5453         PR target/101484
5454         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5455         '-Wno-error=array-bounds'.
5456         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5457         * libgomp.h [__AMDGCN__]: Likewise.
5459 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
5461         PR target/101484
5462         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5463         * libgomp.h [__AMDGCN__]: Likewise.
5465 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
5466             Florian Weimer  <fweimer@redhat.com>
5468         * config/linux/sem.h: Don't include limits.h.
5469         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5470         * config/linux/affinity.c: Include limits.h.
5472 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
5474         PR middle-end/94366
5475         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5477 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5479         PR other/67300
5480         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5481         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5482         avoid disabling other offload targets.
5483         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5484         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5485         * testsuite/libgomp.c/target-44.c: Likewise.
5487 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
5489         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5490         target has shared memory and disable some scalar pointer/allocatable
5491         checks if not as firstprivate does not work.
5493 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
5495         PR testsuite/101114
5496         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5497         Add "target offload_device_nonshared_as" condition for enabling test.
5499 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
5501         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5502         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5503         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5504         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5506 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
5508         PR middle-end/101167
5509         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5511 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
5513         * hashtab.h (htab_clear): New function with initialization code
5514         factored out from...
5515         (htab_create): ...here, adjust to use htab_clear function.
5516         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5517         special refcount values, add comments.
5518         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5519         (REFCOUNT_LINK): Likewise.
5520         (REFCOUNT_STRUCTELEM): New special refcount range for structure
5521         element siblings.
5522         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5523         sibling maps.
5524         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5525         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
5526         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5527         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5528         (struct splay_tree_key_s): Add structelem_refcount and
5529         structelem_refcount_ptr fields into a union with dynamic_refcount.
5530         Add comments.
5531         (gomp_map_vars): Delete declaration.
5532         (gomp_map_vars_async): Likewise.
5533         (gomp_unmap_vars): Likewise.
5534         (gomp_unmap_vars_async): Likewise.
5535         (goacc_map_vars): New declaration.
5536         (goacc_unmap_vars): Likewise.
5537         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5538         (goacc_enter_datum): Likewise.
5539         (goacc_enter_data_internal): Likewise.
5540         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5541         and goacc_unmap_vars.
5542         (GOACC_data_start): Adjust to use goacc_map_vars.
5543         (GOACC_data_end): Adjust to use goacc_unmap_vars.
5544         * target.c (hash_entry_type): New typedef.
5545         (htab_alloc): New function hook for hashtab.h.
5546         (htab_free): Likewise.
5547         (htab_hash): Likewise.
5548         (htab_eq): Likewise.
5549         (hashtab.h): Add file include.
5550         (gomp_increment_refcount): New function.
5551         (gomp_decrement_refcount): Likewise.
5552         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5553         gomp_increment_refcount.
5554         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5555         to gomp_map_vars_existing.
5556         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5557         variable to guard OpenMP specific paths, adjust calls to
5558         gomp_map_vars_existing, add structure element sibling splay_tree_key
5559         sequence creation code, adjust Fortran map case to avoid increment
5560         under OpenMP.
5561         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5562         local refcount_set if caller passed in NULL, adjust call to
5563         gomp_map_vars_internal.
5564         (gomp_map_vars_async): Adjust and rename into...
5565         (goacc_map_vars): ...this new function, adjust call to
5566         gomp_map_vars_internal.
5567         (gomp_remove_splay_tree_key): New function with code factored out from
5568         gomp_remove_var_internal.
5569         (gomp_remove_var_internal): Add code to handle removing multiple
5570         splay_tree_key sequence for structure elements, adjust code to use
5571         gomp_remove_splay_tree_key for splay-tree key removal.
5572         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5573         gomp_decrement_refcount.
5574         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5575         local refcount_set if caller passed in NULL, adjust call to
5576         gomp_unmap_vars_internal.
5577         (gomp_unmap_vars_async): Adjust and rename into...
5578         (goacc_unmap_vars): ...this new function, adjust call to
5579         gomp_unmap_vars_internal.
5580         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5581         gomp_unmap_vars.
5582         (GOMP_target_ext): Likewise.
5583         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5584         (GOMP_target_data): Likewise.
5585         (GOMP_target_data_ext): Likewise.
5586         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5587         (gomp_exit_data): Add refcount_set parameter, adjust to use
5588         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5589         after main loop.
5590         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5591         gomp_map_vars and gomp_exit_data.
5592         (gomp_target_task_fn): Likewise.
5593         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5594         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5595         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5596         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5597         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5598         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5600 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
5602         PR fortran/92568
5603         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5605 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5606             Thomas Schwinge  <thomas@codesourcery.com>
5608         * libgomp.map (GOACC_2.0.2): New symbol version.
5609         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5610         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5612 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5613             Andrew Stubbs  <ams@codesourcery.com>
5615         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5616         extracted from...
5617         (GOACC_enter_exit_data): ... here.
5618         (GOACC_declare): Use it.
5620 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5622         * oacc-parallel.c (GOACC_declare): Move...
5623         * oacc-mem.c: ... here.
5624         * libgomp_g.h: Adjust.
5626 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
5627             Thomas Schwinge  <thomas@codesourcery.com>
5629         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5630         handling.
5632 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
5634         PR tree-optimization/100981
5635         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5636         dsdotr and dsdoti to 0.
5638 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
5640         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5641         if atomic compare-and-swap is supported on 'int'.
5643 2021-06-09  Richard Biener  <rguenther@suse.de>
5645         PR tree-optimization/100981
5646         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5648 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5650         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5651         unconditionally.
5652         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5653         Update.
5654         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5655         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5657 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5659         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5660         '-DACC_MEM_SHARED=0'.
5661         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5662         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5663         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5664         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5665         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5666         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5667         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5668         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5669         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5670         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5671         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5672         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5673         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5674         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5675         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5676         'acc_device_radeon' testing.
5677         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5678         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5679         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5680         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5681         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5682         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5683         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5684         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5685         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5686         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5687         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5688         for non-'openacc_nvidia_accel_selected'.
5689         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5690         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5691         all implement this checking".
5692         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5693         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5694         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5695         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5696         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5698 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5700         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5701         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5703 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5705         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5706         for 'acc_device_radeon'.
5708 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5710         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5711         for non-'acc_device_nvidia'.
5713 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5715         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5716         'acc_device_radeon' testing.
5717         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5718         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5719         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5721 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5723         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5724         require 'openacc_nvidia_accel_selected'.  Fix up for
5725         'ACC_DEVICE_TYPE_radeon'.
5727 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5729         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5730         'openacc_nvidia_accel_selected'.
5731         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5733 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5735         * testsuite/lib/libgomp.exp
5736         (check_effective_target_openacc_radeon_accel_selected):
5737         Streamline.
5739 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5741         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5742         PR80547 workaround.
5744 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
5746         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5747         <acc_device_nvidia>: Update comment.
5749 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
5751         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5753 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
5755         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5756         check_effective_target_openacc_cublas,
5757         check_effective_target_openacc_cudart): New.
5758         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5759         target openacc_cublas.
5760         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5761         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5762         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5763         target openacc_cuda.
5764         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5765         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5766         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5767         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5768         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5769         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5770         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5771         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5772         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5773         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5774         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5775         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5776         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5777         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5778         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5779         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5780         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5781         targets openacc_cublas and openacc_cudart.
5782         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5783         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5784         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5785         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5786         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5787         Require effective target openacc_cudart.
5788         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5789         for effective target openacc_cuda and add && defined USE_CUDA_H to
5790         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
5791         effective target.
5793 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
5795         PR libgomp/100573
5796         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5797         GOMP_target_end_data, GOMP_target_update_ext,
5798         GOMP_target_enter_exit_data): New dummy entrypoints.
5799         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5800         GOMP_target_end_data, GOMP_target_update_ext,
5801         GOMP_target_enter_exit_data): Likewise.
5802         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5803         OMPFROM, OMPTO): Define.
5804         (main): Remove #pragma omp target teams around all the tests.
5805         * testsuite/libgomp.c-c++-common/target-41.c: New test.
5806         * testsuite/libgomp.c-c++-common/target-42.c: New test.
5808 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
5810         PR middle-end/99928
5811         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5813 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
5815         PR fortran/86470
5816         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5817         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5818         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5820 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
5822         PR testsuite/90115
5823         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5824         uninteresting/varying diagnostics.
5826 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5828         PR middle-end/90115
5829         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5830         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5832 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5834         PR middle-end/90115
5835         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5836         file.
5837         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5838         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5839         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5840         Likewise.
5841         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5842         Likewise.
5843         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5844         Likewise.
5845         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5846         Likewise.
5847         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5848         Likewise.
5849         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5850         Likewise.
5851         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5852         Likewise.
5853         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5854         Likewise.
5855         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5856         Likewise.
5857         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5858         Likewise.
5859         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5860         Likewise.
5861         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5862         Likewise.
5863         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5864         Likewise.
5865         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5866         Likewise.
5867         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5868         Likewise.
5869         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5870         Likewise.
5871         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5872         Likewise.
5873         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5874         Likewise.
5875         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5876         Likewise.
5877         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5878         Likewise.
5879         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5880         Likewise.
5881         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5882         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5883         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5884         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5885         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5886         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5887         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5888         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5889         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5890         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5891         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5892         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5893         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5894         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5895         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5896         Likewise.
5897         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5898         Likewise.
5899         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5900         Likewise.
5901         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5902         Likewise.
5903         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5904         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5905         Likewise.
5906         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5907         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5908         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5909         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5910         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5911         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5912         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5913         Likewise.
5914         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5915         Likewise.
5916         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5917         Likewise.
5918         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5919         Likewise.
5920         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5921         Likewise.
5922         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5923         Likewise.
5924         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5925         Likewise.
5926         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5927         Likewise.
5928         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5929         Likewise.
5930         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5931         Likewise.
5932         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5933         Likewise.
5934         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5935         Likewise.
5936         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5937         Likewise.
5938         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5939         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5940         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5941         Likewise.
5942         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5943         Likewise.
5944         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5945         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5946         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5948 2021-05-21  Julian Brown  <julian@codesourcery.com>
5949             Chung-Lin Tang  <cltang@codesourcery.com>
5950             Thomas Schwinge  <thomas@codesourcery.com>
5952         PR middle-end/90115
5953         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5954         test.
5955         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5956         Likewise.
5957         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5958         Likewise.
5960 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
5962         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5963         for nvptx offloading.
5965 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
5967         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5969 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
5971         PR target/83812
5972         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5974 2021-05-19  Julian Brown  <julian@codesourcery.com>
5976         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5978 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5980         * testsuite/lib/libgomp.exp
5981         (check_effective_target_offload_target_nvptx): Don't shadow global
5982         'offload_targets' variable.
5984 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5986         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5987         '-latomic' to nvptx offloading compilation.
5988         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5990 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
5992         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5993         offloading compilation.
5995 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
5997         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
5998         if new tasks generated.
5999         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6001 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
6003         * testsuite/libgomp.fortran/parallel-master.f90: New test.
6005 2021-05-13  Martin Liska  <mliska@suse.cz>
6007         PR testsuite/100569
6008         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6009         * testsuite/libgomp.c/pr46032-2.c: Likewise.
6010         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6011         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6013 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
6015         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6016         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6018 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
6020         PR middle-end/100471
6021         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6022         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6023         reduction pointer.
6024         * testsuite/libgomp.c/task-reduction-4.c: New test.
6026 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
6027             Tom de Vries  <tdevries@suse.de>
6029         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6030         complex/floating-point || + && reduction with 'omp target'.
6031         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6033 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6035         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6036         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6037         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6038         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6040 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
6042         PR testsuite/100397
6043         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6044         declaration to scope of non-'depend'-guarded assignment to avoid races.
6046 2021-05-03  Tom de Vries  <tdevries@suse.de>
6048         PR target/100321
6049         * testsuite/libgomp.c/target-44.c: New test.
6051 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
6053         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6055 2021-04-29  Tom de Vries  <tdevries@suse.de>
6057         * testsuite/libgomp.c/pr81778.c: New test.
6059 2021-04-29  Tom de Vries  <tdevries@suse.de>
6061         PR target/100232
6062         * testsuite/libgomp.c/target-43.c: New file.
6064 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
6065             Tobias Burnus  <tobias@codesourcery.com>
6067         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6068         * target.c (gomp_load_plugin_for_device): If set and if a plugin
6069         can't be dlopened, silently assume it has no devices.
6070         * Makefile.in: Regenerate.
6071         * config.h.in: Regenerate.
6072         * configure: Regenerate.
6074 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6076         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6077         Use [Ww]arning in dg-bogus as FE diagnostic and default
6078         diagnostic differ and the result depends on ENABLE_OFFLOAD.
6079         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6080         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6081         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6083 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
6085         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6086         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6087         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6088         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6089         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6091 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6092             Nathan Sidwell  <nathan@codesourcery.com>
6093             Tom de Vries  <vries@codesourcery.com>
6094             Julian Brown  <julian@codesourcery.com>
6095             Kwok Cheung Yeung  <kcy@codesourcery.com>
6097         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6098         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6099         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6100         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6101         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6102         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6103         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6104         Likewise.
6105         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6106         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6107         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6108         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6109         Likewise.
6110         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6111         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6112         Likewise.
6113         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6114         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6115         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6116         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6117         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6118         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6119         Likewise.
6120         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6121         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6122         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6123         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6124         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6125         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6126         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6127         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6128         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6129         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6130         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6132 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
6134         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6135         compile with '-w'.
6136         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6137         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6138         Likewise.
6139         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6140         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6141         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6142         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6143         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6144         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6145         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6147 2021-04-22  Richard Biener  <rguenther@suse.de>
6149         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6150         only on nvptx-none.
6152 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6154         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6155         omp_depend_kind instead of defining it as 16.
6157 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6159         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6160         New, based on check_effective_target_offload_target_nvptx.
6161         (check_effective_target_offload_target_nvptx): Call it.
6162         (check_effective_target_offload_target_amdgcn): New.
6163         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6164         Require target offload_target_nvptx || offload_target_amdgcn.
6165         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6166         * testsuite/libgomp.c/pr86416-1.c: Likewise.
6167         * testsuite/libgomp.c/pr86416-2.c: Likewise.
6169 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
6171         * testsuite/libgomp.fortran/depobj-1.f90: New test.
6173 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6175         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6176         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6177         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6178         Likewise.
6179         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6180         Likewise.
6181         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6183 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6185         PR target/99555
6186         * testsuite/lib/libgomp.exp
6187         (check_effective_target_offload_device_nvptx): New.
6188         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6189         resolved, make sure that we exit quickly, with error status,
6190         XFAILed.
6191         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6192         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6194 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
6196         PR testsuite/100071
6197         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6198         cp = omp_alloc with cp, p arguments instead of cq, q and call
6199         c_f_pointer after last cq = omp_alloc with cq, q.
6201 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
6203         PR middle-end/98088
6204         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6205         for loop with GT/GE condition.
6206         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6208 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
6210         PR middle-end/84991
6211         PR middle-end/84992
6212         PR middle-end/90779
6213         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6215 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
6217         PR libgomp/99984
6218         * team.c (gomp_thread_start): Call pthread_setspecific for
6219         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6220         has been initialized to avoid false positive warning.
6222 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
6224         PR target/99555
6225         * testsuite/lib/on_device_arch.c: Move to ...
6226         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6227         * testsuite/libgomp.fortran/on_device_arch.c: New file;
6228         #include on_device_arch.h.
6229         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6230         on_device_arch.h instead of using dg-additional-source.
6231         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6232         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6233         on_device_arch.c without relative paths.
6235 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6237         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6238         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6239         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6240         * config.h.in: Regenerate.
6241         * configure: Likewise.
6243 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6245         PR target/99555
6246         * testsuite/lib/on_device_arch.c: New file.
6247         * testsuite/libgomp.c/pr99555-1.c: Likewise.
6248         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6249         skip for nvptx offloading, with error status.
6250         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6252 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
6254         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6255         OpenACC 'serial' construct diagnostic for nvptx offloading.
6257 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
6259         PR c++/99509
6260         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6262 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
6264         PR fortran/98858
6265         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6267 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
6269         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6270         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6271         checking of -m32 or -mx32 options on the command line.
6272         * config.h.in: Regenerated.
6273         * configure: Regenerated.
6275 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
6277         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6278         support from the target.
6280 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6281             Jakub Jelinek  <jakub@redhat.com>
6283         PR libgomp/98738
6284         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6285         (struct gomp_task): Replace detach and completion_sem fields with
6286         union containing completion_sem and detach_team.  Add deferred_p
6287         field.
6288         (struct gomp_team): Remove task_detach_queue.
6289         * task.c: Include assert.h.
6290         (gomp_init_task): Initialize deferred_p and completion_sem fields.
6291         Rearrange initialization order of fields.
6292         (task_fulfilled_p): Delete.
6293         (GOMP_task): Use address of task as the event handle.  Remove
6294         initialization of detach field.  Initialize deferred_p field.
6295         Use automatic local for completion_sem.  Initialize detach_team field
6296         for deferred tasks.
6297         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6298         Set kind of suspended detach task to GOMP_TASK_DETACHED and
6299         decrement task_running_count.  Move finish_cancelled block out of
6300         else branch.  Relocate call to gomp_team_barrier_done.
6301         (GOMP_taskwait): Handle tasks with completion events that have not
6302         been fulfilled.
6303         (GOMP_taskgroup_end): Likewise.
6304         (omp_fulfill_event): Use address of task as event handle.  Post to
6305         completion_sem for undeferred tasks.  Clear detach_team if task
6306         has not finished.  For finished tasks, handle post-execution tasks,
6307         call gomp_team_barrier_wake if necessary, and free task.
6308         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6309         (free_team): Remove free of task_detach_queue.
6310         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6311         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6312         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6313         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6314         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6315         Change data-sharing of detach events on enclosing parallel to private.
6316         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
6317         taskwait directive.
6318         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6319         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6320         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6321         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6322         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6323         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6324         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6325         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6326         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6327         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6328         Change data-sharing of detach events on enclosing parallel to private.
6329         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
6330         taskwait directive.
6331         * testsuite/libgomp.fortran/task-detach-7.f90: New.
6332         * testsuite/libgomp.fortran/task-detach-8.f90: New.
6333         * testsuite/libgomp.fortran/task-detach-9.f90: New.
6334         * testsuite/libgomp.fortran/task-detach-10.f90: New.
6335         * testsuite/libgomp.fortran/task-detach-11.f90: New.
6337 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
6339         PR fortran/99171
6340         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6342 2021-02-17  Julian Brown  <julian@codesourcery.com>
6344         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6345         expected errors.
6347 2021-02-17  Julian Brown  <julian@codesourcery.com>
6349         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6350         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6352 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6354         * config/linux/x86/futex.h (__futex_wait):
6355         Revert output type back to long.
6356         (__futex_wake): Ditto.
6357         (futex_wait): Update for revert.
6358         (futex_wake): Ditto.
6360 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6362         * config/linux/x86/futex.h (__futex_wait): New static inline
6363         wrapper function.  Correct output type to int and
6364         timeout type to void *.
6365         (__futex_wake): New static inline wrapper function.
6366         Correct output type to int.
6367         (futex_wait): Use __futex_wait.
6368         (futex_wake): Use __futex_wake.
6370 2021-02-10  Julian Brown  <julian@codesourcery.com>
6372         PR fortran/98979
6373         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6374         errors.
6376 2021-02-04  Julian Brown  <julian@codesourcery.com>
6378         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6380 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
6382         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6383         EF_AMDGPU_MACH_AMDGCN_GFX908.
6384         (gcn_gfx908_s): New constant string.
6385         (isa_hsa_name): Add gfx908.
6386         (isa_code): Add gfx908.
6388 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
6390         * libgomp.texi (omp_fulfill_event): New entry.
6392 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
6394         * task.c (GOMP_task): Rename priority argument to priority_arg,
6395         add priority automatic variable and modify that variable.  Instead of
6396         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6397         check flags for that bit.
6399 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
6401         PR fortran/98476
6402         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6404 2021-01-18  Andreas Schwab  <schwab@suse.de>
6406         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6408 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6410         * config/rtems/sem.h (gomp_sem_getcount): New function.
6412 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
6414         * config/linux/sem.h (gomp_sem_getcount): New function.
6415         * config/posix/sem.h (gomp_sem_getcount): New function.
6416         * config/posix/sem.c (gomp_sem_getcount): New function.
6417         * config/accel/sem.h (gomp_sem_getcount): New function.
6418         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6419         (omp_fulfill_event): Likewise.
6421 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
6423         * fortran.c (omp_fulfill_event_): New.
6424         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6425         (struct gomp_team): Add task_detach_queue and task_detach_count
6426         fields.
6427         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6428         * libgomp_g.h (GOMP_task): Add extra argument.
6429         * omp.h.in (enum omp_event_handle_t): New.
6430         (omp_fulfill_event): New.
6431         * omp_lib.f90.in (omp_event_handle_kind): New.
6432         (omp_fulfill_event): New.
6433         * omp_lib.h.in (omp_event_handle_kind): New.
6434         (omp_fulfill_event): Declare.
6435         * priority_queue.c (priority_tree_find): New.
6436         (priority_list_find): New.
6437         (priority_queue_find): New.
6438         * priority_queue.h (priority_queue_predicate): New.
6439         (priority_queue_find): New.
6440         * task.c (gomp_init_task): Initialize detach field.
6441         (task_fulfilled_p): New.
6442         (GOMP_task): Add detach argument.  Ignore detach argument if
6443         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
6444         field.  Copy address of completion_sem into detach argument and
6445         into the start of the data record.  Wait for detach event if task
6446         not deferred.
6447         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6448         Remove completed tasks and requeue dependent tasks.
6449         (omp_fulfill_event): New.
6450         * team.c (gomp_new_team): Initialize task_detach_queue and
6451         task_detach_count fields.
6452         (free_team): Free task_detach_queue field.
6453         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6454         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6455         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6456         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6457         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6458         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6459         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6460         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6461         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6462         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6463         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6464         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6466 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
6468         PR target/70454
6469         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6470         be added through preprocessor check on
6471         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6473 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
6475         PR libgomp/65099
6476         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6477         configurations.
6478         * configure: Regenerate.
6479         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6480         check.
6482 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6484         * configure: Re-generate.
6486 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6488         * configure: Re-generate.
6490 2021-01-05  Julian Brown  <julian@codesourcery.com>
6492         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6493         (struct ptx_device): Add omp_stacks struct.
6494         (nvptx_open_device): Initialise cached-stacks housekeeping info.
6495         (nvptx_close_device): Free cached stacks block and mutex.
6496         (nvptx_stacks_free): New function.
6497         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6498         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6499         (nvptx_stacks_alloc): Rename to...
6500         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
6501         size or smaller is required.
6502         (nvptx_stacks_free): Remove.
6503         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6504         during kernel execution.
6506 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
6508         * libgomp.texi: Bump @copying's copyright year.
6510 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
6512         * libgomp.texi (Top): Avoid bad "up" link.
6514 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
6516         * testsuite/libgomp.c/task-6.c: New test.
6518 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
6520         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6521         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6523 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
6525         * testsuite/libgomp.fortran/scan-1.f90: New test.
6527 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
6529         PR target/97865
6530         * configure: Regenerate.
6532 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
6534         * configure: Regenerate.
6536 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
6538         * testsuite/libgomp.oacc-c++/cache-1.C: New.
6539         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6541 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
6543         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6544         expected results.
6546 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
6548         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6549         (reserved): Delete unused define.
6551 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
6553         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6554         Tcl 8.5-specific behavior.
6555         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6557 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
6559         * env.c (gomp_global_icv): Remove nest_var field.  Add
6560         max_active_levels_var field.
6561         (gomp_max_active_levels_var): Remove.
6562         (parse_boolean): Return true on success.
6563         (handle_omp_display_env): Express OMP_NESTED in terms of
6564         max_active_levels_var.  Change format specifier for
6565         max_active_levels_var.
6566         (initialize_env): Set max_active_levels_var from
6567         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6568         OMP_PROC_BIND.
6569         * icv.c (omp_set_nested): Express in terms of
6570         max_active_levels_var.
6571         (omp_get_nested): Likewise.
6572         (omp_set_max_active_levels): Use max_active_levels_var field instead
6573         of gomp_max_active_levels_var.
6574         (omp_get_max_active_levels): Likewise.
6575         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
6576         max_active_levels_var field.
6577         (gomp_supported_active_levels): Set to UCHAR_MAX.
6578         (gomp_max_active_levels_var): Delete.
6579         * libgomp.texi (omp_get_nested): Update documentation.
6580         (omp_set_nested): Likewise.
6581         (OMP_MAX_ACTIVE_LEVELS): Likewise.
6582         (OMP_NESTED): Likewise.
6583         (OMP_NUM_THREADS): Likewise.
6584         (OMP_PROC_BIND): Likewise.
6585         * parallel.c (gomp_resolve_num_threads): Replace reference
6586         to nest_var with max_active_levels_var.  Use max_active_levels_var
6587         field instead of gomp_max_active_levels_var.
6589 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
6591         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6592         nvptx_usleep; use also for device={arch(gcn)}.
6594 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
6596         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6597         (foo): Add tests for non-VLA private and firstprivate clauses on
6598         omp task.
6599         (bar): Likewise.  Remove taking of address from private/firstprivate
6600         variables.
6601         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6602         (foo): Add p, q, px and s arguments.  Add tests for array reductions
6603         and for non-VLA private and firstprivate clauses on omp task.
6604         (bar): Removed.
6605         (main): Adjust foo caller.  Don't call bar.
6607 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6608             Thomas Schwinge  <thomas@codesourcery.com>
6610         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6611         New.
6612         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6613         Likewise.
6614         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6615         Likewise.
6616         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6617         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6619 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
6620             Thomas Schwinge  <thomas@codesourcery.com>
6622         PR fortran/94358
6623         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6625 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
6627         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6628         for array reductions.
6629         (main): Adjust foo callers.
6631 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
6633         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6634         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6635         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6636         * allocator.c (omp_aligned_alloc): New for now static function,
6637         add alignment argument and handle it.
6638         (omp_alloc): Reimplement using omp_aligned_alloc.
6639         (GOMP_alloc, GOMP_free): New functions.
6640         (omp_free): Add ialias.
6641         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6642         * testsuite/libgomp.c++/allocate-1.C: New test.
6644 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
6646         PR fortran/97782
6647         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6649 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
6651         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6652         usable.
6653         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6654         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6655         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6656         (goacc_enter_data_internal): Likewise.
6657         * target.c (gomp_map_vars_internal):
6658         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6659         of gomp_attach_pointer for OpenMP cases.
6660         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6661         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6662         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6664 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
6665             Kwok Cheung Yeung  <kcy@codesourcery.com>
6667         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6668         * Makefile.in: Regenerate.
6669         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6670         pragmas to ignore -Wdeprecated-declarations warnings.
6671         * icv.c: Likewise.
6672         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6673         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6674         and omp_get_nested with __GOMP_DEPRECATED_5_0.
6675         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6676         deprecated.
6677         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6678         to test options.
6679         * testsuite/libgomp.c/affinity-1.c: Likewise.
6680         * testsuite/libgomp.c/affinity-2.c: Likewise.
6681         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6682         * testsuite/libgomp.c/lib-1.c: Likewise.
6683         * testsuite/libgomp.c/nested-1.c: Likewise.
6684         * testsuite/libgomp.c/nested-2.c: Likewise.
6685         * testsuite/libgomp.c/nested-3.c: Likewise.
6686         * testsuite/libgomp.c/pr32362-1.c: Likewise.
6687         * testsuite/libgomp.c/pr32362-2.c: Likewise.
6688         * testsuite/libgomp.c/pr32362-3.c: Likewise.
6689         * testsuite/libgomp.c/pr35549.c: Likewise.
6690         * testsuite/libgomp.c/pr42942.c: Likewise.
6691         * testsuite/libgomp.c/pr61200.c: Likewise.
6692         * testsuite/libgomp.c/sort-1.c: Likewise.
6693         * testsuite/libgomp.c/target-5.c: Likewise.
6694         * testsuite/libgomp.c/target-6.c: Likewise.
6695         * testsuite/libgomp.c/teams-1.c: Likewise.
6696         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6697         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6698         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6699         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6700         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6701         * testsuite/libgomp.fortran/lib2.f: Likewise.
6702         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6703         * testsuite/libgomp.fortran/teams1.f90: Likewise.
6705 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6707         PR target/85486
6708         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6709         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6710         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6712 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6714         PR testsuite/80219
6715         PR testsuite/85303
6716         * testsuite/lib/libgomp.exp (libgomp_init): Set
6717         'gcc_warning_prefix', 'gcc_error_prefix'.
6719 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
6721         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6722         even in field_tgt_clear initializer.
6724 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6726         * testsuite/libgomp.c/target-42.c: New test.
6728 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6729             Tom de Vries  <tdevries@suse.de>
6731         PR testsuite/81690
6732         * testsuite/libgomp.c/usleep.h: New file.
6733         * testsuite/libgomp.c/target-32.c: Include usleep.h.
6734         (main): Use tgt_usleep instead of usleep.
6735         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6736         (main): Use tgt_usleep instead of usleep.
6738 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
6740         PR lto/96680
6741         * testsuite/libgomp.c/declare-variant-1.c: New test.
6743 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6745         * testsuite/libgomp.c/target-41.c: New test.
6747 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
6749         * icv.c (omp_get_initial_device): Remove including corresponding
6750         ialias.
6751         * icv-device.c (omp_get_initial_device): New function.  Return
6752         gomp_get_num_devices ().  Add ialias.
6753         * target.c (resolve_device): Don't fail with
6754         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6755         gomp_get_num_devices ().
6756         (omp_target_alloc, omp_target_free, omp_target_is_present,
6757         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6758         omp_target_disassociate_ptr, omp_pause_resource): Use
6759         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6760         first use in the functions, in uses dominated by the
6761         gomp_get_num_devices call use num_devices_openmp instead.
6762         * libgomp.texi (omp_get_initial_device): Document.
6763         * config/gcn/icv-device.c (omp_get_initial_device): New function.
6764         Add ialias.
6765         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6766         * testsuite/libgomp.c/target-40.c: New test.
6768 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
6770         * env.c (parse_target_offload): Change new_offload var type to int,
6771         preinitialize to -1, remove found var and test new_offload != -1
6772         instead of found.
6774 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
6776         * target.c (gomp_target_init): Inside of the function, use automatic
6777         variables corresponding to num_devices, num_devices_openmp and devices
6778         global variables and update the globals only at the end of the
6779         function.
6781 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
6783         * env.c (gomp_target_offload_var): New.
6784         (parse_target_offload): New.
6785         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6786         (initialize_env): Parse OMP_TARGET_OFFLOAD.
6787         * libgomp.h (gomp_target_offload_t): New.
6788         (gomp_target_offload_var): New.
6789         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6790         * target.c (resolve_device): Generate error if device not found and
6791         offloading is mandatory.
6792         (gomp_target_fallback): Generate error if offloading is mandatory.
6793         (GOMP_target): Add argument in call to gomp_target_fallback.
6794         (GOMP_target_ext): Likewise.
6795         (gomp_target_data_fallback): Generate error if offloading is mandatory.
6796         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6797         (GOMP_target_data_ext): Likewise.
6798         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6799         (gomp_target_init): Return early if offloading is disabled.
6801 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
6803         * libgomp.texi (omp_get_max_active_levels): Modify description.
6804         (omp_get_supported_active_levels): Make descriptions consistent.
6806 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6808         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6810 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6812         * env.c (gomp_max_active_levels_var): Initialize to
6813         gomp_supported_active_levels.
6814         (initialize_env): Limit gomp_max_active_levels_var to be at most
6815         equal to gomp_supported_active_levels.
6816         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6817         (omp_get_supported_active_levels_): New.
6818         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6819         to at most equal to gomp_supported_active_levels.
6820         (omp_get_supported_active_levels): New.
6821         * libgomp.h (gomp_supported_active_levels): New.
6822         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6823         omp_get_supported_active_levels_.
6824         * libgomp.texi (omp_get_supported_active_levels): New.
6825         (omp_set_max_active_levels): Update.  Add reference to
6826         omp_get_supported_active_levels.
6827         * omp.h.in (omp_get_supported_active_levels): New.
6828         * omp_lib.f90.in (omp_get_supported_active_levels): New.
6829         * omp_lib.h.in (omp_get_supported_active_levels): New.
6830         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6831         against omp_get_supported_active_levels.
6832         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6834 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
6836         * config/t-aix: Delete and recreate libgomp before creating
6837         FAT library.
6839 2020-10-08  Tom de Vries  <tdevries@suse.de>
6841         PR libgomp/81802
6842         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6843         dimensions.
6845 2020-10-06  Tom de Vries  <tdevries@suse.de>
6847         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6849 2020-10-06  Tom de Vries  <tdevries@suse.de>
6851         PR middle-end/90861
6852         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6854 2020-10-05  Tom de Vries  <tdevries@suse.de>
6856         PR fortran/95654
6857         * testsuite/libgomp.fortran/pr95654.f90: New test.
6859 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
6861         * Makefile.in: Regenerate with automake 1.15.1.
6862         * aclocal.m4: Likewise.
6863         * configure: Likewise.
6864         * testsuite/Makefile.in: Likewise.
6866 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
6868         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6869         and amdgcn targets.
6871 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
6873         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6875 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
6877         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6878         total number of threads is one.
6879         (gomp_team_barrier_wake): Likewise.
6880         (gomp_team_barrier_wait_end): Likewise.
6881         (gomp_team_barrier_wait_cancel_end): Likewise.
6882         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6883         (gomp_team_barrier_wake): Likewise.
6884         (gomp_team_barrier_wait_end): Likewise.
6885         (gomp_team_barrier_wait_cancel_end): Likewise.
6886         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6888 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
6890         PR middle-end/96390
6891         * testsuite/libgomp.c++/pr96390.C: New test.
6892         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6894 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
6896         * config/t-aix: Use $(AR) without -X32_64.
6898 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
6900         * testsuite/libgomp.c/loop-25.c: New test.
6902 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
6904         PR fortran/95654
6905         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6907 2020-09-22  Tom de Vries  <tdevries@suse.de>
6909         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6910         fails.
6912 2020-09-16  Nathan Sidwell  <nathan@acm.org>
6914         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6916 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6918         PR fortran/96668
6919         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6921 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
6923         PR fortran/96668
6924         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6925         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6926         (gomp_map_vars_existing): Update call to it.
6927         (gomp_map_fields_existing): Likewise
6928         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6929         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6930         remapped.
6931         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6932         GOMP_MAP_POINTER.
6933         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6934         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6936 2020-09-14  Tom de Vries  <tdevries@suse.de>
6938         * config/nvptx/atomic.c: New file.  Add
6939         __sync_val_compare_and_swap_16.
6940         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6941         target offload_target_nvptx.
6943 2020-09-08  Julian Brown  <julian@codesourcery.com>
6945         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6946         iteration-ordering assumptions.
6948 2020-09-08  Julian Brown  <julian@codesourcery.com>
6950         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6951         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6953 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
6955         * plugin/plugin-nvptx.c (nvptx_free):
6956         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6957         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6958         comments.
6960 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
6962         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6964 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
6966         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6968 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
6970         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6971         * testsuite/libgomp.c/loop-23.c (main): Likewise.
6972         * testsuite/libgomp.c/loop-24.c: New test.
6974 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
6975             Tobias Burnus  <tobias@codesourcery.com>
6977         PR fortran/93553
6978         * testsuite/libgomp.fortran/pr93553.f90: New test.
6980 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6982         * testsuite/libgomp.c/loop-22.c: New test.
6983         * testsuite/libgomp.c/loop-23.c: New test.
6985 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
6987         PR middle-end/96459
6988         * testsuite/libgomp.c/teams-3.c: New test.
6989         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6990         if not defined yet.
6991         (N(test)): Use it before all N(f*) calls.
6992         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6993         (main): Don't call all test_* functions from within
6994         #pragma omp teams reduction(|:err), call them directly.
6996 2020-08-04  Tom de Vries  <tdevries@suse.de>
6998         PR target/96428
6999         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7000         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7002 2020-08-03  Julian Brown  <julian@codesourcery.com>
7003             Thomas Schwinge  <thomas@codesourcery.com>
7005         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7006         shared-memory devices.  Extend with further checking.
7008 2020-08-03  Martin Jambor  <mjambor@suse.cz>
7010         * plugin/Makefrag.am: Remove configuration of HSA plugin.
7011         * aclocal.m4: Regenerated.
7012         * Makefile.in: Regenerated.
7013         * config.h.in: Regenerated.
7014         * configure: Regenerated.
7015         * plugin/configfrag.ac: Likewise.
7016         * plugin/hsa_ext_finalize.h: Removed.
7017         * plugin/plugin-hsa.c: Likewise.
7018         * testsuite/Makefile.in: Regenerated.
7019         * testsuite/lib/libgomp.exp
7020         (offload_target_to_openacc_device_type): Remove hsa case.
7021         (check_effective_target_hsa_offloading_selected_nocache): Removed
7022         (check_effective_target_hsa_offloading_selected): Likewise.
7023         (libgomp_init): Do not add -Wno-hsa to additional_flags.
7024         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7025         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7026         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7027         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7028         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7029         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7030         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7031         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7032         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7033         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7034         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7035         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7036         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7037         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7038         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7039         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7040         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7041         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7042         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7043         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7044         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7045         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7046         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7047         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7049 2020-07-27  Julian Brown  <julian@codesourcery.com>
7050             Thomas Schwinge  <thomas@codesourcery.com>
7052         * libgomp.h (struct target_var_desc): Rename do_detach field to
7053         is_attach.
7054         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
7055         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7056         (goacc_enter_data_internal): Don't affect reference counts
7057         for attach mappings.
7058         (goacc_exit_data_internal): Don't affect reference counts for detach
7059         mappings.
7060         * target.c (gomp_map_vars_existing): Don't affect reference counts for
7061         attach mappings.
7062         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7063         mark attach mappings.
7064         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7065         reference count for attach mappings.
7066         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7067         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7068         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7069         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7070         test as shouldfail.
7071         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7072         gracefully in no-finalize mode.
7073         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7075 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
7077         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7078         use.
7079         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7080         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7082 2020-07-23  Julian Brown  <julian@codesourcery.com>
7083             Thomas Schwinge  <thomas@codesourcery.com>
7085         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7086         finalization for detach operation.
7087         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7088         New test.
7090 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
7092         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7093         * libgomp_f.h.in (omp_check_defines): Check whether
7094         sizeof of determined Fortran kind and C typedef match.
7095         * omp_lib.f90.in: Add omp_depened_kind.
7096         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7097         * configure: Regenerate.
7098         * Makefile.in: Regenerate.
7099         * testsuite/Makefile.in: Regenerate.
7101 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7103         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7104         gcc/testsuite/c-c++-common/gomp/.
7105         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7106         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7107         from gcc/testsuite/gfortran.dg/gomp/.
7108         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7110 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
7112         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7113         * omp_lib.h.in: Likewise.
7115 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
7117         PR target/95620
7118         * testsuite/libgomp.c/pr95620.c: New test.
7120 2020-07-16  Julian Brown  <julian@codesourcery.com>
7121             Thomas Schwinge  <thomas@codesourcery.com>
7123         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7124         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7126 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7128         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7129         avoid conversion on 32bit systems from 32bit to 64bit due
7130         to -fdefault-integer-8.
7132 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7134         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7135         variables; add character(kind=4) tests; update TODO comment.
7137 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
7139         * allocator.c: Add ialias for omp_init_allocator and
7140         omp_destroy_allocator.
7141         * configure.ac: Set INTPTR_T_KIND.
7142         * configure: Regenerate.
7143         * Makefile.in: Regenerate.
7144         * testsuite/Makefile.in: Regenerate.
7145         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7146         omp_set_default_allocator_, omp_get_default_allocator_): New
7147         functions and ialias_redirect.
7148         * icv.c: Add ialias for omp_set_default_allocator and
7149         omp_get_default_allocator.
7150         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7151         omp_destroy_allocator_, omp_set_default_allocator_ and
7152         omp_get_default_allocator_.
7153         * omp_lib.f90.in: Add allocator traits parameters, declare
7154         allocator routines and add related kind parameters.
7155         * omp_lib.h.in: Likewise.
7156         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7157         * testsuite/libgomp.fortran/alloc-1.F90: New test.
7158         * testsuite/libgomp.fortran/alloc-2.F90: New test.
7159         * testsuite/libgomp.fortran/alloc-3.F: New test.
7160         * testsuite/libgomp.fortran/alloc-4.f90: New test.
7161         * testsuite/libgomp.fortran/alloc-5.f90: New test.
7163 2020-07-14  Tom de Vries  <tom@codesourcery.com>
7164             Cesar Philippidis  <cesar@codesourcery.com>
7165             Thomas Schwinge  <thomas@codesourcery.com>
7166             Kwok Cheung Yeung  <kcy@codesourcery.com>
7168         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7169         New variable.
7170         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
7171         acc_init_state to initializing at the start, and to initialized at the
7172         end.
7173         (self_initializing_p): New function.
7174         (acc_get_device_type): Return acc_device_none if called by thread that
7175         is currently executing acc_init_1.
7176         * libgomp.texi (acc_get_device_type): Update documentation.
7177         (Implementation Status and Implementation-Defined Behavior): Likewise.
7178         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7180 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
7182         * config/t-aix: Set BITS from compiler cpp macro.
7184 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7186         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7188 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
7190         PR fortran/67311
7191         * testsuite/libgomp.fortran/target-map-1.f90: New test.
7193 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
7195         * testsuite/libgomp.c/loop-21.c: New test.
7197 2020-07-13  Julian Brown  <julian@codesourcery.com>
7198             Thomas Schwinge  <thomas@codesourcery.com>
7200         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7202 2020-07-10  Julian Brown  <julian@codesourcery.com>
7203             Thomas Schwinge  <thomas@codesourcery.com>
7205         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7206         dynamic_refcount.
7207         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7208         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7209         dynamic_refcount.
7210         (acc_unmap_data): Update comment.
7211         (goacc_map_var_existing, goacc_enter_datum): Adjust for
7212         dynamic_refcount semantics.
7213         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7214         Adjust for dynamic_refcount semantics.
7215         (goacc_enter_data_internal): Implement "present" case of dynamic
7216         memory-map handling here.  Update "non-present" case for
7217         dynamic_refcount semantics.
7218         (goacc_exit_data_internal): Use goacc_exit_datum_1.
7219         * target.c (gomp_map_vars_internal): Remove
7220         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
7221         handling.
7222         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7223         (gomp_load_image_to_device): Substitute dynamic_refcount for
7224         virtual_refcount.
7225         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7226         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7227         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7228         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7229         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7230         trace output.
7231         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7232         trace output.
7233         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7234         test.
7235         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7236         Remove stale comment.
7237         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7238         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7239         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7240         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7241         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7242         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7244 2020-07-10  Julian Brown  <julian@codesourcery.com>
7245             Thomas Schwinge  <thomas@codesourcery.com>
7247         * oacc-mem.c (goacc_map_var_existing): New function.
7248         (goacc_enter_datum): Use above function.
7249         (goacc_exit_datum_1): New function.
7250         (goacc_exit_datum): Use above function.
7252 2020-07-09  Julian Brown  <julian@codesourcery.com>
7253             Thomas Schwinge  <thomas@codesourcery.com>
7255         PR middle-end/95270
7256         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7257         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7259 2020-07-09  Julian Brown  <julian@codesourcery.com>
7261         * oacc-mem.c (find_group_last): Group data-movement clauses
7262         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7263         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
7265 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7267         * testsuite/libgomp.c/loop-19.c: New test.
7268         * testsuite/libgomp.c/loop-20.c: New test.
7270 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
7272         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7273         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
7274         it.  Remove __omp_alloctrait_value_max__.
7275         * allocator.c (omp_init_allocator): Handle omp_atv_default for
7276         omp_atk_alignment and omp_atk_pool_size.
7278 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7280         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7281         behavior for 'GOMP_MAP_FORCE_FROM'.
7282         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7284 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
7286         * oacc-mem.c (goacc_exit_data_internal): Remove
7287         'GOMP_MAP_ALWAYS_FROM' handling.
7289 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7291         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7292         'scan-assembler' with 'scan-offload-rtl'.
7293         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7294         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7295         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7296         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7298 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
7300         * target.c (gomp_map_vars_existing): Assert 'kind !=
7301         GOMP_MAP_ATTACH'.
7302         (gomp_map_vars_internal): Clean up.
7304 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
7306         * testsuite/libgomp.c/loop-17.c: New test.
7307         * testsuite/libgomp.c/loop-18.c: New test.
7309 2020-06-26  Marek Polacek  <polacek@redhat.com>
7311         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7313 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
7315         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7316         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7318 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
7320         * Makefile.am: Use -include.
7321         * Makefile.in: Regenerate.
7323 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
7325         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7326         * Makefile.in: Regenerate
7327         * configure.ac (tmake_file): Substitute.
7328         * configure: Regenerate.
7329         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7330         * config/t-aix: New file.
7332 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
7334         PR lto/94848
7335         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7336         'dg-do run'.
7338 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
7340         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7341         variant for HSA_RUNTIME_LIB name.
7342         (find_executable_symbol_1): Delete.
7343         (find_executable_symbol): Delete.
7344         (init_kernel_properties): Add ".kd" suffix to symbol names.
7345         (find_load_offset): Delete.
7346         (create_and_finalize_hsa_program): Remove relocation handling.
7348 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
7350         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7352 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
7354         PR lto/94848
7355         PR middle-end/95551
7356         * testsuite/libgomp.fortran/target-var.f90: New test.
7358 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7359             Julian Brown  <julian@codesourcery.com>
7361         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7362         special handling.
7364 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
7365             Julian Brown  <julian@codesourcery.com>
7367         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7368         Simplify.
7370 2020-06-05  Julian Brown  <julian@codesourcery.com>
7372         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7373         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7375 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7377         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7378         Evaluate 'copyfrom' individually for each entry.
7379         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7381 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7383         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7384         Evaluate 'finalize' individually for each entry.
7385         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7386         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7387         file.
7389 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7391         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7392         usage.
7393         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7395 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7396             Julian Brown  <julian@codesourcery.com>
7398         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7399         checking.
7400         (acc_unmap_data, goacc_exit_data_internal): Restore
7401         'is_tgt_unmapped' checking.
7402         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7403         file.
7404         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7405         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7406         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7407         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7408         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7409         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7411 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7412             Julian Brown  <julian@codesourcery.com>
7414         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7416 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7418         PR libgomp/92854
7419         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7421 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7423         PR libgomp/92854
7424         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7425         more.
7427 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7428             Julian Brown  <julian@codesourcery.com>
7430         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7431         'gomp_map_vars'.
7432         (acc_map_data): Clean up accordingly.
7434 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7436         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7437         of over-eager 'finalize' clause.
7438         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7439         file.
7440         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7441         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7442         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7443         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7444         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7445         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7446         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7447         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7449 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7451         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7453 2020-06-04  Julian Brown  <julian@codesourcery.com>
7455         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7456         error path.
7457         (goacc_detach_internal): Likewise.
7459 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
7461         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7462         the checkpoint.
7463         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7464         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7465         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7466         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7467         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7469 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
7471         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7472         defined.
7474 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7476         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7478 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
7480         * allocator.c (omp_alloc): For size == 0, return NULL early.
7482 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
7484         PR bootstrap/95413
7485         * configure: Regenerated.
7487 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
7489         PR libfortran/95191
7490         * testsuite/libgomp.fortran/async_io_9.f90: New test.
7492 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
7494         * omp.h.in (omp_uintptr_t): New typedef.
7495         (__GOMP_UINTPTR_T_ENUM): Define.
7496         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7497         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7498         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7499         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7500         omp_get_default_allocator, omp_alloc, omp_free): Declare.
7501         * libgomp.h (struct gomp_team_state): Add def_allocator field.
7502         (gomp_def_allocator): Declare.
7503         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7504         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7505         omp_alloc and omp_free.
7506         * team.c (gomp_team_start): Copy over ts.def_allocator.
7507         * env.c (gomp_def_allocator): New variable.
7508         (parse_wait_policy): Adjust function comment.
7509         (parse_allocator): New function.
7510         (handle_omp_display_env): Print OMP_ALLOCATOR.
7511         (initialize_env): Call parse_allocator.
7512         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7513         * allocator.c: New file.
7514         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7515         functions.
7516         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7517         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7518         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7519         * Makefile.in: Regenerated.
7521 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7523         PR bootstrap/95147
7524         * configure: Regenerated.
7526 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
7528         PR libfortran/95119
7529         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7531 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7533         * configure: Regenerated.
7535 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
7537         * testsuite/libgomp.c-c++-common/target-40.c: New test.
7539 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
7541         PR fortran/94690
7542         * testsuite/libgomp.fortran/pr66199-3.f90: New.
7543         * testsuite/libgomp.fortran/pr66199-4.f90: New.
7544         * testsuite/libgomp.fortran/pr66199-5.f90: New.
7545         * testsuite/libgomp.fortran/pr66199-6.f90: New.
7546         * testsuite/libgomp.fortran/pr66199-7.f90: New.
7547         * testsuite/libgomp.fortran/pr66199-8.f90: New.
7548         * testsuite/libgomp.fortran/pr66199-9.f90: New.
7550 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
7552         * testsuite/libgomp.c/target-39.c: New test.
7554 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7556         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7557         * openacc.f90 (acc_device_current): Likewise.
7558         * openacc.h (acc_device_current): Likewise.
7559         * openacc_lib.h (acc_device_current): Likewise.
7561         PR target/94282
7562         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7563         'dg-allow-blank-lines-in-output'.
7565         * oacc-init.c (get_openacc_name): Handle 'gcn'.
7566         * testsuite/lib/libgomp.exp
7567         (offload_target_to_openacc_device_type) [amdgcn*]: Return
7568         'radeon'.  Adjust all users.
7569         (check_effective_target_openacc_amdgcn_accel_present): Rename
7570         to...
7571         (check_effective_target_openacc_radeon_accel_present): ... this.
7572         Adjust all users.
7573         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7574         (check_effective_target_openacc_radeon_accel_selected): ... this.
7575         Adjust all users.
7577         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7578         'dg-do run'.
7580 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
7582         PR other/94629
7584         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7585         hsa_iterate_agents.
7586         (GOMP_OFFLOAD_init_device): Check return values from both calls to
7587         hsa_agent_iterate_regions.
7589 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
7591         PR middle-end/94635
7592         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7593         run'.
7595 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
7597         PR middle-end/94120
7598         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7599         test case.
7601 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
7603         PR middle-end/94635
7604         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7606 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
7608         PR libgomp/92843
7609         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7610         Rename to...
7611         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7612         ... this.
7613         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7614         Rename to...
7615         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7616         ... this.
7617         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7618         Rename to...
7619         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7620         ... this.
7621         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7622         Rename to...
7623         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7624         ... this.
7625         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7626         Rename to...
7627         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7628         ... this.
7629         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7630         Rename to...
7631         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7632         ... this.
7633         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7634         Rename to...
7635         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7636         ... this.
7637         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7638         Rename to...
7639         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7640         ... this.
7641         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7642         Rename to...
7643         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7644         ... this.
7645         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7646         Rename to...
7647         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7648         ... this.
7649         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7650         Rename to...
7651         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7652         ... this.
7653         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7654         Rename to...
7655         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7656         ... this.
7657         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7658         Rename to...
7659         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7660         ... this.
7661         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7662         Rename to...
7663         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7664         ... this.
7665         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7666         Rename to...
7667         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7668         ... this.
7669         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7670         Rename to...
7671         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7672         ... this.
7674 2020-04-10  Julian Brown  <julian@codesourcery.com>
7675             Thomas Schwinge  <thomas@codesourcery.com>
7677         PR libgomp/92843
7678         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7679         New file.
7680         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7681         Likewise.
7682         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7683         Likewise.
7684         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7685         Likewise.
7686         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7687         Likewise.
7688         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7689         Likewise.
7690         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7691         Likewise.
7692         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7693         Likewise.
7694         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7695         Likewise.
7696         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7697         Likewise.
7698         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7699         Likewise.
7700         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7701         Likewise.
7702         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7703         Likewise.
7704         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7705         Likewise.
7706         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7707         Likewise.
7708         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7709         Likewise.
7711 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
7713         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7714         run'.
7716 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
7718         PR middle-end/94120
7719         * libgomp.oacc-c++/declare-pr94120.C: New.
7721 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
7723         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7724         files.
7725         * configure: Regenerate.
7726         * testsuite/libgomp-site-extra.exp.in: New file.
7727         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7728         variable.
7729         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7730         variable.
7731         * testsuite/Makefile.in: Regenerate.
7733 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7735         PR tree-optimization/89713
7736         PR c/94392
7737         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7738         'bar.sync'.
7739         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7741 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
7743         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7744         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7746 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
7748         PR libgomp/81689
7749         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7751 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
7753         PR libgomp/94251
7754         * target.c (gomp_load_image_to_device): Fix link
7755         variable handling.
7757 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
7759         PR c++/93931
7760         * testsuite/libgomp.c++/pr93931.C: New test.
7762 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
7764         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7765         dg-allow-blank-lines-in-output.
7767 2020-03-18  Julian Brown <julian@codesourcery.com>
7768             Tobias Burnus  <tobias@codesourcery.com>
7770         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7771         it work concurrently.
7773 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
7775         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7776         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7777         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7779 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
7781         PR middle-end/93566
7782         * testsuite/libgomp.c/pr93566.c: New test.
7784 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
7786         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7787         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7788         integer(acc_device_property) for the type of the return value of
7789         acc_get_property.
7791 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
7793         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7794         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7795         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7796         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7797         (acc_set_device_num): Fix Fortran argument name, use same name for C.
7798         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7799         corrections; add note about the previous interface and named constant.
7800         (OpenACC library and environment variables): Fix two typos.
7801         * openacc.f90: Use for all procedures the argument names from the spec
7802         as for â€¦_h they are user visible.
7803         (openacc_kinds): Rename acc_device_property to
7804         acc_device_property_kinds and change value to int32 ; and update users.
7805         Re-add acc_device_property for for backward compatibility.
7806         (acc_get_property_string_h): Clean up as acc_device_property_kind
7807         changed.
7808         (acc_get_property_h): Likewise and return c_size_t instead of
7809         acc_device_property.
7810         (openacc): Also export acc_device_property_kinds.
7811         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7812         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7813         handling; check against /= 0 instead of == 1 to match C.
7814         * openacc_lib.h: Use for all procedures the argument names from the spec
7815         as for â€¦_h they are user visible. Place !GCC$ into the first column to
7816         be active also for fixed-form souce form.
7817         (acc_device_current, acc_device_property_kind, acc_device_property,
7818         acc_property_memory, acc_property_free_memory, acc_property_name,
7819         acc_property_vendor, acc_property_driver): New named constants.
7820         (acc_get_property, acc_get_property_string): New generic interface.
7822 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
7824         PR libgomp/93481
7825         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7826         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7827         optional.
7828         (gomp_target_task_fn): Assert "devicep->async_run_func".
7829         (clear_unsupported_flags): New function to remove unsupported flags
7830         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7831         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7832         * testsuite/libgomp.c/target-33.c:
7833         Remove xfail for offload_target_nvptx.
7834         * testsuite/libgomp.c/target-34.c: Likewise.
7836 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
7838         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7839         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7840         * testsuite/libgomp.c/target-34.c: Likewise.
7841         * testsuite/libgomp.c/target-link-1.c: Add xfail for
7842         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7844 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
7846         * testsuite/libgomp.c/target-38.c: New test.
7848 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
7850         PR libgomp/93515
7851         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7853 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
7855         * testsuite/lib/libgomp.exp
7856         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7857         and not as 'source' argument to libgomp_target_compile.
7859 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
7861         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7862         (gcn_gfx801_s): Remove.
7863         (isa_hsa_name): Remove gfx801.
7864         (isa_gcc_name): Remove gfx801/carizzo.
7865         (isa_code): Remove gfx801.
7867 2020-02-03  Julian Brown  <julian@codesourcery.com>
7868             Tobias Burnus  <tobias@codesourcery.com>
7870         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7871         and *_finalize variants; document acc_attach and acc_detach; update
7872         references from OpenACC 2.0 to 2.6.
7873         * openacc.f90 (openacc_version): Update to 201711.
7874         * openacc_lib.h (openacc_version): Update to 201711.
7875         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7876         openacc_version to 201711.
7877         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7879 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
7881         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7882         and vgpr_count fields.
7883         (struct kernel_info): Add a field for a hsa_kernel_description.
7884         (run_kernel): Reduce the number of threads/workers if the requested
7885         number would require too many VGPRs.
7886         (init_basic_kernel_info): Initialize description field with
7887         the hsa_kernel_description entry for the kernel.
7889 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
7891         PR bootstrap/93409
7892         * plugin/configfrag.ac (enable_offload_targets): Skip
7893         HSA and GCN plugin besides -m32 also for -mx32.
7894         * configure: Regenerate.
7896 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7898         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7900 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
7902         * plugin-gcn.c (struct agent_info): Add fields "name" and
7903         "vendor_name" ...
7904         (GOMP_OFFLOAD_init_device): ... and init from here.
7905         (struct hsa_context_info): Add field "driver_version_s" ...
7906         (init_hsa_contest): ... and init from here.
7907         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7908         implementation.
7909         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7910         Enable test execution for amdgcn and host offloading targets.
7911         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7912         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7913         (expect_device_properties): Split function into ...
7914         (expect_device_string_properties): ... this new function ...
7915         (expect_device_memory): ... and this new function.
7916         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7917         Add test.
7919 2020-01-28  Julian Brown  <julian@codesourcery.com>
7921         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7922         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7923         component/non-component variable refs in a single directive.
7924         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7926 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
7928         * configure.ac: Handle `--with-toolexeclibdir='.
7929         * Makefile.in: Regenerate.
7930         * aclocal.m4: Regenerate.
7931         * configure: Regenerate.
7932         * testsuite/Makefile.in: Regenerate.
7934 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
7936         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7937         (expect_device_properties): Remove "expected_free_mem" argument,
7938         change "expected_total_mem" argument type to size_t;
7939         change types of acc_get_property results to size_t,
7940         adapt format strings.
7941         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7942         Use %zu instead of %zd to print size_t values.
7943         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7944         rename to ...
7945         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7946         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7947         rename to ...
7948         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7950 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
7952         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7953         the device id.
7955 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
7957         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7958         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7959         Adjust test dimensions for amdgcn.
7960         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7961         gang/worker/vector expectations dynamically.
7962         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7963         (main): Likewise.
7964         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7965         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7966         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7967         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7968         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7969         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7970         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7971         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7972         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7973         (acc_gang): Recognise acc_device_radeon.
7974         (acc_worker): Likewise.
7975         (acc_vector): Likewise.
7976         (main): Set expectations for amdgcn.
7977         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7978         (main): Adjust gang/worker/vector expectations dynamically.
7979         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7980         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7981         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7982         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7983         for amdgcn.
7985 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
7987         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7988         acc_device_radeon.
7989         (openacc): Likewise.
7990         * openacc.f90 (openacc_kinds): Likewise.
7991         (openacc): Likewise.
7992         * openacc.h (acc_device_t): Likewise.
7993         * openacc_lib.h: Likewise.
7994         * testsuite/lib/libgomp.exp
7995         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
7996         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
7997         (cb_compute_construct_end): Likewise.
7998         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
7999         (cb_enqueue_launch_start): Likewise.
8000         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8001         (cb_enter_data_end): Likewise.
8002         (cb_exit_data_start): Likewise.
8003         (cb_exit_data_end): Likewise.
8004         (cb_compute_construct_end): Likewise.
8005         (cb_enqueue_launch_start): Likewise.
8006         (cb_enqueue_launch_end): Likewise.
8007         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8008         (main): Likewise.
8010 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8012         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
8013         to use this instead of 'enum gomp_device_property'.
8014         (GOMP_OFFLOAD_get_property): Rename to...
8015         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
8016         * libgomp.h (struct gomp_device_descr): Move
8017         'GOMP_OFFLOAD_openacc_get_property'...
8018         (struct acc_dispatch_t): ... here.  Adjust all users.
8019         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8021         * target.c (gomp_map_vars_internal)
8022         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8023         paths.
8025 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
8027         PR libgomp/93219
8028         * libgomp.h (gomp_print_string): Change return type from void to int.
8029         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
8030         not all characters have been written.
8032 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
8034         * libgomp.texi: Fix typos, use https.
8036 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
8038         * testsuite/libgomp.fortran/optional-map.f90: Add test for
8039         unallocated/disassociated actual arguments to nonallocatable/nonpointer
8040         dummy arguments; those are/shall be regarded as absent arguments.
8041         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8042         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8044 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
8046         Update copyright years.
8048         * libgomp.texi: Bump @copying's copyright year.
8050 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
8052         PR libgomp/93065
8053         * oacc-init.c (goacc_runtime_deinitialize): New function.
8055 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
8057         PR bootstrap/93074
8058         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8059         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
8061 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
8062             Frederik Harwath  <frederik@codesourcery.com>
8063             Thomas Schwinge  <tschwinge@codesourcery.com>
8065         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8066         * libgomp-plugin.h (gomp_device_property_value): New union.
8067         (gomp_device_property_value): New prototype.
8068         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8069         constant.
8070         (acc_device_property_t): New enum.
8071         (acc_get_property, acc_get_property_string): New prototypes.
8072         * oacc-init.c (acc_get_device_type): Also assert that result
8073         is not `acc_device_current'.
8074         (get_property_any, acc_get_property, acc_get_property_string):
8075         New functions.
8076         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8077         `acc_property_memory', `acc_property_free_memory',
8078         `acc_property_name', `acc_property_vendor' and
8079         `acc_property_driver' constants.  Add `acc_device_property' data
8080         type.
8081         (openacc_internal): Add `acc_get_property' and
8082         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
8083         `acc_get_property_string_h', `acc_get_property_l' and
8084         `acc_get_property_string_l'.
8085         * oacc-host.c (host_get_property): New function.
8086         (host_dispatch): Wire it.
8087         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8088         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8089         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8090         * libgomp.texi (OpenACC Runtime Library Routines): Add
8091         `acc_get_property'.
8092         (acc_get_property): New node.
8093         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8094         function (stub).
8095         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8096         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8097         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8098         calls.
8099         (GOMP_OFFLOAD_get_property): New function.
8100         (struct ptx_device): Add new field "name".
8101         (cuda_driver_version_s): Add new static variable ...
8102         (nvptx_init): ... and init from here.
8104         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8105         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8106         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8107         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8108         with test helper functions.
8110         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8112 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
8114         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8115         variable.
8117 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
8119         * target.c (gomp_map_vars_internal): Restore 'omp declare target
8120         link' handling.
8122 2019-12-19  Julian Brown  <julian@codesourcery.com>
8124         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8125         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8126         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8128 2019-12-19  Julian Brown  <julian@codesourcery.com>
8129             Cesar Philippidis  <cesar@codesourcery.com>
8131         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8132         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8133         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8134         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8135         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8136         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8137         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8138         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8139         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8140         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8141         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8142         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8143         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8145 2019-12-19  Julian Brown  <julian@codesourcery.com>
8147         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8148         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8149         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8150         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8151         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8152         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8153         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8154         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8155         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8156         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8157         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8158         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8160 2019-12-19  Julian Brown  <julian@codesourcery.com>
8162         * libgomp.h (struct target_var_desc): Add do_detach flag.
8163         * oacc-init.c (acc_shutdown_1): Free aux block if present.
8164         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8165         struct components.  Tidy up and add some new checks.
8166         (goacc_enter_data_internal): Update call to find_group_last.
8167         (goacc_exit_data_internal): Support detach operations and
8168         GOMP_MAP_STRUCT.
8169         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8170         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
8171         attach/detach in enter/exit data detection code.
8172         * target.c (gomp_map_vars_existing): Initialise do_detach field of
8173         tgt_var_desc.
8174         (gomp_map_vars_internal): Support attach.
8175         (gomp_unmap_vars_internal): Support detach.
8177 2019-12-19  Julian Brown  <julian@codesourcery.com>
8178             Thomas Schwinge  <thomas@codesourcery.com>
8180         * libgomp.h (struct splay_tree_aux): Add attach_count field.
8181         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8182         * libgomp.map (OACC_2.6): New section. Add acc_attach,
8183         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8184         acc_detach_finalize_async.
8185         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8186         acc_detach, acc_detach_async, acc_detach_finalize,
8187         acc_detach_finalize_async): New functions.
8188         * openacc.h (acc_attach, acc_attach_async, acc_detach,
8189         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8190         prototypes.
8191         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8192         (gomp_remove_var_internal): Free attachment counts if present.
8193         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8194         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8196 2019-12-19  Julian Brown  <julian@codesourcery.com>
8197             Cesar Philippidis  <cesar@codesourcery.com>
8199         * libgomp.h (gomp_map_val): Add prototype.
8200         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8201         open-coding device-address calculation.
8202         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8203         non-present case.
8205 2019-12-19  Julian Brown  <julian@codesourcery.com>
8207         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8208         field for virtual_refcount.
8209         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8210         (gomp_free_memmap): Remove prototype.
8211         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8212         instead of calling gomp_free_memmap.
8213         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8214         dynamic_refcount.
8215         (acc_unmap_data): Open code instead of forcing target_mem_desc's
8216         to_free field to NULL then calling gomp_unmap_vars.  Handle
8217         REFCOUNT_INFINITY on target blocks.
8218         (goacc_enter_data): Rename to...
8219         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
8220         handling for mapping groups.  Use virtual_refcount instead of
8221         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8222         map_map_vars_async call.  Re-do lookup for target pointer return value.
8223         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8224         renamed goacc_enter_datum function.
8225         (goacc_exit_data): Rename to...
8226         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
8227         (acc_delete, acc_delete_async, acc_delete_finalize,
8228         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8229         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8230         goacc_exit_datum function.
8231         (gomp_acc_remove_pointer, find_pointer): Remove functions.
8232         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8233         New functions.
8234         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8235         goacc_exit_data_internal helper functions.
8236         * target.c (gomp_map_vars_internal): Handle
8237         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
8238         semantics.
8239         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8240         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8241         virtual_refcount field instead of dynamic_refcount.
8242         (gomp_free_memmap): Remove function.
8243         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8244         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8245         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8247 2019-12-19  Julian Brown  <julian@codesourcery.com>
8248             Thomas Schwinge  <thomas@codesourcery.com>
8250         * libgomp.h (struct splay_tree_aux): New.
8251         (struct splay_tree_key_s): Replace link_key field with aux pointer.
8252         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8253         to aux struct.
8254         (gomp_remove_var_internal): Free aux block if present.
8255         (gomp_load_image_to_device): Zero-initialise aux field instead of
8256         link_key field.
8257         (omp_target_associate_pointer): Zero-initialise aux field.
8259 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
8261         PR middle-end/86416
8262         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8263         q or none.
8264         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8265         L or none.
8267 2019-12-19  Julian Brown  <julian@codesourcery.com>
8268             Maciej W. Rozycki  <macro@codesourcery.com>
8269             Tobias Burnus  <tobias@codesourcery.com>
8270             Thomas Schwinge  <thomas@codesourcery.com>
8272         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8273         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8274         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8275         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8276         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8277         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8278         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8279         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8280         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8282 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
8284         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8285         called...
8286         (goacc_insert_pointer): ... from here, "present" case.
8287         (goacc_insert_pointer): Inline function into...
8288         (GOACC_enter_exit_data): ... here, and simplify.
8290         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8291         called...
8292         (goacc_insert_pointer): ... from here, "not present" case.
8294         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
8295         all users.
8297         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8298         'goacc_enter_data', 'goacc_exit_data'.
8300         * oacc-mem.c (delete_copyout): Refactor into...
8301         (goacc_exit_data): ... this.  Adjust all users.
8303         * oacc-mem.c (present_create_copy): Refactor into...
8304         (goacc_enter_data): ... this.  Adjust all users.
8306         * target.c (gomp_unmap_vars_internal): Add a safeguard to
8307         'gomp_remove_var'.
8309         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8310         like 'GOMP_MAP_FROM'.
8312         PR libgomp/92726
8313         PR libgomp/92970
8314         PR libgomp/92984
8315         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8316         fails.
8317         (GOACC_enter_exit_data): Simplify accordingly.
8318         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8319         subsuming...
8320         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8321         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8322         file.
8323         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8324         subsuming...
8325         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8326         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8327         file.
8328         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8329         subsuming...
8330         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8332         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8333         'finalize' handling.
8335         PR libgomp/92848
8336         * oacc-mem.c (acc_map_data, present_create_copy)
8337         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8338         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8339         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8340         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8341         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8342         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8343         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8344         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8345         Remove "XFAIL"s.
8347         * target.c (gomp_unmap_tgt): Make it 'static'.
8348         * libgomp.h (gomp_unmap_tgt): Remove.
8350 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
8352         PR middle-end/86416
8353         * testsuite/libgomp.c/pr86416-1.c: New.
8354         * testsuite/libgomp.c/pr86416-2.c: New.
8356 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
8358         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8359         all symbols as public except for the 'use â€¦, only' imported symbol,
8360         which is private.
8361         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8362         all symbols from module openacc_kinds as PUBLIC
8363         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8364         fix comment typo.
8365         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8367 2019-12-13  Julian Brown  <julian@codesourcery.com>
8369         PR libgomp/92881
8371         * libgomp.h (gomp_remove_var_async): Add prototype.
8372         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8373         gomp_remove_var.
8374         * target.c (gomp_unref_tgt): Change return type to bool, indicating
8375         whether target_mem_desc was unmapped.
8376         (gomp_unref_tgt_void): New.
8377         (gomp_remove_var): Reimplement in terms of...
8378         (gomp_remove_var_internal): ...this new helper function.
8379         (gomp_remove_var_async): New, implemented using above helper function.
8380         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8381         gomp_unref_tgt.
8383 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
8385         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8386         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8387         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8388         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8389         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8390         Likewise.
8391         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8392         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8394 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
8396         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8397         as public except for the 'use â€¦, only' imported symbol, which is
8398         private.
8399         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8400         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8401         attributes for acc_copyout_finalize and acc_delete_finalize.
8403 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
8405         PR fortran/92899
8406         * testsuite/libgomp.fortran/atomic1.f90: New test.
8408 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8410         PR libgomp/92843
8411         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8412         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
8413         assertions.
8414         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8415         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8416         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8417         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8418         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8420         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8421         * oacc-mem.c: ... here.
8422         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8423         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8424         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8425         Remove.
8426         * libgomp_g.h: Update.
8428         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8429         * oacc-async.c: ... here.
8430         * oacc-int.h (goacc_wait): Declare.
8431         * libgomp_g.h: Update
8433         PR libgomp/92854
8434         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8435         New file.
8436         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8437         Likewise.
8438         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8439         Likewise.
8440         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8441         Likewise.
8442         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8443         Likewise.
8444         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8445         Likewise.
8447 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
8448             Julian Brown  <julian@codesourcery.com>
8450         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8451         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8453 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8455         * omp_lib.h.in: Fix spelling of function declaration
8456         omp_get_cancell(l)ation.
8457         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8458         Fix typos.
8459         * env.c: Fix comment typos.
8460         * oacc-host.c: Likewise.
8461         * ordered.c: Likewise.
8462         * task.c: Likewise.
8463         * team.c: Likewise.
8464         * config/gcn/task.c: Likewise.
8465         * config/gcn/team.c: Likewise.
8466         * config/nvptx/task.c: Likewise.
8467         * config/nvptx/team.c: Likewise.
8468         * plugin/plugin-gcn.c: Likewise.
8469         * testsuite/libgomp.fortran/jacobi.f: Likewise.
8470         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8471         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8473 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
8475         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8476         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8477         unnecessary 'dg-additional-options "-w"'.
8479 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8480             Julian Brown  <julian@codesourcery.com>
8482         PR libgomp/92116
8483         PR libgomp/92877
8485         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
8486         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8487         Adjust all users.
8488         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8489         Remove XFAIL.
8490         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8491         Likewise.
8492         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8494 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
8496         PR libgomp/92503
8497         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8498         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8499         file.
8500         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8501         Likewise.
8502         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8503         Likewise.
8504         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8505         Likewise.
8506         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8507         Likewise.
8508         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8509         Likewise.
8510         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8511         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8512         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8513         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8514         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8515         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8516         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8517         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8518         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8519         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8521         PR libgomp/92840
8522         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8523         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8524         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8525         New file.
8526         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8527         Likewise.
8528         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8529         Likewise.
8530         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8531         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8533         PR libgomp/92511
8534         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8535         this file...
8536         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8537         this file...
8538         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8539         file...
8540         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8541         file...
8542         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8543         ... with their content moved into, and extended in this new file.
8544         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8545         New file.
8546         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8547         Likewise.
8548         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8549         Likewise.
8550         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8551         Likewise.
8553         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8555         PR libgomp/92854
8556         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8558         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8560         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8562 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
8564         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8565         unique.
8566         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8567         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8568         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8569         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8570         Ditto.
8571         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8572         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8574 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
8576         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8578 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
8579             Kwok Cheung Yeung <kcy@codesourcery.com>
8581         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8582         if input it a NULL pointer.
8583         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8584         diagnostic of NULL pointer.
8585         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8586         * testsuite/libgomp.fortran/optional-map.f90: New.
8587         * testsuite/libgomp.fortran/use_device_addr-1.f90
8588         (test_dummy_opt_callee_1_absent): New.
8589         (test_dummy_opt_call_1): Call it.
8590         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8591         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8592         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8593         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8594         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8595         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8596         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8597         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8598         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8599         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8600         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8601         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8602         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8603         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8604         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8605         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8607 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
8609         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8610         expect dg-output of 'Error termination.' for GCN.
8611         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8612         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8614 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
8616         PR fortran/92756
8617         * testsuite/libgomp.fortran/teams1.f90: New test.
8618         * testsuite/libgomp.fortran/teams2.f90: New test.
8620 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
8622         * oacc-init.c (acc_known_device_type): Add function.
8623         (unknown_device_type_error): Add function.
8624         (name_of_acc_device_t): Change to call unknown_device_type_error
8625         on unknown type.
8626         (resolve_device): Use acc_known_device_type.
8627         (acc_init): Fail if acc_device_t argument is not valid.
8628         (acc_shutdown): Likewise.
8629         (acc_get_num_devices): Likewise.
8630         (acc_set_device_type): Likewise.
8631         (acc_get_device_num): Likewise.
8632         (acc_set_device_num): Likewise.
8633         (acc_on_device): Add comment that argument validity is not checked.
8635 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
8637         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8638         Recognize amdgcn.
8639         (check_effective_target_openacc_amdgcn_accel_present): New proc.
8640         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8641         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8642         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8643         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8645 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8647         PR libgomp/91938
8648         * configure.tgt: Avoid IE tls on *-*-musl*.
8650 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
8652         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8653         adding a common-block test case.
8655 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
8657         PR c++/60228
8658         * testsuite/libgomp.c++/udr-20.C: New test.
8659         * testsuite/libgomp.c++/udr-21.C: New test.
8661 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
8663         * testsuite/lib/libgomp.exp
8664         (check_effective_target_offload_target_nvptx): New proc.
8665         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8666         'dg-skip-if'.
8667         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8668         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8669         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8671 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8673         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8674         * testsuite/libgomp.c/pr39591-2.c: Likewise.
8675         * testsuite/libgomp.c/pr39591-3.c: Likewise.
8676         * testsuite/libgomp.c/private-1.c: Likewise.
8677         * testsuite/libgomp.c/task-1.c: Likewise.
8678         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8680 2019-11-20  Julian Brown  <julian@codesourcery.com>
8682         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8683         aq->mutex here.
8684         (queue_push_launch): Lock aq->mutex before calling
8685         wait_for_queue_nonfull.
8686         (queue_push_callback): Likewise.
8687         (queue_push_asyncwait): Likewise.
8688         (queue_push_placeholder): Likewise.
8690 2019-11-20  Julian Brown  <julian@codesourcery.com>
8692         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8693         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8694         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8695         return code.
8697 2019-11-20  Julian Brown  <julian@codesourcery.com>
8699         PR libgomp/92511
8701         * oacc-mem.c (present_create_copy): Fix device pointer return value in
8702         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
8703         in non-present/create case.
8704         (delete_copyout): Change error condition to fail only on copies outside
8705         of mapped block.  Adjust error message accordingly.
8706         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8707         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8708         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8709         message.
8710         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8711         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8712         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8714 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
8716         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8717         libatomic in build-tree testing.
8719 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
8721         * testsuite/Makefile.in: Regenerate.
8723 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
8725         * testsuite/libgomp.c/target-print-1.c: New file.
8726         * testsuite/libgomp.fortran/target-print-1.f90: New file.
8727         * testsuite/libgomp.oacc-c/print-1.c: New file.
8728         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8730 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8731             Kwok Cheung Yeung  <kcy@codesourcery.com>
8732             Julian Brown  <julian@codesourcery.com>
8733             Tom de Vries  <tom@codesourcery.com>
8735         * plugin/Makefrag.am: Add amdgcn plugin support.
8736         * plugin/configfrag.ac: Likewise.
8737         * plugin/plugin-gcn.c: New file.
8738         * configure: Regenerate.
8739         * Makefile.in: Regenerate.
8740         * testsuite/Makefile.in: Regenerate.
8742 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8744         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8745         and use team_malloc variants.
8746         (gomp_gcn_exit_kernel): Use team_free.
8747         * libgomp.h (TEAM_ARENA_SIZE): Define.
8748         (TEAM_ARENA_START): Define.
8749         (TEAM_ARENA_FREE): Define.
8750         (TEAM_ARENA_END): Define.
8751         (team_malloc): New function.
8752         (team_malloc_cleared): New function.
8753         (team_free): New function.
8754         * team.c (gomp_new_team): Initialize and use team_malloc.
8755         (free_team): Use team_free.
8756         (gomp_free_thread): Use team_free.
8757         (gomp_pause_host): Use team_free.
8758         * work.c (gomp_init_work_share): Use team_malloc.
8759         (gomp_fini_work_share): Use team_free.
8761 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8762             Kwok Cheung Yeung  <kcy@codesourcery.com>
8763             Julian Brown  <julian@codesourcery.com>
8764             Tom de Vries  <tom@codesourcery.com>
8766         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8767         * Makefile.in: Regenerate.
8768         * config.h.in (PLUGIN_GCN): Add new undef.
8769         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8770         * config/gcn/affinity-fmt.c: New file.
8771         * config/gcn/bar.c: New file.
8772         * config/gcn/bar.h: New file.
8773         * config/gcn/doacross.h: New file.
8774         * config/gcn/icv-device.c: New file.
8775         * config/gcn/oacc-target.c: New file.
8776         * config/gcn/simple-bar.h: New file.
8777         * config/gcn/target.c: New file.
8778         * config/gcn/task.c: New file.
8779         * config/gcn/team.c: New file.
8780         * config/gcn/time.c: New file.
8781         * configure.ac: Add amdgcn*-*-*.
8782         * configure: Regenerate.
8783         * configure.tgt: Add amdgcn*-*-*.
8784         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8785         * libgomp.h (gcn_thrs): Add amdgcn variant.
8786         (set_gcn_thrs): Likewise.
8787         (gomp_thread): Likewise.
8788         * oacc-int.h (goacc_thread): Likewise.
8789         * oacc-target.c: New file.
8790         * openacc.f90 (acc_device_gcn): New parameter.
8791         * openacc.h (acc_device_t): Add acc_device_gcn.
8792         * team.c (gomp_free_pool_helper): Add amdgcn support.
8794 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8795             Julian Brown  <julian@codesourcery.com>
8797         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8798         parameter.
8799         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8800         queue constructor.
8801         * oacc-host.c (host_openacc_async_construct): Add device parameter.
8802         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8803         device parameter.
8805 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
8807         * configure.tgt (nvptx*-*-*): Add "accel" directory.
8808         * config/nvptx/libgomp-plugin.c: Move ...
8809         * config/accel/libgomp-plugin.c: ... to here.
8810         * config/nvptx/lock.c: Move ...
8811         * config/accel/lock.c: ... to here.
8812         * config/nvptx/mutex.c: Move ...
8813         * config/accel/mutex.c: ... to here.
8814         * config/nvptx/mutex.h: Move ...
8815         * config/accel/mutex.h: ... to here.
8816         * config/nvptx/oacc-async.c: Move ...
8817         * config/accel/oacc-async.c: ... to here.
8818         * config/nvptx/oacc-cuda.c: Move ...
8819         * config/accel/oacc-cuda.c: ... to here.
8820         * config/nvptx/oacc-host.c: Move ...
8821         * config/accel/oacc-host.c: ... to here.
8822         * config/nvptx/oacc-init.c: Move ...
8823         * config/accel/oacc-init.c: ... to here.
8824         * config/nvptx/oacc-mem.c: Move ...
8825         * config/accel/oacc-mem.c: ... to here.
8826         * config/nvptx/oacc-plugin.c: Move ...
8827         * config/accel/oacc-plugin.c: ... to here.
8828         * config/nvptx/omp-lock.h: Move ...
8829         * config/accel/omp-lock.h: ... to here.
8830         * config/nvptx/openacc.f90: Move ...
8831         * config/accel/openacc.f90: ... to here.
8832         * config/nvptx/pool.h: Move ...
8833         * config/accel/pool.h: ... to here.
8834         * config/nvptx/proc.c: Move ...
8835         * config/accel/proc.c: ... to here.
8836         * config/nvptx/ptrlock.c: Move ...
8837         * config/accel/ptrlock.c: ... to here.
8838         * config/nvptx/ptrlock.h: Move ...
8839         * config/accel/ptrlock.h: ... to here.
8840         * config/nvptx/sem.c: Move ...
8841         * config/accel/sem.c: ... to here.
8842         * config/nvptx/sem.h: Move ...
8843         * config/accel/sem.h: ... to here.
8844         * config/nvptx/thread-stacksize.h: Move ...
8845         * config/accel/thread-stacksize.h: ... to here.
8847 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
8848             Tobias Burnus  <tobias@codesourcery.com>
8849             Frederik Harwath  <frederik@codesourcery.com>
8850             Thomas Schwinge  <thomas@codesourcery.com>
8852         libgomp/
8853         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8854         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8855         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8857 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
8858             Kwok Cheung Yeung  <kcy@codesourcery.com>
8860         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8861         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8863 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
8865         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8867         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8868         run'.
8869         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8870         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8872 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8874         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8875         Add expected warnings about missing reduction clauses.
8876         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8877         Likewise.
8878         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8879         Likewise.
8880         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8881         Likewise.
8883 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8885         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8886         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8887         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8888         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8889         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8890         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8892 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
8894         PR fortran/92305
8895         * testsuite/libgomp.fortran/allocatable2.f90: Use
8896         unique numbers with 'stop'.
8897         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8898         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8899         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8900         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8901         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8903 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
8905         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8906         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8907         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8908         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8909         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8910         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8912 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8914         * testsuite/libgomp.fortran/target9.f90: New.
8916 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
8918         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8919         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8920         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8921         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8922         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8923         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8924         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8925         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8926         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8927         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8928         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8929         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8930         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8931         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8932         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8933         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8934         * testsuite/libgomp.fortran/associate1.f90: Ditto.
8935         * testsuite/libgomp.fortran/associate2.f90: Ditto.
8936         * testsuite/libgomp.fortran/associate3.f90: Ditto.
8937         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8938         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8939         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8940         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8941         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8942         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8943         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8944         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8945         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8946         * testsuite/libgomp.fortran/character1.f90: Ditto.
8947         * testsuite/libgomp.fortran/character2.f90: Ditto.
8948         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8949         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8950         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8951         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8952         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8953         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8954         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8955         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8956         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8957         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8958         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8959         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8960         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8961         * testsuite/libgomp.fortran/do1.f90: Ditto.
8962         * testsuite/libgomp.fortran/do2.f90: Ditto.
8963         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8964         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8965         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8966         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8967         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8968         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8969         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8970         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8971         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8972         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8973         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8974         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8975         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8976         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8977         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8978         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8979         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8980         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8981         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8982         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8983         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8984         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8985         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8986         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8987         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8988         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8989         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8990         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8991         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8992         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8993         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8994         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
8995         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
8996         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
8997         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
8998         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
8999         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9000         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9001         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9002         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9003         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9004         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9005         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9006         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9007         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9008         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9009         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9010         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9011         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9012         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9013         * testsuite/libgomp.fortran/lib1.f90: Ditto.
9014         * testsuite/libgomp.fortran/lib4.f90: Ditto.
9015         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9016         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9017         * testsuite/libgomp.fortran/nested1.f90: Ditto.
9018         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9019         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9020         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9021         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9022         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9023         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9024         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9025         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9026         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9027         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9028         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9029         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9030         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9031         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9032         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9033         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9034         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9035         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9036         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9037         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9038         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9039         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9040         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9041         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9042         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9043         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9044         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9045         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9046         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9047         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9048         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9049         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9050         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9051         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9052         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9053         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9054         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9055         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9056         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9057         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9058         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9059         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9060         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9061         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9062         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9063         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9064         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9065         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9066         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9067         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9068         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9069         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9070         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9071         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9072         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9073         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9074         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9075         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9076         * testsuite/libgomp.fortran/reference1.f90: Ditto.
9077         * testsuite/libgomp.fortran/reference2.f90: Ditto.
9078         * testsuite/libgomp.fortran/retval1.f90: Ditto.
9079         * testsuite/libgomp.fortran/retval2.f90: Ditto.
9080         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9081         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9082         * testsuite/libgomp.fortran/simd1.f90: Ditto.
9083         * testsuite/libgomp.fortran/simd2.f90: Ditto.
9084         * testsuite/libgomp.fortran/simd3.f90: Ditto.
9085         * testsuite/libgomp.fortran/simd4.f90: Ditto.
9086         * testsuite/libgomp.fortran/simd5.f90: Ditto.
9087         * testsuite/libgomp.fortran/simd6.f90: Ditto.
9088         * testsuite/libgomp.fortran/simd7.f90: Ditto.
9089         * testsuite/libgomp.fortran/stack.f90: Ditto.
9090         * testsuite/libgomp.fortran/strassen.f90: Ditto.
9091         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9092         * testsuite/libgomp.fortran/tabs2.f: Ditto.
9093         * testsuite/libgomp.fortran/target1.f90: Ditto.
9094         * testsuite/libgomp.fortran/target2.f90: Ditto.
9095         * testsuite/libgomp.fortran/target3.f90: Ditto.
9096         * testsuite/libgomp.fortran/target4.f90: Ditto.
9097         * testsuite/libgomp.fortran/target5.f90: Ditto.
9098         * testsuite/libgomp.fortran/target6.f90: Ditto.
9099         * testsuite/libgomp.fortran/target7.f90: Ditto.
9100         * testsuite/libgomp.fortran/target8.f90: Ditto.
9101         * testsuite/libgomp.fortran/task1.f90: Ditto.
9102         * testsuite/libgomp.fortran/task2.f90: Ditto.
9103         * testsuite/libgomp.fortran/task3.f90: Ditto.
9104         * testsuite/libgomp.fortran/task4.f90: Ditto.
9105         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9106         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9107         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9108         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9109         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9110         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9111         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9112         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9113         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9114         * testsuite/libgomp.fortran/udr1.f90: Ditto.
9115         * testsuite/libgomp.fortran/udr10.f90: Ditto.
9116         * testsuite/libgomp.fortran/udr11.f90: Ditto.
9117         * testsuite/libgomp.fortran/udr12.f90: Ditto.
9118         * testsuite/libgomp.fortran/udr13.f90: Ditto.
9119         * testsuite/libgomp.fortran/udr14.f90: Ditto.
9120         * testsuite/libgomp.fortran/udr15.f90: Ditto.
9121         * testsuite/libgomp.fortran/udr2.f90: Ditto.
9122         * testsuite/libgomp.fortran/udr3.f90: Ditto.
9123         * testsuite/libgomp.fortran/udr4.f90: Ditto.
9124         * testsuite/libgomp.fortran/udr5.f90: Ditto.
9125         * testsuite/libgomp.fortran/udr6.f90: Ditto.
9126         * testsuite/libgomp.fortran/udr7.f90: Ditto.
9127         * testsuite/libgomp.fortran/udr8.f90: Ditto.
9128         * testsuite/libgomp.fortran/udr9.f90: Ditto.
9129         * testsuite/libgomp.fortran/vla1.f90: Ditto.
9130         * testsuite/libgomp.fortran/vla2.f90: Ditto.
9131         * testsuite/libgomp.fortran/vla3.f90: Ditto.
9132         * testsuite/libgomp.fortran/vla4.f90: Ditto.
9133         * testsuite/libgomp.fortran/vla5.f90: Ditto.
9134         * testsuite/libgomp.fortran/vla6.f90: Ditto.
9135         * testsuite/libgomp.fortran/vla7.f90: Ditto.
9136         * testsuite/libgomp.fortran/vla8.f90: Ditto.
9137         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9138         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9140 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
9142         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9143         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9144         Ditto; add 'dg-do run' for torture testing.
9145         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
9146         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9147         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9148         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9149         * testsuite/libgomp.fortran/pr28390.f: Ditto.
9150         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9151         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9152         * testsuite/libgomp.fortran/task2.f90: Ditto.
9153         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9154         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9155         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9156         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9157         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9158         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9160 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
9162         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9163         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9164         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9165         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9166         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9167         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9168         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9169         Use 'stop' not abort().
9170         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9171         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9172         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9173         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9174         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9175         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9176         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9177         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9178         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9179         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9180         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9181         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9182         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9183         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9184         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9185         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9186         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9187         Ditto.
9188         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9189         Ditto.
9190         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9191         Ditto.
9192         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9193         Ditto.
9194         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9195         Ditto.
9196         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9197         Ditto.
9198         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9199         Ditto.
9200         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9201         Ditto.
9202         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9203         Ditto.
9204         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9205         Ditto.
9206         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9207         Ditto.
9208         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9209         Ditto.
9210         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9211         Ditto.
9212         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9213         Ditto.
9214         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9215         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9216         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9217         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9218         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9219         Likewise and also add 'dg-do run'.
9220         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9221         Ditto.
9223 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
9224             Tobias Burnus  <tobias@codesourcery.com>
9226         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9227         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9228         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9230 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
9232         PR libgomp/92081
9233         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9234         than 0.
9236 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
9238         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9239         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9241 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
9243         PR middle-end/92036
9244         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9245         file.
9247 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
9249         PR testsuite/91884
9250         * testsuite/libgomp.fortran/fortran.exp: Conditionally
9251         add -lquadmath.
9252         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9254 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
9256         PR libgomp/92028
9257         * target.c (gomp_map_vars_internal): Readd the previous
9258         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9259         though do that just in the !not_found_cnt case.
9261 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
9263         * gfortran.dg/gomp/target-simd.f90: New.
9265 2019-10-02  Julian Brown  <julian@codesourcery.com>
9266             Cesar Philippidis  <cesar@codesourcery.com>
9268         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9269         * target.c (FIELD_TGT_EMPTY): Define.
9270         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
9271         as switch instead of list of ifs.
9272         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9274 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
9276         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9277         include. Replace alloca () with __builtin_alloca ().
9278         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9280 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
9282         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9283         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9284         * oacc-parallel.c: Don't include "libgomp_g.h".
9285         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9286         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9287         * aclocal.m4: Regenerated.
9288         * config.h.in: Regenerated.
9289         * configure: Regenerated.
9290         * Makefile.in: Regenerated.
9292 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
9294         * libgomp_g.h: Include stdint.h instead of gstdint.h.
9296 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
9298         * configure: Regenerate.
9300 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
9302         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9303         string is initialized.
9305 2019-09-06  Florian Weimer  <fweimer@redhat.com>
9307         * configure: Regenerate.
9309 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
9311         PR other/79543
9312         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9313         scanning to conform to the GNU Coding Standards.
9314         * configure: Regenerate.
9316 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
9318         PR libgomp/91530
9319         * testsuite/libgomp.c/scan-21.c: New test.
9320         * testsuite/libgomp.c/scan-22.c: New test.
9322 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
9324         PR libgomp/91530
9325         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9326         targets.
9327         * testsuite/libgomp.c/scan-12.c: Likewise.
9328         * testsuite/libgomp.c/scan-13.c: Likewise.
9329         * testsuite/libgomp.c/scan-14.c: Likewise.
9330         * testsuite/libgomp.c/scan-15.c: Likewise.
9331         * testsuite/libgomp.c/scan-16.c: Likewise.
9332         * testsuite/libgomp.c/scan-17.c: Likewise.
9333         * testsuite/libgomp.c/scan-18.c: Likewise.
9334         * testsuite/libgomp.c/scan-19.c: Likewise.
9335         * testsuite/libgomp.c/scan-20.c: Likewise.
9336         * testsuite/libgomp.c++/scan-9.C: Likewise.
9337         * testsuite/libgomp.c++/scan-10.C: Likewise.
9338         * testsuite/libgomp.c++/scan-11.C: Likewise.
9339         * testsuite/libgomp.c++/scan-12.C: Likewise.
9340         * testsuite/libgomp.c++/scan-14.C: Likewise.
9341         * testsuite/libgomp.c++/scan-15.C: Likewise.
9342         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
9343         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9344         * testsuite/libgomp.c++/scan-16.C: Likewise.
9346 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
9348         PR fortran/91473
9349         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9350         -std=legacy so invalid code in the test case is accepted.
9352 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
9354         PR fortran/91422
9355         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9356         dimension.
9358 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
9360         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9361         perform the lookup in the first loop only if !not_found_cnt, otherwise
9362         perform lookups for it in the second loop guarded with
9363         if (not_found_cnt || has_firstprivate).
9364         * testsuite/libgomp.c/target-37.c: New test.
9365         * testsuite/libgomp.c++/target-22.C: New test.
9367 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
9369         * testsuite/libgomp.c/target-18.c (struct S): New type.
9370         (foo): Use use_device_addr clause instead of use_device_ptr clause
9371         where required by OpenMP 5.0, add further tests for both use_device_ptr
9372         and use_device_addr clauses.
9373         * testsuite/libgomp.c++/target-9.C (struct S): New type.
9374         (foo): Use use_device_addr clause instead of use_device_ptr clause
9375         where required by OpenMP 5.0, add further tests for both use_device_ptr
9376         and use_device_addr clauses.  Add t and u arguments.
9377         (main): Adjust caller.
9379 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
9381         * testsuite/libgomp.c++/loop-13.C: New test.
9382         * testsuite/libgomp.c++/loop-14.C: New test.
9383         * testsuite/libgomp.c++/loop-15.C: New test.
9385 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9387         PR middle-end/91301
9388         * testsuite/libgomp.c++/for-27.C: New test.
9390 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
9392         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9393         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9395 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9397         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9399 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
9401         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9402         * testsuite/libgomp.c++/scan-16.C: Likewise.
9404 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
9406         * testsuite/libgomp.c/scan-19.c: New test.
9407         * testsuite/libgomp.c/scan-20.c: New test.
9409         * testsuite/libgomp.c/scan-11.c: New test.
9410         * testsuite/libgomp.c/scan-12.c: New test.
9411         * testsuite/libgomp.c/scan-13.c: New test.
9412         * testsuite/libgomp.c/scan-14.c: New test.
9413         * testsuite/libgomp.c/scan-15.c: New test.
9414         * testsuite/libgomp.c/scan-16.c: New test.
9415         * testsuite/libgomp.c/scan-17.c: New test.
9416         * testsuite/libgomp.c/scan-18.c: New test.
9417         * testsuite/libgomp.c++/scan-9.C: New test.
9418         * testsuite/libgomp.c++/scan-10.C: New test.
9419         * testsuite/libgomp.c++/scan-11.C: New test.
9420         * testsuite/libgomp.c++/scan-12.C: New test.
9421         * testsuite/libgomp.c++/scan-13.C: New test.
9422         * testsuite/libgomp.c++/scan-14.C: New test.
9423         * testsuite/libgomp.c++/scan-15.C: New test.
9424         * testsuite/libgomp.c++/scan-16.C: New test.
9426 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
9428         * testsuite/libgomp.c/scan-9.c: New test.
9429         * testsuite/libgomp.c/scan-10.c: New test.
9431 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
9433         * testsuite/libgomp.c++/scan-1.C: New test.
9434         * testsuite/libgomp.c++/scan-2.C: New test.
9435         * testsuite/libgomp.c++/scan-3.C: New test.
9436         * testsuite/libgomp.c++/scan-4.C: New test.
9437         * testsuite/libgomp.c++/scan-5.C: New test.
9438         * testsuite/libgomp.c++/scan-6.C: New test.
9439         * testsuite/libgomp.c++/scan-7.C: New test.
9440         * testsuite/libgomp.c++/scan-8.C: New test.
9441         * testsuite/libgomp.c/scan-1.c: New test.
9442         * testsuite/libgomp.c/scan-2.c: New test.
9443         * testsuite/libgomp.c/scan-3.c: New test.
9444         * testsuite/libgomp.c/scan-4.c: New test.
9445         * testsuite/libgomp.c/scan-5.c: New test.
9446         * testsuite/libgomp.c/scan-6.c: New test.
9447         * testsuite/libgomp.c/scan-7.c: New test.
9448         * testsuite/libgomp.c/scan-8.c: New test.
9450 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9452         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9453         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9454         Likewise.
9456         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9457         check.
9459 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
9461         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9462         file.
9464 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
9466         PR fortran/90743
9467         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9468         case.
9469         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9470         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9471         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9472         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9474         PR testsuite/90861
9475         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9477         PR middle-end/90862
9478         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9480 2019-06-16  Tom de Vries  <tdevries@suse.de>
9482         PR tree-optimization/89376
9483         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9485 2019-06-15  Tom de Vries  <tdevries@suse.de>
9487         PR tree-optimization/89713
9488         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9489         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9491 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
9493         PR middle-end/90779
9494         * testsuite/libgomp.c/pr90779.c: New test.
9495         * testsuite/libgomp.fortran/pr90779.f90: New test.
9497 2019-06-15  Tom de Vries  <tdevries@suse.de>
9499         PR tree-optimization/90009
9500         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9502 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
9504         PR tree-optimization/89713
9505         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9507 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
9509         PR target/90811
9510         * testsuite/libgomp.c/pr90811.c: New test.
9512 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
9514         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9515         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9517 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
9519         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9520         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9521         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9522         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9524 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9526         * configure.ac: Call AX_COUNT_CPUS.
9527         Substitute CPU_COUNT.
9528         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9529         count fallback.
9530         * aclocal.m4: Regenerate.
9531         * configure: Regenerate.
9532         * Makefile.in, testsuite/Makefile.in: Regenerate.
9534 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
9536         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9537         to ...
9538         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9539         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9540         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9542 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
9544         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9546         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9548         PR libgomp/90641
9549         * work.c (gomp_init_work_share): Instead of aligning final ordered
9550         value to multiples of long long alignment, align to that the
9551         first part (ordered team ids) and if inline_ordered_team_ids
9552         is not on a long long alignment boundary within the structure,
9553         use __alignof__ (long long) - 1 pad size always.
9554         * loop.c (GOMP_loop_start): Fix *mem computation if
9555         inline_ordered_team_ids is not aligned on long long alignment boundary
9556         within the structure.
9557         * loop-ull.c (GOMP_loop_ull_start): Likewise.
9558         * sections.c (GOMP_sections2_start): Likewise.
9560 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
9562         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9563         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9565         PR libgomp/90585
9566         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
9567         HAVE_INTTYPES_H is defined.
9568         (print_uint64_t): New typedef.
9569         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9570         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9571         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9572         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
9573         before casting to void *.
9574         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9575         * oacc-mem.c: Don't include config.h nor stdint.h.
9576         * target.c: Don't include config.h.
9577         * oacc-cuda.c: Likewise.
9578         * oacc-host.c: Don't include stdint.h.
9580 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
9582         PR libgomp/90527
9583         * alloc.c (_GNU_SOURCE): Define.
9585 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
9587         * acc_prof.h: New file.
9588         * oacc-profiling.c: Likewise.
9589         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9590         Add these, respectively.
9591         * Makefile.in: Regenerate.
9592         * env.c (initialize_env): Call goacc_profiling_initialize.
9593         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9594         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9595         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9596         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9597         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9598         acc_prof_register, acc_prof_unregister, and acc_register_library.
9599         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9600         GOMP_PLUGIN_goacc_thread.
9601         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9602         prof_callbacks_enabled members.
9603         (goacc_prof_enabled, goacc_profiling_initialize)
9604         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9605         (goacc_profiling_dispatch): Declare.
9606         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9607         (GOACC_PROFILING_SETUP_P): Define.
9608         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9609         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9610         OpenACC Profiling Interface.
9611         * oacc-cuda.c (acc_get_current_cuda_device)
9612         (acc_get_current_cuda_context, acc_get_cuda_stream)
9613         (acc_set_cuda_stream): Likewise.
9614         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9615         (acc_init, acc_set_device_type, acc_get_device_type)
9616         (acc_get_device_num, goacc_lazy_initialize): Likewise.
9617         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9618         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9619         (acc_unmap_data, present_create_copy, delete_copyout)
9620         (update_dev_host): Likewise.
9621         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9622         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9623         Likewise.
9624         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9625         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9626         Likewise.
9627         * libgomp.texi: Update.
9628         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9629         file.
9630         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9631         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9632         Likewise.
9633         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9634         Likewise.
9635         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9636         Likewise.
9637         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9638         Likewise.
9640 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
9642         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9643         (struct goacc_asyncqueue_list): Likewise.
9644         (goacc_aq): Likewise.
9645         (goacc_aq_list): Likewise.
9646         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9647         (GOMP_OFFLOAD_openacc_async_test): Remove.
9648         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9649         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9650         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9651         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9652         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9653         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9654         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9655         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9656         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9657         (GOMP_OFFLOAD_openacc_async_exec): Declare.
9658         (GOMP_OFFLOAD_openacc_async_construct): Declare.
9659         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9660         (GOMP_OFFLOAD_openacc_async_test): Declare.
9661         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9662         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9663         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9664         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9665         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9667         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9668         (gomp_acc_insert_pointer): Adjust declaration.
9669         (gomp_copy_host2dev): New declaration.
9670         (gomp_copy_dev2host): Likewise.
9671         (gomp_map_vars_async): Likewise.
9672         (gomp_unmap_tgt): Likewise.
9673         (gomp_unmap_vars_async): Likewise.
9674         (gomp_fini_device): Likewise.
9676         * oacc-async.c (get_goacc_thread): New function.
9677         (get_goacc_thread_device): New function.
9678         (lookup_goacc_asyncqueue): New function.
9679         (get_goacc_asyncqueue): New function.
9680         (acc_async_test): Adjust code to use new async design.
9681         (acc_async_test_all): Likewise.
9682         (acc_wait): Likewise.
9683         (acc_wait_async): Likewise.
9684         (acc_wait_all): Likewise.
9685         (acc_wait_all_async): Likewise.
9686         (goacc_async_free): New function.
9687         (goacc_init_asyncqueues): Likewise.
9688         (goacc_fini_asyncqueues): Likewise.
9689         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9690         design.
9691         (acc_set_cuda_stream): Likewise.
9692         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9693         (host_openacc_register_async_cleanup): Remove.
9694         (host_openacc_async_exec): New function.
9695         (host_openacc_async_test): Adjust parameters.
9696         (host_openacc_async_test_all): Remove.
9697         (host_openacc_async_wait): Remove.
9698         (host_openacc_async_wait_async): Remove.
9699         (host_openacc_async_wait_all): Remove.
9700         (host_openacc_async_wait_all_async): Remove.
9701         (host_openacc_async_set_async): Remove.
9702         (host_openacc_async_synchronize): New function.
9703         (host_openacc_async_serialize): New function.
9704         (host_openacc_async_host2dev): New function.
9705         (host_openacc_async_dev2host): New function.
9706         (host_openacc_async_queue_callback): New function.
9707         (host_openacc_async_construct): New function.
9708         (host_openacc_async_destruct): New function.
9709         (struct gomp_device_descr host_dispatch): Remove initialization of old
9710         interface, add initialization of new async sub-struct.
9711         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9712         (goacc_attach_host_thread_to_device): Remove old async code usage.
9713         * oacc-int.h (goacc_init_asyncqueues): New declaration.
9714         (goacc_fini_asyncqueues): Likewise.
9715         (goacc_async_copyout_unmap_vars): Likewise.
9716         (goacc_async_free): Likewise.
9717         (get_goacc_asyncqueue): Likewise.
9718         (lookup_goacc_asyncqueue): Likewise.
9719         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9720         design.
9721         (present_create_copy): Adjust code to use new async design.
9722         (delete_copyout): Likewise.
9723         (update_dev_host): Likewise.
9724         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9725         async design.
9726         (gomp_acc_remove_pointer): Adjust code to use new async design.
9727         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9728         design.
9729         (GOACC_enter_exit_data): Likewise.
9730         (goacc_wait): Likewise.
9731         (GOACC_update): Likewise.
9732         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9733         when called, warn as obsolete in comment.
9734         * target.c (goacc_device_copy_async): New function.
9735         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9736         add goacc_device_copy_async case.
9737         (gomp_copy_dev2host): Likewise.
9738         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9739         (gomp_map_pointer): Likewise.
9740         (gomp_map_fields_existing): Likewise.
9741         (gomp_map_vars_internal): New always_inline function, renamed from
9742         gomp_map_vars.
9743         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9744         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9745         passing goacc_asyncqueue argument.
9746         (gomp_unmap_tgt): Remove static, add attribute_hidden.
9747         (gomp_unref_tgt): New function.
9748         (gomp_unmap_vars_internal): New always_inline function, renamed from
9749         gomp_unmap_vars.
9750         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9751         (gomp_unmap_vars_async): Implement by calling
9752         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9753         (gomp_fini_device): New function.
9754         (gomp_exit_data): Adjust gomp_copy_dev2host call.
9755         (gomp_load_plugin_for_device): Remove old interface, adjust to load
9756         new async interface.
9757         (gomp_target_fini): Adjust code to call gomp_fini_device.
9759         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9760         (struct ptx_stream): Remove.
9761         (struct nvptx_thread): Remove current_stream field.
9762         (cuda_map_create): Remove.
9763         (cuda_map_destroy): Remove.
9764         (map_init): Remove.
9765         (map_fini): Remove.
9766         (map_pop): Remove.
9767         (map_push): Remove.
9768         (struct goacc_asyncqueue): Define.
9769         (struct nvptx_callback): Define.
9770         (struct ptx_free_block): Define.
9771         (struct ptx_device): Remove null_stream, active_streams, async_streams,
9772         stream_lock, and next fields.
9773         (enum ptx_event_type): Remove.
9774         (struct ptx_event): Remove.
9775         (ptx_event_lock): Remove.
9776         (ptx_events): Remove.
9777         (init_streams_for_device): Remove.
9778         (fini_streams_for_device): Remove.
9779         (select_stream_for_async): Remove.
9780         (nvptx_init): Remove ptx_events and ptx_event_lock references.
9781         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9782         case.
9783         (nvptx_open_device): Add free_blocks initialization, remove
9784         init_streams_for_device call.
9785         (nvptx_close_device): Remove fini_streams_for_device call, add
9786         free_blocks destruct code.
9787         (event_gc): Remove.
9788         (event_add): Remove.
9789         (nvptx_exec): Adjust parameters and code.
9790         (nvptx_free): Likewise.
9791         (nvptx_host2dev): Remove.
9792         (nvptx_dev2host): Remove.
9793         (nvptx_set_async): Remove.
9794         (nvptx_async_test): Remove.
9795         (nvptx_async_test_all): Remove.
9796         (nvptx_wait): Remove.
9797         (nvptx_wait_async): Remove.
9798         (nvptx_wait_all): Remove.
9799         (nvptx_wait_all_async): Remove.
9800         (nvptx_get_cuda_stream): Remove.
9801         (nvptx_set_cuda_stream): Remove.
9802         (GOMP_OFFLOAD_alloc): Adjust code.
9803         (GOMP_OFFLOAD_free): Likewise.
9804         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9805         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9806         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9807         (GOMP_OFFLOAD_openacc_async_wait): Remove.
9808         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9809         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9810         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9811         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9812         (cuda_free_argmem): New function.
9813         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9814         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9815         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9816         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9817         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9818         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9819         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9820         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9821         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9822         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9823         (cuda_callback_wrapper): New function.
9824         (cuda_memcpy_sanity_check): New function.
9825         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9826         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9827         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9828         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9830 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
9832         PR target/87835
9833         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9835 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
9837         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9839 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
9841         * team.c (gomp_team_start): Initialize pool->threads[0].
9843 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
9845         * testsuite/libgomp.oacc-c++/c++.exp: Specify
9846         "-foffload=$offload_target".
9847         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9848         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9849         * testsuite/lib/libgomp.exp
9850         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9851         as (conceptually) merged into
9852         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
9853         users.
9855         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9856         * testsuite/libgomp-test-support.exp.in: Adjust.
9857         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
9858         openacc_device_types_s.
9859         (offload_target_to_openacc_device_type): New proc.
9860         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9861         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9862         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9863         * Makefile.in: Regenerate.
9864         * configure: Likewise.
9865         * testsuite/Makefile.in: Likewise.
9867         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9868         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9869         instead of OFFLOAD_TARGETS.
9870         * target.c (gomp_target_init): Adjust.
9871         * testsuite/libgomp-test-support.exp.in: Likewise.
9872         * testsuite/lib/libgomp.exp: Likewise.  Populate
9873         openacc_device_types_s instead of offload_targets_s_openacc.
9874         (check_effective_target_openacc_nvidia_accel_selected)
9875         (check_effective_target_openacc_host_selected): Adjust.
9876         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9877         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9878         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9879         * Makefile.in: Regenerate.
9880         * config.h.in: Likewise.
9881         * configure: Likewise.
9882         * testsuite/Makefile.in: Likewise.
9884         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9885         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
9886         "offloading: supported, but hardware not accessible".
9887         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9888         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9890 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
9892         PR c/87924
9893         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9894         goacc_wait().
9895         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9896         and related adjustment.
9898 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
9900         PR c++/88988
9901         * testsuite/libgomp.c++/pr88988.C: New test.
9903 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
9905         PR middle-end/89002
9906         * testsuite/libgomp.c/pr89002.c: New test.
9908 2019-01-28  Richard Biener  <rguenther@suse.de>
9910         PR testsuite/89064
9911         PR tree-optimization/86865
9912         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9914 2019-01-24  Tom de Vries  <tdevries@suse.de>
9916         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9917         once instantiated_devices drops to 0.
9919 2019-01-23  Tom de Vries  <tdevries@suse.de>
9921         PR target/PR88946
9922         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9923         cuMemFree.
9924         (nvptx_exec): Don't call map_push if mapnum == 0.
9925         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9927 2019-01-23  Tom de Vries  <tdevries@suse.de>
9929         PR target/88941
9930         PR target/88939
9931         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9932         (map_fini): Remove "assert (!s->map->active)".
9933         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9935 2019-01-23  Tom de Vries  <tdevries@suse.de>
9937         PR target/87835
9938         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9939         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9941 2019-01-15  Tom de Vries  <tdevries@suse.de>
9943         PR target/80547
9944         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9945         New test.
9947 2019-01-12  Tom de Vries  <tdevries@suse.de>
9949         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9950         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9951         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9952         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9954 2019-01-12  Tom de Vries  <tdevries@suse.de>
9956         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9958 2019-01-12  Tom de Vries  <tdevries@suse.de>
9960         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9961         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9962         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9964 2019-01-12  Tom de Vries  <tdevries@suse.de>
9966         PR target/85486
9967         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9968         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9970 2019-01-12  Tom de Vries  <tdevries@suse.de>
9972         PR target/85381
9973         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9974         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9976 2019-01-12  Tom de Vries  <tdevries@suse.de>
9978         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9979         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9980         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9982 2019-01-12  Tom de Vries  <tdevries@suse.de>
9984         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9985         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9986         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9988 2019-01-12  Tom de Vries  <tdevries@suse.de>
9990         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9991         resources diagnostic.
9993 2019-01-12  Tom de Vries  <tdevries@suse.de>
9995         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
9996         vector length to be 128.
9997         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
9998         length 2097152 to be reduced to 1024 instead of 32.
10000 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
10001             James Norris  <jnorris@codesourcery.com>
10003         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10004         Library Routines", and "Environment Variables".
10006 2019-01-11  Tom de Vries  <tdevries@suse.de>
10008         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10009         num_workers 16.
10011 2019-01-11  Tom de Vries  <tdevries@suse.de>
10013         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10014         -foffload=-w.
10015         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10016         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10017         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10018         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10020 2019-01-11  Tom de Vries  <tdevries@suse.de>
10022         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10023         test.
10025 2019-01-10  Nathan Sidwell  <nathan@acm.org>
10026             Julian Brown  <julian@codesourcery.com>
10028         PR lto/71959
10029         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10030         * testsuite/libgomp.oacc-c++/pr71959.C: New.
10032 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10034         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10035         and paste code.
10037 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10039         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
10040         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10041         write.
10043 2019-01-09  Tom de Vries  <tdevries@suse.de>
10045         PR target/88756
10046         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10047         #define instead of "const int".
10048         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10049         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10050         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10051         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10053 2019-01-09  Tom de Vries  <tdevries@suse.de>
10055         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10056         one worker.
10058 2019-01-07  Tom de Vries  <tdevries@suse.de>
10060         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10061         GOMP_OPENACC_DIM argument.
10063 2019-01-03  Tom de Vries  <tdevries@suse.de>
10065         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10066         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10068 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10070         Update copyright years.
10072 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
10074         * libgomp.texi: Bump @copying's copyright year.
10076 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10078         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10079         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10080         (GOACC_declare): Redefine the "device" argument to "flags".
10082 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
10083             Cesar Philippidis  <cesar@codesourcery.com>
10085         * target.c (struct gomp_coalesce_chunk): New structure.
10086         (struct gomp_coalesce_buf): Update the chunks member to use that
10087         type.  Adjust all users.
10089 2018-12-19  Tom de Vries  <tdevries@suse.de>
10091         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10092         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10093         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10095 2018-12-19  Tom de Vries  <tdevries@suse.de>
10097         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10098         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10099         gcc/testsuite/gcc.dg/goacc.
10100         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10102 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10103             Chung-Lin Tang  <cltang@codesourcery.com>
10105         * oacc-mem.c (acc_present_or_create): Remove definition and change
10106         to alias of acc_create.
10107         (acc_present_or_copyin): Remove definition and change to alias of
10108         acc_copyin.
10109         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10110         of acc_present_or_create.
10111         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10112         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10113         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10114         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10115         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10116         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10117         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10118         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10119         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10120         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10121         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10122         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10123         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10124         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10125         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10126         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10128 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10130         PR libgomp/88495
10131         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10132         "identical parameters".
10133         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10134         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10136         PR libgomp/88484
10137         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10138         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10140         PR libgomp/88407
10141         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10142         (nvptx_wait_async): Unseen async-argument is a no-op.
10143         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10144         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10145         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10146         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10147         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10148         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10149         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
10150         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10151         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
10153         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10154         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10156 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
10158         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10159         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10160         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10162 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
10164         PR libgomp/88370
10165         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10166         (acc_set_cuda_stream): Clarify.
10167         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10168         "async_valid_p".
10169         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10170         acc_async_sync".
10171         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10172         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10173         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10174         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10176 2018-12-14  Tom de Vries  <tdevries@suse.de>
10178         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10179         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10180         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10181         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10182         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10184 2018-12-13  Tom de Vries  <tdevries@suse.de>
10186         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10187         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10188         * fortran.c (omp_display_affinity_): ... here.
10189         * libgomp.h (gomp_print_string): Declare.
10190         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
10191         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10192         write.
10194 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
10196         PR libgomp/88460
10197         * testsuite/libgomp.c++/for-24.C (results): Include it in
10198         omp declare target region.
10199         (main): Use map (always, tofrom: results) instead of
10200         map (tofrom: results).
10202 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
10204         PR fortran/88463
10205         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10206         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10208         * testsuite/libgomp.c-c++-common/for-16.c: New test.
10210 2018-12-12  Andreas Schwab  <schwab@suse.de>
10212         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10213         clobbered.
10215 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
10217         PR fortran/88411
10218         * testsuite/libgomp.fortran/async_io_8.f90: New test.
10220 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
10221             Jakub Jelinek  <jakub@redhat.com>
10223         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10224         devicep->host2dev_func.
10226 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
10228         PR libgomp/87995
10229         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10230         tls_runtime effective target.
10231         (t): New threadprivate variable.
10232         (main): Set t in threads which execute iterations of the worksharing
10233         loop.  Propagate that to the task after the loop and don't abort
10234         if the current taskgroup hasn't been cancelled.
10236 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
10238         * testsuite/libgomp.c/task-reduction-3.c: New test.
10240         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10242 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
10244         PR libgomp/88288
10245         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10246         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10248 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
10250         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10252 2018-10-19  Richard Biener  <rguenther@suse.de>
10254         PR tree-optimization/88182
10255         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10257 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
10259         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10260         (RUNTEST): Don't define.
10261         (RUNTESTDEFAULTFLAGS): Add.
10262         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10263         (distclean-am): Depend on distclean-DEJAGNU.
10264         (check-am): If -j% option is present in MFLAGS and if
10265         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10266         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10267         * testsuite/Makefile.in: Regenerated.
10269 2018-11-26  Richard Biener  <rguenther@suse.de>
10271         PR tree-optimization/88182
10272         * testsuite/libgomp.c++/pr88182.C: New testcase.
10274 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
10276         PR bootstrap/88106
10277         * config/mingw32/affinity-fmt.c: New file.
10279 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
10281         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10282         (gomp_display_affinity): Use __builtin_choose_expr to handle
10283         properly handle argument having integral, or pointer or some other
10284         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
10285         with uint64_t type instead of %llx and unsigned long long.
10287         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10288         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10290 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10292         * affinity.c: Include <string.h>, <stdio.h>.
10293         (gomp_display_affinity_place): Remove cpusetp.
10294         * teams.c: Include <limits.h>.
10296 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
10298         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10299         in_reduction clause for s[0].
10301         * affinity.c (gomp_display_affinity_place): New function.
10302         * affinity-fmt.c: New file.
10303         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10304         * config/linux/affinity.c (gomp_display_affinity_place): New function.
10305         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10306         Move these functions to ...
10307         * config/nvptx/teams.c: ... here.  New file.
10308         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10309         New functions.
10310         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10311         functions.
10312         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10313         and _aligned_malloc.
10314         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10315         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10316         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10317         gomp_affinity_format_len): New variables.
10318         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10319         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
10320         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10321         modifiers.  Display (non-default) chunk sizes.  Print
10322         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10323         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
10324         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10325         * fortran.c: Include stdio.h and string.h.
10326         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10327         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10328         (omp_set_affinity_format_, omp_get_affinity_format_,
10329         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10330         omp_pause_resource_all_): New functions.
10331         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10332         switch.
10333         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10334         functions to ...
10335         * teams.c: ... here.  New file.
10336         * libgomp_g.h: Include gstdint.h.
10337         (GOMP_loop_nonmonotonic_runtime_start,
10338         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10339         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10340         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10341         GOMP_parallel_loop_nonmonotonic_runtime,
10342         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10343         GOMP_loop_ull_nonmonotonic_runtime_start,
10344         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10345         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10346         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10347         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10348         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10349         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10350         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10351         GOMP_teams_reg): Declare.
10352         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10353         gomp_aligned_alloc uses fallback implementation.
10354         (gomp_aligned_alloc, gomp_aligned_free): Declare.
10355         (enum gomp_schedule_type): Add GFS_MONOTONIC.
10356         (struct gomp_doacross_work_share): Add extra field.
10357         (struct gomp_work_share): Add task_reductions field.
10358         (struct gomp_taskgroup): Add workshare and reductions fields.
10359         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10360         (gomp_thread_handle): New typedef.
10361         (gomp_display_affinity_place, gomp_set_affinity_format,
10362         gomp_display_string, gomp_display_affinity,
10363         gomp_display_affinity_thread): Declare.
10364         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10365         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10366         gomp_workshare_task_reduction_register): Declare.
10367         (gomp_team_start): Add taskgroup argument.
10368         (gomp_pause_host): Declare.
10369         (gomp_init_work_share, gomp_work_share_start): Change bool argument
10370         to size_t.
10371         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10372         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10373         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10374         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10375         GOMP_loop_ull_doacross_start,
10376         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10377         GOMP_loop_maybe_nonmonotonic_runtime_next,
10378         GOMP_loop_maybe_nonmonotonic_runtime_start,
10379         GOMP_loop_nonmonotonic_runtime_next,
10380         GOMP_loop_nonmonotonic_runtime_start,
10381         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10382         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10383         GOMP_loop_ull_nonmonotonic_runtime_next,
10384         GOMP_loop_ull_nonmonotonic_runtime_start,
10385         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10386         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10387         GOMP_taskgroup_reduction_register,
10388         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10389         GOMP_teams_reg and GOMP_taskwait_depend.
10390         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10391         omp_{capture,display}_affinity{,_}, and
10392         omp_[gs]et_affinity_format{,_}.
10393         * loop.c: Include string.h.
10394         (GOMP_loop_runtime_next): Add ialias.
10395         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10396         (gomp_loop_static_start, gomp_loop_dynamic_start,
10397         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10398         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10399         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10400         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10401         or gomp_doacross_init callers.
10402         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10403         GOMP_loop_doacross_start): New functions.
10404         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10405         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10406         Mask off GFS_MONOTONIC bit.
10407         (GOMP_loop_maybe_nonmonotonic_runtime_next,
10408         GOMP_loop_maybe_nonmonotonic_runtime_start,
10409         GOMP_loop_nonmonotonic_runtime_next,
10410         GOMP_loop_nonmonotonic_runtime_start,
10411         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10412         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10413         functions.
10414         (gomp_parallel_loop_start): Pass NULL as taskgroup to
10415         gomp_team_start.
10416         * loop_ull.c: Include string.h.
10417         (GOMP_loop_ull_runtime_next): Add ialias.
10418         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10419         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10420         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10421         gomp_loop_ull_ordered_dynamic_start,
10422         gomp_loop_ull_ordered_guided_start,
10423         gomp_loop_ull_doacross_static_start,
10424         gomp_loop_ull_doacross_dynamic_start,
10425         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10426         and gomp_doacross_ull_init callers.
10427         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10428         GOMP_loop_ull_doacross_start): New functions.
10429         (GOMP_loop_ull_runtime_start,
10430         GOMP_loop_ull_ordered_runtime_start,
10431         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10432         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10433         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10434         GOMP_loop_ull_nonmonotonic_runtime_next,
10435         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10436         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10437         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10438         (omp_pause_resource_t, omp_depend_t): New typedefs.
10439         (enum omp_lock_hint_t): Renamed to ...
10440         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
10441         enumerators using numbers and omp_lock_hint_* as their aliases.
10442         (omp_lock_hint_t): New typedef.  Rename to ...
10443         (omp_sync_hint_t): ... this.
10444         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10445         omp_sync_hint_t instead of omp_lock_hint_t.
10446         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10447         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10448         Declare.
10449         (omp_target_is_present, omp_target_disassociate_ptr):
10450         Change first argument from void * to const void *.
10451         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10452         from void * to const void *.
10453         (omp_target_associate_ptr): Change first and second arguments from
10454         void * to const void *.
10455         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10456         omp_pause_hard): New parameters.
10457         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10458         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10459         New interfaces.
10460         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10461         omp_pause_hard): New parameters.
10462         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10463         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10464         New externals.
10465         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10466         EXTRA argument.  If not needed to prepare array, if extra is 0,
10467         clear ws->doacross, otherwise allocate just doacross structure and
10468         extra payload.  If array is needed, allocate also extra payload.
10469         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10470         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10471         doacross == NULL.
10472         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10473         gomp_team_start.
10474         (GOMP_parallel): Likewise.  Formatting fix.
10475         (GOMP_parallel_reductions): New function.
10476         (GOMP_cancellation_point): If taskgroup has workshare
10477         flag set, check cancelled of prev taskgroup if any.
10478         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10479         on prev taskgroup if any.
10480         * sections.c: Include string.h.
10481         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10482         (GOMP_sections_start): Adjust gomp_work_share_start caller.
10483         (GOMP_sections2_start): New function.
10484         (GOMP_parallel_sections_start, GOMP_parallel_sections):
10485         Pass NULL as taskgroup to gomp_team_start.
10486         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10487         gomp_work_share_start callers.
10488         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10489         If taskgroup has workshare flag set, check cancelled on prev
10490         taskgroup if any.  Guard all cancellation tests with
10491         gomp_cancel_var test.
10492         (omp_target_is_present, omp_target_disassociate_ptr):
10493         Change ptr argument from void * to const void *.
10494         (omp_target_memcpy): Change src argument from void * to const void *.
10495         (omp_target_memcpy_rect): Likewise.
10496         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
10497         instead of char * where needed.
10498         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10499         from void * to const void *.
10500         (omp_pause_resource, omp_pause_resource_all): New functions.
10501         * task.c (gomp_task_handle_depend): Handle new depend array format
10502         in addition to the old.  Handle mutexinoutset kinds the same as
10503         inout for now, handle unspecified kinds.
10504         (gomp_create_target_task): If taskgroup has workshare flag set, check
10505         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10506         gomp_cancel_var test.  Handle new depend array format count in
10507         addition to the old.
10508         (GOMP_task): Likewise.  Adjust function comment.
10509         (gomp_task_run_pre): If taskgroup has workshare flag set, check
10510         cancelled on prev taskgroup if any.  Guard all cancellation tests with
10511         gomp_cancel_var test.
10512         (GOMP_taskwait_depend): New function.
10513         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10514         format in addition to the old.  Handle mutexinoutset kinds the same as
10515         inout for now, handle unspecified kinds.  Fix a function comment typo.
10516         (gomp_taskgroup_init): New function.
10517         (GOMP_taskgroup_start): Use it.
10518         (gomp_reduction_register, gomp_create_artificial_team,
10519         GOMP_taskgroup_reduction_register,
10520         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10521         gomp_parallel_reduction_register,
10522         gomp_workshare_task_reduction_register,
10523         gomp_workshare_taskgroup_start,
10524         GOMP_workshare_task_reduction_unregister): New functions.
10525         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10526         check cancelled on prev taskgroup if any.  Guard all cancellation
10527         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
10528         by calling GOMP_taskgroup_reduction_register.
10529         * team.c (gomp_thread_attr): Remove comment.
10530         (struct gomp_thread_start_data): Add handle field.
10531         (gomp_thread_start): Call pthread_detach.
10532         (gomp_new_team): Adjust gomp_init_work_share caller.
10533         (gomp_free_pool_helper): Call pthread_detach.
10534         (gomp_team_start): Add taskgroup argument, initialize implicit
10535         tasks' taskgroup field to that.  Don't call
10536         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
10537         (gomp_team_end): Determine nesting by thr->ts.level != 0
10538         rather than thr->ts.team != NULL.
10539         (gomp_pause_pool_helper, gomp_pause_host): New functions.
10540         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10541         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10542         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10543         if more than 1 allocate also extra payload at the end of array.  Never
10544         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10545         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10546         return true instead of ws.
10547         * Makefile.in: Regenerated.
10548         * configure: Regenerated.
10549         * config.h.in: Regenerated.
10550         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10551         in some cases.
10552         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10553         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10554         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10555         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10556         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10557         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10558         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10559         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10560         * testsuite/libgomp.c-c++-common/for-10.c: New test.
10561         * testsuite/libgomp.c-c++-common/for-11.c: New test.
10562         * testsuite/libgomp.c-c++-common/for-12.c: New test.
10563         * testsuite/libgomp.c-c++-common/for-13.c: New test.
10564         * testsuite/libgomp.c-c++-common/for-14.c: New test.
10565         * testsuite/libgomp.c-c++-common/for-15.c: New test.
10566         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10567         define a different N(test), don't define N(f0) to N(f14), but instead
10568         define N(f20) to N(f34) using != comparisons.
10569         * testsuite/libgomp.c-c++-common/for-7.c: New test.
10570         * testsuite/libgomp.c-c++-common/for-8.c: New test.
10571         * testsuite/libgomp.c-c++-common/for-9.c: New test.
10572         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10573         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10574         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10575         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10576         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10577         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10578         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10579         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10580         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10581         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10582         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10583         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10584         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10585         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10586         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10587         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10588         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10589         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10590         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10591         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10592         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10593         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10594         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10595         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10596         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10597         * testsuite/libgomp.c++/depend-1.C: New test.
10598         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10599         * testsuite/libgomp.c++/depobj-1.C: New test.
10600         * testsuite/libgomp.c++/for-16.C: New test.
10601         * testsuite/libgomp.c++/for-21.C: New test.
10602         * testsuite/libgomp.c++/for-22.C: New test.
10603         * testsuite/libgomp.c++/for-23.C: New test.
10604         * testsuite/libgomp.c++/for-24.C: New test.
10605         * testsuite/libgomp.c++/for-25.C: New test.
10606         * testsuite/libgomp.c++/for-26.C: New test.
10607         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10608         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10609         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10610         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10611         * testsuite/libgomp.c++/task-reduction-10.C: New test.
10612         * testsuite/libgomp.c++/task-reduction-11.C: New test.
10613         * testsuite/libgomp.c++/task-reduction-12.C: New test.
10614         * testsuite/libgomp.c++/task-reduction-13.C: New test.
10615         * testsuite/libgomp.c++/task-reduction-14.C: New test.
10616         * testsuite/libgomp.c++/task-reduction-15.C: New test.
10617         * testsuite/libgomp.c++/task-reduction-16.C: New test.
10618         * testsuite/libgomp.c++/task-reduction-17.C: New test.
10619         * testsuite/libgomp.c++/task-reduction-18.C: New test.
10620         * testsuite/libgomp.c++/task-reduction-19.C: New test.
10621         * testsuite/libgomp.c/task-reduction-1.c: New test.
10622         * testsuite/libgomp.c++/task-reduction-1.C: New test.
10623         * testsuite/libgomp.c/task-reduction-2.c: New test.
10624         * testsuite/libgomp.c++/task-reduction-2.C: New test.
10625         * testsuite/libgomp.c++/task-reduction-3.C: New test.
10626         * testsuite/libgomp.c++/task-reduction-4.C: New test.
10627         * testsuite/libgomp.c++/task-reduction-5.C: New test.
10628         * testsuite/libgomp.c++/task-reduction-6.C: New test.
10629         * testsuite/libgomp.c++/task-reduction-7.C: New test.
10630         * testsuite/libgomp.c++/task-reduction-8.C: New test.
10631         * testsuite/libgomp.c++/task-reduction-9.C: New test.
10632         * testsuite/libgomp.c/teams-1.c: New test.
10633         * testsuite/libgomp.c/teams-2.c: New test.
10634         * testsuite/libgomp.c/thread-limit-4.c: New test.
10635         * testsuite/libgomp.c/thread-limit-5.c: New test.
10636         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10638 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
10640         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10641         acc_memcpy_to/from_device functions, now with async parameter.
10642         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10643         (acc_memcpy_from_device): Likewise.
10644         (acc_memcpy_to_device_async): New API function.
10645         (acc_memcpy_from_device_async): Likewise.
10646         (present_create_copy): Add async parameter and async setting/unsetting.
10647         (acc_create): Adjust present_create_copy call.
10648         (acc_copyin): Likewise.
10649         (acc_present_or_create): Likewise.
10650         (acc_present_or_copyin): Likewise.
10651         (acc_create_async): New API function.
10652         (acc_copyin_async): New API function.
10653         (delete_copyout): Add async parameter and async setting/unsetting.
10654         (acc_delete): Adjust delete_copyout call.
10655         (acc_copyout): Likewise.
10656         (acc_delete_async): New API function.
10657         (acc_copyout_async): Likewise.
10658         (update_dev_host): Add async parameter and async setting/unsetting.
10659         (acc_update_device): Adjust update_dev_host call.
10660         (acc_update_self): Likewise.
10661         (acc_update_device_async): New API function.
10662         (acc_update_self_async): Likewise.
10663         * openacc.h (acc_copyin_async): Declare new API function.
10664         (acc_create_async): Likewise.
10665         (acc_copyout_async): Likewise.
10666         (acc_delete_async): Likewise.
10667         (acc_update_device_async): Likewise.
10668         (acc_update_self_async): Likewise.
10669         (acc_memcpy_to_device_async): Likewise.
10670         (acc_memcpy_from_device_async): Likewise.
10671         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10672         (acc_copyin_async_64_h): New subroutine.
10673         (acc_copyin_async_array_h): New subroutine.
10674         (acc_create_async_32_h): New subroutine.
10675         (acc_create_async_64_h): New subroutine.
10676         (acc_create_async_array_h): New subroutine.
10677         (acc_copyout_async_32_h): New subroutine.
10678         (acc_copyout_async_64_h): New subroutine.
10679         (acc_copyout_async_array_h): New subroutine.
10680         (acc_delete_async_32_h): New subroutine.
10681         (acc_delete_async_64_h): New subroutine.
10682         (acc_delete_async_array_h): New subroutine.
10683         (acc_update_device_async_32_h): New subroutine.
10684         (acc_update_device_async_64_h): New subroutine.
10685         (acc_update_device_async_array_h): New subroutine.
10686         (acc_update_self_async_32_h): New subroutine.
10687         (acc_update_self_async_64_h): New subroutine.
10688         (acc_update_self_async_array_h): New subroutine.
10689         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10690         (acc_copyin_async_64_h): New subroutine.
10691         (acc_copyin_async_array_h): New subroutine.
10692         (acc_create_async_32_h): New subroutine.
10693         (acc_create_async_64_h): New subroutine.
10694         (acc_create_async_array_h): New subroutine.
10695         (acc_copyout_async_32_h): New subroutine.
10696         (acc_copyout_async_64_h): New subroutine.
10697         (acc_copyout_async_array_h): New subroutine.
10698         (acc_delete_async_32_h): New subroutine.
10699         (acc_delete_async_64_h): New subroutine.
10700         (acc_delete_async_array_h): New subroutine.
10701         (acc_update_device_async_32_h): New subroutine.
10702         (acc_update_device_async_64_h): New subroutine.
10703         (acc_update_device_async_array_h): New subroutine.
10704         (acc_update_self_async_32_h): New subroutine.
10705         (acc_update_self_async_64_h): New subroutine.
10706         (acc_update_self_async_array_h): New subroutine.
10707         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10708         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10709         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10710         acc_memcpy_to_device_async*, acc_update_device_async*, and
10711         acc_update_self_async* entries.
10712         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10713         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10714         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10716 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
10718         PR bootstrap/82856
10719         * Makefile.am: Include multilib.am
10720         (AUTOMAKE_OPTIONS): Add info-in-builddir.
10721         (CLEANFILES): Remove libgomp.info.
10722         * configure.ac: Remove AC_PREREQ.
10723         * testsuite/Makefile.am (RUNTEST): Remove quotes.
10724         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10725         Regenerate.
10727 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
10728             Julian Brown  <julian@codesourcery.com>
10730         * testsuite/libgomp.oacc-c++/this.C: New.
10732 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
10734         * plugin/plugin-nvptx.c (struct cuda_map): New.
10735         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10736         h_tail with (cuda_map *) map.
10737         (cuda_map_create): New function.
10738         (cuda_map_destroy): New function.
10739         (map_init): Update to use a linked list of cuda_map objects.
10740         (map_fini): Likewise.
10741         (map_pop): Likewise.
10742         (map_push): Likewise.  Return CUdeviceptr instead of void.
10743         (init_streams_for_device): Remove stales references to ptx_stream
10744         members.
10745         (select_stream_for_async): Likewise.
10746         (nvptx_exec): Update call to map_init.
10748 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
10749             Julian Brown  <julian@codesourcery.com>
10751         PR middle-end/86336
10752         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10754 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
10755         Thomas Koenig <tkoenig@gcc.gnu.org>
10757         PR fortran/25829
10758         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10759         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10760         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10761         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10762         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10763         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10764         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10766 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
10767             Tom de Vries  <tdevries@suse.de>
10769         PR target/85590
10770         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10771         (cuOccupancyMaxPotentialBlockSize): Declare.
10772         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10773         CUDA_ONE_CALL_MAYBE_NULL.
10774         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10775         CUoccupancyB2DSize and declare
10776         cuOccupancyMaxPotentialBlockSize.
10777         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10778         default num_gangs and num_workers when the driver supports it.
10780 2018-08-08  Tom de Vries  <tdevries@suse.de>
10782         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10783         CUDA_ONE_CALL_MAYBE_NULL.
10784         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10785         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10786         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10787         are not found.
10789 2018-08-08  Tom de Vries  <tdevries@suse.de>
10791         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10792         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10793         present.
10795 2018-08-08  Tom de Vries  <tdevries@suse.de>
10797         * plugin/plugin-nvptx.c
10798         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10799         (nvptx_open_device): Use
10800         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10802 2018-08-08  Tom de Vries  <tdevries@suse.de>
10804         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10805         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
10807 2018-08-07  Tom de Vries  <tdevries@suse.de>
10809         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10810         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10811         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
10812         corresponding call in CUDA_ONE_CALL.  Add def/undef of
10813         CUDA_ONE_CALL_MAYBE_NULL.
10814         (CUDA_CALL_EXISTS): Define.
10816 2018-08-07  Tom de Vries  <tdevries@suse.de>
10818         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10819         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10820         corresponding undefs right after.
10822 2018-08-04  Tom de Vries  <tdevries@suse.de>
10824         * plugin/configfrag.ac: For --without-cuda-driver, set
10825         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
10826         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10827         * configure: Regenerate.
10829 2018-08-02  Tom de Vries  <tdevries@suse.de>
10831         PR target/86660
10832         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10833         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10834         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10835         Same.
10836         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10837         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10838         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10840 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10841             Thomas Schwinge <thomas@codesourcery.com>
10843         * config/nvptx/oacc-parallel.c: Truncate.
10845 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
10846             James Norris <jnorris@codesourcery.com>
10848         * plugin/plugin-nvptx.c (struct map): Removed.
10849         (map_init, map_pop): Remove use of struct map.
10850         (map_push): Likewise and change argument list.
10851         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10853 2018-08-01  Tom de Vries  <tdevries@suse.de>
10855         * plugin/cuda-lib.def: New file.  Factor out of ...
10856         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10857         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10858         using CUDA_CALLS.
10860 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10862         Revert 'AsyncI/O patch committed'.
10863         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10864                 Thomas Koenig <tkoenig@gcc.gnu.org>
10866         PR fortran/25829
10867         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10868         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10869         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10870         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10871         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10872         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10873         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10875 2018-07-30  Tom de Vries  <tdevries@suse.de>
10877         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10878         (nvptx_exec): Ensure worker and vector default dims don't exceed
10879         targ_fn->max_threads_per_block.
10881 2018-07-30  Tom de Vries  <tdevries@suse.de>
10883         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10884         (nvptx_open_device): Init default_dims for device.
10885         (nvptx_exec): Use default_dims from device.
10887 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
10889         PR testsuite/86660
10890         * testsuite/libgomp.c++/for-15.C (results): Include it in
10891         omp declare target region.
10892         (main): Use map (always, tofrom: results) instead of
10893         map (tofrom: results).
10895         PR middle-end/86660
10896         * testsuite/libgomp.c/pr86660.c: New test.
10898 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10899             Tom de Vries  <tdevries@suse.de>
10901         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10902         sufficient resources to launch a kernel, and give a hint on how to fix
10903         it.
10905 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
10906             Tom de Vries  <tdevries@suse.de>
10908         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10909         max_threads_per_block and max_threads_per_multiprocessor fields.
10910         (nvptx_open_device): Initialize new fields.
10911         (nvptx_exec): Use num_sms, and new fields.
10913 2018-07-26  Tom de Vries  <tdevries@suse.de>
10915         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10916         to correct locations.  Remove xfail.
10918 2018-07-26  Tom de Vries  <tdevries@suse.de>
10920         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10921         acc_wait.  Move acc_async_test calls to correct locations.  Remove
10922         xfail.
10924 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
10925         Thomas Koenig <tkoenig@gcc.gnu.org>
10927         PR fortran/25829
10928         * testsuite/libgomp.fortran/async_io_1.f90: New test.
10929         * testsuite/libgomp.fortran/async_io_2.f90: New test.
10930         * testsuite/libgomp.fortran/async_io_3.f90: New test.
10931         * testsuite/libgomp.fortran/async_io_4.f90: New test.
10932         * testsuite/libgomp.fortran/async_io_5.f90: New test.
10933         * testsuite/libgomp.fortran/async_io_6.f90: New test.
10934         * testsuite/libgomp.fortran/async_io_7.f90: New test.
10936 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
10938         PR middle-end/86542
10939         * testsuite/libgomp.c++/pr86542.C: New test.
10941         PR middle-end/86539
10942         * testsuite/libgomp.c++/pr86539.C: New test.
10944 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
10946         PR c++/86443
10947         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10948         (results): Make sure the variable is not inside declare target region.
10949         (qux): Remove unused function.
10951 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
10953         PR c++/86443
10954         * testsuite/libgomp.c++/for-15.C: New test.
10956 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
10958         PR c++/86291
10959         * testsuite/libgomp.c++/pr86291.C: New test.
10961 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
10963         * libgomp.texi (Top): Move www.openmp.org to https.
10964         (Enabling OpenMP): Ditto.
10965         (omp_get_active_level): Ditto.
10966         (omp_get_ancestor_thread_num): Ditto.
10967         (omp_get_cancellation): Ditto.
10968         (omp_get_default_device): Ditto.
10969         (omp_get_dynamic): Ditto.
10970         (omp_get_level): Ditto.
10971         (omp_get_max_active_levels): Ditto.
10972         (omp_get_max_task_priority): Ditto.
10973         (omp_get_max_threads): Ditto.
10974         (omp_get_nested): Ditto.
10975         (omp_get_num_devices): Ditto.
10976         (omp_get_num_procs): Ditto.
10977         (omp_get_num_teams): Ditto.
10978         (omp_get_num_threads): Ditto.
10979         (omp_get_proc_bind): Ditto.
10980         (omp_get_schedule): Ditto.
10981         (omp_get_team_num): Ditto.
10982         (omp_get_team_size): Ditto.
10983         (omp_get_thread_limit): Ditto.
10984         (omp_get_thread_num): Ditto.
10985         (omp_in_parallel): Ditto.
10986         (omp_in_final): Ditto.
10987         (omp_is_initial_device): Ditto.
10988         (omp_set_default_device): Ditto.
10989         (omp_set_dynamic): Ditto.
10990         (omp_set_max_active_levels): Ditto.
10991         (omp_set_nested): Ditto.
10992         (omp_set_num_threads): Ditto.
10993         (omp_set_schedule): Ditto.
10994         (omp_init_lock): Ditto.
10995         (omp_set_lock): Ditto.
10996         (omp_test_lock): Ditto.
10997         (omp_unset_lock): Ditto.
10998         (omp_destroy_lock): Ditto.
10999         (omp_init_nest_lock): Ditto.
11000         (omp_set_nest_lock): Ditto.
11001         (omp_test_nest_lock): Ditto.
11002         (omp_unset_nest_lock): Ditto.
11003         (omp_destroy_nest_lock): Ditto.
11004         (omp_get_wtick): Ditto.
11005         (omp_get_wtime): Ditto.
11006         (OMP_CANCELLATION): Ditto.
11007         (OMP_DISPLAY_ENV): Ditto.
11008         (OMP_DEFAULT_DEVICE): Ditto.
11009         (OMP_DYNAMIC): Ditto.
11010         (OMP_MAX_ACTIVE_LEVELS): Ditto.
11011         (OMP_MAX_TASK_PRIORITY): Ditto.
11012         (OMP_NESTED): Ditto.
11013         (OMP_NUM_THREADS): Ditto.
11014         (OMP_PROC_BIND): Ditto.
11015         (OMP_PLACES): Ditto.
11016         (OMP_STACKSIZE): Ditto.
11017         (OMP_SCHEDULE): Ditto.
11018         (OMP_THREAD_LIMIT): Ditto.
11019         (OMP_WAIT_POLICY): Ditto.
11021 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
11022             James Norris  <jnorris@codesourcery.com>
11023             Julian Brown  <julian@codesourcery.com>
11024             Thomas Schwinge  <thomas@codesourcery.com>
11025             Tom de Vries  <tom@codesourcery.com>
11027         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11028         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11029         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11030         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11031         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11032         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11033         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11034         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11035         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11036         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11037         Likewise.
11038         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11039         Likewise.
11040         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11041         Likewise.
11042         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11043         Likewise.
11044         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11045         Likewise.
11046         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11047         Likewise.
11048         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11049         Likewise.
11050         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11051         Likewise.
11052         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11053         Likewise.
11054         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11055         Likewise.
11056         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11057         Likewise.
11058         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11059         Likewise.
11060         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11061         Likewise.
11062         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11063         Likewise.
11064         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11065         Likewise.
11066         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11067         Likewise.
11068         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11069         Likewise.
11070         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11071         Likewise.
11072         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11073         Likewise.
11074         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11075         Likewise.
11076         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11077         Likewise.
11078         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11079         Likewise.
11080         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11081         Likewise.
11082         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11083         Likewise.
11084         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11085         Likewise.
11086         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11087         Likewise.
11088         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11089         Likewise.
11090         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11091         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11092         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11093         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11094         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11095         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11096         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11097         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11098         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11099         Likewise.
11100         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11101         Likewise.
11102         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11103         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11104         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11105         Likewise.
11106         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11107         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11108         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11109         Likewise.
11110         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11111         Likewise.
11112         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11113         Likewise.
11114         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11115         Likewise.
11116         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11117         Likewise.
11118         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11119         Likewise.
11120         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11121         Likewise.
11122         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11123         Likewise.
11124         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11125         Likewise.
11126         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11127         Likewise.
11128         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11129         Likewise.
11130         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11131         Likewise.
11132         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11133         Likewise.
11134         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11135         Likewise.
11136         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11137         Likewise.
11138         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11139         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11140         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11141         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11142         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11143         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11144         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11146 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
11147             Thomas Schwinge <thomas@codesourcery.com>
11148             Cesar Philippidis  <cesar@codesourcery.com>
11150         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11151         (gomp_acc_remove_pointer): Update declaration.
11152         (gomp_acc_declare_allocate): Declare.
11153         (gomp_remove_var): Declare.
11154         * libgomp.map (OACC_2.5): Define.
11155         * oacc-mem.c (acc_map_data): Update refcount.
11156         (acc_unmap_data): Likewise.
11157         (present_create_copy): Likewise.
11158         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11159         (acc_copyin): Likewise.
11160         (FLAG_FINALIZE): Define.
11161         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11162         (acc_delete_finalize): New function.
11163         (acc_delete_finalize_async): New function.
11164         (acc_copyout_finalize): New function.
11165         (acc_copyout_finalize_async): New function.
11166         (gomp_acc_insert_pointer): Update refcounts.
11167         (gomp_acc_remove_pointer): Return if data is not present on the
11168         accelerator.
11169         * oacc-parallel.c (find_pset): Rename to find_pointer.
11170         (find_pointer): Add support for GOMP_MAP_POINTER.
11171         (handle_ftn_pointers): New function.
11172         (GOACC_parallel_keyed): Update refcounts of variables.
11173         (GOACC_enter_exit_data): Add support for finalized data mappings.
11174         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11175         of fortran arrays.
11176         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11177         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11178         for GOMP_MAP_FORCE_FROM.
11179         * openacc.f90 (module openacc_internal): Add
11180         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11181         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11182         acc_copyout_finalize and acc_delete_finalize.
11183         (acc_copyout_finalize_32_h): New subroutine.
11184         (acc_copyout_finalize_64_h): New subroutine.
11185         (acc_copyout_finalize_array_h): New subroutine.
11186         (acc_delete_finalize_32_h): New subroutine.
11187         (acc_delete_finalize_64_h): New subroutine.
11188         (acc_delete_finalize_array_h): New subroutine.
11189         * openacc.h (acc_copyout_finalize): Declare.
11190         (acc_copyout_finalize_async): Declare.
11191         (acc_delete_finalize): Declare.
11192         (acc_delete_finalize_async): Declare.
11193         * openacc_lib.h (acc_copyout_finalize): New interface.
11194         (acc_delete_finalize): New interface.
11195         * target.c (gomp_map_vars): Update dynamic_refcount.
11196         (gomp_remove_var): New function.
11197         (gomp_unmap_vars): Use it.
11198         (gomp_unload_image_from_device): Likewise.
11199         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11200         case to utilize OpenACC 2.5 data clause semantics.
11201         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11202         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11203         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11204         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11205         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11206         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11207         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11208         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11209         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11210         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11211         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11212         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11213         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11214         utilize OpenACC 2.5 data clause semantics.
11215         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11216         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11217         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11218         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11219         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11220         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11221         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11222         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11223         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11225 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
11227         PR fortran/85841
11228         PR testsuite/85865
11229         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11230         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11231         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11232         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11233         * testsuite/libgomp.fortran/task2.f90: Ditto.
11234         * testsuite/libgomp.fortran/vla1.f90: Ditto.
11235         * testsuite/libgomp.fortran/vla2.f90: Ditto.
11236         * testsuite/libgomp.fortran/vla3.f90: Ditto.
11237         * testsuite/libgomp.fortran/vla4.f90: Ditto.
11238         * testsuite/libgomp.fortran/vla5.f90: Ditto.
11239         * testsuite/libgomp.fortran/vla6.f90: Ditto.
11240         * testsuite/libgomp.fortran/vla8.f90: Ditto.
11241         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11242         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11244 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
11246         PR c++/85782
11247         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11249 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11251         PR libgomp/82901
11252         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11253         to GOACC_enter_exit_data.
11255 2018-05-09  Tom de Vries  <tom@codesourcery.com>
11257         PR libgomp/83792
11258         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11259         (async_synchronous_p): New function.
11260         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11261         async_valid_p.
11262         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11263         async_valid_stream_id_p.
11264         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11265         * oacc-parallel.c (GOACC_parallel_keyed): Same.
11267 2018-05-07  Tom de Vries  <tom@codesourcery.com>
11269         PR testsuite/85677
11270         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11271         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11273 2018-05-03  Tom de Vries  <tom@codesourcery.com>
11275         PR testsuite/85106
11276         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11277         extra_tool_flags if it contains an -foffload=-fdump-* flag.
11278         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11279         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11281 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11283         PR libgomp/85411
11284         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11285         GOMP_OPENACC_DIM ...
11286         * env.c (parse_gomp_openacc_dim): ... here.  New function.
11287         (initialize_env): Call parse_gomp_openacc_dim.
11288         (goacc_default_dims): Define.
11289         * libgomp.h (goacc_default_dims): Declare.
11290         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11291         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11292         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11293         GOMP_PLUGIN_acc_default_dim.
11294         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11295         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11297 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11299         PR testsuite/83791
11300         * testsuite/libgomp.c++/udr-9.C: Update.
11301         * testsuite/libgomp.c++/atomic-16.C: Remove.
11302         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11303         * testsuite/libgomp.c++/loop-13.C: Remove.
11304         * testsuite/libgomp.c++/loop-14.C: Remove.
11305         * testsuite/libgomp.c++/loop-15.C: Remove.
11306         * testsuite/libgomp.c++/monotonic-1.C: Remove.
11307         * testsuite/libgomp.c++/monotonic-2.C: Remove.
11308         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11309         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11310         * testsuite/libgomp.c++/ordered-1.C: Remove.
11311         * testsuite/libgomp.c++/pr45784.C: Remove.
11312         * testsuite/libgomp.c++/pr64824.C: Remove.
11313         * testsuite/libgomp.c++/pr64868.C: Remove.
11314         * testsuite/libgomp.c++/pr66199-1.C: Remove.
11315         * testsuite/libgomp.c++/pr66199-2.C: Remove.
11316         * testsuite/libgomp.c++/pr66199-3.C: Remove.
11317         * testsuite/libgomp.c++/pr66199-4.C: Remove.
11318         * testsuite/libgomp.c++/pr66199-5.C: Remove.
11319         * testsuite/libgomp.c++/pr66199-6.C: Remove.
11320         * testsuite/libgomp.c++/pr66199-7.C: Remove.
11321         * testsuite/libgomp.c++/pr66199-8.C: Remove.
11322         * testsuite/libgomp.c++/pr66199-9.C: Remove.
11323         * testsuite/libgomp.c++/pr69389.C: Remove.
11324         * testsuite/libgomp.c++/simd10.C: Remove.
11325         * testsuite/libgomp.c++/simd11.C: Remove.
11326         * testsuite/libgomp.c++/simd12.C: Remove.
11327         * testsuite/libgomp.c++/simd13.C: Remove.
11328         * testsuite/libgomp.c++/target-1.C: Remove.
11329         * testsuite/libgomp.c++/target-3.C: Remove.
11330         * testsuite/libgomp.c++/target-4.C: Remove.
11331         * testsuite/libgomp.c++/target-5.C: Remove.
11332         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11333         * testsuite/libgomp.c++/taskloop-1.C: Remove.
11334         * testsuite/libgomp.c++/taskloop-2.C: Remove.
11335         * testsuite/libgomp.c++/taskloop-3.C: Remove.
11336         * testsuite/libgomp.c++/taskloop-4.C: Remove.
11337         * testsuite/libgomp.c++/udr-9.C: Remove.
11338         * testsuite/libgomp.c++/for-10.C: Remove.
11339         * testsuite/libgomp.c++/for-11.C: Remove.
11340         * testsuite/libgomp.c++/for-12.C: Remove.
11341         * testsuite/libgomp.c++/for-13.C: Remove.
11342         * testsuite/libgomp.c++/for-14.C: Remove.
11343         * testsuite/libgomp.c++/for-9.C: Remove.
11344         * testsuite/libgomp.c/atomic-18.c: Move ...
11345         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11346         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11347         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11348         * testsuite/libgomp.c/loop-13.c: Move ...
11349         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11350         * testsuite/libgomp.c/loop-14.c: Move ...
11351         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11352         * testsuite/libgomp.c/loop-15.c: Remove.
11353         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11354         * testsuite/libgomp.c/monotonic-1.c: Move ...
11355         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11356         * testsuite/libgomp.c/monotonic-2.c: Move ...
11357         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11358         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11359         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11360         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11361         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11362         * testsuite/libgomp.c/ordered-4.c: Move ...
11363         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11364         * testsuite/libgomp.c/pr45784.c: Move ...
11365         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11366         * testsuite/libgomp.c/pr64824.c: Move ...
11367         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11368         * testsuite/libgomp.c/pr64868.c: Move ...
11369         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11370         * testsuite/libgomp.c/pr66199-1.c: Move ...
11371         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11372         * testsuite/libgomp.c/pr66199-2.c: Move ...
11373         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11374         * testsuite/libgomp.c/pr66199-3.c: Move ...
11375         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11376         * testsuite/libgomp.c/pr66199-4.c: Move ...
11377         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11378         * testsuite/libgomp.c/pr66199-5.c: Move ...
11379         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11380         * testsuite/libgomp.c/pr66199-6.c: Move ...
11381         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11382         * testsuite/libgomp.c/pr66199-7.c: Move ...
11383         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11384         * testsuite/libgomp.c/pr66199-8.c: Move ...
11385         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11386         * testsuite/libgomp.c/pr66199-9.c: Move ...
11387         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11388         * testsuite/libgomp.c/pr69389.c: Move ...
11389         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11390         * testsuite/libgomp.c/simd-14.c: Move ...
11391         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11392         * testsuite/libgomp.c/simd-15.c: Move ...
11393         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11394         * testsuite/libgomp.c/simd-16.c: Move ...
11395         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11396         * testsuite/libgomp.c/simd-17.c: Move ...
11397         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11398         * testsuite/libgomp.c/target-1.c: Move ...
11399         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11400         * testsuite/libgomp.c/target-10.c: Move ...
11401         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11402         * testsuite/libgomp.c/target-13.c: Move ...
11403         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11404         * testsuite/libgomp.c/target-2.c: Move ...
11405         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11406         * testsuite/libgomp.c/taskgroup-1.c: Move ...
11407         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11408         * testsuite/libgomp.c/taskloop-1.c: Move ...
11409         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11410         * testsuite/libgomp.c/taskloop-2.c: Move ...
11411         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11412         * testsuite/libgomp.c/taskloop-3.c: Move ...
11413         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11414         * testsuite/libgomp.c/taskloop-4.c: Move ...
11415         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11416         * testsuite/libgomp.c/udr-1.c: Move ...
11417         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11418         * testsuite/libgomp.c/for-1.c: Move ...
11419         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11420         * testsuite/libgomp.c/for-1.h: Move ...
11421         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11422         * testsuite/libgomp.c/for-2.c: Move ...
11423         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11424         * testsuite/libgomp.c/for-2.h: Move ...
11425         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11426         * testsuite/libgomp.c/for-3.c: Move ...
11427         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11428         * testsuite/libgomp.c/for-4.c: Move ...
11429         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11430         * testsuite/libgomp.c/for-5.c: Move ...
11431         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11432         * testsuite/libgomp.c/for-6.c: Move ...
11433         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11435 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11437         PR libgomp/82428
11438         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11439         __builtin_goacc_parlevel_{id,size}.
11440         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11441         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11442         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11443         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11444         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11445         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11446         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11447         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11448         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11449         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11450         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11451         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11452         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11453         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11454         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11455         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11456         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11457         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11458         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11459         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11460         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11461         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11462         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11464 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11466         PR testsuite/85106
11467         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11469 2018-05-02  Tom de Vries  <tom@codesourcery.com>
11471         PR testsuite/85106
11472         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11474 2018-04-29  Julian Brown  <julian@codesourcery.com>
11475             Tom de Vries  <tom@codesourcery.com>
11477         PR testsuite/85527
11478         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11479         arbitrary order for iterations of atomic subtract check.
11481 2018-04-28  Tom de Vries  <tom@codesourcery.com>
11483         PR testsuite/85527
11484         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11485         atomic capture results obtained in parallel loop to an array, instead of
11486         to a scalar.
11488 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11490         PR libgomp/84020
11491         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11492         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11493         (process_GOMP_NVPTX_JIT): New function.
11494         (link_ptx): Use process_GOMP_NVPTX_JIT.
11496 2018-04-26  Richard Biener <rguenther@suse.de>
11497             Tom de Vries  <tom@codesourcery.com>
11499         PR lto/85422
11500         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11502 2018-04-26  Tom de Vries  <tom@codesourcery.com>
11504         PR target/85519
11505         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11506         recursion depth from 25 to 23.
11507         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11509 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11511         * configure: Regenerated.
11513 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
11514             Tom de Vries  <tom@codesourcery.com>
11516         PR target/85445
11517         * testsuite/libgomp.oacc-c++/ref-1.C: New.
11519 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
11521         PR libgomp/85463
11522         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11523         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11524         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11525         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11526         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11527         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11529         PR libfortran/85166
11530         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11531         abort".
11532         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11534 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
11536         * configure: Regenerated.
11538 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
11540         PR jit/85384
11541         * configure: Regenerate.
11543 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
11544             Tom de Vries  <tom@codesourcery.com>
11546         PR middle-end/84955
11547         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11548         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11550 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
11552         PR fortran/83064
11553         PR testsuite/85346
11554         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11555         test from gfortran.dg to here.
11557 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11559         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11560         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11562 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
11564         PR middle-end/84955
11565         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11566         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11568 2018-04-05  Tom de Vries  <tom@codesourcery.com>
11570         PR target/85204
11571         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11573 2018-03-26  Tom de Vries  <tom@codesourcery.com>
11575         PR tree-optimization/85063
11576         * testsuite/libgomp.c/switch-conversion-2.c: New test.
11577         * testsuite/libgomp.c/switch-conversion.c: New test.
11578         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11579         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11581 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
11583         PR fortran/84381
11584         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11585         call abort by STOP n.
11586         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11587         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11588         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11589         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11590         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11591         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11592         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11593         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11594         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11595         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11596         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11597         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11598         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11599         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11600         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11601         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11602         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11603         * testsuite/libgomp.fortran/associate1.f90: Likewise.
11604         * testsuite/libgomp.fortran/associate2.f90: Likewise.
11605         * testsuite/libgomp.fortran/associate3.f90: Likewise.
11606         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11607         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11608         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11609         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11610         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11611         * testsuite/libgomp.fortran/character1.f90: Likewise.
11612         * testsuite/libgomp.fortran/character2.f90: Likewise.
11613         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11614         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11615         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11616         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11617         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11618         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11619         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11620         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11621         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11622         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11623         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11624         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11625         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11626         * testsuite/libgomp.fortran/do1.f90: Likewise.
11627         * testsuite/libgomp.fortran/do2.f90: Likewise.
11628         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11629         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11630         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11631         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11632         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11633         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11634         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11635         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11636         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11637         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11638         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11639         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11640         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11641         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11642         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11643         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11644         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11645         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11646         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11647         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11648         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11649         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11650         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11651         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11652         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11653         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11654         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11655         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11656         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11657         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11658         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11659         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11660         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11661         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11662         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11663         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11664         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11665         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11666         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11667         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11668         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11669         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11670         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11671         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11672         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11673         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11674         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11675         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11676         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11677         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11678         * testsuite/libgomp.fortran/lib2.f: Likewise.
11679         * testsuite/libgomp.fortran/lib3.f: Likewise.
11680         * testsuite/libgomp.fortran/lib4.f90: Likewise.
11681         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11682         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11683         * testsuite/libgomp.fortran/nested1.f90: Likewise.
11684         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11685         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11686         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11687         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11688         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11689         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11690         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11691         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11692         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11693         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11694         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11695         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11696         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11697         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11698         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11699         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11700         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11701         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11702         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11703         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11704         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11705         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11706         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11707         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11708         * testsuite/libgomp.fortran/pr25162.f: Likewise.
11709         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11710         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11711         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11712         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11713         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11714         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11715         * testsuite/libgomp.fortran/pr28390.f: Likewise.
11716         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11717         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11718         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11719         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11720         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11721         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11722         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11723         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11724         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11725         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11726         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11727         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11728         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11729         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11730         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11731         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11732         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11733         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11734         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11735         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11736         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11737         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11738         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11739         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11740         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11741         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11742         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11743         * testsuite/libgomp.fortran/reference1.f90: Likewise.
11744         * testsuite/libgomp.fortran/reference2.f90: Likewise.
11745         * testsuite/libgomp.fortran/retval1.f90: Likewise.
11746         * testsuite/libgomp.fortran/retval2.f90: Likewise.
11747         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11748         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11749         * testsuite/libgomp.fortran/simd1.f90: Likewise.
11750         * testsuite/libgomp.fortran/simd2.f90: Likewise.
11751         * testsuite/libgomp.fortran/simd3.f90: Likewise.
11752         * testsuite/libgomp.fortran/simd4.f90: Likewise.
11753         * testsuite/libgomp.fortran/simd5.f90: Likewise.
11754         * testsuite/libgomp.fortran/simd6.f90: Likewise.
11755         * testsuite/libgomp.fortran/simd7.f90: Likewise.
11756         * testsuite/libgomp.fortran/stack.f90: Likewise.
11757         * testsuite/libgomp.fortran/strassen.f90: Likewise.
11758         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11759         * testsuite/libgomp.fortran/tabs2.f: Likewise.
11760         * testsuite/libgomp.fortran/target1.f90: Likewise.
11761         * testsuite/libgomp.fortran/target2.f90: Likewise.
11762         * testsuite/libgomp.fortran/target3.f90: Likewise.
11763         * testsuite/libgomp.fortran/target4.f90: Likewise.
11764         * testsuite/libgomp.fortran/target5.f90: Likewise.
11765         * testsuite/libgomp.fortran/target6.f90: Likewise.
11766         * testsuite/libgomp.fortran/target7.f90: Likewise.
11767         * testsuite/libgomp.fortran/target8.f90: Likewise.
11768         * testsuite/libgomp.fortran/task1.f90: Likewise.
11769         * testsuite/libgomp.fortran/task2.f90: Likewise.
11770         * testsuite/libgomp.fortran/task3.f90: Likewise.
11771         * testsuite/libgomp.fortran/task4.f90: Likewise.
11772         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11773         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11774         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11775         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11776         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11777         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11778         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11779         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11780         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11781         * testsuite/libgomp.fortran/udr1.f90: Likewise.
11782         * testsuite/libgomp.fortran/udr10.f90: Likewise.
11783         * testsuite/libgomp.fortran/udr11.f90: Likewise.
11784         * testsuite/libgomp.fortran/udr12.f90: Likewise.
11785         * testsuite/libgomp.fortran/udr13.f90: Likewise.
11786         * testsuite/libgomp.fortran/udr14.f90: Likewise.
11787         * testsuite/libgomp.fortran/udr15.f90: Likewise.
11788         * testsuite/libgomp.fortran/udr2.f90: Likewise.
11789         * testsuite/libgomp.fortran/udr3.f90: Likewise.
11790         * testsuite/libgomp.fortran/udr4.f90: Likewise.
11791         * testsuite/libgomp.fortran/udr5.f90: Likewise.
11792         * testsuite/libgomp.fortran/udr6.f90: Likewise.
11793         * testsuite/libgomp.fortran/udr7.f90: Likewise.
11794         * testsuite/libgomp.fortran/udr8.f90: Likewise.
11795         * testsuite/libgomp.fortran/udr9.f90: Likewise.
11796         * testsuite/libgomp.fortran/vla1.f90: Likewise.
11797         * testsuite/libgomp.fortran/vla2.f90: Likewise.
11798         * testsuite/libgomp.fortran/vla3.f90: Likewise.
11799         * testsuite/libgomp.fortran/vla4.f90: Likewise.
11800         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11801         * testsuite/libgomp.fortran/vla6.f90: Likewise.
11802         * testsuite/libgomp.fortran/vla7.f90: Likewise.
11803         * testsuite/libgomp.fortran/vla8.f90: Likewise.
11804         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11805         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11806         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11807         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11808         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11809         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11810         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11811         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11812         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11813         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11814         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11815         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11816         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11817         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11818         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11819         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11820         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11821         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11822         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11823         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11824         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11825         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11826         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11827         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11828         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11829         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11830         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11831         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11832         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11833         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11834         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11835         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11836         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11837         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11838         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11839         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11840         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11841         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11842         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11843         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11844         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11845         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11846         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11847         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11848         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11849         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11850         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11851         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11852         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11853         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11854         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11855         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11856         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11857         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11858         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11859         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11860         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11861         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11862         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11863         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11864         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11865         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11866         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11867         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11868         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11869         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11870         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11871         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11872         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11873         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11874         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11875         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11876         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11877         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11878         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11879         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11880         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11881         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11882         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11883         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11884         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11885         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11886         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11887         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11888         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11889         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11890         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11891         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11892         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11893         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11894         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11895         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11896         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11897         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11899 2018-03-20  Richard Biener  <rguenther@suse.de>
11901         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11902         parallelizable loop.
11904 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
11906         PR target/84148
11907         * configure: Regenerate.
11909 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
11911         PR fortran/84418
11912         * libgomp.fortran/pr84418-1.f90: New test.
11913         * libgomp.fortran/pr84418-2.f90: New test.
11915 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
11917         PR fortran/84313
11918         * testsuite/libgomp.fortran/threadprivate4.f90: Add
11919         -std=f2003 -fall-intrinsics into dg-additional-options.
11921 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11923         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11924         clonable.
11926 2018-02-08  Martin Jambor  <mjambor@suse.cz>
11928         * testsuite/libgomp.hsa.c/staticvar.c: New test.
11930 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11932         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11933         [__cplusplus]: Declare extern "C".
11935 2018-02-07  Tom de Vries  <tom@codesourcery.com>
11937         PR libgomp/84217
11938         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11940 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
11941             Jakub Jelinek  <jakub@redhat.com>
11943         PR libgomp/84096
11944         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11945         instead of omp_lock_t.
11947 2018-01-25  Tom de Vries  <tom@codesourcery.com>
11949         PR target/84028
11950         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11952 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11954         PR target/83589
11955         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11957 2018-01-24  Tom de Vries  <tom@codesourcery.com>
11959         PR target/81352
11960         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11962 2018-01-19  Tom de Vries  <tom@codesourcery.com>
11963             Cesar Philippidis  <cesar@codesourcery.com>
11965         PR target/83920
11966         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11967         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11969 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11971         Update copyright years.
11973         * libgomp.texi: Bump @copying's copyright year.
11975 2017-12-30  Tom de Vries  <tom@codesourcery.com>
11977         PR libgomp/83046
11978         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11979         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11981 2017-12-27  Tom de Vries  <tom@codesourcery.com>
11983         PR c++/83046
11984         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11985         (test_nonstatic): Fix return type to workaround PR83046.
11987 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
11989         PR testsuite/83281
11990         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11991         j suffix instead of i.
11992         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
11993         Likewise.
11995 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
11997         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
11998         call to acc_wait (1).
12000 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
12002         PR fortran/81304
12003         * testsuite/libgomp.fortran/pr81304.f90: New test.
12005 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
12007         PR fortran/81841
12008         * libgomp.fortran/pr81841.f90: New test.
12010 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
12012         PR libgomp/83106
12013         * target.c (gomp_target_init): Compute lengths just once and
12014         use them in both malloc size and subsequent copying.
12016 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
12018         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12019         * acinclude.m4: Add cet.m4.
12020         * configure: Regenerate.
12021         * Makefile.in: Likewise.
12022         * testsuite/Makefile.in: Likewise.
12024 2017-11-15  Tom de Vries  <tom@codesourcery.com>
12026         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12027         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
12028         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12029         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
12030         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12031         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
12033 2017-11-14  Tom de Vries  <tom@codesourcery.com>
12035         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12036         non-nvidia devices.
12038 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
12040         PR c++/82835
12041         * testsuite/libgomp.c++/pr82835.C: New test.
12043 2017-11-06  Martin Liska  <mliska@suse.cz>
12045         * testsuite/libgomp.c++/loop-2.C: Return a value
12046         for functions with non-void return type, or change type to void,
12047         or add -Wno-return-type for test.
12048         * testsuite/libgomp.c++/loop-4.C: Likewise.
12049         * testsuite/libgomp.c++/parallel-1.C: Likewise.
12050         * testsuite/libgomp.c++/shared-1.C: Likewise.
12051         * testsuite/libgomp.c++/single-1.C: Likewise.
12052         * testsuite/libgomp.c++/single-2.C: Likewise.
12054 2017-10-31  Tom de Vries  <tom@codesourcery.com>
12056         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12057         "do {} while (false)".
12058         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12059         after HSA_DEBUG call.
12061 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
12063         * target.c (struct gomp_coalesce_buf): New type.
12064         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12065         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12066         (gomp_copy_host2dev): Add CBUF argument, if copying into
12067         the cached ranges, memcpy into buffer instead of copying
12068         into device.
12069         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12070         Add CBUF argument, pass it through to other calls.
12071         (gomp_map_vars): Aggregate copies from host to device if small enough
12072         and with small enough gaps in between into memcpy into a buffer and
12073         fewer host to device copies from the buffer.
12074         (gomp_update): Adjust gomp_copy_host2dev caller.
12076 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
12078         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12079         run" directive.
12080         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12081         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12082         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12083         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12085 2017-10-16  Tom de Vries  <tom@codesourcery.com>
12087         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12088         openacc_nvidia_accel_selected.
12089         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12090         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12091         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12092         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12093         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12094         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12095         openacc_nvidia_accel_selected. Skip for shared memory device.
12096         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12097         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12099 2017-10-09  Martin Jambor  <mjambor@suse.cz>
12101         PR hsa/82416
12102         * testsuite/libgomp.hsa.c/pr82416.c: New test.
12104 2017-10-07  Tom de Vries  <tom@codesourcery.com>
12106         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12107         Remove acc_device_nvidia references.
12108         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12109         Same.
12111 2017-10-05  Tom de Vries  <tom@codesourcery.com>
12113         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12114         vector_length(32) clause from acc parallel directive.
12115         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12117 2017-10-04  Tom de Vries  <tom@codesourcery.com>
12119         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12120         (main): Reduce sum of arr elements.  Assert that hres is exactly
12121         representable in 32-bit floating point.
12122         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12123         (main): Reduce sum of arr elements.  Assert that hres and hmres are
12124         exactly representable in 32-bit floating point.
12125         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12127 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12129         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12130         setting.
12131         * testsuite/libgomp.c++/pr69393.C: Same.
12132         * testsuite/libgomp.c++/taskloop-1.C: Same.
12133         * testsuite/libgomp.c++/taskloop-3.C: Same.
12134         * testsuite/libgomp.c++/taskloop-4.C: Same.
12135         * testsuite/libgomp.c/for-4.c: Same.
12136         * testsuite/libgomp.c/pr66199-3.c: Same.
12137         * testsuite/libgomp.c/pr66199-4.c: Same.
12138         * testsuite/libgomp.c/pr66199-6.c: Same.
12139         * testsuite/libgomp.c/taskloop-1.c: Same.
12140         * testsuite/libgomp.c/taskloop-3.c: Same.
12141         * testsuite/libgomp.c/taskloop-4.c: Same.
12142         * testsuite/libgomp.fortran/aligned1.f03: Same.
12143         * testsuite/libgomp.fortran/condinc1.f: Same.
12144         * testsuite/libgomp.fortran/condinc3.f90: Same.
12145         * testsuite/libgomp.fortran/crayptr1.f90: Same.
12146         * testsuite/libgomp.fortran/crayptr2.f90: Same.
12147         * testsuite/libgomp.fortran/crayptr3.f90: Same.
12148         * testsuite/libgomp.fortran/omp_cond1.f: Same.
12149         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12150         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12151         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12152         * testsuite/libgomp.fortran/recursion1.f90: Same.
12153         * testsuite/libgomp.fortran/target2.f90: Same.
12154         * testsuite/libgomp.fortran/target5.f90: Same.
12155         * testsuite/libgomp.fortran/task3.f90: Same.
12157 2017-09-28  Tom de Vries  <tom@codesourcery.com>
12159         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12160         vector_length(32) clause from acc parallel directive.
12161         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12163 2017-09-27  Tom de Vries  <tom@codesourcery.com>
12165         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12166         Remove acc_device_nvidia references.
12168 2017-09-16  Tom de Vries  <tom@codesourcery.com>
12170         PR c/81875
12171         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12173 2017-09-14  Tom de Vries  <tom@codesourcery.com>
12175         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12176         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12177         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12178         * testsuite/libgomp.c/c.exp: Include test-cases from
12179         libgomp.c-c++-common.
12180         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
12181         files.
12183 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
12185         PR c++/81314
12186         * testsuite/libgomp.c++/pr81314.C: New test.
12188 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
12190         * libgomp.texi (Top): www.openacc.org now uses https.
12191         (Enabling OpenACC): Ditto.
12192         (acc_get_num_devices): Ditto.
12193         (acc_set_device_type): Ditto.
12194         (acc_get_device_type): Ditto.
12195         (acc_set_device_num): Ditto.
12196         (acc_get_device_num): Ditto.
12197         (acc_async_test): Ditto.
12198         (acc_async_test_all): Ditto.
12199         (acc_wait): Ditto.
12200         (acc_wait_all): Ditto.
12201         (acc_wait_all_async): Ditto.
12202         (acc_wait_async): Ditto.
12203         (acc_init): Ditto.
12204         (acc_shutdown): Ditto.
12205         (acc_on_device): Ditto.
12206         (acc_malloc): Ditto.
12207         (acc_free): Ditto.
12208         (acc_copyin): Ditto.
12209         (acc_present_or_copyin): Ditto.
12210         (acc_create): Ditto.
12211         (acc_present_or_create): Ditto.
12212         (acc_copyout): Ditto.
12213         (acc_delete): Ditto.
12214         (acc_update_device): Ditto.
12215         (acc_update_self): Ditto.
12216         (acc_map_data): Ditto.
12217         (acc_unmap_data): Ditto.
12218         (acc_deviceptr): Ditto.
12219         (acc_hostptr): Ditto.
12220         (acc_is_present): Ditto.
12221         (acc_memcpy_to_device): Ditto.
12222         (acc_memcpy_from_device): Ditto.
12223         (acc_get_current_cuda_device): Ditto.
12224         (acc_get_current_cuda_context): Ditto.
12225         (acc_get_cuda_stream): Ditto.
12226         (acc_set_cuda_stream): Ditto.
12227         (ACC_DEVICE_TYPE): Ditto.
12228         (ACC_DEVICE_NUM): Ditto.
12229         (OpenACC Library Interoperability): Ditto.
12231 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
12233         PR c/81687
12234         * testsuite/libgomp.c/pr81687-1.c: New test.
12235         * testsuite/libgomp.c/pr81687-2.c: New test.
12237 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
12239         PR c/69389
12240         * testsuite/libgomp.c/pr69389.c: New test.
12241         * testsuite/libgomp.c++/pr69389.C: New test.
12243 2017-08-07  Tom de Vries  <tom@codesourcery.com>
12245         PR middle-end/78266
12246         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12247         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12249 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
12251         PR c/45784
12252         * testsuite/libgomp.c/pr45784.c: New test.
12253         * testsuite/libgomp.c++/pr45784.C: New test.
12255 2017-07-19  Tom de Vries  <tom@codesourcery.com>
12257         * testsuite/libgomp.oacc-c/vec.c: New test.
12259 2017-07-03  Tom de Vries  <tom@codesourcery.com>
12261         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12263 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12265         * plugin/plugin-nvptx.c (notify_var): New function.
12266         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12268 2017-06-27  Tom de Vries  <tom@codesourcery.com>
12270         * env.c (parse_unsigned_long_1): Factor out of ...
12271         (parse_unsigned_long): ... here.
12272         (parse_int_1): Factor out of ...
12273         (parse_int): ... here.
12274         (parse_int_secure): New function.
12275         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12276         * secure_getenv.h: Factor out of ...
12277         * plugin/plugin-hsa.c: ... here.
12278         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12280 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
12282         PR c++/81130
12283         * testsuite/libgomp.c++/pr81130.C: New test.
12285 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12287         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12288         default args.
12289         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12290         dg-xfail-run-if default args.
12292 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12294         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12295         * testsuite/libgomp.c/pr39591-3.c: Likewise.
12297 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
12299         PR libgomp/80822
12300         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12301         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
12302         sibling lists, depending on level just pick up what CPUs to put
12303         together into a place vs. whether add multiple ordered places.
12305 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
12307         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12308         * libgomp.map (OACC_2.0.1): Add these.
12309         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12310         for "acc_wait", and "acc_wait_all", respectively.
12311         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12312         for "acc_wait", and "acc_wait_all", respectively.
12313         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12314         * libgomp.texi (acc_wait, acc_wait_all): Update.
12315         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12316         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12317         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12319         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12320         acc_present_or_copyin and acc_present_or_create procedures,
12321         respectively.
12322         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12323         generally different variants of OpenACC Runtime Library functions.
12324         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12326         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12327         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12329         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12330         of preprocessor definitions.
12331         * libgomp.h (strong_alias): Guard by "#ifdef
12332         HAVE_ATTRIBUTE_ALIAS".
12333         * oacc-mem.c: Provide "acc_pcreate" as alias for
12334         "acc_present_or_create", and "acc_pcopyin" as alias for
12335         "acc_present_or_copyin".
12336         * libgomp.map: New version "OACC_2.0.1".
12337         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12338         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12339         its content into...
12340         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12341         Extend testing.
12343         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12344         when disabling nvptx offloading.
12346 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
12348         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12349         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12350         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12352         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12353         * testsuite/lib/libgomp.exp
12354         (check_effective_target_openacc_nvidia_accel_configured): New
12355         proc.
12356         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12357         (check_effective_target_c++): New procs.
12358         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12359         (check_effective_target_c++): Likewise.
12361 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
12363         PR middle-end/80809
12364         * testsuite/libgomp.c/pr80809-2.c: New test.
12365         * testsuite/libgomp.c/pr80809-3.c: New test.
12367         PR middle-end/80809
12368         * testsuite/libgomp.c/pr80809-1.c: New test.
12370         PR middle-end/80853
12371         * testsuite/libgomp.c/pr80853.c: New test.
12373 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
12375         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12376         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12377         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12378         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12379         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12381         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12382         Debug output for failure.
12384 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12386         * testsuite/lib/libgomp.exp: Load scanlang.exp.
12388 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
12390         PR bootstrap/80531
12391         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12392         bootstrap compare failures.
12394 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
12396         * testsuite/libgomp.c/target-36.c: New testcase.
12398 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
12400         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12401         instead of char.
12403 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
12405         PR libgomp/80394
12406         * testsuite/libgomp.c/pr80394.c: New test.
12408 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
12410         PR libgomp/79876
12411         * config/posix/thread-stacksize.h: New file.
12412         * config/darwin/thread-stacksize.h: New file.
12413         * config/nvptx/thread-stacksize.h: New file.
12414         * env.c: Include thread-stacksize.h.
12415         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12416         instead of 0.  Call pthread_attr_setstacksize even if
12417         GOMP_DEFAULT_STACKSIZE is non-zero.
12419 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
12421         * env.c (initialize_env): Initialize stacksize to 0.
12423 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
12425         PR c++/80029
12426         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12428 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
12430         PR c/79940
12431         * testsuite/libgomp.c/pr79940.c: New test.
12433 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12435         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12436         targets.
12437         Add __float128 options.
12439 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
12441         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12442         hppa*-*-* dg-skip-if directive.
12444 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
12446         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12447         dg-skip-if directive into a comment.
12449 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
12450             Chung-Lin Tang  <cltang@codesourcery.com>
12452         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12453         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12454         add additional case.
12455         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12456         "openacc_nvidia_accel_selected".
12457         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12458         Add num_workers(8) clause.
12460 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
12462         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12463         hppa*-*-*.
12464         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12465         include complex.h on hppa*-*-hpux*.
12466         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12468 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
12470         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12472         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12473         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
12474         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12475         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
12476         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12477         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
12478         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12479         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
12480         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12481         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
12483 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
12485         * libgomp-plugin.h: #include <stdbool.h>.
12486         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12487         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12488         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12489         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12490         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12491         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12492         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12493         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12494         (GOMP_OFFLOAD_openacc_register_async_cleanup)
12495         (GOMP_OFFLOAD_openacc_async_test)
12496         (GOMP_OFFLOAD_openacc_async_test_all)
12497         (GOMP_OFFLOAD_openacc_async_wait)
12498         (GOMP_OFFLOAD_openacc_async_wait_async)
12499         (GOMP_OFFLOAD_openacc_async_wait_all)
12500         (GOMP_OFFLOAD_openacc_async_wait_all_async)
12501         (GOMP_OFFLOAD_openacc_async_set_async)
12502         (GOMP_OFFLOAD_openacc_create_thread_data)
12503         (GOMP_OFFLOAD_openacc_destroy_thread_data)
12504         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12505         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12506         (GOMP_OFFLOAD_openacc_get_cuda_stream)
12507         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12508         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12509         these.
12510         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12511         (GOMP_OFFLOAD_unload_image): Fix argument types.
12513 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
12515         * testsuite/lib/libgomp.exp
12516         (check_effective_target_hsa_offloading_selected_nocache): Fix up
12517         check_compile invocation.  Fix up removal of executable.  Drop
12518         bogus "2>&1" argument.
12520         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12521         directive.
12523 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
12524             Martin Jambor  <mjambor@suse.cz>
12526         * plugin/hsa.h: Moved to top level include.
12527         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12529 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
12531         PR other/79046
12532         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12533         of cat to get version from BASE-VER file.
12534         * testsuite/Makefile.in: Regenerated.
12536 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
12538         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12539         for _WIN64.
12541 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
12543         * plugin/hsa.h: Add GCC runtime library exception.
12544         * plugin/hsa_ext_finalize.h: Likewise.
12546         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12547         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
12548         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12549         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12550         plugin/include/cuda as include dir and -ldl instead of -lcuda as
12551         library to link ptx plugin against.
12552         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12553         (CUDA_CALLS): Define.
12554         (cuda_lib, cuda_lib_inited): New variables.
12555         (init_cuda_lib): New function.
12556         (CUDA_CALL_PREFIX): Define.
12557         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12558         (CUDA_CALL): Use FN instead of (FN).
12559         (CUDA_CALL_NOCHECK): Define.
12560         (cuda_error, fini_streams_for_device, select_stream_for_async,
12561         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12562         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12563         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12564         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12565         CUDA_CALL_NOCHECK.
12566         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
12567         CUDA_CALL_NOCHECK.
12568         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12569         Use CUDA_CALL_NOCHECK.
12570         * plugin/cuda/cuda.h: New file.
12571         * config.h.in: Regenerated.
12572         * configure: Regenerated.
12574         PR other/79046
12575         * configure.ac: Add GCC_BASE_VER.
12576         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12577         get version from BASE-VER file.
12578         * testsuite/Makefile.in: Regenerated.
12579         * configure: Regenerated.
12580         * Makefile.in: Regenerated.
12582 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12584         PR libgomp/60670
12585         * Makefile.am: Make fincludedir multilib-aware.
12586         * Makefile.in: Regenerate.
12588 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
12590         Update copyright years.
12592         * libgomp.texi: Bump @copying's copyright year.
12594 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12596         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12597         pthread_spinlock_t instead of gomp_mutex_t lock.
12598         (gomp_get_thread_pool): Likewise.
12599         (gomp_release_thread_pool): Likewise.
12600         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12601         Likewise.
12603 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12605         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12606         thread pool in case nthreads == 1.
12608 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12610         * config/nvptx/env.c: Delete.
12611         * icv.c: Move definitions of ICV variables back ...
12612         * env.c: ...here.  Do not compile environment-related functionality if
12613         LIBGOMP_OFFLOADED_ONLY is set.
12615 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12617         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12618         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12619         * configure: Regenerate.
12620         * config.h.in: Likewise.
12622 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
12624         * Makefile.in: Regenerate with automake-1.11.6.
12625         * aclocal.m4: Likewise.
12626         * configure: Likewise.
12627         * testsuite/Makefile.in: Likewise.
12629 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
12631         * config/nvptx/critical.c: Delete to use generic implementation.
12633 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
12635         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12636         ../../affinity.c as fallback.
12637         * config/nvptx/affinity.c: Delete to use fallback implementation.
12639 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
12640             Jakub Jelinek  <jakub@redhat.com>
12641             Dmitry Melnik  <dm@ispras.ru>
12643         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12644         * Makefile.in. Regenerate.
12645         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12646         (LIBGOMP_USE_PTHREADS): ...here; new define.
12647         * configure: Regenerate.
12648         * config.h.in: Likewise.
12649         * config/posix/affinity.c: Move to...
12650         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
12651         interface by LIBGOMP_USE_PTHREADS. 
12652         * critical.c: Split out GOMP_atomic_{start,end} into...
12653         * atomic.c: ...here (new file).
12654         * env.c: Split out ICV definitions into...
12655         * icv.c: ...here (new file) and...
12656         * icv-device.c: ...here. New file.
12657         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12658         (gomp_destroy_lock_30): Ditto.
12659         (gomp_set_lock_30): Ditto.
12660         (gomp_unset_lock_30): Ditto.
12661         (gomp_test_lock_30): Ditto.
12662         (gomp_init_nest_lock_30): Ditto.
12663         (gomp_destroy_nest_lock_30): Ditto.
12664         (gomp_set_nest_lock_30): Ditto.
12665         (gomp_unset_nest_lock_30): Ditto.
12666         (gomp_test_nest_lock_30): Ditto.
12667         * lock.c: New.
12668         * config/nvptx/lock.c: New.
12669         * config/nvptx/bar.c: New.
12670         * config/nvptx/bar.h: New.
12671         * config/nvptx/doacross.h: New.
12672         * config/nvptx/error.c: New.
12673         * config/nvptx/icv-device.c: New.
12674         * config/nvptx/mutex.h: New.
12675         * config/nvptx/pool.h: New.
12676         * config/nvptx/proc.c: New.
12677         * config/nvptx/ptrlock.h: New.
12678         * config/nvptx/sem.h: New.
12679         * config/nvptx/simple-bar.h: New.
12680         * config/nvptx/target.c: New.
12681         * config/nvptx/task.c: New.
12682         * config/nvptx/team.c: New.
12683         * config/nvptx/time.c: New.
12684         * config/posix/simple-bar.h: New.
12685         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
12686         (gomp_num_teams_var): Declare.
12687         (struct gomp_thread_pool): Change threads_dock member to
12688         gomp_simple_barrier_t.
12689         [__nvptx__] (gomp_thread): New implementation.
12690         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12691         (gomp_thread_destructor): Ditto.
12692         (gomp_init_thread_affinity): Ditto.
12693         * team.c: Guard uses of Pthreads-specific interfaces by
12694         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
12695         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12696         * config/nvptx/alloc.c: Delete.
12697         * config/nvptx/barrier.c: Ditto.
12698         * config/nvptx/fortran.c: Ditto.
12699         * config/nvptx/iter.c: Ditto.
12700         * config/nvptx/iter_ull.c: Ditto.
12701         * config/nvptx/loop.c: Ditto.
12702         * config/nvptx/loop_ull.c: Ditto.
12703         * config/nvptx/ordered.c: Ditto.
12704         * config/nvptx/parallel.c: Ditto.
12705         * config/nvptx/priority_queue.c: Ditto.
12706         * config/nvptx/sections.c: Ditto.
12707         * config/nvptx/single.c: Ditto.
12708         * config/nvptx/splay-tree.c: Ditto.
12709         * config/nvptx/work.c: Ditto.
12710         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12711         -foffload=-lgfortran in addition to -lgfortran.
12712         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12713         * plugin/plugin-nvptx.c: Include <limits.h>.
12714         (struct targ_fn_descriptor): Add new fields.
12715         (struct ptx_device): Ditto.  Set them...
12716         (nvptx_open_device): ...here.
12717         (nvptx_adjust_launch_bounds): New.
12718         (nvptx_host2dev): Allow NULL 'nvthd'.
12719         (nvptx_dev2host): Ditto.
12720         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12721         (link_ptx): Adjust log sizes.
12722         (nvptx_host2dev): Allow NULL 'nvthd'.
12723         (nvptx_dev2host): Ditto.
12724         (nvptx_set_clocktick): New.  Use it...
12725         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
12726         fields.
12727         (GOMP_OFFLOAD_dev2dev): New.
12728         (nvptx_adjust_launch_bounds): New.
12729         (nvptx_stacks_size): New.
12730         (nvptx_stacks_alloc): New.
12731         (nvptx_stacks_free): New.
12732         (GOMP_OFFLOAD_run): New.
12733         (GOMP_OFFLOAD_async_run): New (stub).
12735 2016-11-23  Martin Jambor  <mjambor@suse.cz>
12737         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12738         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12739         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12741 2016-11-23  Martin Liska  <mliska@suse.cz>
12742             Martin Jambor  <mjambor@suse.cz>
12744         * plugin/hsa.h: New file.
12745         * plugin/hsa_ext_finalize.h: New file.
12746         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
12747         header file unistd.h, and functions secure_getenv, __secure_getenv,
12748         getuid, geteuid, getgid and getegid.
12749         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12750         -D_GNU_SOURCE.
12751         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12752         Handle various cases of secure_getenv presence, add an implementation
12753         when we can test effective UID and GID.
12754         (struct hsa_runtime_fn_info): New structure.
12755         (hsa_runtime_fn_info hsa_fns): New variable.
12756         (hsa_runtime_lib): Likewise.
12757         (support_cpu_devices): Likewise.
12758         (init_enviroment_variables): Load newly introduced ENV
12759         variables.
12760         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12761         (hsa_fatal): Likewise.
12762         (DLSYM_FN): New macro.
12763         (init_hsa_runtime_functions): New function.
12764         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12765         structure.  Depending on environment, also allow CPU devices.
12766         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12767         (get_kernarg_memory_region): Likewise.
12768         (GOMP_OFFLOAD_init_device): Likewise.
12769         (destroy_hsa_program): Likewise.
12770         (init_basic_kernel_info): New function.
12771         (GOMP_OFFLOAD_load_image): Use it.
12772         (create_and_finalize_hsa_program): Call hsa run-time functions via
12773         hsa_fns structure.
12774         (create_single_kernel_dispatch): Likewise.
12775         (release_kernel_dispatch): Likewise.
12776         (init_single_kernel): Likewise.
12777         (parse_target_attributes): Allow up multiple HSA grid dimensions.
12778         (get_group_size): New function.
12779         (run_kernel): Likewise.
12780         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12781         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12782         structure.
12783         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12784         * testsuite/libgomp-test-support.exp.in: Likewise.
12785         * Makefile.in: Regenerated.
12786         * aclocal.m4: Likewise.
12787         * config.h.in: Likewise.
12788         * configure: Likewise.
12789         * testsuite/Makefile.in: Likewise.
12791 2016-11-15  Martin Jambor  <mjambor@suse.cz>
12792             Alexander Monakov  <amonakov@ispras.ru>
12794         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12795         mapping clauses to target constructs.
12796         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12798 2016-11-15  Matthias Klose  <doko@ubuntu.com>
12800         * configure: Regenerate.
12802 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
12804         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12805         * omp_lib.h.in (openmp_version): Likewise.
12806         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12807         of 201307.
12808         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12810         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12811         (fib_wrapper): Add map(from: x) clause.
12812         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12813         (e_53_2): Likewise.
12814         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12815         (accum): Add map(tmp) clause.
12816         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12817         (accum): Add map(tofrom: tmp) clause.
12818         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12819         (gramSchmidt): Likewise.
12820         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12821         map(tofrom: sum) clause.
12822         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12823         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
12824         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12825         only allowed on the loop iterator.
12826         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12827         * testsuite/libgomp.fortran/taskloop2.f90: New test.
12828         * testsuite/libgomp.fortran/taskloop4.f90: New test.
12829         * testsuite/libgomp.fortran/doacross1.f90: New test.
12830         * testsuite/libgomp.fortran/doacross3.f90: New test.
12831         * testsuite/libgomp.fortran/taskloop1.f90: New test.
12832         * testsuite/libgomp.fortran/taskloop3.f90: New test.
12833         * testsuite/libgomp.fortran/doacross2.f90: New test.
12834         * testsuite/libgomp.c/doacross-1.c (main): Add missing
12835         #pragma omp atomic read.
12836         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12837         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12839 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
12840             Nathan Sidwell  <nathan@acm.org>
12842         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12843         to determine default geometry.
12844         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12845         dimension.
12847 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
12849         * hashtab.h: Use standard GPLv3 with runtime exception
12850         boilerplate.
12852 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
12854         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12855         size when allocating new thread.
12857 2016-09-14  Marek Polacek  <polacek@redhat.com>
12859         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12861 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12863         PR fortran/71014
12864         * testsuite/libgomp.fortran/pr71014.f90: New test.
12866 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
12868         PR middle-end/70895
12869         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12870         firstprivate clauses.
12871         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12872         copy clauses.
12873         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12874         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12875         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12876         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12877         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12878         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12879         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12880         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12881         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12882         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12883         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12884         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12886 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
12888         PR fortran/70598
12889         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12891 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
12893         PR c++/58706
12894         * testsuite/libgomp.c++/pr58706.C: New test.
12896 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
12898         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12899         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12900         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12901         Likewise.
12902         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12903         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12904         Likewise.
12905         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12907         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12908         test, and don't hardcode -O0.
12910 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12912         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12914 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
12916         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12917         test.
12919 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12921         PR middle-end/71734
12922         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12923         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12925 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
12927         PR fortran/71717
12928         * testsuite/libgomp.fortran/associate3.f90: New test.
12930 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
12932         * testsuite/libgomp.c++/target-21.C: New test.
12934 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12936         * testsuite/libgomp.c++/target-20.C: New test.
12938 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12939             Cesar Philippidis  <cesar@codesourcery.com>
12941         PR middle-end/71373
12942         * libgomp.oacc-c/nested-function-1.c: New file.
12943         * libgomp.oacc-c/nested-function-2.c: Likewise.
12944         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12945         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12946         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12948 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12950         PR c/71381
12951         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12952         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12953         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12955 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
12957         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12958         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12960 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
12962         PR c/70688
12963         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12965 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12967         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12968         instead of invalid schedule(static, 0).
12969         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12971 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
12973         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12974         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12975         parameter, use to set async stream around call to gomp_unmap_vars,
12976         call gomp_unmap_vars() with 'do_copyfrom' set to true.
12977         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12978         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12979         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12980         (event_add): Add int parameter, initialize 'val' field when
12981         adding new ptx_event struct.
12982         (nvptx_evec): Adjust event_add() call arguments.
12983         (nvptx_host2dev): Likewise.
12984         (nvptx_dev2host): Likewise.
12985         (nvptx_wait_async): Likewise.
12986         (nvptx_wait_all_async): Likewise.
12987         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12988         pass to event_add() call.
12989         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12990         parameter.
12991         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12992         call openacc.register_async_cleanup_func() hook.
12993         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12994         * target.c (gomp_copy_from_async): Delete function.
12995         (gomp_map_vars): Remove async_refcount.
12996         (gomp_unmap_vars): Likewise.
12997         (gomp_load_image_to_device): Likewise.
12998         (omp_target_associate_ptr): Likewise.
12999         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13000         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13001         (gomp_copy_from_async): Remove.
13003 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
13005         * target.c (gomp_device_copy): New function.
13006         (gomp_copy_host2dev): Likewise.
13007         (gomp_copy_dev2host): Likewise.
13008         (gomp_free_device_memory): Likewise.
13009         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13010         (gomp_map_pointer): Likewise.
13011         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13012         NULL value from alloc_func plugin hook.
13013         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13014         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13015         (gomp_unmap_vars): Likewise.
13016         (gomp_update): Adjust to call gomp_copy_dev2host and
13017         gomp_copy_host2dev functions.
13018         (gomp_unload_image_from_device): Handle false value from
13019         unload_image_func plugin hook.
13020         (gomp_init_device): Handle false value from init_device_func
13021         plugin hook.
13022         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13023         (omp_target_free): Adjust to call gomp_free_device_memory.
13024         (omp_target_memcpy): Handle return values from host2dev_func,
13025         dev2host_func, and dev2dev_func plugin hooks.
13026         (omp_target_memcpy_rect_worker): Likewise.
13027         (gomp_target_fini): Handle false value from fini_device_func
13028         plugin hook.
13029         * libgomp.h (struct gomp_device_descr): Adjust return type of
13030         init_device_func, fini_device_func, unload_image_func, free_func,
13031         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13032         * oacc-init.c (acc_shutdown_1): Handle false value from
13033         fini_device_func plugin hook.
13034         * oacc-host.c (host_init_device): Change return type to bool.
13035         (host_fini_device): Likewise.
13036         (host_unload_image): Likewise.
13037         (host_free): Likewise.
13038         (host_dev2host): Likewise.
13039         (host_host2dev): Likewise.
13040         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13041         (acc_memcpy_to_device): Likewise.
13042         (acc_memcpy_from_device): Likewise.
13043         (delete_copyout): Add libfnname parameter, handle free_func
13044         hook fatal error case.
13045         (acc_delete): Adjust delete_copyout call.
13046         (acc_copyout): Likewise.
13047         (update_dev_host): Move gomp_mutex_unlock to after
13048         host2dev/dev2host hook calls.
13050         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13051         to 'hsa_error_msg', for clarity.
13052         (hsa_fatal): Likewise.
13053         (hsa_error): New function.
13054         (init_hsa_context): Change return type to bool, adjust to return
13055         false on error.
13056         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13057         return value.
13058         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13059         return false on error.
13060         (get_agent_info): Adjust to return NULL on error.
13061         (destroy_hsa_program): Change return type to bool, adjust to
13062         return false on error.
13063         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13064         (destroy_module): Change return type to bool, adjust to
13065         return false on error.
13066         (GOMP_OFFLOAD_unload_image): Likewise.
13067         (GOMP_OFFLOAD_fini_device): Likewise.
13068         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13069         (GOMP_OFFLOAD_free): Change to return false when called.
13070         (GOMP_OFFLOAD_dev2host): Likewise.
13071         (GOMP_OFFLOAD_host2dev): Likewise.
13072         (GOMP_OFFLOAD_dev2dev): Likewise.
13074         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13075         (CUDA_CALL): Likewise.
13076         (CUDA_CALL_ASSERT): Likewise.
13077         (map_init): Change return type to bool, use CUDA_CALL* macros.
13078         (map_fini): Likewise.
13079         (init_streams_for_device): Change return type to bool, adjust
13080         call to map_init.
13081         (fini_streams_for_device): Change return type to bool, adjust
13082         call to map_fini.
13083         (select_stream_for_async): Release stream_lock before calls to
13084         GOMP_PLUGIN_fatal, adjust call to map_init.
13085         (nvptx_init): Use CUDA_CALL* macros.
13086         (nvptx_attach_host_thread_to_device): Change return type to bool,
13087         use CUDA_CALL* macros.
13088         (nvptx_open_device): Use CUDA_CALL* macros.
13089         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13090         macros.
13091         (nvptx_get_num_devices): Use CUDA_CALL* macros.
13092         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13093         (nvptx_exec): Use CUDA_CALL* macros.
13094         (nvptx_alloc): Use CUDA_CALL* macros.
13095         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13096         (nvptx_host2dev): Likewise.
13097         (nvptx_dev2host): Likewise.
13098         (nvptx_wait): Use CUDA_CALL* macros.
13099         (nvptx_wait_async): Likewise.
13100         (nvptx_wait_all): Likewise.
13101         (nvptx_wait_all_async): Likewise.
13102         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13103         use CUDA_CALL* macros, adjust call to map_fini.
13104         (GOMP_OFFLOAD_init_device): Change return type to bool,
13105         adjust code accordingly.
13106         (GOMP_OFFLOAD_fini_device): Likewise.
13107         (GOMP_OFFLOAD_load_image): Adjust calls to
13108         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13109         use CUDA_CALL* macros.
13110         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13111         return code.
13112         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13113         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13114         handle error return.
13115         (GOMP_OFFLOAD_dev2host): Likewise.
13116         (GOMP_OFFLOAD_host2dev): Likewise.
13117         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13118         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13120 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13122         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13123         (acc_free): Likewise.
13124         (acc_memcpy_to_device): Likewise.
13125         (acc_memcpy_from_device): Likewise.
13126         (acc_deviceptr): Likewise.
13127         (acc_hostptr): Likewise.
13128         (acc_is_present): Likewise.
13129         (acc_map_data): Likewise.
13130         (acc_unmap_data): Likewise.
13131         (present_create_copy): Likewise.
13132         (delete_copyout): Likewise.
13133         (update_dev_host): Likewise.
13134         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13135         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13136         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13137         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13138         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13139         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13140         it only runs on nvptx targets.
13141         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13142         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13143         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13144         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13145         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13146         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13147         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13148         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13149         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13150         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13151         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13152         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13153         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13154         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13155         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13156         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13157         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13158         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13159         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13160         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13161         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13162         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13163         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13165 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13167         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13169 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
13171         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13172         to gomp_init_targets_once.
13173         (acc_set_device_type): Remove !cached_base_dev condition on call to
13174         gomp_init_targets_once, move call to before acc_device_lock acquire,
13175         to avoid deadlock.
13176         (acc_get_device_num): Remove !cached_base_dev condition on call to
13177         gomp_init_targets_once.
13178         (acc_set_device_num): Likewise.
13180 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13182         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13184 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
13186         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13187         expected partitioning.
13189 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
13191         PR middle-end/70626
13192         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13193         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13194         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13196 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
13198         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13199         non-fatal.
13201 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
13203         PR middle-end/70680
13204         * testsuite/libgomp.c/pr70680-1.c: New test.
13205         * testsuite/libgomp.c/pr70680-2.c: New test.
13207 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13209         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13210         pass parameter variables to subroutines.
13212 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
13214         PR middle-end/70643
13215         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13217 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
13219         PR testsuite/68242
13220         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13221         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13223 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
13225         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13226         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13227         GOACC_declare prototype.
13229         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13230         Merge this file, and...
13231         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13232         ... this file, and...
13233         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13234         ... this file, and...
13235         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13236         ... this file, and...
13237         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13238         ... this file, and...
13239         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13240         ... this file, and...
13241         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13242         ... this file, and...
13243         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13244         ... this file, and...
13245         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13246         ... this file, and...
13247         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13248         ... this file, and...
13249         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13250         ... this file, and...
13251         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13252         ... this file, and...
13253         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13254         ... this file into...
13255         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13256         file.
13258         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13259         Make failure observable.
13261 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
13263         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13264         field.
13265         * target.c (gomp_target_fallback_firstprivate,
13266         gomp_target_unshare_firstprivate): Removed.
13267         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13268         before waiting for dependencies.
13269         (gomp_target_task_fn): Don't copy firstprivate vars here.
13270         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13271         firstprivate_copies here.
13272         (gomp_create_target_task): Don't initialize firstprivate_copies field.
13273         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13274         explicit/implicit firstprivate.
13276 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
13278         PR lto/70289
13279         PR ipa/70348
13280         PR tree-optimization/70373
13281         PR middle-end/70533
13282         PR middle-end/70534
13283         PR middle-end/70535
13284         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13285         test.
13286         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13287         test.
13288         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13289         test.
13290         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13291         test.
13292         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13293         test.
13294         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13295         test.
13296         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13297         test.
13298         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13299         test.
13300         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13301         test.
13302         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13303         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13304         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13305         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13306         test.
13307         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13308         test.
13309         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13310         test.
13311         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13312         test.
13313         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13314         coverage.
13315         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13316         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13317         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13318         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13319         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13320         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13321         coverage.
13322         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13323         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13324         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13325         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13326         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13327         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13328         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13329         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13330         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13331         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13332         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13333         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13334         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13335         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13336         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13338 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
13339             James Norris  <jnorris@codesourcery.com>
13340             Nathan Sidwell  <nathan@codesourcery.com>
13341             Julian Brown  <julian@codesourcery.com>
13342             Cesar Philippidis  <cesar@codesourcery.com>
13343             Chung-Lin Tang  <cltang@codesourcery.com>
13344             Tom de Vries  <tom@codesourcery.com>
13346         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13347         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13348         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13349         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13350         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13351         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13352         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13353         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13354         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13355         XFAIL.
13356         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13357         Incorporate...
13358         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13359         file.
13360         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13361         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13362         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13363         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13364         Likewise.
13365         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13366         Likewise.
13367         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13368         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13369         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13370         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13371         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13372         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13373         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13374         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13375         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13376         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13377         Likewise.
13378         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13379         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13380         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13381         file...
13382         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13383         file into...
13384         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13385         file.  Update.
13386         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13387         file.
13388         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13389         Likewise.
13390         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13391         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13392         ... this new file.  Update.
13393         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13394         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13395         ... this new file.  Update.
13396         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13397         file.  Incorporate...
13398         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13399         file, and...
13400         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13401         file, and...
13402         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13403         file.
13404         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13406 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
13408         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13409         set-torture-options.
13411 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
13413         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13414         gcc-dg-runtest.
13415         * testsuite/libgomp.oacc-c/c.exp: Likewise.
13416         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13417         -fno-builtin-acc_on_device instead of -O0.
13418         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13419         -O0.
13420         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13421         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13422         Likewise.
13423         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13424         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13425         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13426         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13427         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13428         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13429         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13430         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13431         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13432         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13433         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13434         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13435         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13436         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13437         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13438         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13439         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13440         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13441         Don't specify -O2.
13442         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13443         Likewise.
13444         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13445         Likewise.
13447 2016-03-24  Martin Liska  <mliska@suse.cz>
13449         * plugin/plugin-hsa.c (packet_store_release): New function
13450         that is taken from the HSA runtime manual.
13451         (GOMP_OFFLOAD_run): Use the function.
13453 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
13455         PR c++/70376
13456         * testsuite/libgomp.c++/pr70376.C: New test.
13458 2016-03-23  Tom de Vries  <tom@codesourcery.com>
13460         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13461         initialization of lresult and lvresult.
13462         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13464 2016-03-23  James Norris  <jnorris@codesourcery.com>
13465             Daichi Fukuoka <dc-fukuoka@sgi.com>
13467         PR libgomp/69414
13468         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13469         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13470         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13471         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13473 2016-03-23  Martin Liska  <mliska@suse.cz>
13475         PR hsa/70337
13476         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13477         argument just in case a dispatched kernel uses that argument.
13479 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
13481         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13482         -ftree-parallelize-loops/-fopenacc changes.
13483         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13484         Likewise.
13485         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13486         Likewise.
13487         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13488         Likewise.
13489         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13490         Likewise.
13491         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13492         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13494 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
13496         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13497         always_ld_library_path the path to libgcc_s.
13499 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
13501         PR testsuite/70009
13502         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13504 2016-03-09  Tom de Vries  <tom@codesourcery.com>
13506         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13507         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13508         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13509         Same.
13510         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13511         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13512         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13513         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13515 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13517         * testsuite/lib/libgomp.exp
13518         (check_effective_target_hsa_offloading_selected_nocache): New.
13519         (check_effective_target_hsa_offloading_selected): Likewise.
13520         * testsuite/libgomp.hsa.c/c.exp: Likewise.
13521         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13522         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13523         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13524         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13525         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13526         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13527         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13528         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13529         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13530         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13531         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13532         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13533         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13534         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13535         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13536         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13538 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13540         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13541         non-shared memory accelerators.
13542         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13543         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13544         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13545         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13546         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13547         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13548         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13549         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13550         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13552 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13554         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13555         ALWAYS_CFLAGS.
13557 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13559         PR libgomp/69555
13560         * testsuite/libgomp.c++/pr69555-1.C: New test.
13561         * testsuite/libgomp.c++/pr69555-2.C: New test.
13563 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
13564             Martin Jambor  <mjambor@suse.cz>
13566         * testsuite/lib/libgomp.exp
13567         (check_effective_target_offload_device_shared_as): New proc.
13568         * testsuite/libgomp.c++/declare_target-1.C: New test.
13570 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
13572         PR driver/68463
13573         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13575 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
13577         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13578         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13579         dims.
13580         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13581         -ftree-parallelize-loops/-fopenacc changes.
13582         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13583         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13584         Likewise.
13585         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13586         Likewise.
13587         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13588         Likewise.
13589         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13590         Likewise.
13591         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13592         Likewise.
13593         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13594         Likewise.
13595         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13596         Likewise.
13597         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13598         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13599         Likewise.
13600         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13601         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13602         Likewise.
13603         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13604         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13605         Likewise.
13607 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
13609         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13611 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
13613         PR driver/69805
13614         * testsuite/libgomp.c/pr69805.c: New test.
13616 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13618         PR lto/67709
13619         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13621 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13623         PR tree-optimization/69599
13624         * testsuite/libgomp.c/omp-nested-3.c: New test.
13625         * testsuite/libgomp.c/pr46032-2.c: New test.
13626         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13627         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13629 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13631         PR lto/69707
13632         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13634 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13636         * testsuite/libgomp.c/target-31.c: Fix testcase.
13638 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
13640         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13641         clause.
13642         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13643         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13644         reduction and map clauses.
13645         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13647 2016-02-02  James Norris  <jnorris@codesourcery.com>
13649         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13651 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
13653         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13654         * oacc-parallel.c (GOACC_host_data): Remove function definition.
13656         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13657         cases.
13659         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13660         variables.
13661         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13662         (hsa_kmt_lib): Set variables.
13663         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13664         always_ld_library_path.
13665         * Makefile.in: Regenerate.
13666         * configure: Likewise.
13667         * testsuite/Makefile.in: Likewise.
13669         * plugin/configfrag.ac (offload_additional_options)
13670         (offload_additional_lib_paths): Don't amend for hsa offloading.
13671         * configure: Regenerate.
13673         * plugin/configfrag.ac: Don't configure for offloading target if
13674         we don't build the corresponding plugin.
13675         * configure: Regenerate.
13677 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
13679         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13680         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13682 2016-01-26  Tom de Vries  <tom@codesourcery.com>
13684         PR tree-optimization/69110
13685         * testsuite/libgomp.c/pr69110.c: New test.
13687 2016-01-25  Richard Biener  <rguenther@suse.de>
13689         PR lto/69393
13690         * testsuite/libgomp.c++/pr69393.C: New testcase.
13692 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
13694         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13695         function wasn't mapped to the device with non-shared memory.
13697 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
13699         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13701 2016-01-19  Martin Jambor  <mjambor@suse.cz>
13702             Martin Liska  <mliska@suse.cz>
13704         * plugin/Makefrag.am: Add HSA plugin requirements.
13705         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13706         (HSA_RUNTIME_LIB): Likewise.
13707         (HSA_RUNTIME_CPPFLAGS): Likewise.
13708         (HSA_RUNTIME_INCLUDE): New substitution.
13709         (HSA_RUNTIME_LIB): Likewise.
13710         (HSA_RUNTIME_LDFLAGS): Likewise.
13711         (hsa-runtime): New configure option.
13712         (hsa-runtime-include): Likewise.
13713         (hsa-runtime-lib): Likewise.
13714         (PLUGIN_HSA): New substitution variable.
13715         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13716         configure options.
13717         (PLUGIN_HSA_CPPFLAGS): Likewise.
13718         (PLUGIN_HSA_LDFLAGS): Likewise.
13719         (PLUGIN_HSA_LIBS): Likewise.
13720         Check that we have access to HSA run-time.
13721         * libgomp-plugin.h (offload_target_type): New element
13722         OFFLOAD_TARGET_TYPE_HSA.
13723         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13724         args.
13725         (bool gomp_create_target_task): Updated.
13726         (gomp_device_descr): Extra parameter of run_func and async_run_func,
13727         new field can_run_func.
13728         * libgomp_g.h (GOMP_target_ext): Update prototype.
13729         * oacc-host.c (host_run): Added a new parameter args.
13730         * target.c (calculate_firstprivate_requirements): New function.
13731         (copy_firstprivate_data): Likewise.
13732         (gomp_target_fallback_firstprivate): Use them.
13733         (gomp_target_unshare_firstprivate): New function.
13734         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13735         devices.
13736         (GOMP_target): Do host fallback for all shared memory devices.  Do not
13737         pass any args to plugins.
13738         (GOMP_target_ext): Introduce device-specific argument parameter args.
13739         Allow host fallback if device shares memory.  Do not remap data if
13740         device has shared memory.
13741         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
13742         like host fallback for mappings.
13743         (GOMP_target_data): Treat shared memory devices like host fallback.
13744         (GOMP_target_data_ext): Likewise.
13745         (GOMP_target_update): Likewise.
13746         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
13747         gomp_create_target_task.
13748         (GOMP_target_enter_exit_data): Likewise.
13749         (omp_target_alloc): Treat shared memory devices like host fallback.
13750         (omp_target_free): Likewise.
13751         (omp_target_is_present): Likewise.
13752         (omp_target_memcpy): Likewise.
13753         (omp_target_memcpy_rect): Likewise.
13754         (omp_target_associate_ptr): Likewise.
13755         (gomp_load_plugin_for_device): Also load can_run.
13756         * task.c (GOMP_PLUGIN_target_task_completion): Free
13757         firstprivate_copies.
13758         (gomp_create_target_task): Accept new argument args and store it to
13759         ttask.
13760         * plugin/plugin-hsa.c: New file.
13762 2016-01-18  Tom de Vries  <tom@codesourcery.com>
13764         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13765         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13766         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13767         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13768         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13769         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13770         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13771         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13772         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13773         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13774         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13775         Same.
13776         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13777         Same.
13778         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13779         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13780         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13781         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13782         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13783         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13784         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13785         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13786         Same.
13787         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13789 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
13791         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13793 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
13795         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13797 2016-01-12  James Norris  <jnorris@codesourcery.com>
13799         * libgomp.texi: Updates for OpenACC.
13801 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
13803         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13805 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13807         PR fortran/66680
13808         * testsuite/libgomp.fortran/pr66680.f90: New test.
13810 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13812         PR middle-end/68960
13813         * testsuite/libgomp.c/pr68960.c: New test.
13815 2016-01-06  Nathan Sidwell  <nathan@acm.org>
13817         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13818         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13820 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13822         Update copyright years.
13824         * libgomp.texi: Bump @copying's copyright year.
13826 2015-12-31  Nathan Sidwell  <nathan@acm.org>
13828         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13829         dg-additional-options syntax.
13830         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13831         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13832         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13833         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13834         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13835         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13836         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13837         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13838         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13839         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13840         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13841         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13842         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13843         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13844         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13845         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13846         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13847         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13849 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
13851         * libgomp.h (REFCOUNT_LINK): Define.
13852         (struct splay_tree_key_s): Add link_key.
13853         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13854         Replace target address of the pointer with target address of newly
13855         mapped object in the splay tree.  Set link pointer on target to the
13856         device address of the mapped object.
13857         (gomp_unmap_vars): Restore target address of the pointer in the splay
13858         tree for REFCOUNT_LINK objects after unmapping.
13859         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13860         declare target link" objects.
13861         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
13862         "omp declare target link" objects, which were mapped for the image.
13863         (gomp_exit_data): Restore target address of the pointer in the splay
13864         tree for REFCOUNT_LINK objects after unmapping.
13865         * testsuite/libgomp.c/target-link-1.c: New file.
13867 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
13869         * libgomp.h (gomp_device_state): New enum.
13870         (struct gomp_device_descr): Replace is_initialized with state.
13871         (gomp_fini_device): Remove declaration.
13872         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13873         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13874         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
13875         (acc_set_device_type): Use state instead of is_initialized.
13876         (acc_set_device_num): Likewise.
13877         * target.c (resolve_device): Use state instead of is_initialized.
13878         Do not initialize finalized device.
13879         (gomp_map_vars): Do nothing if device is finalized.
13880         (gomp_unmap_vars): Likewise.
13881         (gomp_update): Likewise.
13882         (GOMP_offload_register_ver): Use state instead of is_initialized.
13883         (GOMP_offload_unregister_ver): Likewise.
13884         (gomp_init_device): Likewise.
13885         (gomp_unload_device): Likewise.
13886         (gomp_fini_device): Remove.
13887         (gomp_get_target_fn_addr): Do nothing if device is finalized.
13888         (GOMP_target): Go to host fallback if device is finalized.
13889         (GOMP_target_ext): Likewise.
13890         (gomp_exit_data): Do nothing if device is finalized.
13891         (gomp_target_task_fn): Go to host fallback if device is finalized.
13892         (gomp_target_fini): New static function.
13893         (gomp_target_init): Use state instead of is_initialized.
13894         Call gomp_target_fini at exit.
13896 2015-12-09  Tom de Vries  <tom@codesourcery.com>
13898         PR tree-optimization/68716
13899         * testsuite/libgomp.c/omp-nested-2.c: New test.
13901 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
13903         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13904         target openacc_nvidia_accel_selected.
13905         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13906         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13907         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13908         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13910 2015-12-01  Julian Brown  <julian@codesourcery.com>
13911             James Norris  <James_Norris@mentor.com>
13913         * oacc-parallel.c (GOACC_host_data): New function.
13914         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13915         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13916         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13917         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13918         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13919         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13920         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13922 2015-11-30  James Norris  <jnorris@codesourcery.com>
13923             Cesar Philippidis  <cesar@codesourcery.com>
13925         libgomp/
13926         * libgomp.oacc-fortran/routine-5.f90: New test.
13927         * libgomp.oacc-fortran/routine-7.f90: New test.
13928         * libgomp.oacc-fortran/routine-9.f90: New test.
13930 2015-11-30  Tom de Vries  <tom@codesourcery.com>
13932         PR tree-optimization/46032
13933         * testsuite/libgomp.c/pr46032.c: New test.
13935 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
13937         PR libgomp/68579
13938         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13939         (gomp_create_target_task): Call it before freeing
13940         GOMP_TARGET_TASK_DATA tasks.
13942         PR c/63326
13943         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13944         in between case label and OpenMP standalone directives.
13945         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13947 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
13949         * configure: Regenerate.
13951 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
13953         * testsuite/libgomp.c/target-35.c: New test.
13955 2015-11-22  James Norris  <jnorris@codesourcery.com>
13956             Cesar Philippidis  <cesar@codesourcery.com>
13958         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13959         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13960         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13961         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13962         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13964 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
13966         PR middle-end/68221
13967         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13968         * testsuite/libgomp.c/reduction-12.c: Likewise.
13969         * testsuite/libgomp.c++/reduction-11.C: Likewise.
13970         * testsuite/libgomp.c++/reduction-12.C: Likewise.
13972 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
13974         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13975         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13976         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13977         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13978         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13979         and fix.
13980         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13981         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13983 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
13985         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13986         worker & gang cases.
13987         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13989 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
13991         * config/nvptx/priority_queue.c: New file.
13993 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13995         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
13996         sections.
13998 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
13999             Aldy Hernandez  <aldyh@redhat.com>
14000             Ilya Verbin  <ilya.verbin@intel.com>
14002         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14003         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14004         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14005         iterators or IV by chunk size.
14006         * parallel.c (gomp_resolve_num_threads): Don't assume that
14007         if thr->ts.team is non-NULL, then pool must be non-NULL.
14008         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14009         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14010         GOMP_PLUGIN_target_task_completion.
14011         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14012         * Makefile.in: Regenerate.
14013         * libgomp.h: Shuffle prototypes and forward definitions around so
14014         priority queues can be defined.
14015         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14016         (enum gomp_target_task_state): New enum.
14017         (struct gomp_target_task): Add state, tgt, task and team fields.
14018         (gomp_create_target_task): Change return type to bool, add
14019         state argument.
14020         (gomp_target_task_fn): Change return type to bool.
14021         (struct gomp_device_descr): Add async_run_func.
14022         (struct gomp_task): Remove children, next_child, prev_child,
14023         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14024         Add pnode field.
14025         (struct gomp_taskgroup): Remove children.
14026         Add taskgroup_queue.
14027         (struct gomp_team): Change task_queue type to a priority queue.
14028         (splay_compare): Define inline.
14029         (priority_queue_offset): New.
14030         (priority_node_to_task): New.
14031         (task_to_priority_node): New.
14032         * oacc-mem.c: Do not include splay-tree.h.
14033         * priority_queue.c: New file.
14034         * priority_queue.h: New file.
14035         * splay-tree.c: Do not include splay-tree.h.
14036         (splay_tree_foreach_internal): New.
14037         (splay_tree_foreach): New.
14038         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14039         (splay_tree_callback): Define typedef.
14040         * target.c (splay_compare): Move to libgomp.h.
14041         (GOMP_target): Don't adjust *thr in any way around running offloaded
14042         task.
14043         (GOMP_target_ext): Likewise.  Handle target nowait.
14044         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14045         return value from gomp_create_target_task, if false, fallthrough
14046         as if no dependencies exist.
14047         (gomp_target_task_fn): Change return type to bool, return true
14048         if the task should have another part scheduled later.  Handle
14049         target nowait.
14050         (gomp_load_plugin_for_device): Initialize async_run.
14051         * task.c (gomp_init_task): Initialize children_queue.
14052         (gomp_clear_parent_in_list): New.
14053         (gomp_clear_parent_in_tree): New.
14054         (gomp_clear_parent): Handle priorities.
14055         (GOMP_task): Likewise.
14056         (priority_queue_move_task_first,
14057         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14058         New functions.
14059         (gomp_create_target_task): Use priority queues.  Change return type
14060         to bool, add state argument, return false if for async
14061         {{enter,exit} data,update} constructs no dependencies need to be
14062         waited for, handle target nowait.  Set task->fn to NULL instead of
14063         gomp_target_task_fn.
14064         (verify_children_queue): Remove.
14065         (priority_list_upgrade_task): New.
14066         (priority_queue_upgrade_task): New.
14067         (verify_task_queue): Remove.
14068         (priority_list_downgrade_task): New.
14069         (priority_queue_downgrade_task): New.
14070         (gomp_task_run_pre): Use priority queues.
14071         Abstract code out to priority_queue_downgrade_task.
14072         (gomp_task_run_post_handle_dependers): Use priority queues.
14073         (gomp_task_run_post_remove_parent): Likewise.
14074         (gomp_task_run_post_remove_taskgroup): Likewise.
14075         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
14076         tasks specially.
14077         (GOMP_taskwait): Likewise.
14078         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
14079         priority-queue_upgrade_task.
14080         (GOMP_taskgroup_start): Use priority queues.
14081         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
14082         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
14083         barrier.
14084         * taskloop.c (GOMP_taskloop): Handle priorities.
14085         * team.c (gomp_new_team): Call priority_queue_init.
14086         (free_team): Call priority_queue_free.
14087         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14088         team created for target nowait in implicit parallel region.
14089         (gomp_team_start): For nested check, test thr->ts.level instead of
14090         thr->ts.team != NULL.
14091         * testsuite/libgomp.c/doacross-3.c: New test.
14092         * testsuite/libgomp.c/ordered-5.c: New test.
14093         * testsuite/libgomp.c/priority.c: New test.
14094         * testsuite/libgomp.c/target-31.c: New test.
14095         * testsuite/libgomp.c/target-32.c: New test.
14096         * testsuite/libgomp.c/target-33.c: New test.
14097         * testsuite/libgomp.c/target-34.c: New test.
14099 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14101         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14103         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14104         loop is sequential.
14106 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
14108         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14109         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14111 2015-11-12  James Norris  <jnorris@codesourcery.com>
14112             Joseph Myers  <joseph@codesourcery.com>
14114         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14115         * oacc-parallel.c (GOACC_declare): New function.
14116         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14117         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14118         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14119         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14120         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14122 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
14124         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14126 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
14128         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14129         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14131 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14133         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14134         inadvertent commit.
14136 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
14138         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14139         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14140         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14141         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14142         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14144 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
14146         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14147         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14149 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
14150             Ilya Verbin  <ilya.verbin@intel.com>
14152         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14153         GOMP_loop_nonmonotonic_dynamic_start,
14154         GOMP_loop_nonmonotonic_guided_next,
14155         GOMP_loop_nonmonotonic_guided_start,
14156         GOMP_loop_ull_nonmonotonic_dynamic_next,
14157         GOMP_loop_ull_nonmonotonic_dynamic_start,
14158         GOMP_loop_ull_nonmonotonic_guided_next,
14159         GOMP_loop_ull_nonmonotonic_guided_start,
14160         GOMP_parallel_loop_nonmonotonic_dynamic,
14161         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14162         (GOMP_target_41): Renamed to ...
14163         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14164         arguments.
14165         (GOMP_target_data_41): Renamed to ...
14166         (GOMP_target_data_ext): ... this.
14167         (GOMP_target_update_41): Renamed to ...
14168         (GOMP_target_update_ext): ... this.
14169         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14170         GOMP_target_data_ext and GOMP_target_update_ext instead of
14171         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14172         Export GOMP_loop_nonmonotonic_dynamic_next,
14173         GOMP_loop_nonmonotonic_dynamic_start,
14174         GOMP_loop_nonmonotonic_guided_next,
14175         GOMP_loop_nonmonotonic_guided_start,
14176         GOMP_loop_ull_nonmonotonic_dynamic_next,
14177         GOMP_loop_ull_nonmonotonic_dynamic_start,
14178         GOMP_loop_ull_nonmonotonic_guided_next,
14179         GOMP_loop_ull_nonmonotonic_guided_start,
14180         GOMP_parallel_loop_nonmonotonic_dynamic and
14181         GOMP_parallel_loop_nonmonotonic_guided.
14182         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14183         GOMP_parallel_loop_nonmonotonic_guided,
14184         GOMP_loop_nonmonotonic_dynamic_start,
14185         GOMP_loop_nonmonotonic_guided_start,
14186         GOMP_loop_nonmonotonic_dynamic_next,
14187         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14188         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14189         GOMP_loop_ull_nonmonotonic_guided_start,
14190         GOMP_loop_ull_nonmonotonic_dynamic_next,
14191         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14192         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14193         functions.
14194         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
14195         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14196         Use gomp_map_val function.
14197         (gomp_target_fallback_firstprivate): New static function.
14198         (GOMP_target_41): Renamed to ...
14199         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
14200         arguments.  Move firstprivate fallback handling into a new
14201         function.
14202         (GOMP_target_data_41): Renamed to ...
14203         (GOMP_target_data_ext): ... this.
14204         (GOMP_target_update_41): Renamed to ...
14205         (GOMP_target_update_ext): ... this.
14206         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14207         gomp_map_0len_lookup instead of gomp_map_lookup.
14208         (omp_target_is_present): Use gomp_map_0len_lookup instead of
14209         gomp_map_lookup.
14210         * testsuite/libgomp.c/target-28.c: Likewise.
14211         * testsuite/libgomp.c/monotonic-1.c: New test.
14212         * testsuite/libgomp.c/monotonic-2.c: New test.
14213         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14214         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14215         * testsuite/libgomp.c/pr66199-5.c: New test.
14216         * testsuite/libgomp.c/pr66199-6.c: New test.
14217         * testsuite/libgomp.c/pr66199-7.c: New test.
14218         * testsuite/libgomp.c/pr66199-8.c: New test.
14219         * testsuite/libgomp.c/pr66199-9.c: New test.
14220         * testsuite/libgomp.c/reduction-11.c: New test.
14221         * testsuite/libgomp.c/reduction-12.c: New test.
14222         * testsuite/libgomp.c/reduction-13.c: New test.
14223         * testsuite/libgomp.c/reduction-14.c: New test.
14224         * testsuite/libgomp.c/reduction-15.c: New test.
14225         * testsuite/libgomp.c/target-12.c (main): Adjust for
14226         omp_target_is_present change for one-past-last element.
14227         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14228         the same var is both mapped and privatized.
14229         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14230         handling of zero-length array sections.
14231         * testsuite/libgomp.c/target-28.c: New test.
14232         * testsuite/libgomp.c/target-29.c: New test.
14233         * testsuite/libgomp.c/target-30.c: New test.
14234         * testsuite/libgomp.c/target-teams-1.c: New test.
14235         * testsuite/libgomp.c++/member-6.C: New test.
14236         * testsuite/libgomp.c++/member-7.C: New test.
14237         * testsuite/libgomp.c++/monotonic-1.C: New test.
14238         * testsuite/libgomp.c++/monotonic-2.C: New test.
14239         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14240         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14241         * testsuite/libgomp.c++/pr66199-3.C: New test.
14242         * testsuite/libgomp.c++/pr66199-4.C: New test.
14243         * testsuite/libgomp.c++/pr66199-5.C: New test.
14244         * testsuite/libgomp.c++/pr66199-6.C: New test.
14245         * testsuite/libgomp.c++/pr66199-7.C: New test.
14246         * testsuite/libgomp.c++/pr66199-8.C: New test.
14247         * testsuite/libgomp.c++/pr66199-9.C: New test.
14248         * testsuite/libgomp.c++/reduction-11.C: New test.
14249         * testsuite/libgomp.c++/reduction-12.C: New test.
14250         * testsuite/libgomp.c++/target-13.C: New test.
14251         * testsuite/libgomp.c++/target-14.C: New test.
14252         * testsuite/libgomp.c++/target-15.C: New test.
14253         * testsuite/libgomp.c++/target-16.C: New test.
14254         * testsuite/libgomp.c++/target-17.C: New test.
14255         * testsuite/libgomp.c++/target-18.C: New test.
14256         * testsuite/libgomp.c++/target-19.C: New test.
14258 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14260         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14261         and reduction copy.
14262         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14263         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14264         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14265         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14266         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14267         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14268         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14269         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14270         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14271         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14272         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14273         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14274         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14275         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14277 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
14279         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14280         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14281         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14282         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14283         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14284         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14285         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14286         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14288 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
14290         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14291         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14292         (GOMP_OFFLOAD_openacc_parallel): Likewise.
14293         * oacc-host.c (host_openacc_exec): Likewise.
14294         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14296 2015-11-03  Julian Brown  <julian@codesourcery.com>
14297             Thomas Schwinge  <thomas@codesourcery.com>
14299         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14300         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14301         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14302         Likewise.
14303         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14304         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14306 2015-11-03  James Norris  <jnorris@codesourcery.com>
14308         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14309         file.
14310         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14311         Likewise.
14312         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14313         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14314         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14315         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14316         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14318 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
14320         * openacc.h (enum acc_device_t): Reformat. Ensure layout
14321         compatibility.
14322         (enum acc_async_t): Reformat.
14323         (acc_on_device): Declare compatible with builtin and provide C++
14324         wrapper.
14325         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14327 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
14328             Cesar Philippidis  <cesar@codesourcery.com>
14330         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14331         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14332         ... this.  Add a description of the test at the top of the file.
14333         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14334         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14335         ... this.  Add a description of the test at the top of the file.
14337 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
14339         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14340         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14341         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14342         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14343         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14344         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14346 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
14348         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14349         dimensions.
14351 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
14353         PR testsuite/68063
14354         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14356 2015-10-27  James Norris  <jnorris@codesourcery.com>
14358         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14359         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14361 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
14363         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14364         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14366         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14367         acc_device_nvidia usage.
14368         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14369         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14370         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14372         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14373         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14375         PR libgomp/66518
14376         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14378         PR libgomp/65437
14379         PR libgomp/66518
14380         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14381         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14383 2015-10-23  Tom de Vries  <tom@codesourcery.com>
14385         PR testsuite/68063
14386         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14388 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
14390         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14391         vector_length.
14392         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14394 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
14395             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
14397         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14398         to 0 when mapnum is 0.
14400 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14402         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14403         Cast to int from int32_t.
14405 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
14406             Aldy Hernandez  <aldyh@redhat.com>
14407             Ilya Verbin  <ilya.verbin@intel.com>
14409         * config/linux/affinity.c (omp_get_place_num_procs,
14410         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14411         * config/linux/doacross.h: New file.
14412         * config/posix/affinity.c (omp_get_place_num_procs,
14413         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14414         * config/posix/doacross.h: New file.
14415         * env.c: Include gomp-constants.h.
14416         (struct gomp_task_icv): Rename run_sched_modifier to
14417         run_sched_chunk_size.
14418         (gomp_max_task_priority_var): New variable.
14419         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14420         (handle_omp_display_env): Change _OPENMP value from 201307 to
14421         201511.  Print OMP_MAX_TASK_PRIORITY.
14422         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14423         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14424         chunk_size and run_sched_modifier to run_sched_chunk_size.
14425         (omp_get_max_task_priority, omp_get_initial_device,
14426         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14427         omp_get_partition_place_nums): New functions.
14428         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14429         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14430         to chunk_size.
14431         (omp_get_num_places_, omp_get_place_num_procs_,
14432         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14433         omp_get_place_proc_ids_8_, omp_get_place_num_,
14434         omp_get_partition_num_places_, omp_get_partition_place_nums_,
14435         omp_get_partition_place_nums_8_, omp_get_initial_device_,
14436         omp_get_max_task_priority_): New functions.
14437         * libgomp_g.h (GOMP_loop_doacross_static_start,
14438         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14439         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14440         GOMP_loop_ull_doacross_dynamic_start,
14441         GOMP_loop_ull_doacross_guided_start,
14442         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14443         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14444         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14445         GOMP_target_data_41, GOMP_target_update_41,
14446         GOMP_target_enter_exit_data): New prototypes.
14447         (GOMP_task): Add prototype argument.
14448         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14449         (struct gomp_doacross_work_share): New type.
14450         (struct gomp_work_share): Add doacross field.
14451         (struct gomp_task_icv): Rename run_sched_modifier to
14452         run_sched_chunk_size.
14453         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14454         GOMP_TASK_UNDEFERRED.  Add comments.
14455         (struct gomp_task_depend_entry): Add comments.
14456         (struct gomp_task): Likewise.
14457         (struct gomp_taskgroup): Likewise.
14458         (struct gomp_target_task): New type.
14459         (struct gomp_team): Add comment.
14460         (gomp_get_place_proc_ids_8, gomp_doacross_init,
14461         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14462         gomp_create_target_task, gomp_target_task_fn): New prototypes.
14463         (struct target_var_desc): New type.
14464         (struct target_mem_desc): Adjust comment.  Use struct
14465         target_var_desc instead of splay_tree_key for list.
14466         (REFCOUNT_INFINITY): Define.
14467         (struct splay_tree_key_s): Remove copy_from field.
14468         (struct gomp_device_descr): Add dev2dev_func field.
14469         (enum gomp_map_vars_kind): New enum.
14470         (gomp_map_vars): Add one argument.
14471         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14472         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14473         omp_get_place_num_procs, omp_get_place_num_procs_,
14474         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14475         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14476         omp_get_place_num_, omp_get_partition_num_places,
14477         omp_get_partition_num_places_, omp_get_partition_place_nums,
14478         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14479         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14480         omp_target_free, omp_target_is_present, omp_target_memcpy,
14481         omp_target_memcpy_rect, omp_target_associate_ptr and
14482         omp_target_disassociate_ptr.
14483         (GOMP_4.0.2): Renamed to ...
14484         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
14485         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14486         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14487         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14488         GOMP_loop_doacross_static_start, GOMP_doacross_post,
14489         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14490         GOMP_loop_ull_doacross_guided_start,
14491         GOMP_loop_ull_doacross_runtime_start,
14492         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14493         GOMP_doacross_ull_wait.
14494         * libgomp.texi: Document omp_get_max_task_priority.
14495         Rename modifier argument to chunk_size for omp_set_schedule and
14496         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
14497         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14498         to run_sched_chunk_size renaming.
14499         (GOMP_loop_ordered_runtime_start): Likewise.
14500         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14501         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14502         GOMP_parallel_loop_runtime_start): New functions.
14503         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14504         to run_sched_chunk_size renaming.
14505         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14506         GOMP_loop_doacross_guided_start): New functions or aliases.
14507         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14508         run_sched_modifier to run_sched_chunk_size renaming.
14509         (GOMP_loop_ull_ordered_runtime_start): Likewise.
14510         (gomp_loop_ull_doacross_static_start,
14511         gomp_loop_ull_doacross_dynamic_start,
14512         gomp_loop_ull_doacross_guided_start,
14513         GOMP_loop_ull_doacross_runtime_start): New functions.
14514         (GOMP_loop_ull_doacross_static_start,
14515         GOMP_loop_ull_doacross_dynamic_start,
14516         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14517         * oacc-mem.c (acc_map_data, present_create_copy,
14518         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14519         to gomp_map_vars.
14520         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14521         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14522         instead of false to gomp_map_vars.
14523         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
14524         * omp.h.in (omp_lock_hint_t): New type.
14525         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14526         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14527         omp_get_place_num, omp_get_partition_num_places,
14528         omp_get_partition_place_nums, omp_get_initial_device,
14529         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14530         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14531         omp_target_associate_ptr, omp_target_disassociate_ptr): New
14532         prototypes.
14533         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14534         (omp_lock_hint_none, omp_lock_hint_uncontended,
14535         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14536         omp_lock_hint_speculative): New parameters.
14537         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14538         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14539         omp_get_place_num, omp_get_partition_num_places,
14540         omp_get_partition_place_nums, omp_get_initial_device,
14541         omp_get_max_task_priority): New interfaces.
14542         (omp_set_schedule, omp_get_schedule): Rename modifier argument
14543         to chunk_size.
14544         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14545         (omp_lock_hint_none, omp_lock_hint_uncontended,
14546         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14547         omp_lock_hint_speculative): New parameters.
14548         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14549         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14550         omp_get_place_num, omp_get_partition_num_places,
14551         omp_get_partition_place_nums, omp_get_initial_device,
14552         omp_get_max_task_priority): New functions and subroutines.
14553         * ordered.c: Include stdarg.h and string.h.
14554         (MAX_COLLAPSED_BITS): Define.
14555         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14556         gomp_doacross_ull_init, GOMP_doacross_ull_post,
14557         GOMP_doacross_ull_wait): New functions.
14558         * target.c: Include errno.h.
14559         (resolve_device): If device is not initialized, call
14560         gomp_init_device on it.
14561         (gomp_map_lookup): New function.
14562         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14563         Don't bump refcount if REFCOUNT_INFINITY.  Handle
14564         GOMP_MAP_ALWAYS_TO_P.
14565         (get_kind): Rename is_openacc argument to short_mapkind.
14566         (gomp_map_pointer): Use gomp_map_lookup.
14567         (gomp_map_fields_existing): New function.
14568         (gomp_map_vars): Rename is_openacc argument to short_mapkind
14569         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
14570         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14571         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14572         Adjust for tgt->list changed type and copy_from living in there.
14573         (gomp_copy_from_async): Adjust for tgt->list changed type and
14574         copy_from living in there.
14575         (gomp_unmap_vars): Likewise.
14576         (gomp_update): Likewise.  Rename is_openacc argument to
14577         short_mapkind.  Don't fail if object is not mapped.
14578         (gomp_load_image_to_device): Initialize refcount to
14579         REFCOUNT_INFINITY.
14580         (gomp_target_fallback): New function.
14581         (gomp_get_target_fn_addr): Likewise.
14582         (GOMP_target): Adjust gomp_map_vars caller, use
14583         gomp_get_target_fn_addr and gomp_target_fallback.
14584         (GOMP_target_41): New function.
14585         (gomp_target_data_fallback): New function.
14586         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14587         (GOMP_target_data_41): New function.
14588         (GOMP_target_update): Adjust gomp_update caller.
14589         (GOMP_target_update_41): New function.
14590         (gomp_exit_data, GOMP_target_enter_exit_data,
14591         gomp_target_task_fn, omp_target_alloc, omp_target_free,
14592         omp_target_is_present, omp_target_memcpy,
14593         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14594         omp_target_associate_ptr, omp_target_disassociate_ptr,
14595         gomp_load_plugin_for_device): New functions.
14596         * task.c: Include gomp-constants.h.  Include taskloop.c
14597         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14598         (gomp_task_handle_depend): New function.
14599         (GOMP_task): Use it.  Add priority argument.  Use
14600         gomp-constant.h constants instead of hardcoded numbers.
14601         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14602         (gomp_create_target_task): New function.
14603         (verify_children_queue, verify_taskgroup_queue,
14604         verify_task_queue): New functions.
14605         (gomp_task_run_pre): Call verify_*_queue functions.
14606         If an upcoming tied task is about to leave the sibling or
14607         taskgroup queues in an invalid state, adjust appropriately.
14608         Remove taskgroup argument.  Add comments.
14609         (gomp_task_run_post_handle_dependers): Add comments.
14610         (gomp_task_run_post_remove_parent): Likewise.
14611         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14612         (GOMP_taskwait): Likewise.  Add comments.
14613         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14614         problem such that the first non parent_depends_on task does not
14615         end up at the end of the children queue.
14616         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14617         GOMP_TASK_UNDEFERRED.
14618         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14619         * taskloop.c: New file.
14620         * testsuite/lib/libgomp.exp
14621         (check_effective_target_offload_device_nonshared_as): New proc.
14622         * testsuite/libgomp.c/affinity-2.c: New test.
14623         * testsuite/libgomp.c/doacross-1.c: New test.
14624         * testsuite/libgomp.c/doacross-2.c: New test.
14625         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14626         Add map clause to target.
14627         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14628         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14629         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14630         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14631         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14632         Likewise.
14633         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14634         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14635         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14636         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14637         not defined.  Use those where needed.
14638         * testsuite/libgomp.c/for-4.c: New test.
14639         * testsuite/libgomp.c/for-5.c: New test.
14640         * testsuite/libgomp.c/for-6.c: New test.
14641         * testsuite/libgomp.c/linear-1.c: New test.
14642         * testsuite/libgomp.c/ordered-4.c: New test.
14643         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14644         only allowed on the loop iterator.
14645         * testsuite/libgomp.c/pr66199-3.c: New test.
14646         * testsuite/libgomp.c/pr66199-4.c: New test.
14647         * testsuite/libgomp.c/reduction-7.c: New test.
14648         * testsuite/libgomp.c/reduction-8.c: New test.
14649         * testsuite/libgomp.c/reduction-9.c: New test.
14650         * testsuite/libgomp.c/reduction-10.c: New test.
14651         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14652         map(tofrom:s).
14653         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14654         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14655         * testsuite/libgomp.c/target-11.c: New test.
14656         * testsuite/libgomp.c/target-12.c: New test.
14657         * testsuite/libgomp.c/target-13.c: New test.
14658         * testsuite/libgomp.c/target-14.c: New test.
14659         * testsuite/libgomp.c/target-15.c: New test.
14660         * testsuite/libgomp.c/target-16.c: New test.
14661         * testsuite/libgomp.c/target-17.c: New test.
14662         * testsuite/libgomp.c/target-18.c: New test.
14663         * testsuite/libgomp.c/target-19.c: New test.
14664         * testsuite/libgomp.c/target-20.c: New test.
14665         * testsuite/libgomp.c/target-21.c: New test.
14666         * testsuite/libgomp.c/target-22.c: New test.
14667         * testsuite/libgomp.c/target-23.c: New test.
14668         * testsuite/libgomp.c/target-24.c: New test.
14669         * testsuite/libgomp.c/target-25.c: New test.
14670         * testsuite/libgomp.c/target-26.c: New test.
14671         * testsuite/libgomp.c/target-27.c: New test.
14672         * testsuite/libgomp.c/taskloop-1.c: New test.
14673         * testsuite/libgomp.c/taskloop-2.c: New test.
14674         * testsuite/libgomp.c/taskloop-3.c: New test.
14675         * testsuite/libgomp.c/taskloop-4.c: New test.
14676         * testsuite/libgomp.c++/ctor-13.C: New test.
14677         * testsuite/libgomp.c++/doacross-1.C: New test.
14678         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14679         Replace offload_device with offload_device_nonshared_as.
14680         * testsuite/libgomp.c++/for-12.C: New test.
14681         * testsuite/libgomp.c++/for-13.C: New test.
14682         * testsuite/libgomp.c++/for-14.C: New test.
14683         * testsuite/libgomp.c++/linear-1.C: New test.
14684         * testsuite/libgomp.c++/member-1.C: New test.
14685         * testsuite/libgomp.c++/member-2.C: New test.
14686         * testsuite/libgomp.c++/member-3.C: New test.
14687         * testsuite/libgomp.c++/member-4.C: New test.
14688         * testsuite/libgomp.c++/member-5.C: New test.
14689         * testsuite/libgomp.c++/ordered-1.C: New test.
14690         * testsuite/libgomp.c++/reduction-5.C: New test.
14691         * testsuite/libgomp.c++/reduction-6.C: New test.
14692         * testsuite/libgomp.c++/reduction-7.C: New test.
14693         * testsuite/libgomp.c++/reduction-8.C: New test.
14694         * testsuite/libgomp.c++/reduction-9.C: New test.
14695         * testsuite/libgomp.c++/reduction-10.C: New test.
14696         * testsuite/libgomp.c++/reference-1.C: New test.
14697         * testsuite/libgomp.c++/simd14.C: New test.
14698         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14699         * testsuite/libgomp.c++/target-5.C: New test.
14700         * testsuite/libgomp.c++/target-6.C: New test.
14701         * testsuite/libgomp.c++/target-7.C: New test.
14702         * testsuite/libgomp.c++/target-8.C: New test.
14703         * testsuite/libgomp.c++/target-9.C: New test.
14704         * testsuite/libgomp.c++/target-10.C: New test.
14705         * testsuite/libgomp.c++/target-11.C: New test.
14706         * testsuite/libgomp.c++/target-12.C: New test.
14707         * testsuite/libgomp.c++/taskloop-1.C: New test.
14708         * testsuite/libgomp.c++/taskloop-2.C: New test.
14709         * testsuite/libgomp.c++/taskloop-3.C: New test.
14710         * testsuite/libgomp.c++/taskloop-4.C: New test.
14711         * testsuite/libgomp.c++/taskloop-5.C: New test.
14712         * testsuite/libgomp.c++/taskloop-6.C: New test.
14713         * testsuite/libgomp.c++/taskloop-7.C: New test.
14714         * testsuite/libgomp.c++/taskloop-8.C: New test.
14715         * testsuite/libgomp.c++/taskloop-9.C: New test.
14716         * testsuite/libgomp.fortran/affinity1.f90: New test.
14717         * testsuite/libgomp.fortran/affinity2.f90: New test.
14719 2015-10-13  Tom de Vries  <tom@codesourcery.com>
14721         PR tree-optimization/67476
14722         * testsuite/libgomp.c/autopar-3.c: New test.
14723         * testsuite/libgomp.c/autopar-4.c: New test.
14724         * testsuite/libgomp.c/autopar-5.c: New test.
14725         * testsuite/libgomp.c/autopar-6.c: New test.
14726         * testsuite/libgomp.c/autopar-7.c: New test.
14727         * testsuite/libgomp.c/autopar-8.c: New test.
14729 2015-10-12  James Norris  <jnorris@codesourcery.com>
14731         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14732         initializer.
14734 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
14736         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14737         using load_gcc_lib.
14739 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
14741         * oacc-ptx.h: Remove file, moving its content into...
14742         * config/nvptx/fortran.c: ... here...
14743         * config/nvptx/oacc-init.c: ..., here...
14744         * config/nvptx/oacc-parallel.c: ..., and here.
14745         * config/nvptx/openacc.f90: New file.
14746         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14747         (link_ptx): Don't link in predefined bits of PTX code.
14749 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
14750             Bernd Schmidt <bernds@codesourcery.com>
14752         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14753         (struct targ_ptx_obj): New.
14754         (nvptx_tdata): Move earlier, change data format.
14755         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
14756         objects.
14757         (GOMP_OFFLOAD_load_image): Adjust.
14759 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
14761         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14762         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14763         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14764         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14765         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14766         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14767         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14768         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14769         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14770         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14771         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14772         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14773         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14774         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14775         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14776         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14777         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14778         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14779         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14780         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14781         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14782         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14783         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14784         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14785         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14786         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14787         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14788         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14789         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14790         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14791         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14792         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14793         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14794         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14795         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14796         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14797         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14798         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14799         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14800         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14801         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14802         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14803         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14804         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14805         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14806         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14807         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14808         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14809         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14810         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14811         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14812         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14813         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14814         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14815         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14816         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14817         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14818         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14819         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14820         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14821         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14822         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14823         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14825 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14827         * oacc-init.c (acc_on_device): Force optimization level.
14829 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
14831         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14832         (cuda_errlist): Delete.
14833         (cuda_error): Reimplement.
14835 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
14837         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14838         array.
14839         * libgomp.map (GOACC_parallel_keyed): New.
14840         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
14841         all callers.
14842         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
14843         and take keyed varargs list.  Adjust call to exec_func.
14844         (GOACC_parallel): Force host fallback.
14845         * libgomp_g.h (GOACC_parallel): Remove.
14846         (GOACC_parallel_keyed): Declare.
14847         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14848         (struct targ_gn_descriptor): Replace name field with launch field.
14849         (nvptx_exec): Lose separate geometry args, take array.  Process
14850         dynamic dimensions and adjust.
14851         (struct nvptx_tdata): Replace fn_names field with fn_descs.
14852         (GOMP_OFFLOAD_load_image): Adjust for change in function table
14853         data.
14854         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14855         passing.
14856         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14857         passing.
14859 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14861         PR libgomp/67141
14862         * oacc-int.h (goacc_host_init): Add declaration.
14863         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14864         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14866 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
14867             Sebastian Pop  <s.pop@samsung.com>
14869         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14870         match o/p.
14871         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14872         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14873         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14874         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14875         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14877 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
14879         * configure.tgt: Add missing ;; in between nvptx and rtems
14880         snippets.
14882 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14884         * config/posix/pool.h (gomp_adjust_thread_attr): New.
14885         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14886         (gomp_thread_pool_reservoir): Add priority member.
14887         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14888         priority.
14889         (parse_thread_pools): Likewise.
14890         * team.c (gomp_team_start): Call configuration provided
14891         gomp_adjust_thread_attr(). Destroy thread attributes if
14892         necessary.
14893         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14895 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14897         * config/posix/pool.h: New.
14898         * config/rtems/pool.h: Likewise.
14899         * config/rtems/proc.c: Likewise.
14900         * libgomp.h (gomp_thread_destructor): Declare.
14901         * team.c: Include configuration provided "pool.h".
14902         (gomp_get_thread_pool): Define in configuration.
14903         (gomp_team_end): Call configuration defined
14904         gomp_release_thread_pool().
14906 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14908         * config/rtems/bar.c: New.
14909         * config/rtems/bar.h: Likewise.
14910         * config/rtems/mutex.c: Likewise.
14911         * config/rtems/mutex.h: Likewise.
14912         * config/rtems/sem.c: Likewise.
14913         * config/rtems/sem.h: Likewise.
14914         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14915         <sys/lock.h> header file.
14916         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14917         supported by Newlib.
14918         * configure: Regenerate.
14920 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14922         * team.c (gomp_new_thread_pool): Delete and move content to ...
14923         (gomp_get_thread_pool): ... new function.  Allocate and
14924         initialize thread pool on demand.
14925         (get_last_team): Use gomp_get_thread_pool().
14926         (gomp_team_start): Delete thread pool initialization.
14928 2015-09-03  Tom de Vries  <tom@codesourcery.com>
14930         PR tree-optimization/65637
14931         * testsuite/libgomp.c/autopar-2.c: New test.
14933 2015-08-29  Tom de Vries  <tom@codesourcery.com>
14935         PR tree-optimization/46193
14936         * testsuite/libgomp.c/pr46193.c: New test.
14938 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
14940         libgomp/
14941         * libgomp.map: Add 4.0.2 version.
14942         * target.c (offload_image_descr): Add version field.
14943         (gomp_load_image_to_device): Add version argument.  Adjust plugin
14944         call.  Improve load mismatch diagnostic.
14945         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
14946         call.
14947         (GOMP_offload_regster): Make stub function, move bulk to ...
14948         (GOMP_offload_register_ver): ... here.  Process version argument.
14949         (GOMP_offload_unregister): Make stub function, move bulk to ...
14950         (GOMP_offload_unregister_ver): ... here.  Process version argument.
14951         (gomp_init_device): Process version field.
14952         (gomp_unload_device): Process version field.
14953         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14954         macros.  Check plugin version.
14955         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
14956         loader and unloader types.
14957         * oacc-host.c: Include gomp-constants.h.
14958         (host_version): New.
14959         (host_load_image, host_unload_image): Adjust.
14960         (host_dispatch): Add host_version.
14961         * plugin/plugin-nvptx.c: Include gomp-constants.h.
14962         (GOMP_OFFLOAD_version): New.
14963         (GOMP_OFFLOAD_load_image): Add version arg and check it.
14964         (GOMP_OFFLOAD_unload_image): Likewise.
14965         * plugin/plugin-host.c: Include gomp-constants.h.
14966         (GOMP_OFFLOAD_version): New.
14967         (GOMP_OFFLOAD_load_image): Add version arg.
14968         (GOMP_OFFLOAD_unload_image): Likewise.
14970 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14972         PR tree-optimization/65468
14973         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14975 2015-08-24  Tom de Vries  <tom@codesourcery.com>
14977         PR tree-optimization/65468
14978         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14980 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
14982         PR libgomp/66761
14983         PR libgomp/67303
14984         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14985         (gomp_iter_guided_next): Idem.
14986         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14987         (gomp_iter_ull_guided_next): Idem.
14988         * config/linux/wait.h (do_spin): Idem.
14990 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
14992         * libgomp-plugin.h (enum offload_target_type): Remove
14993         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14994         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
14995         * openacc.h (enum acc_device_t): Likewise.
14996         * openacc_lib.h: Likewise.
14997         * oacc-init.c (name_of_acc_device_t): Don't handle it.
14998         (acc_on_device): Just use __builtin_acc_on_device.
14999         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15000         of acc_on_device builtin.
15001         * plugin/plugin-host.h: Remove file.
15002         * plugin/plugin-host.c: Likewise, but salvage some content into...
15003         * oacc-host.c: ... this file.
15004         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15005         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15006         * Makefile.in: Regenerate.
15007         * configure: Likewise.
15008         * testsuite/lib/libgomp.exp
15009         (check_effective_target_openacc_host_nonshm_selected): Remove.
15010         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15011         ACC_DEVICE_TYPE=host_nonshm.
15012         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15013         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15014         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15015         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15016         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15017         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15019 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15020             Jakub Jelinek  <jakub@redhat.com>
15022         * config/nvptx/affinity.c: New file.
15023         * config/nvptx/alloc.c: Likewise.
15024         * config/nvptx/bar.c: Likewise.
15025         * config/nvptx/barrier.c: Likewise.
15026         * config/nvptx/critical.c: Likewise.
15027         * config/nvptx/env.c: Likewise.
15028         * config/nvptx/error.c: Likewise.
15029         * config/nvptx/fortran.c: Likewise.
15030         * config/nvptx/iter.c: Likewise.
15031         * config/nvptx/iter_ull.c: Likewise.
15032         * config/nvptx/libgomp-plugin.c: Likewise.
15033         * config/nvptx/lock.c: Likewise.
15034         * config/nvptx/loop.c: Likewise.
15035         * config/nvptx/loop_ull.c: Likewise.
15036         * config/nvptx/mutex.c: Likewise.
15037         * config/nvptx/oacc-async.c: Likewise.
15038         * config/nvptx/oacc-cuda.c: Likewise.
15039         * config/nvptx/oacc-host.c: Likewise.
15040         * config/nvptx/oacc-init.c: Likewise.
15041         * config/nvptx/oacc-mem.c: Likewise.
15042         * config/nvptx/oacc-parallel.c: Likewise.
15043         * config/nvptx/oacc-plugin.c: Likewise.
15044         * config/nvptx/omp-lock.h: Likewise.
15045         * config/nvptx/ordered.c: Likewise.
15046         * config/nvptx/parallel.c: Likewise.
15047         * config/nvptx/proc.c: Likewise.
15048         * config/nvptx/ptrlock.c: Likewise.
15049         * config/nvptx/sections.c: Likewise.
15050         * config/nvptx/sem.c: Likewise.
15051         * config/nvptx/single.c: Likewise.
15052         * config/nvptx/splay-tree.c: Likewise.
15053         * config/nvptx/target.c: Likewise.
15054         * config/nvptx/task.c: Likewise.
15055         * config/nvptx/team.c: Likewise.
15056         * config/nvptx/time.c: Likewise.
15057         * config/nvptx/work.c: Likewise.
15058         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15059         * configure: Regenerate.
15060         * configure.tgt (config_path): Set to "nvptx" for target
15061         nvptx*-*-*.
15063 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
15065         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15067 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
15069         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15070         (cuda_errlist): Constify.
15071         (errmsg):  Move into ...
15072         (cuda_error): ... here.  Make smaller.
15073         (_XSTR, _STR): Delete.
15074         (cuda_synames): Delete.
15075         (verify_device_library): Delete.
15076         (nvptx_init): Don't call it.
15078 2015-07-28  Tom de Vries  <tom@codesourcery.com>
15080         * testsuite/libgomp.c/uns-outer-4.c: New test.
15082 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
15084         * testsuite/libgomp.c/pr66714.c: New test.
15086 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15088         PR libgomp/66950
15089         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15090         (fib_ref): New function.
15091         (fib): Correct corner cases in the recursion.
15092         (main): Replace the non-simd loop with fib_ref call.
15093         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15094         subroutine.
15095         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
15096         for the last array element value.  Replace the non-simd loop with
15097         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
15098         of the last array element with according Fibonacci sequence element.
15099         (fib): Correct corner cases in the recursion.
15101 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
15103         * target.c (gomp_offload_image_to_device): Rename to ...
15104         (gomp_load_image_to_device): ... here.
15105         (GOMP_offload_register): Adjust call.
15106         (gomp_init_device): Likewise.
15107         (gomp_unload_image_from_device): New.  Broken out of ...
15108         (GOMP_offload_unregister): ... here.  Call it.
15109         (gomp_unload_device): New.
15110         * libgomp.h (gomp_unload_device): Declare.
15111         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15112         mem maps.
15114 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
15116         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15117         wait=-specific if.
15118         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15119         !=0 condition.
15120         (goacc_waits): Move !num_waits handling to ...
15121         (GOACC_wait): ... here, the only caller that might have zero waits.
15123         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15124         (struct ptx_image_data): Move earlier, add fns field.
15125         (struct ptx_device): Add images and image_lock fields.
15126         (ptx_images, ptx_image_lock): Delete.
15127         (nvptx_open_device): Initialize images and image_lock fields.
15128         (nvptx_close_device): Destroy image_lock.
15129         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15130         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15131         fields.
15133 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
15135         * target.c (GOMP_offload_register): Use int for device type arg.
15136         (GOMP_offload_unregister): Likewise.
15138         * target.c (struct_offload_image_descr): Constify host_table.
15139         (gomp_offload_image_to_device): Likewise.
15140         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15142         * libgomp.h (gomp_device_descr): Constify target data arguments.
15143         * target.c (struct offload_image_descr): Constify target_data.
15144         (gomp_offload_image_to_device): Likewise.
15145         (GOMP_offload_register): Likewise.
15146         (GOMP_offload_unregister): Likewise.
15147         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15148         GOMP_OFFLOAD_unload_image): Constify target data.
15149         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15150         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15152 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
15154         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15155         Workaround driver library const error.
15156         (struct nvptx_tdata, nvptx_tdata_t): New.
15157         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15158         type.
15160 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15162         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15163         of EPS parameter from integer to real.
15164         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15165         type of EPS parameter from integer to real.
15167 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15169         * team.c (get_last_team): New.
15170         (gomp_new_team): Recycle last non-nested team if possible.
15171         (gomp_team_end): Move team work share list free lock destruction
15172         to ...
15173         (free_team): ... here.
15175 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15177         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15178         and ref from int to double.  Replaced their comparison with
15179         an inequality of their difference and EPS.
15180         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15181         comparison of pri and a reference number with an inequality of their
15182         difference and EPS.
15183         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15184         the comparison of sum and sum_ref with an inequality of their
15185         difference and EPS.
15186         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15187         the comparison of pri and a reference number with an inequality of
15188         their difference and EPS.
15190 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
15192         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15193         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15194         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15195         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15196         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15197         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15198         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15199         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15200         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15201         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15202         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15203         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15204         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15205         variables.
15206         (vec_mult): Likewise.  Add #pragma omp taskwait.
15207         (main): Adjust caller.
15208         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15209         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15210         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15211         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15212         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15213         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15214         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15215         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15216         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15217         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15218         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15219         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15220         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15221         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15222         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15223         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15224         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15225         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15226         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15227         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15228         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15229         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15230         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15231         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15232         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15233         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15234         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15235         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15236         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15237         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15238         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15239         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15240         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15241         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15242         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15243         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15244         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15245         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15246         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15247         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15248         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15249         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15250         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15251         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15252         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15253         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15254         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15255         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15256         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15257         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15258         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15259         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15260         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15261         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15262         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15263         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15264         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15265         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15266         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15267         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15268         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15269         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15270         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15271         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15272         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15273         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15274         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15275         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15276         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15277         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15278         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15279         (vec_mult): Add !$omp taskwait.
15280         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15281         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15282         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15283         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15284         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15285         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15286         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15287         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15288         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15289         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15290         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15291         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15292         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15293         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15294         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15295         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15296         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15297         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15298         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15299         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15300         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15301         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15302         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15303         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15304         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15305         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15306         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15307         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15308         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15309         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15310         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15311         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15312         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15313         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15314         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15315         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15316         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15317         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15318         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15319         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15320         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15321         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15322         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15323         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15324         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15325         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15326         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15327         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15328         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15329         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15330         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15331         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15332         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15333         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15334         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15335         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15336         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15337         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15338         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15339         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15340         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15341         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15342         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15343         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15344         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15345         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15346         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15348 2015-07-10  Tom de Vries  <tom@codesourcery.com>
15350         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15351         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15353 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
15355         PR libgomp/65099
15356         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15357         in a 64-bit configuration.
15358         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15359         offloading testing if no such device is available.
15360         * testsuite/libgomp.oacc-c/c.exp: Likewise.
15361         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15363 2015-07-08  Tom de Vries  <tom@codesourcery.com>
15365         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15366         second call to f.
15367         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15369 2015-07-07  Tom de Vries  <tom@codesourcery.com>
15371         PR tree-optimization/66642
15372         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15373         iteration count case.
15374         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15375         function, factor out of ...
15376         (main): ... here.  Test low iteration count case.
15378 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15380         * libgomp.h (gomp_thread_pool): Comment last_team field.
15382 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
15384         * testsuite/libgomp.c++/pr66702-1.C: Require
15385         vect_simd_clones effective target.
15386         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15388 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15390         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15391         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15392         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15393         "-O2".
15395 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15397         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15398         already set.  Use DEFAULT_CFLAGS in dg-runtest.
15399         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15400         * testsuite/libgomp.c++/pr64824.C: Same.
15401         * testsuite/libgomp.c++/pr64868.C: Same.
15402         * testsuite/libgomp.c++/pr66199-1.C: Same.
15403         * testsuite/libgomp.c++/pr66199-2.C: Same.
15404         * testsuite/libgomp.c++/target-2.C: Same.
15405         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15406         -std=<standard> option.
15407         * testsuite/libgomp.c++/udr-11.C: Same.
15408         * testsuite/libgomp.c++/udr-12.C: Same.
15409         * testsuite/libgomp.c++/udr-13.C: Same.
15410         * testsuite/libgomp.c++/udr-14.C: Same.
15411         * testsuite/libgomp.c++/udr-15.C: Same.
15412         * testsuite/libgomp.c++/udr-16.C: Same.
15413         * testsuite/libgomp.c++/udr-17.C: Same.
15414         * testsuite/libgomp.c++/udr-18.C: Same.
15415         * testsuite/libgomp.c++/udr-19.C: Same.
15416         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15417         * testsuite/libgomp.c++/simd-1.C: Same.
15418         * testsuite/libgomp.c++/simd-2.C: Same.
15419         * testsuite/libgomp.c++/simd-3.C: Same.
15420         * testsuite/libgomp.c++/simd-4.C: Same.
15421         * testsuite/libgomp.c++/simd-5.C: Same.
15422         * testsuite/libgomp.c++/simd-6.C: Same.
15423         * testsuite/libgomp.c++/simd-7.C: Same.
15424         * testsuite/libgomp.c++/simd-8.C: Same.
15425         * testsuite/libgomp.c++/simd-9.C: Same.
15426         * testsuite/libgomp.c++/simd10.C: Same.
15427         * testsuite/libgomp.c++/simd11.C: Same.
15428         * testsuite/libgomp.c++/simd12.C: Same.
15429         * testsuite/libgomp.c++/simd13.C: Same.
15431 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
15433         PR middle-end/66702
15434         * testsuite/libgomp.c++/pr66702-1.C: New test.
15435         * testsuite/libgomp.c++/pr66702-2.C: New test.
15437 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15439         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15440         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15441         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15442         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15444 2015-06-30  Tom de Vries  <tom@codesourcery.com>
15446         PR tree-optimization/66652
15447         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15448         using restrict pointers.
15449         (main): Add arguments to calls to f.
15450         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15452 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
15454         * configure.ac: Fix check for header <sys/sysctl.h>.
15455         * configure: Regenerate.
15456         * config.h.in: Likewise.
15458 2015-06-23  Tom de Vries  <tom@codesourcery.com>
15460         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15461         abort.
15462         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15464 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15466         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15467         acc_device_nvidia.
15469         PR libgomp/66518
15470         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15471         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15473 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15475         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
15476         dg-additional-options for any remaining options.
15477         * testsuite/libgomp.c/atomic-2.c: Same.
15478         * testsuite/libgomp.c/atomic-4.c: Same.
15479         * testsuite/libgomp.c/atomic-5.c: Same.
15480         * testsuite/libgomp.c/atomic-6.c: Same.
15481         * testsuite/libgomp.c/autopar-1.c: Same.
15482         * testsuite/libgomp.c/copyin-1.c: Same.
15483         * testsuite/libgomp.c/copyin-2.c: Same.
15484         * testsuite/libgomp.c/copyin-3.c: Same.
15485         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15486         * testsuite/libgomp.c/nestedfn-5.c: Same.
15487         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15488         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15489         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15490         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15491         * testsuite/libgomp.c/pr32362-1.c: Same.
15492         * testsuite/libgomp.c/pr32362-2.c: Same.
15493         * testsuite/libgomp.c/pr32362-3.c: Same.
15494         * testsuite/libgomp.c/pr39591-1.c: Same.
15495         * testsuite/libgomp.c/pr39591-2.c: Same.
15496         * testsuite/libgomp.c/pr39591-3.c: Same.
15497         * testsuite/libgomp.c/pr58392.c: Same.
15498         * testsuite/libgomp.c/pr58756.c: Same.
15499         * testsuite/libgomp.c/simd-1.c: Same.
15500         * testsuite/libgomp.c/simd-10.c: Same.
15501         * testsuite/libgomp.c/simd-11.c: Same.
15502         * testsuite/libgomp.c/simd-12.c: Same.
15503         * testsuite/libgomp.c/simd-13.c: Same.
15504         * testsuite/libgomp.c/simd-14.c: Same.
15505         * testsuite/libgomp.c/simd-15.c: Same.
15506         * testsuite/libgomp.c/simd-2.c: Same.
15507         * testsuite/libgomp.c/simd-3.c: Same.
15508         * testsuite/libgomp.c/simd-4.c: Same.
15509         * testsuite/libgomp.c/simd-5.c: Same.
15510         * testsuite/libgomp.c/simd-6.c: Same.
15511         * testsuite/libgomp.c/simd-7.c: Same.
15512         * testsuite/libgomp.c/simd-8.c: Same.
15513         * testsuite/libgomp.c/simd-9.c: Same.
15515 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15517         * testsuite/libgomp.c/pr35625.c: Fix typo.
15519 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15521         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15522         in dg-options.
15523         * testsuite/libgomp.c/atomic-3.c: Same.
15524         * testsuite/libgomp.c/debug-1.c: Same.
15525         * testsuite/libgomp.c/nqueens-1.c: Same.
15526         * testsuite/libgomp.c/pr26171.c: Same.
15527         * testsuite/libgomp.c/pr48591.c: Same.
15528         * testsuite/libgomp.c/pr64824.c: Same.
15529         * testsuite/libgomp.c/pr64868.c: Same.
15530         * testsuite/libgomp.c/pr66133.c: Same.
15531         * testsuite/libgomp.c/pr66199-1.c: Same.
15532         * testsuite/libgomp.c/pr66199-2.c: Same.
15533         * testsuite/libgomp.c/target-8.c: Same.
15535 2015-06-15  Tom de Vries  <tom@codesourcery.com>
15537         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15538         -std={gnu99,c99}.
15539         * testsuite/libgomp.c/for-1.c: Same.
15540         * testsuite/libgomp.c/for-2.c: Same.
15541         * testsuite/libgomp.c/for-3.c: Same.
15542         * testsuite/libgomp.c/pr35625.c: Same.
15543         * testsuite/libgomp.c/pr39154.c: Same.
15544         * testsuite/libgomp.c/simd-16.c: Same.
15545         * testsuite/libgomp.c/simd-17.c: Same.
15547 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15549         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15551 2015-06-13  Tom de Vries  <tom@codesourcery.com>
15553         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15554         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15555         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15556         (N): Define.
15557         (main): Use N instead of hardcoded constants.
15559 2015-06-05  Tom de Vries  <tom@codesourcery.com>
15561         merge from gomp4 branch:
15562         2015-05-28  Tom de Vries  <tom@codesourcery.com>
15564         PR tree-optimization/65443
15565         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15566         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15567         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15569 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15571         * testsuite/libgomp.graphite/bounds.c: Adjust for
15572         cleanup-tree-dump removal.
15573         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15574         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15575         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15576         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15577         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15578         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15579         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15580         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15581         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15582         * testsuite/libgomp.graphite/pr41118.c: Likewise.
15584 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
15586         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15587         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15588         (futex_wake) [!__x86_64__]: Ditto.
15590 2015-05-28  Julian Brown  <julian@codesourcery.com>
15592         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15593         function comment. Only call gomp_fatal if new argument is true.
15594         (acc_dev_num_out_of_range): New function.
15595         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15596         acc_dev_num_out_of_range as appropriate.
15597         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15598         (acc_get_device_num, acc_set_device_num): Update calls to
15599         resolve_device.
15600         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15601         output.
15603 2015-05-28  Julian Brown  <julian@codesourcery.com>
15605         PR libgomp/65742
15606         * oacc-init.c (plugin/plugin-host.h): Include.
15607         (acc_on_device): Check whether we're in an offloaded region for
15608         host_nonshm
15609         plugin. Don't use __builtin_acc_on_device.
15610         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15611         nonshm_exec flag in thread-local data.
15612         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15613         data for host_nonshm plugin.
15614         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15615         for host_nonshm plugin.
15616         * plugin/plugin-host.h: New.
15618 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15620         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15622 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15624         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15625         Declare as int.
15626         (FUTEX_PRIVATE_FLAG): Remove L suffix.
15627         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15628         Declare as int.
15630 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
15632         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15634 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
15636         * target.c (gomp_map_pointer): New function abstracting out
15637         GOMP_MAP_POINTER handling.
15638         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15639         gomp_map_pointer().
15641 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15643         PR middle-end/66199
15644         * testsuite/libgomp.c/pr66199-1.c: New test.
15645         * testsuite/libgomp.c/pr66199-2.c: New test.
15646         * testsuite/libgomp.c++/pr66199-1.C: New test.
15647         * testsuite/libgomp.c++/pr66199-2.C: New test.
15648         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15649         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15651 2015-05-19  Julian Brown  <julian@codesourcery.com>
15653         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15654         on cuInit failure.
15656 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
15658         PR middle-end/66133
15659         * testsuite/libgomp.c/pr66133.c: New test.
15661 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
15663         * Makefile.in: Regenerated with automake-1.11.6.
15664         * aclocal.m4: Likewise.
15665         * config.h.in: Likewise.
15666         * configure: Likewise.
15667         * testsuite/Makefile.in: Likewise.
15669 2015-05-08  Jason Merrill  <jason@redhat.com>
15671         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15672         _Complex.
15674         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15676 2015-05-06  Julian Brown  <julian@codesourcery.com>
15678         * oacc-init.c (acc_device_lock): Add explanatory comment.
15679         (resolve_device): Add comment about locking requirement.
15680         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15681         gomp_init_device and gomp_fini_device calls.
15682         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15683         (acc_get_device_num, acc_set_device_num): Add locking around
15684         resolve_device and gomp_init_device calls.
15686 2015-05-06  Julian Brown  <julian@codesourcery.com>
15688         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15689         goacc_thread_lock on error paths.
15690         * oacc-mem.c (lookup_host): Remove locking from function. Note
15691         locking requirement for caller in function comment.
15692         (lookup_dev): Likewise.
15693         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15694         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15695         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15696         Add locking.
15698 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
15700         PR testsuite/65205
15701         PR libgomp/65993
15702         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15703         don't expect "0x" prefix for "%p" format specifier, don't expect
15704         "(nil)" for NULL pointer.
15705         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15706         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15707         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15708         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15709         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15710         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15711         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15712         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15713         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15714         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15715         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15716         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15717         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15718         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15719         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15720         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15721         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15722         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15723         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15724         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15725         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15726         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15727         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15728         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15729         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15730         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15731         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15732         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15733         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15734         accurately specify what we're looking for.
15735         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15736         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15737         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15738         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15739         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15741 2015-04-30  James Norris  <jnorris@codesourcery.com>
15743         PR testsuite/65205
15744         * testsuite/lib/libgomp.exp
15745         (check_effective_target_openacc_host_selected)
15746         (check_effective_target_openacc_host_nonshm_selected): New
15747         procedures.
15748         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15749         dg-shouldfail.
15750         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15751         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15752         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15753         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15754         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15755         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15756         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15757         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15758         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15759         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15760         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15761         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15762         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15763         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15764         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15765         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15766         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15767         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15768         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15769         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15770         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15771         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15772         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15773         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15774         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15775         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15776         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15777         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15778         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15779         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15780         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15781         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15782         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15783         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15784         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15785         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15786         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15787         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15788         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15789         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15790         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15791         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15792         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15794 2015-04-08  Julian Brown  <julian@codesourcery.com>
15796         * libgomp.h (target_mem_desc: Remove mem_map field.
15797         (acc_dispatch_t): Remove open_device_func, close_device_func,
15798         get_device_num_func, set_device_num_func, target_data members.
15799         Change create_thread_data_func argument to device number instead of
15800         generic pointer.
15801         * oacc-async.c (assert.h): Include.
15802         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15803         (acc_wait_all, acc_wait_all_async): Use current host thread's
15804         active device, not base_dev.
15805         * oacc-cuda.c (acc_get_current_cuda_device)
15806         (acc_get_current_cuda_context, acc_get_cuda_stream)
15807         (acc_set_cuda_stream): Likewise.
15808         * oacc-host.c (host_dispatch): Don't set open_device_func,
15809         close_device_func, get_device_num_func or set_device_num_func.
15810         * oacc-init.c (base_dev, init_key): Remove.
15811         (cached_base_dev): New.
15812         (name_of_acc_device_t): New.
15813         (acc_init_1): Initialise default-numbered device, not zeroth.
15814         (acc_shutdown_1): Close all devices of a given type.
15815         (goacc_destroy_thread): Don't use base_dev.
15816         (lazy_open, lazy_init, lazy_init_and_open): Remove.
15817         (goacc_attach_host_thread_to_device): New.
15818         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15819         (acc_get_num_devices): Don't use base_dev.
15820         (acc_set_device_type): Reimplement.
15821         (acc_get_device_type): Don't use base_dev.
15822         (acc_get_device_num): Tweak logic.
15823         (acc_set_device_num): Likewise.
15824         (acc_on_device): Use acc_get_device_type.
15825         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15826         (goacc_lazy_initialize): Reimplement with acc_init and
15827         goacc_attach_host_thread_to_device.
15828         * oacc-int.h (goacc_thread): Add base_dev field.
15829         (base_dev): Remove extern declaration.
15830         (goacc_attach_host_thread_to_device): Add prototype.
15831         * oacc-mem.c (acc_malloc): Use current thread's device instead of
15832         base_dev.
15833         (acc_free): Likewise.
15834         (acc_memcpy_to_device): Likewise.
15835         (acc_memcpy_from_device): Likewise.
15836         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15837         goacc_lazy_initialize (throughout).
15838         (GOACC_parallel): Use tgt_offset to locate target functions.
15839         * target.c (gomp_map_vars): Don't set tgt->mem_map.
15840         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15841         (gomp_load_plugin_for_device): Remove open_device, close_device,
15842         get_device_num, set_device_num openacc hook initialisation. Don't set
15843         openacc.target_data.
15844         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15845         (GOMP_OFFLOAD_openacc_close_device)
15846         (GOMP_OFFLOAD_openacc_get_device_num)
15847         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15848         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15849         to int.
15850         * plugin/plugin-nvptx.c (ptx_inited): Remove.
15851         (instantiated_devices, ptx_dev_lock): New.
15852         (struct ptx_image_data): New.
15853         (ptx_devices, ptx_images, ptx_image_lock): New.
15854         (fini_streams_for_device): Reorder cuStreamDestroy call.
15855         (nvptx_get_num_devices): Remove forward declaration.
15856         (nvptx_init): Change return type to bool.
15857         (nvptx_fini): Remove.
15858         (nvptx_attach_host_thread_to_device): New.
15859         (nvptx_open_device): Return struct ptx_device* instead of void*.
15860         (nvptx_close_device): Change argument type to struct ptx_device*,
15861         return type to void.
15862         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15863         (kernel_target_data, kernel_host_table): Remove static globals.
15864         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15865         (GOMP_OFFLOAD_init_device): Reimplement.
15866         (GOMP_OFFLOAD_fini_device): Likewise.
15867         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15868         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15869         (GOMP_OFFLOAD_host2dev): Use ORD argument.
15870         (GOMP_OFFLOAD_openacc_open_device)
15871         (GOMP_OFFLOAD_openacc_close_device)
15872         (GOMP_OFFLOAD_openacc_set_device_num)
15873         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15874         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15875         (device number).
15877         testsuite/
15878         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15880 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
15882         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15883         * libgomp.h (struct gomp_memory_mapping): Remove.
15884         (struct target_mem_desc): Change type of mem_map from
15885         gomp_memory_mapping * to splay_tree_s *.
15886         (struct gomp_device_descr): Remove register_image_func, get_table_func.
15887         Add load_image_func, unload_image_func.
15888         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15889         Remove offload_regions_registered.
15890         (gomp_init_tables): Remove.
15891         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15892         to splay_tree_s *.
15893         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15894         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15895         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15896         offload_regions_registered.
15897         Initialize load_image_func, unload_image_func, mem_map.root.
15898         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15899         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15900         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15901         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15902         gomp_memory_mapping *.  Use dev's lock and splay_tree.
15903         (lookup_dev): Use dev's lock.
15904         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15905         (acc_is_present): Likewise.
15906         (acc_map_data): Likewise.
15907         (acc_unmap_data): Likewise.  Use dev's lock.
15908         (present_create_copy): Likewise.
15909         (delete_copyout): Pass dev to lookup_host instead of mem_map.
15910         (update_dev_host): Likewise.
15911         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
15912         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15913         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15914         (GOMP_OFFLOAD_get_table): Remove
15915         (GOMP_OFFLOAD_load_image): New function.
15916         (GOMP_OFFLOAD_unload_image): New function.
15917         * target.c (register_lock): New mutex for offload image registration.
15918         (num_devices): Do not guard with PLUGIN_SUPPORT.
15919         (gomp_realloc_unlock): New static function.
15920         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
15921         before gomp_fatal.
15922         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15923         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
15924         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15925         mem_map's.
15926         (gomp_unmap_vars): Likewise.
15927         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
15928         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
15929         (gomp_offload_image_to_device): New static function.
15930         (GOMP_offload_register): Add mutex lock.
15931         Call gomp_offload_image_to_device for all initialized devices.
15932         Replace gomp_realloc with gomp_realloc_unlock.
15933         (GOMP_offload_unregister): New function.
15934         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
15935         get_table_func from the plugin with calls to init_device_func and
15936         gomp_offload_image_to_device.
15937         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15938         to splay_tree_s *.
15939         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
15940         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
15941         (GOMP_target_data): Do not call gomp_init_tables.
15942         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
15943         (gomp_load_plugin_for_device): Replace register_image and get_table
15944         with load_image and unload_image in DLSYM ().
15945         (gomp_register_images_for_device): Remove function.
15946         (gomp_target_init): Do not initialize current_device.mem_map.*,
15947         current_device.offload_regions_registered.
15948         Remove call to gomp_register_images_for_device.
15949         Do not free offload_images and num_offload_images.
15951 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
15953         PR fortran/65597
15954         * testsuite/libgomp.fortran/pr65597.f90: New test.
15956 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15958         PR testsuite/65594
15959         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15960         (init, check): New function.
15961         (foo): Change return type to void.
15962         (main): Call init and check.
15964 2015-03-27  Tom de Vries  <tom@codesourcery.com>
15966         PR testsuite/65594
15967         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15968         (foo): Use M for non-inner loops to scale down test-case.
15970 2015-03-25  Kai Tietz  <ktietz@redhat.com>
15972         PR libgomp/64972
15973         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15974         (GOACC_data_start): Likewise.
15975         * target.c (gomp_map_vars): Likewise.
15977 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
15979         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15980         hppa*-*-hpux*.
15982 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
15984         * testsuite/libgomp.c/target-10.c: New test.
15985         * testsuite/libgomp.c++/target-4.C: New test.
15987 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
15989         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15990         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15992 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15994         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
15995         * configure.ac (*-*-rtems*): Assume Pthread is supported.
15996         (pthread.h): Check for this header file.
15997         * configure: Regenerate.
15999 2015-02-25  Tom de Vries  <tom@codesourcery.com>
16001         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16002         (check_reduction_op, check_reduction_macro, max, min):
16003         Declare.
16004         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16005         function.
16006         (main): Use new functions.
16008 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
16010         * target.c (gomp_load_plugin_for_device): Use const char * instead of
16011         char * for variables holding dlerror return values.
16012         (DLSYM_OPT): Ditto.
16014 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16016         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16018 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
16019             Cesar Philippidis  <cesar@codesourcery.com>
16021         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16022         GOACC_ctaid, and GOACC_nctaid routines.
16024 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
16026         PR c/64824
16027         * testsuite/libgomp.c/atomic-18.c: New test.
16028         * testsuite/libgomp.c++/atomic-16.C: New test.
16030 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
16032         PR c/64824
16033         PR c/64868
16034         * testsuite/libgomp.c/pr64824.c: New test.
16035         * testsuite/libgomp.c/pr64868.c: New test.
16036         * testsuite/libgomp.c++/pr64824.C: New test.
16037         * testsuite/libgomp.c++/pr64868.C: New test.
16039 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
16041         PR libgomp/64635
16042         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16043         Link with -lpthread.
16044         * config/aix/plugin-suffix.h: Delete.
16046 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
16048         PR libgomp/64635
16049         * configure.tgt (*-*-aix*): Use config_path "aix posix".
16050         (*-*-darwin*): Use config_path "bsd darwin posix".
16051         (*-*-hpux*): Use config_path "hpux posix".
16052         * target.c: Add include of plugin-suffix.h and use
16053         SONAME_SUFFIX macro.
16054         * config/aix/plugin-suffix.h: New file.
16055         * config/darwin/plugin-suffix.h: New file.
16056         * config/hpux/plugin-suffix.h: New file.
16057         * config/posix/plugin-suffix.h: New file.
16059 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16061         PR middle-end/64734
16062         * libgomp.c/pr64734.c: New test.
16064 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16066         PR libgomp/64672
16067         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16069 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16071         PR libgomp/64707
16072         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16073         dg-options.
16075 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16077         PR libgomp/64625
16078         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16079         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16080         formal parameter.  Update all users.
16081         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16082         Document unused formal parameter.
16084 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
16086         * oacc-parallel.c: Don't include <alloca.h>.
16087         (GOACC_parallel): Use gomp_alloca instead of alloca.
16089 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
16091         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16093 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
16094             James Norris  <jnorris@codesourcery.com>
16095             Tom de Vries  <tom@codesourcery.com>
16096             Julian Brown  <julian@codesourcery.com>
16097             Cesar Philippidis  <cesar@codesourcery.com>
16098             Nathan Sidwell  <nathan@codesourcery.com>
16099             Tobias Burnus  <burnus@net-b.de>
16101         * Makefile.am (search_path): Add $(top_srcdir)/../include.
16102         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16103         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16104         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16105         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16106         Include $(top_srcdir)/plugin/Makefrag.am.
16107         (nodist_libsubinclude_HEADERS): Add openacc.h.
16108         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16109         openacc.f90, openacc.mod, openacc_kinds.mod.
16110         (omp_lib.mod): Generalize into...
16111         (%.mod): ... this new rule.
16112         (openacc_kinds.mod, openacc.mod): New rules.
16113         * plugin/configfrag.ac: New file.
16114         * configure.ac: Move plugin/offloading support into it.  Include
16115         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
16116         * plugin/Makefrag.am: New file.
16117         * testsuite/Makefile.am (OFFLOAD_TARGETS)
16118         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16119         export.
16120         (libgomp-test-support.exp): New rule.
16121         (all-local): Depend on it.
16122         * Makefile.in: Regenerate.
16123         * testsuite/Makefile.in: Regenerate.
16124         * config.h.in: Likewise.
16125         * configure: Likewise.
16126         * configure.tgt: Harden shell syntax.
16127         * env.c: Include "oacc-int.h".
16128         (parse_acc_device_type): New function.
16129         (gomp_debug_var, goacc_device_type, goacc_device_num): New
16130         variables.
16131         (initialize_env): Initialize those.  Call
16132         goacc_runtime_initialize.
16133         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16134         (gomp_fatal): Call gomp_vfatal.
16135         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16136         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16137         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16138         (splay_tree_node, splay_tree, splay_tree_key)
16139         (struct target_mem_desc, struct splay_tree_key_s)
16140         (struct gomp_memory_mapping, struct acc_dispatch_t)
16141         (struct gomp_device_descr, gomp_acc_insert_pointer)
16142         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16143         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16144         (gomp_free_memmap, gomp_fini_device): New declarations.
16145         (gomp_vdebug, gomp_debug): New macros.
16146         Include "splay-tree.h".
16147         * libgomp.map (OACC_2.0): New symbol version.  Use for
16148         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16149         acc_set_device_type_h_, acc_get_device_type,
16150         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16151         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16152         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16153         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16154         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16155         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16156         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16157         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16158         acc_copyin_array_h_, acc_present_or_copyin,
16159         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16160         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16161         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16162         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16163         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16164         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16165         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16166         acc_update_device, acc_update_device_32_h_,
16167         acc_update_device_64_h_, acc_update_device_array_h_,
16168         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16169         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16170         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16171         acc_is_present_64_h_, acc_is_present_array_h_,
16172         acc_memcpy_to_device, acc_memcpy_from_device,
16173         acc_get_current_cuda_device, acc_get_current_cuda_context,
16174         acc_get_cuda_stream, acc_set_cuda_stream.
16175         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
16176         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16177         GOACC_update, GOACC_wait, GOACC_get_thread_num,
16178         GOACC_get_num_threads.
16179         (GOMP_PLUGIN_1.0): New symbol version.  Use for
16180         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16181         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16182         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16183         GOMP_PLUGIN_acc_thread.
16184         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16185         environment variable.
16186         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16187         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16188         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16189         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16190         (splay_tree_remove): New declarations.
16191         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16192         (splay_tree_remove, splay_tree_lookup): Move into...
16193         * splay-tree.c: ... this new file.
16194         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16195         (splay_tree_node, splay_tree, splay_tree_key)
16196         (struct target_mem_desc, struct splay_tree_key_s)
16197         (struct gomp_device_descr): Don't declare.
16198         (num_devices_openmp): New variable.
16199         (gomp_get_num_devices ): Use it.
16200         (gomp_init_targets_once): New function.
16201         (gomp_get_num_devices ): Use it.
16202         (get_kind, gomp_copy_from_async, gomp_free_memmap)
16203         (gomp_fini_device, gomp_register_image_for_device): New functions.
16204         (gomp_map_vars): Add devaddrs parameter.
16205         (gomp_update): Add mm parameter.
16206         (gomp_init_device): Move most of it into...
16207         (gomp_init_tables): ... this new function.
16208         (gomp_register_images_for_device): Remove function.
16209         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16210         Make them hidden instead of static.
16211         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16212         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16213         (GOMP_target_end_data, GOMP_target_update)
16214         (gomp_load_plugin_for_device, gomp_target_init): Update for
16215         OpenACC changes.
16216         * oacc-async.c: New file.
16217         * oacc-cuda.c: Likewise.
16218         * oacc-host.c: Likewise.
16219         * oacc-init.c: Likewise.
16220         * oacc-int.h: Likewise.
16221         * oacc-mem.c: Likewise.
16222         * oacc-parallel.c: Likewise.
16223         * oacc-plugin.c: Likewise.
16224         * oacc-plugin.h: Likewise.
16225         * oacc-ptx.h: Likewise.
16226         * openacc.f90: Likewise.
16227         * openacc.h: Likewise.
16228         * openacc_lib.h: Likewise.
16229         * plugin/plugin-host.c: Likewise.
16230         * plugin/plugin-nvptx.c: Likewise.
16231         * libgomp-plugin.c: Likewise.
16232         * libgomp-plugin.h: Likewise.
16233         * libgomp_target.h: Remove file after merging content into the
16234         former file.  Update all users.
16235         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16236         (offload_targets_s, offload_targets_s_openacc): New variables.
16237         (check_effective_target_openacc_nvidia_accel_present)
16238         (check_effective_target_openacc_nvidia_accel_selected): New
16239         procedures.
16240         (libgomp_init): Update for OpenACC changes.
16241         * testsuite/libgomp-test-support.exp.in: New file.
16242         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16243         * testsuite/libgomp.oacc-c/c.exp: Likewise.
16244         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16245         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16246         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16247         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16248         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16249         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16250         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16251         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16252         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16253         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16254         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16255         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16256         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16257         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16258         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16259         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16260         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16261         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16262         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16263         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16264         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16265         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16266         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16267         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16268         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16269         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16270         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16271         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16272         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16273         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16274         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16275         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16276         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16277         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16278         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16279         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16280         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16281         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16282         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16283         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16284         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16285         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16286         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16287         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16288         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16289         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16290         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16291         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16292         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16293         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16294         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16295         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16296         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16297         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16298         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16299         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16300         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16301         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16302         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16303         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16304         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16305         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16306         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16307         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16308         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16309         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16310         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16311         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16312         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16313         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16314         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16315         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16316         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16317         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16318         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16319         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16320         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16321         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16322         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16323         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16324         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16325         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16326         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16327         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16328         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16329         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16330         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16331         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16332         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16333         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16334         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16335         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16336         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16337         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16338         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16339         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16340         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16341         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16342         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16343         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16344         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16345         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16346         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16347         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16348         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16349         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16350         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16351         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16352         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16353         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16354         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16355         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16356         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16357         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16358         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16359         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16360         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16361         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16362         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16363         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16364         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16365         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16366         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16367         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16368         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16369         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16370         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16371         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16372         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16373         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16374         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16375         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16376         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16377         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16378         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16379         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16380         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16381         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16382         Likewise.
16383         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16384         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16385         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16386         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16387         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16388         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16389         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16390         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16391         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16392         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16393         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16394         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16395         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16396         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16397         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16398         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16399         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16400         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16401         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16402         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16403         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16404         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16405         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16406         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16407         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16408         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16409         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16410         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16411         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16412         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16413         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16414         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16415         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16416         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16417         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16418         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16419         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16420         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16421         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16422         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16423         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16424         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16425         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16426         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16427         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16428         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16429         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16430         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16431         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16432         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16433         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16434         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16435         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16436         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16437         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16438         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16439         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16440         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16441         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16442         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16444 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
16445             Julian Brown  <julian@codesourcery.com>
16446             David Malcolm  <dmalcolm@redhat.com>
16448         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16449         to "GNU Offloading and Multi Processing Runtime Library".  Change
16450         all users.
16451         * configure: Regenerate.
16452         * libgomp.texi: Update.
16454 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
16456         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16457         "$tgt_dir/lib32".
16458         * configure: Regenerate.
16460         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16461         "intelmic" in $offload_targets.
16463 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
16465         Update copyright years.
16467         * libgomp.texi: Bump @copying's copyright year.
16469 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16471         * testsuite/lib/libgomp.exp: Load target-utils.exp.
16472         Move load of target-supports.exp earlier.
16474 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
16476         * testsuite/libgomp.c/target-9.c: New test.
16478 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
16480         * config.h.in: Regenerate.
16481         * configure: Regenerate.
16482         * configure.ac: Add GCC_CHECK_EMUTLS.
16483         * libgomp.h: Add check for USE_EMUTLS: this case
16484         is equal to HAVE_TLS.
16485         * team.c: Likewise.
16487 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
16489         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16491 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16492             Ilya Verbin  <ilya.verbin@intel.com>
16494         * testsuite/libgomp.c/target-critical-1.c: New test.
16496 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
16498         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16499         to dg-options unless expensive testing is on.
16500         (TESTITERS): Define to N if not defined.
16501         (main): Use TESTITERS instead of N.
16502         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16503         dg-additional-options depending on whether expensive testing is on.
16504         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16505         Decrease N to 100000 and CHUNKSZ to 10000.
16507 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
16509         PR fortran/63938
16510         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16511         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16513 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
16515         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16517 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
16519         PR bootstrap/63784
16520         * configure: Regenerated.
16522 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
16524         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16525         vect_simd_clones effective target.
16526         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16528 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
16530         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16531         of 32 as block_size.
16532         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16533         instead of 32 as block_size.
16535 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16536             Ilya Verbin  <ilya.verbin@intel.com>
16538         * Makefile.in: Regenerate.
16539         * configure: Regenerate.
16540         * configure.ac: Set up offload_additional_options,
16541         offload_additional_lib_paths and offload_targets.
16542         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16543         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16544         * testsuite/Makefile.in: Regenerate.
16545         * testsuite/lib/libgomp.exp (libgomp_init): Append
16546         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
16547         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
16548         build directory to LD_LIBRARY_PATH for intelmic offload targets.
16550 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16551             Ilya Verbin  <ilya.verbin@intel.com>
16552             Kirill Yukhin  <kirill.yukhin@intel.com>
16553             Ilya Tocar  <ilya.tocar@intel.com>
16555         * testsuite/lib/libgomp.exp
16556         (check_effective_target_offload_device): New.
16557         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16558         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16559         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16560         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16561         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16562         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16563         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16564         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16565         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16566         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16567         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16568         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16569         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16570         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16571         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16572         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16573         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16574         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16575         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16576         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16577         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16578         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16579         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16580         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16581         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16582         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16583         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16584         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16585         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16586         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16587         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16588         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16589         * testsuite/libgomp.c/target-7.c: Fix test.
16590         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16591         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16592         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16593         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16594         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16595         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16596         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16597         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16598         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16599         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16600         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16601         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16602         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16603         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16604         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16605         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16606         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16607         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16608         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16609         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16610         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16611         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16612         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16613         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16614         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16615         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16616         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16617         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16618         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16619         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16620         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16622 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
16623             Ilya Verbin  <ilya.verbin@intel.com>
16624             Thomas Schwinge  <thomas@codesourcery.com>
16625             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16627         * libgomp.map (GOMP_4.0.1): New symbol version.
16628         Add GOMP_offload_register.
16629         * libgomp_target.h: New file.
16630         * splay-tree.h: New file.
16631         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16632         (gomp_target_init): New forward declaration.
16633         (gomp_is_initialized): New static variable.
16634         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16635         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16636         New structures.
16637         (offload_images, num_offload_images, devices, num_devices): New static
16638         variables.
16639         (splay_compare): New static function.
16640         (struct gomp_device_descr): New structure.
16641         (gomp_get_num_devices): Call gomp_target_init.
16642         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16643         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16644         (GOMP_offload_register): New function.
16645         (GOMP_target): Arrange for host callback to be performed in a separate
16646         initial thread and contention group, inheriting ICVs from
16647         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
16648         Add device initialization and lookup for target function in splay tree.
16649         (GOMP_target_data): Add device initialization and call gomp_map_vars.
16650         (GOMP_target_end_data): Call gomp_unmap_vars.
16651         (GOMP_target_update): Add device initialization and call gomp_update.
16652         (gomp_load_plugin_for_device, gomp_register_images_for_device)
16653         (gomp_target_init): New static functions.
16655 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
16656             Thomas Schwinge  <thomas@codesourcery.com>
16657             Ilya Verbin  <ilya.verbin@intel.com>
16658             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16660         * config.h.in: Regenerate.
16661         * configure: Regenerate.
16662         * configure.ac: Check for libdl, required for plugin support.
16663         (PLUGIN_SUPPORT): Define if plugins are supported.
16664         (enable_offload_targets): Support Intel MIC targets.
16665         (OFFLOAD_TARGETS): List of target names suitable for offloading.
16667 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16669         PR target/63610
16670         * configure: Regenerate.
16672 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16674         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16676 2014-10-06  Marek Polacek  <polacek@redhat.com>
16678         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16679         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16680         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16681         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16683 2014-10-06  Marek Polacek  <polacek@redhat.com>
16685         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16686         * testsuite/libgomp.c/nqueens-1.c: Likewise.
16687         * testsuite/libgomp.c/pr26943-3.c: Likewise.
16688         * testsuite/libgomp.c/pr26943-4.c: Likewise.
16689         * testsuite/libgomp.c/pr36802-2.c: Likewise.
16690         * testsuite/libgomp.c/pr36802-3.c: Likewise.
16691         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16692         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16693         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16694         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16695         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16696         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16697         * testsuite/libgomp.c/omp-single-1.c: Likewise.
16698         * testsuite/libgomp.c/omp-single-2.c: Likewise.
16699         * testsuite/libgomp.c/omp_matvec.c: Likewise.
16700         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16701         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16702         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
16703         declarations.
16705 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
16707         PR libgomp/61200
16708         * testsuite/libgomp.c/pr61200.c: New test.
16710 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
16712         PR c++/63248
16713         * testsuite/libgomp.c++/pr63248.C: New test.
16715 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
16717         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16718         is not zero, but taskgroup->children is NULL and there are
16719         any task->children, schedule those instead of waiting.
16720         * testsuite/libgomp.c/depend-6.c: New test.
16721         * testsuite/libgomp.c/depend-7.c: New test.
16722         * testsuite/libgomp.c/depend-8.c: New test.
16723         * testsuite/libgomp.c/depend-9.c: New test.
16724         * testsuite/libgomp.c/depend-10.c: New test.
16726 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
16728         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16729         (struct gomp_taskwait): New type.
16730         (struct gomp_task): Add taskwait and parent_depends_on, remove
16731         in_taskwait and taskwait_sem fields.
16732         (gomp_finish_task): Don't destroy taskwait_sem.
16733         * task.c (gomp_init_task): Don't init in_taskwait, instead init
16734         taskwait and parent_depends_on.
16735         (GOMP_task): For if (0) tasks with depend clause that depend on
16736         earlier tasks don't defer them, instead call
16737         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16738         Initialize redundant_out field, for redundant out entries just
16739         move them at the end of linked list instead of removing them
16740         completely, and set redundant_out flag instead of redundant.
16741         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16742         that task.
16743         (gomp_task_run_post_handle_dependers): If parent is in
16744         gomp_task_maybe_wait_for_dependencies and newly runnable task
16745         is not parent_depends_on, queue it in parent->children linked
16746         list after all runnable tasks with parent_depends_on set.
16747         Adjust for addition of taskwait indirection.
16748         (gomp_task_run_post_remove_parent): If parent is in
16749         gomp_task_maybe_wait_for_dependencies and task to be removed
16750         is parent_depends_on, decrement n_depend and if needed awake
16751         parent.  Adjust for addition of taskwait indirection.
16752         (GOMP_taskwait): Adjust for addition of taskwait indirection.
16753         (gomp_task_maybe_wait_for_dependencies): New function.
16754         * testsuite/libgomp.c/depend-5.c: New test.
16756 2014-07-13  Tobias Burnus  <burnus@net-b.de>
16758         * testsuite/libgomp.fortran/pr34020.f90: Make compile
16759         with TS 18508/Fortran 2015.
16761 2014-07-06  Marek Polacek  <polacek@redhat.com>
16763         PR c/6940
16764         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16766 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
16768         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16769         matches regex $lang_source_re, add $lang_include_flags to options.
16770         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16771         * testsuite/libgomp.c++/c++.exp: Likewise.
16772         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
16773         and lang_include_flags instead of adding -fintrinsic-modules-path= to
16774         ALWAYS_CFLAGS.
16775         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16777 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
16779         * testsuite/libgomp.fortran/fortran.exp: Explain
16780         gfortran-dg-runtest usage.
16782 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
16784         * testsuite/libgomp.fortran/simd5.f90: New test.
16785         * testsuite/libgomp.fortran/simd6.f90: New test.
16786         * testsuite/libgomp.fortran/simd7.f90: New test.
16788 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
16790         * testsuite/libgomp.c/for-2.c: Define SC to static for
16791         #pragma omp for simd testing.
16792         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16793         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16794         SC macro.
16795         * testsuite/libgomp.c/simd-14.c: New test.
16796         * testsuite/libgomp.c/simd-15.c: New test.
16797         * testsuite/libgomp.c/simd-16.c: New test.
16798         * testsuite/libgomp.c/simd-17.c: New test.
16799         * testsuite/libgomp.c++/for-10.C: Define SC to static for
16800         #pragma omp for simd testing.
16801         * testsuite/libgomp.c++/simd10.C: New test.
16802         * testsuite/libgomp.c++/simd11.C: New test.
16803         * testsuite/libgomp.c++/simd12.C: New test.
16804         * testsuite/libgomp.c++/simd13.C: New test.
16806         * testsuite/libgomp.fortran/aligned1.f03: New test.
16807         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16808         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16809         tasks with !$omp parallel !$omp single.
16810         * testsuite/libgomp.fortran/target8.f90: New test.
16811         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16812         not to use trim in the combiner, instead call elemental function.
16813         (fn): New elemental function.
16814         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16815         Make elemental.
16816         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16817         omp_in): Likewise.
16818         * testsuite/libgomp.fortran/udr12.f90: New test.
16819         * testsuite/libgomp.fortran/udr13.f90: New test.
16820         * testsuite/libgomp.fortran/udr14.f90: New test.
16821         * testsuite/libgomp.fortran/udr15.f90: New test.
16823 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
16825         * omp_lib.f90.in (openmp_version): Set to 201307.
16826         * omp_lib.h.in (openmp_version): Likewise.
16827         * testsuite/libgomp.c/target-8.c: New test.
16828         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16829         and inbranch clauses.
16830         * testsuite/libgomp.fortran/depend-3.f90: New test.
16831         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16832         openmp_version.
16833         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16834         * testsuite/libgomp.fortran/target1.f90: New test.
16835         * testsuite/libgomp.fortran/target2.f90: New test.
16836         * testsuite/libgomp.fortran/target3.f90: New test.
16837         * testsuite/libgomp.fortran/target4.f90: New test.
16838         * testsuite/libgomp.fortran/target5.f90: New test.
16839         * testsuite/libgomp.fortran/target6.f90: New test.
16840         * testsuite/libgomp.fortran/target7.f90: New test.
16842 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
16844         PR fortran/60928
16845         * testsuite/libgomp.fortran/allocatable9.f90: New test.
16846         * testsuite/libgomp.fortran/allocatable10.f90: New test.
16847         * testsuite/libgomp.fortran/allocatable11.f90: New test.
16848         * testsuite/libgomp.fortran/allocatable12.f90: New test.
16849         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16850         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16851         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16852         * testsuite/libgomp.fortran/associate1.f90: New test.
16853         * testsuite/libgomp.fortran/associate2.f90: New test.
16854         * testsuite/libgomp.fortran/procptr1.f90: New test.
16856 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
16858         * testsuite/libgomp.fortran/simd1.f90: New test.
16859         * testsuite/libgomp.fortran/udr1.f90: New test.
16860         * testsuite/libgomp.fortran/udr2.f90: New test.
16861         * testsuite/libgomp.fortran/udr3.f90: New test.
16862         * testsuite/libgomp.fortran/udr4.f90: New test.
16863         * testsuite/libgomp.fortran/udr5.f90: New test.
16864         * testsuite/libgomp.fortran/udr6.f90: New test.
16865         * testsuite/libgomp.fortran/udr7.f90: New test.
16866         * testsuite/libgomp.fortran/udr8.f90: New test.
16867         * testsuite/libgomp.fortran/udr9.f90: New test.
16868         * testsuite/libgomp.fortran/udr10.f90: New test.
16869         * testsuite/libgomp.fortran/udr11.f90: New test.
16871 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
16873         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16874         vect_simd_clones effective target.
16875         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16877 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
16879         PR middle-end/61252
16880         * testsuite/libgomp.c++/simd-9.C: New test.
16882 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
16884         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16885         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16886         texts according to their @menu entry positions.
16888 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
16890         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16891         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16892         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16893         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16894         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16895         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16896         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16897         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16898         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16899         * testsuite/libgomp.fortran/depend-1.f90: New test.
16900         * testsuite/libgomp.fortran/depend-2.f90: New test.
16901         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16902         * testsuite/libgomp.fortran/simd1.f90: New test.
16903         * testsuite/libgomp.fortran/simd2.f90: New test.
16904         * testsuite/libgomp.fortran/simd3.f90: New test.
16905         * testsuite/libgomp.fortran/simd4.f90: New test.
16906         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16908 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
16910         * testsuite/libgomp.c/simd-10.c: New test.
16911         * testsuite/libgomp.c/simd-11.c: New test.
16912         * testsuite/libgomp.c/simd-12.c: New test.
16913         * testsuite/libgomp.c/simd-13.c: New test.
16915 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
16917         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16918         atomic type clauses in any order and optional comma in between.
16919         * testsuite/libgomp.c++/atomic-15.C: Likewise.
16920         * testsuite/libgomp.c/atomic-17.c: Likewise.
16922         * testsuite/libgomp.c/simd-7.c: New test.
16923         * testsuite/libgomp.c/simd-8.c: New test.
16924         * testsuite/libgomp.c/simd-9.c: New test.
16925         * testsuite/libgomp.c/loop-16.c: New test.
16927 2014-04-02  Richard Henderson  <rth@redhat.com>
16929         * config/linux/futex.h (futex_wait): Get error value from errno.
16930         (futex_wake): Likewise.
16932 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
16934         PR c++/60331
16935         * testsuite/libgomp.c++/udr-11.C: New test.
16936         * testsuite/libgomp.c++/udr-12.C: New test.
16937         * testsuite/libgomp.c++/udr-13.C: New test.
16938         * testsuite/libgomp.c++/udr-14.C: New test.
16939         * testsuite/libgomp.c++/udr-15.C: New test.
16940         * testsuite/libgomp.c++/udr-16.C: New test.
16941         * testsuite/libgomp.c++/udr-17.C: New test.
16942         * testsuite/libgomp.c++/udr-18.C: New test.
16943         * testsuite/libgomp.c++/udr-19.C: New test.
16945 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16947         Update copyright years
16949 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16951         * hashtab.h: Use the standard form for the copyright notice.
16953 2014-01-02  Tobias Burnus  <burnus@net-b.de>
16955         * libgomp.texi: Bump @copying's copyright year.
16957 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
16959         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16960         alloca () with __builtin_alloca ().
16961         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16962         * testsuite/libgomp.c/lock-3.c: Likewise.
16963         * testsuite/libgomp.c/pr48591.c: Likewise.
16965 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
16967         PR testsuite/59534
16968         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16969         comparisons.
16971 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
16973         PR libgomp/58756
16974         * testsuite/libgomp.c/pr58756.c: New test.
16976 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
16978         PR libgomp/59467
16979         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16980         !$omp parallel.
16982 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
16984         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16985         ALWAYS_CFLAGS.
16986         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16987         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16988         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16989         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16990         Likewise.
16992         * libgomp_g.h: Include <stddef.h> for size_t.
16994         * libgomp.spec.in: Update comment about libgomp's dependencies.
16995         * configure.ac: Likewise.
16996         * configure: Regenerate.
16998 2013-10-16  Tobias Burnus  <burnus@net-b.de>
17000         * libgomp.texi: (Runtime Library Routines): Update references for
17001         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17002         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17003         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17004         (Environment Variables): Update references for OpenMP 4.0. Add
17005         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17006         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17007         order.
17009 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
17011         * env.c (parse_bind_var): Initialize value to avoid
17012         (false positive) warning.
17014 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
17016         PR libgomp/58691
17017         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17018         to check variable.
17019         (gomp_init_num_threads): Move i variable declaration into
17020         #ifdef CPU_ALLOC_SIZE block.
17021         * config/linux/affinity.c (gomp_affinity_init_level): Test
17022         gomp_places_list_len == 0 rather than gomp_places_list == 0
17023         when checking for topology reading error.
17024         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17025         * env.c (parse_affinity): Add ignore argument, if true, don't populate
17026         gomp_places_list, only parse env var and always return false.
17027         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
17028         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17029         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17030         and either of these variables were parsed correctly into a places
17031         list.
17033 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17034             Jakub Jelinek  <jakub@redhat.com>
17036         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17037         of 5 loopfn matches.
17038         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17039         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17040         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17041         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17042         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17043         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17044         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17045         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17047 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
17049         * Makefile.am (omp_lib.mod): Streamline rule.
17050         * Makefile.in: Regenerate.
17052         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17053         exceptions.
17055         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17056         * testsuite/libgomp.fortran/lib1.f90: Likewise.
17057         * testsuite/libgomp.fortran/lib2.f: Likewise.
17058         * testsuite/libgomp.fortran/lib3.f: Likewise.
17060         * configure.ac: Typo fix.
17061         * configure: Regenerate.
17063         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17064         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17066         * omp.h.in: Don't touch the user's namespace.
17068 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
17069             Tobias Burnus  <burnus@net-b.de>
17070             Richard Henderson  <rth@redhat.com>
17072         * target.c: New file.
17073         * Makefile.am (libgomp_la_SOURCES): Add target.c.
17074         * Makefile.in: Regenerated.
17075         * libgomp_g.h (GOMP_task): Add depend argument.
17076         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17077         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17078         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17079         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17080         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17081         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17082         GOMP_taskgroup_start, GOMP_taskgroup_end,
17083         GOMP_parallel_sections): New prototypes.
17084         * fortran.c (omp_is_initial_device): Add ialias_redirect.
17085         (omp_is_initial_device_): New function.
17086         (ULP, STR1, STR2, ialias_redirect): Removed.
17087         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17088         omp_set_default_device_8_, omp_get_default_device_,
17089         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17090         functions.
17091         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17092         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17093         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17094         @@GOMP_4.0.
17095         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17096         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17097         omp_set_default_device, omp_set_default_device_,
17098         omp_set_default_device_8_, omp_get_default_device,
17099         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17100         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17101         omp_get_team_num_): Export @@OMP_4.0.
17102         * team.c (struct gomp_thread_start_data): Add place field.
17103         (gomp_thread_start): Clear thr->thread_pool and
17104         thr->task before returning.  Use gomp_team_barrier_wait_final
17105         instead of gomp_team_barrier_wait.  Initialize thr->place.
17106         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17107         team_cancelled and task_queued_count fields.
17108         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17109         before calling pthread_exit.
17110         (gomp_free_thread): No longer static.  Use
17111         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17112         (gomp_team_start): Add flags argument.  Set
17113         thr->thread_pool->threads_busy to nthreads immediately after creating
17114         new pool.  Use gomp_managed_threads_lock instead of
17115         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
17116         (gomp_team_end): Use gomp_managed_threads_lock instead of
17117         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
17118         of gomp_team_barrier_wait.  If team->team_cancelled, call
17119         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17120         rather than thr->ts.work_share.
17121         (initialize_team): Don't call gomp_sem_init here.
17122         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17123         caller.
17124         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17125         * env.c (gomp_global_icv): Add default_device_var, target_data and
17126         bind_var initializers.
17127         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17128         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17129         gomp_places_list_len): New variables.
17130         (parse_bind_var, parse_one_place, parse_places_var): New functions.
17131         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17132         sized places.
17133         (gomp_cancel_var): New global variable.
17134         (parse_int): New function.
17135         (handle_omp_display_env): New function.
17136         (initialize_env): Use it.  Initialize default_device_var.
17137         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
17138         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
17139         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
17140         been successfully parsed (and call gomp_init_affinity in that case).
17141         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17142         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17143         omp_get_team_num, omp_is_initial_device): New functions.
17144         * libgomp.h: Include stdlib.h.
17145         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17146         Define.
17147         (struct target_mem_desc): Forward declare.
17148         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17149         and thread_limit_var fields.
17150         (gomp_get_num_devices): New prototype.
17151         (gomp_cancel_var): New extern decl.
17152         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17153         team_cancelled and task_queued_count fields.  Add comments about
17154         task_{,queued_,running_}count.
17155         (gomp_cancel_kind): New enum.
17156         (gomp_work_share_end_cancel): New prototype.
17157         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17158         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17159         and depend fields.
17160         (struct gomp_taskgroup): New type.
17161         (struct gomp_task_depend_entry,
17162         struct gomp_dependers_vec): New types.
17163         (gomp_finish_task): Free depend_hash if non-NULL.
17164         (struct gomp_team_state): Add place_partition_off
17165         and place_partition_len fields.
17166         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17167         gomp_places_list_len): New extern decls.
17168         (struct gomp_thread): Add place field.
17169         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17170         (gomp_init_thread_affinity): Add place argument.
17171         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17172         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17173         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17174         gomp_affinity_init_level, gomp_affinity_print_place): New
17175         prototypes.
17176         (gomp_team_start): Add flags argument.
17177         (gomp_thread_limit_var, gomp_remaining_threads_count,
17178         gomp_remaining_threads_lock): Remove.
17179         (gomp_managed_threads_lock): New variable.
17180         (struct gomp_thread_pool): Add threads_busy field.
17181         (gomp_free_thread): New prototype.
17182         * task.c: Include hashtab.h.
17183         (hash_entry_type): New typedef.
17184         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17185         (gomp_init_task): Clear dependers, depend_hash, depend_count,
17186         copy_ctors_done and taskgroup fields.
17187         (GOMP_task): Add depend argument, handle depend clauses.  If
17188         gomp_team_barrier_cancelled or if it's taskgroup has been
17189         cancelled, don't queue or start new tasks.  Set copy_ctors_done
17190         field if needed.  Initialize taskgroup field.  If copy_ctors_done
17191         and already cancelled, don't discard the task.  If taskgroup is
17192         non-NULL, enqueue the task into taskgroup queue.  Increment
17193         num_children field in taskgroup.  Increment task_queued_count.
17194         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17195         gomp_task_run_post_remove_taskgroup): New inline functions.
17196         (gomp_task_run_post_handle_depend_hash,
17197         gomp_task_run_post_handle_dependers,
17198         gomp_task_run_post_handle_depend): New functions.
17199         (GOMP_taskwait): Use them.  If more than one new tasks
17200         have been queued, wake other threads if needed.
17201         (gomp_barrier_handle_tasks): Likewise.  If
17202         gomp_team_barrier_cancelled, don't start any new tasks, just free
17203         all tasks.
17204         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17205         * omp_lib.f90.in
17206         (omp_proc_bind_kind, omp_proc_bind_false,
17207         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17208         omp_proc_bind_spread): New params.
17209         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17210         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17211         omp_get_team_num, omp_is_initial_device): New interfaces.
17212         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17213         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17214         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17215         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17216         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17217         useless use omp_lib_kinds.
17218         * omp.h.in (omp_proc_bind_t): New typedef.
17219         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17220         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17221         omp_get_team_num, omp_is_initial_device): New prototypes.
17222         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17223         through to gomp_team_start.
17224         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17225         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17226         Adjust gomp_parallel_loop_start callers.
17227         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17228         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17229         GOMP_loop_end_cancel): New functions.
17230         (GOMP_parallel_end): Add ialias_redirect.
17231         * hashtab.h: New file.
17232         * libgomp.texi (Environment Variables): Minor cleanup,
17233         update section refs to OpenMP 4.0rc2.
17234         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17235         environment variables.
17236         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17237         team->work_shares_to_free to thr->ts.work_share before calling
17238         free_work_share.
17239         (gomp_work_share_end_cancel): New function.
17240         * config/linux/proc.c: Include errno.h.
17241         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17242         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17243         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
17244         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
17245         gomp_cpuset_size is sizeof (cpu_set_t).
17246         (gomp_init_num_threads): Initialize gomp_cpuset_size,
17247         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17248         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17249         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
17250         contain any logical CPUs.
17251         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17252         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
17253         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17254         pthread_getaffinity_np.  Check gomp_places_list instead of
17255         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
17256         * config/linux/bar.c (gomp_barrier_wait_end,
17257         gomp_barrier_wait_last): Use BAR_* defines.
17258         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
17259         from state where needed.  Set work_share_cancelled to 0 on last
17260         thread.
17261         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17262         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17263         functions.
17264         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17265         Add cpusetsize argument.
17266         (gomp_cpuset_size, gomp_cpusetp): Declare.
17267         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17268         (affinity_counter): Remove.
17269         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17270         if CPU_ALLOC_SIZE isn't defined.
17271         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17272         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17273         bind current thread to the first place.
17274         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
17275         pthread_setaffinity_np to gomp_places_list[place].
17276         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17277         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17278         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17279         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17280         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17281         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17282         (gomp_barrier_t): Add awaited_final field.
17283         (gomp_barrier_init): Initialize awaited_final field.
17284         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17285         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17286         prototypes.
17287         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
17288         defines.
17289         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17290         gomp_team_barrier_cancelled): New inline functions.
17291         (gomp_barrier_last_thread,
17292         gomp_team_barrier_set_task_pending,
17293         gomp_team_barrier_clear_task_pending,
17294         gomp_team_barrier_set_waiting_for_tasks,
17295         gomp_team_barrier_waiting_for_tasks,
17296         gomp_team_barrier_done): Use BAR_* defines.
17297         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17298         (gomp_barrier_wait_end): Use BAR_* defines.
17299         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17300         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17301         Use BAR_* defines.
17302         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17303         gomp_team_barrier_cancel): New functions.
17304         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17305         argument.
17306         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17307         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17308         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17309         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17310         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17311         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17312         (gomp_barrier_t): Add cancellable field.
17313         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17314         gomp_team_barrier_cancel): New prototypes.
17315         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17316         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17317         gomp_team_barrier_cancelled): New inline functions.
17318         (gomp_barrier_wait_start, gomp_barrier_last_thread,
17319         gomp_team_barrier_set_task_pending,
17320         gomp_team_barrier_clear_task_pending,
17321         gomp_team_barrier_set_waiting_for_tasks,
17322         gomp_team_barrier_waiting_for_tasks,
17323         gomp_team_barrier_done): Use BAR_* defines.
17324         * barrier.c (GOMP_barrier_cancel): New function.
17325         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17326         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17327         omp_proc_bind_spread): New params.
17328         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17329         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17330         omp_get_team_num, omp_is_initial_device): New externals.
17331         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17332         New functions.
17333         (gomp_resolve_num_threads): Adjust for thread_limit now being in
17334         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17335         infinity.  If not nested, just return minimum of max_num_threads
17336         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17337         to the returned value.  Otherwise, don't update atomically
17338         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17339         (GOMP_parallel_end): Adjust for thread_limit now being in
17340         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
17341         infinity.  Adjust threads_busy in the pool rather than
17342         gomp_remaining_threads_count.  Remember team->nthreads and call
17343         gomp_team_end before adjusting threads_busy, if not nested
17344         afterwards, just set it to 1 non-atomically.  Add ialias.
17345         (GOMP_parallel_start): Adjust gomp_team_start caller.
17346         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17347         * testsuite/libgomp.c/affinity-1.c: New test.
17348         * testsuite/libgomp.c/atomic-15.c: New test.
17349         * testsuite/libgomp.c/atomic-16.c: New test.
17350         * testsuite/libgomp.c/atomic-17.c: New test.
17351         * testsuite/libgomp.c/cancel-for-1.c: New test.
17352         * testsuite/libgomp.c/cancel-for-2.c: New test.
17353         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17354         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17355         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17356         * testsuite/libgomp.c/cancel-sections-1.c: New test.
17357         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17358         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17359         * testsuite/libgomp.c/depend-1.c: New test.
17360         * testsuite/libgomp.c/depend-2.c: New test.
17361         * testsuite/libgomp.c/depend-3.c: New test.
17362         * testsuite/libgomp.c/depend-4.c: New test.
17363         * testsuite/libgomp.c/for-1.c: New test.
17364         * testsuite/libgomp.c/for-1.h: New file.
17365         * testsuite/libgomp.c/for-2.c: New test.
17366         * testsuite/libgomp.c/for-2.h: New file.
17367         * testsuite/libgomp.c/for-3.c: New test.
17368         * testsuite/libgomp.c/pr58392.c: New test.
17369         * testsuite/libgomp.c/simd-1.c: New test.
17370         * testsuite/libgomp.c/simd-2.c: New test.
17371         * testsuite/libgomp.c/simd-3.c: New test.
17372         * testsuite/libgomp.c/simd-4.c: New test.
17373         * testsuite/libgomp.c/simd-5.c: New test.
17374         * testsuite/libgomp.c/simd-6.c: New test.
17375         * testsuite/libgomp.c/target-1.c: New test.
17376         * testsuite/libgomp.c/target-2.c: New test.
17377         * testsuite/libgomp.c/target-3.c: New test.
17378         * testsuite/libgomp.c/target-4.c: New test.
17379         * testsuite/libgomp.c/target-5.c: New test.
17380         * testsuite/libgomp.c/target-6.c: New test.
17381         * testsuite/libgomp.c/target-7.c: New test.
17382         * testsuite/libgomp.c/taskgroup-1.c: New test.
17383         * testsuite/libgomp.c/thread-limit-1.c: New test.
17384         * testsuite/libgomp.c/thread-limit-2.c: New test.
17385         * testsuite/libgomp.c/thread-limit-3.c: New test.
17386         * testsuite/libgomp.c/udr-1.c: New test.
17387         * testsuite/libgomp.c/udr-2.c: New test.
17388         * testsuite/libgomp.c/udr-3.c: New test.
17389         * testsuite/libgomp.c++/affinity-1.C: New test.
17390         * testsuite/libgomp.c++/atomic-10.C: New test.
17391         * testsuite/libgomp.c++/atomic-11.C: New test.
17392         * testsuite/libgomp.c++/atomic-12.C: New test.
17393         * testsuite/libgomp.c++/atomic-13.C: New test.
17394         * testsuite/libgomp.c++/atomic-14.C: New test.
17395         * testsuite/libgomp.c++/atomic-15.C: New test.
17396         * testsuite/libgomp.c++/cancel-for-1.C: New test.
17397         * testsuite/libgomp.c++/cancel-for-2.C: New test.
17398         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17399         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17400         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17401         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17402         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17403         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17404         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17405         * testsuite/libgomp.c++/cancel-test.h: New file.
17406         * testsuite/libgomp.c++/for-9.C: New test.
17407         * testsuite/libgomp.c++/for-10.C: New test.
17408         * testsuite/libgomp.c++/for-11.C: New test.
17409         * testsuite/libgomp.c++/simd-1.C: New test.
17410         * testsuite/libgomp.c++/simd-2.C: New test.
17411         * testsuite/libgomp.c++/simd-3.C: New test.
17412         * testsuite/libgomp.c++/simd-4.C: New test.
17413         * testsuite/libgomp.c++/simd-5.C: New test.
17414         * testsuite/libgomp.c++/simd-6.C: New test.
17415         * testsuite/libgomp.c++/simd-7.C: New test.
17416         * testsuite/libgomp.c++/simd-8.C: New test.
17417         * testsuite/libgomp.c++/target-1.C: New test.
17418         * testsuite/libgomp.c++/target-2.C: New test.
17419         * testsuite/libgomp.c++/target-2-aux.cc: New file.
17420         * testsuite/libgomp.c++/target-3.C: New test.
17421         * testsuite/libgomp.c++/taskgroup-1.C: New test.
17422         * testsuite/libgomp.c++/udr-1.C: New test.
17423         * testsuite/libgomp.c++/udr-2.C: New test.
17424         * testsuite/libgomp.c++/udr-3.C: New test.
17425         * testsuite/libgomp.c++/udr-4.C: New test.
17426         * testsuite/libgomp.c++/udr-5.C: New test.
17427         * testsuite/libgomp.c++/udr-6.C: New test.
17428         * testsuite/libgomp.c++/udr-7.C: New test.
17429         * testsuite/libgomp.c++/udr-8.C: New test.
17430         * testsuite/libgomp.c++/udr-9.C: New test.
17432 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
17434         PR testsuite/57605
17435         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17436         ALWAYS_CFLAGS.
17438 2013-09-20  Alan Modra  <amodra@gmail.com>
17440         * configure: Regenerate.
17442 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
17444         * testsuite/libgomp.c/sections-2.c: New test.
17446 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17448         * testsuite/libgomp.fortran/strassen.f90:
17449         Add dg-skip-if aarch64_tiny.
17451 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
17452             Cesar Philippidis  <cesar@codesourcery.com>
17454         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17455         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17456         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17457         * testsuite/libgomp.fortran/fortran.exp: Likewise.
17458         * testsuite/libgomp.graphite/graphite.exp: Likewise.
17459         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17460         Use dg-runtest rather than gfortran-dg-runtest.
17462 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
17464         * testsuite/libgomp.c/icv-2.c: Extend current handling of
17465         Linux-based x86 systems to cover all GNU systems.
17466         * testsuite/libgomp.c/lock-3.c: Likewise.
17467         * testsuite/libgomp.c/pr48591.c: Likewise.
17469 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
17471         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17472         GNU/Hurd, as done for Linux-based systems.
17474         * config/posix/ptrlock.h: Fix comment.
17476 2013-05-27  Tobias Burnus  <burnus@net-b.de>
17478         PR fortran/57423
17479         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17480         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17481         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17482         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17483         omp_destroy_nest_lock): Correct arguments to match the one in
17484         the OpenMP spec.
17485         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17486         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17487         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17488         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17490 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
17492         * testsuite/libgomp.c/loop-13.c: New test.
17493         * testsuite/libgomp.c/loop-14.c: New test.
17494         * testsuite/libgomp.c/loop-15.c: New test.
17495         * testsuite/libgomp.c++/loop-13.C: New test.
17496         * testsuite/libgomp.c++/loop-14.C: New test.
17497         * testsuite/libgomp.c++/loop-15.C: New test.
17499 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
17501         PR middle-end/56217
17502         * testsuite/libgomp.c++/pr56217.C: New test.
17504 2013-02-01  Alan Modra  <amodra@gmail.com>
17506         * task.c (GOMP_task, GOMP_taskwait): Comment.
17508 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
17509             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
17511         PR libgomp/55561
17512         * config/linux/wait.h (do_spin): Use atomic load for addr.
17513         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17514         for intptr and ptrlock.
17515         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17516         for ptrlock.
17518 2013-01-22  Alan Modra  <amodra@gmail.com>
17520         PR libgomp/51376
17521         PR libgomp/56073
17522         * task.c (GOMP_task): Revert 2011-12-09 change.
17523         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
17524         barrier to read task->children..
17525         (gomp_barrier_handle_tasks): ..and matching atomic store with
17526         release barrier here when setting parent->children to NULL.
17528 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
17529             Tobias Burnus  <burnus@net-b.de>
17531         PR driver/55884
17532         * testsuite/libgomp.fortran/fortran.exp: Use
17533         -fintrinsic-modules-path= instead of
17534         -fintrinsic-modules-path.
17536 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
17538         Update copyright years.
17540 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17542         * testsuite/libgomp.fortran/fortran.exp: Set
17543         -fintrinsic-modules-path.
17545 2012-12-19  Tobias Burnus  <burnus@net-b.de>
17547         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17548         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17550 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
17552         PR libgomp/55411
17553         * team.c (gomp_free_thread): Decrease gomp_managed_threads
17554         if pool had any threads_used.
17556 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
17558         * testsuite/libgomp.c++/pr24455.C: Use
17559         -Wl,-undefined,dynamic_lookup on darwin.
17561 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
17563         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17565 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
17567         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17569 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
17570             Jim MacArthur  <jim.macarthur@arm.com>
17571             Marcus Shawcroft  <marcus.shawcroft@arm.com>
17572             Nigel Stephens  <nigel.stephens@arm.com>
17573             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17574             Richard Earnshaw  <rearnsha@arm.com>
17575             Sofiane Naci  <sofiane.naci@arm.com>
17576             Stephen Thomas  <stephen.thomas@arm.com>
17577             Tejas Belagod  <tejas.belagod@arm.com>
17578             Yufeng Zhang  <yufeng.zhang@arm.com>
17580         * configure.tgt: Add AArch64.
17582 2012-10-04  Jason Merrill  <jason@redhat.com>
17584         * testsuite/libgomp.c++/tls-init1.C: New.
17586 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
17588         * configure: Regenerated.
17590 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
17592         * config/linux/mips/futex.h (sys_futex0): Change to static
17593         function with noinline, nomips16 attributes under MIPS16. Adjust
17594         asm statement to place 'li v0,SYS_futex' immediately before
17595         syscall insn.
17597 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
17599         * libgomp.texi (Library Index): Renamed from "Index" to prevent
17600         conflict with index.html on case-insensitive file systems.
17602 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
17604         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17605         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17607 2012-07-02  Richard Guenther  <rguenther@suse.de>
17608             Michael Matz  <matz@suse.de>
17609             Tobias Grosser <tobias@grosser.es>
17610             Sebastian Pop <sebpop@gmail.com>
17612         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17613         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17614         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17615         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17617 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
17619         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17621 2012-06-22  Richard Guenther  <rguenther@suse.de>
17623         Merge from graphite branch
17624         2012-01-13  Tobias Grosser  <tobias@grosser.es>
17626         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17627         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17629 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17631         PR middle-end/53580
17632         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17633         use GOMP_barrier () call instead.
17634         * testsuite/libgomp.c/pr26943-3.c: Likewise.
17635         * testsuite/libgomp.c/pr26943-4.c: Likewise.
17636         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17637         call GOMP_barrier instead.
17638         * testsuite/libgomp.fortran/vla5.f90: Likewise.
17640 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
17642         PR libgomp/52993
17643         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17644         argument to memset call.
17646 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17648         * configure: Regenerated.
17650 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17652         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17654 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17656         PR bootstrap/52812
17657         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17659 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
17661         PR middle-end/52547
17662         * testsuite/libgomp.c/pr52547.c: New test.
17664 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17666         * testsuite/lib/libgomp.exp: load fortran-modules.exp
17668 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17670         * configure.tgt (mips-sgi-irix6*): Remove.
17672 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17674         * configure.tgt (alpha*-dec-osf*): Remove.
17676         * config/osf/sem.h: Remove.
17677         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17679 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
17681         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17683 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17685         PR libstdc++/52188
17686         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17687         Remove ENABLE_SYMVERS_SOL2.
17688         * configure: Regenerate.
17689         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17690         (PREPROCESS): New variable.
17691         (libgomp.ver): New target.
17692         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17693         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17694         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17695         Use libgomp.ver.
17696         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17697         * Makefile.in: Regenerate.
17699 2012-02-14  Walter Lee  <walt@tilera.com>
17701         * configure.tgt: Handle tilegx and tilepro.
17702         * config/linux/tile/futex.h: New file.
17704 2012-02-08  Richard Guenther  <rguenther@suse.de>
17706         PR tree-optimization/46886
17707         * testsuite/libgomp.c/pr46886.c: New testcase.
17709 2012-01-25  Matthias Klose  <doko@ubuntu.com>
17711         * config/linux/arm: Remove empty directory.
17712         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17714 2011-12-09  Alan Modra  <amodra@gmail.com>
17716         PR libgomp/51376
17717         * task.c (GOMP_taskwait): Don't access task->children outside of
17718         task_lock mutex region.
17719         (GOMP_task): Likewise.
17721 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
17723         PR libgomp/51132
17724         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17725         to file scope.
17726         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17727         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17728         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17729         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17730         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17732 2011-12-02  Alan Modra  <amodra@gmail.com>
17734         * config/linux/affinity.c: Use atomic rather than sync builtin.
17735         * config/linux/lock.c: Likewise.
17736         * config/linux/ptrlock.h: Likewise.
17737         * config/linux/ptrlock.c: Likewise.
17738         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17739         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17740         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17741         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17742         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17743         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17744         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17745         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17746         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17747         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17749 2011-11-30  Alan Modra  <amodra@gmail.com>
17751         PR libgomp/51298
17752         * config/linux/bar.h: Use atomic rather than sync builtins.
17753         * config/linux/bar.c: Likewise.  Add missing acquire
17754         synchronisation on generation field.
17755         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17756         double unlock.
17758 2011-11-30  Alan Modra  <amodra@gmail.com>
17760         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17761         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17762         * config/linux/mutex.h: Use atomic rather than sync builtins.
17763         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
17764         * config/linux/omp-lock.h: Comment fix.
17765         * config/linux/arm/mutex.h: Delete.
17766         * config/linux/powerpc/mutex.h: Delete.
17767         * config/linux/ia64/mutex.h: Delete.
17768         * config/linux/mips/mutex.h: Delete.
17770 2011-11-30  Alan Modra  <amodra@gmail.com>
17772         PR libgomp/51249
17773         * config/linux/sem.h: Rewrite.
17774         * config/linux/sem.c: Rewrite.
17776 2011-11-28  Richard Henderson  <rth@redhat.com>
17778         * libgomp.h (enum memmodel): New.
17780 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
17782         * configure: Regenerate.
17784 2011-10-10  Matthias Klose  <doko@ubuntu.com>
17786         * config/posix95: Remove empty directory.
17788 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
17790         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17792 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
17794         PR fortran/49792
17795         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17796         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17798 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17800         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17802 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17804         PR libgomp/49965
17805         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17807 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
17809         * config/linux/proc.h: New.
17810         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
17811         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
17812         (gomp_init_num_threads): Update call to cpuset_popcount.
17813         (get_num_procs): Ditto.
17814         * config/linux/affinity.c (gomp_init_affinity): Call
17815         gomp_cpuset_popcount.
17817 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
17819         PR fortran/42041
17820         PR fortran/46752
17821         * omp.h.in (omp_in_final): New prototype.
17822         * omp_lib.f90.in (omp_in_final): New interface.
17823         (omp_integer_kind, omp_logical_kind): Remove
17824         and replace all its uses in the module with 4.
17825         (openmp_version): Change to 201107.
17826         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17827         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17828         kind for the parameters.
17829         (omp_in_final): New external.
17830         (openmp_version): Change to 201107.
17831         * task.c (omp_in_final): New function.
17832         (gomp_init_task): Initialize final_task.
17833         (GOMP_task): Remove unused attribute from flags.  Handle final
17834         tasks.
17835         (GOMP_taskyield): New function.
17836         (omp_in_final): Return true if if (false) or final (true) task
17837         or descendant of final (true).
17838         * fortran.c (omp_in_final_): New function.
17839         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17840         (GOMP_3.0): Export GOMP_taskyield.
17841         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17842         variables.
17843         (parse_unsigned_long_list): New function.
17844         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
17845         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
17846         even if parse_affinity returned false.
17847         * config/linux/affinity.c (gomp_init_affinity): Handle
17848         gomp_cpu_affinity_len == 0.
17849         * libgomp_g.h (GOMP_taskyield): New prototype.
17850         * libgomp.h (struct gomp_task): Add final_task field.
17851         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17852         * team.c (gomp_team_start): Override new task's nthreads_var icv
17853         if list form OMP_NUM_THREADS has been used and it has value for
17854         the new nesting level.
17856         * testsuite/libgomp.c/atomic-11.c: New test.
17857         * testsuite/libgomp.c/atomic-12.c: New test.
17858         * testsuite/libgomp.c/atomic-13.c: New test.
17859         * testsuite/libgomp.c/atomic-14.c: New test.
17860         * testsuite/libgomp.c/reduction-6.c: New test.
17861         * testsuite/libgomp.c/task-5.c: New test.
17862         * testsuite/libgomp.c++/atomic-2.C: New test.
17863         * testsuite/libgomp.c++/atomic-3.C: New test.
17864         * testsuite/libgomp.c++/atomic-4.C: New test.
17865         * testsuite/libgomp.c++/atomic-5.C: New test.
17866         * testsuite/libgomp.c++/atomic-6.C: New test.
17867         * testsuite/libgomp.c++/atomic-7.C: New test.
17868         * testsuite/libgomp.c++/atomic-8.C: New test.
17869         * testsuite/libgomp.c++/atomic-9.C: New test.
17870         * testsuite/libgomp.c++/task-8.C: New test.
17871         * testsuite/libgomp.c++/reduction-4.C: New test.
17872         * testsuite/libgomp.fortran/allocatable7.f90: New test.
17873         * testsuite/libgomp.fortran/allocatable8.f90: New test.
17874         * testsuite/libgomp.fortran/crayptr3.f90: New test.
17875         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17876         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17877         * testsuite/libgomp.fortran/pointer1.f90: New test.
17878         * testsuite/libgomp.fortran/pointer2.f90: New test.
17879         * testsuite/libgomp.fortran/task4.f90: New test.
17881 2011-08-02  Tobias Burnus  <burnus@net-b.de>
17883         * libgomp.texi: Update OpenMP spec references to 3.1.
17884         (omp_in_final,OMP_PROC_BIND): New sections.
17885         (OMP_NUM_THREADS): Document that the value can be now a list.
17886         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17888 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
17890         * config/linux/x86/futex.h: Check __x86_64__ instead of
17891         __LP64__.
17893 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
17895         PR middle-end/49897
17896         PR middle-end/49898
17897         * testsuite/libgomp.c/pr49897-1.c: New test.
17898         * testsuite/libgomp.c/pr49897-2.c: New test.
17899         * testsuite/libgomp.c/pr49898-1.c: New test.
17900         * testsuite/libgomp.c/pr49898-2.c: New test.
17902 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
17904         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17905         for ia32 instead of ilp32.
17907         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17908         * testsuite/libgomp.c/atomic-6.c: Likewise.
17910 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
17912         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17913         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17915 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17917         PR libgomp/45351
17918         * config/osf/sem.h: New file.
17919         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17921 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17923         PR target/49541
17924         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17925         ldflags.
17927 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
17929         * config/linux/wait.h (do_spin): New inline, largely copied
17930         from do_wait, just don't do futex_wait here, instead return true if
17931         it should be done.
17932         (do_wait): Implement using do_spin.
17933         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17934         to prototype.
17935         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17936         __sync_bool_compare_and_swap, pass the oldval to
17937         gomp_mutex_lock_slow.
17938         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17939         If all mutex contenders are just spinning and not sleeping, don't
17940         change state to 2 unnecessarily.  Optimize the loop when state has
17941         already become 2 to use just one atomic operation per loop instead
17942         of two.
17943         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17944         to prototype.
17945         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17946         __sync_bool_compare_and_swap, pass the oldval to
17947         gomp_mutex_lock_slow.
17949 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
17951         PR libgomp/49490
17952         * iter.c (gomp_iter_static_next): For chunk size 0
17953         only use n ceil/ nthreads size for the first
17954         n % nthreads threads in the team instead of
17955         all threads except for the last few ones which
17956         get less work or none at all.
17957         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17958         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17959         chunk argument, set run_sched_modifier to 0 for static
17960         resp. 1 for other kinds.  If chunk argument is 0
17961         and not static, set value to 1.
17963 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
17965         PR c++/49043
17966         * testsuite/libgomp.c++/pr49043.C: New test.
17968         PR c++/48869
17969         * testsuite/libgomp.c++/pr48869.C: New test.
17971 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
17973         PR fortran/48894
17974         * fortran.c: Include limits.h.
17975         (TO_INT): Define.
17976         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17977         *set.
17978         (omp_set_num_threads_8_, omp_set_schedule_8_,
17979         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17980         omp_get_team_size_8_): Use TO_INT macro.
17981         * testsuite/libgomp.fortran/pr48894.f90: New test.
17983 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17985         PR middle-end/48591
17986         * testsuite/libgomp.c/pr48591.c: New test.
17988 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17990         PR bootstrap/48135
17991         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17992         * configure: Regenerate.
17994 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
17996         PR fortran/47886
17997         * testsuite/libgomp.fortran/task3.f90: New test.
17999 2011-02-24  Tobias Burnus  <burnus@net-b.de>
18001         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18003 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
18005         PR libgomp/47854
18006         * libgomp.texi (omp_get_wtime): Don't say time in the past
18007         must be Unix Epoch.
18009 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
18011         PR libgomp/47804
18012         * testsuite/libgomp.fortran/fortran.exp: Check for both
18013         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
18014         but $blddir != "", still append ${blddir}/${lang_library_path}
18015         to ld_library_path.
18017 2011-02-16  Tobias Burnus  <burnus@net-b.de>
18019         PR libgomp/47758
18020         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18021         of libquadmath.a before adding its libpath to ldflags.
18023 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
18025         PR libgomp/47731
18026         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18027         to FUTEX_WAIT futex syscall.
18028         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18030 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18032         * configure: Regenerate.
18034 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
18036         PR libstdc++/36104
18037         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18039 2011-01-16  Gerald Pfeifer
18041         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18043 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
18045         PR fortran/46874
18046         * libgomp.fortran/allocatable6.f90: New test.
18048 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18050         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18051         * configure: Regenerate.
18053 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18055         PR target/40125
18056         PR lto/46695
18057         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18058         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18059         * aclocal.m4: Regenerate.
18060         * configure: Regenerate.
18061         * Makefile.in: Regenerate.
18062         * testsuite/Makefile.in: Regenerate.
18064 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
18066         PR fortran/46753
18067         * libgomp.fortran/pr46753.f90: New test.
18069         PR libgomp/43706
18070         * env.c (initialize_env): Default to spin count 300000
18071         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18072         is specified.
18074         PR libgomp/45240
18075         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18076         at the end if sync builtins aren't supported.
18078 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18080         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18082 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18084         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18086 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
18088         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18090 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18091             Tobias Burnus  <burnus@net-b.de>
18093         PR fortran/32049
18094         * configure.ac:
18095         * configure: Regenerate.
18097 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18099         * config/linux/futex.h: New.
18100         * config/linux/arm/mutex.h: New.
18101         * configure.tgt (arm*-*-linux*): Add config path.
18103 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
18105         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18107 2010-09-23  Tobias Burnus  <burnus@net-b.de>
18109         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18110         Change Fortran datatype to LOGICAL.
18111         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18112         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18114 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18116         * configure: Regenerate.
18118 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
18120         * libgomp.texi: Add function keyword to a couple of Fortran
18121         interfaces, use integer instead of int for Fortran.
18123 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
18125         * libgomp.texi: Fix spelling and pasto problems throughout.
18126         Adjust prototypes to match code.
18128 2010-07-24  Tobias Burnus  <burnus@net-b.de>
18130         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18131         silence -fwhole-file warning.
18133 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18135         * configure.tgt (*-*-solaris2.[56]*): Removed.
18137 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18139         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18140         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18141         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18142         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18143         targetting solaris2*.
18144         * configure: Regenerate.
18145         * config.h.in: Regenerate.
18147         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18148         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18149         Add libgomp_version_dep.
18150         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18151         versioning.
18152         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18153         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18154         * Makefile.in: Regenerate.
18156         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18157         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18158         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18159         to common block, protected by
18160         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18162 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
18164         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
18166 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
18168         PR bootstrap/43170
18169         * configure: Regenerate.
18171 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18173         PR other/43620
18174         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18175         * configure: Regenerate.
18176         * Makefile.in: Regenerate.
18177         * testsuite/Makefile.in: Regenerate.
18179 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18181         PR c/43893
18182         * testsuite/libgomp.c/pr43893.c: New test.
18183         * testsuite/libgomp.c++/pr43893.C: New test.
18185 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18187         PR middle-end/43570
18188         * testsuite/libgomp.fortran/vla8.f90: New test.
18190 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18192         PR libgomp/43706
18193         * config/linux/affinity.c (gomp_init_affinity): Decrease
18194         gomp_available_cpus if affinity mask confines the process to fewer
18195         CPUs.
18196         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18197         non-NULL, just return gomp_available_cpus.
18199         PR libgomp/43569
18200         * sections.c (gomp_sections_init): Initialize ws->mode.
18202 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18204         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18205         not unused bar variable.
18206         * configure: Regenerate.
18208 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18210         * Makefile.in: Regenerate.
18211         * aclocal.m4: Regenerate.
18212         * testsuite/Makefile.in: Regenerate.
18214 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18216         PR libgomp/42942
18217         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18218         (initialize_env): Adjust callers.
18219         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18220         when the argument is 0.
18222         * testsuite/libgomp.c/pr42942.c: New test.
18224 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
18226         PR middle-end/42644
18227         PR middle-end/42130
18228         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18229         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18231 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18233         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18234         * testsuite/libgomp.c++/task-6.C: Likewise.
18236 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
18238         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18240 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
18242         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18243         * configure: Regenerate.
18245 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18247         PR fortran/42866
18248         * testsuite/libgomp.fortran/allocatable5.f90: New test.
18250 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
18252         * configure.ac: Test for executability of GFORTRAN.
18253         * configure: Regenerate.
18255 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18257         * configure: Regenerate.
18259 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18261         PR libgomp/42602
18262         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18264 2010-01-03  Richard Guenther  <rguenther@suse.de>
18266         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18268 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
18270         * testsuite/libgomp.graphite/pr4118.c: New.
18272 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18274         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18275         for darwin, protect the test with require-effective-target tls_runtime.
18276         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18278 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18280         PR target/41605
18281         * testsuite/lib/libgomp.exp: Provide -B options to allow for
18282         link spec %s substitutions for static libraries.
18284 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
18286         PR testsuite/42135
18287         * libgomp.graphite/force-parallel-2.c: Reduce array size.
18289 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18291         * Makefile.in: Regenerate.
18292         * configure: Regenerate.
18293         * testsuite/Makefile.in: Regenerate.
18295 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18297         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18298         settings for LC_ALL and LANG.
18300 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
18302         PR fortran/42162
18303         * testsuite/libgomp.fortran/pr42162.f90: New test.
18305 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
18307         PR middle-end/42029
18308         * testsuite/libgomp.c/pr42029.c: New test.
18310 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
18312         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18313         *s.  Accept ld version without text in ()s.
18314         * configure: Regenerated.
18316 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
18318         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18320 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18322         PR libgomp/41418
18323         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18324         or a hyphen (happens with fortran language disabled).
18325         * configure: Regenerate.
18327 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18329         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18330         use sed script portable to Solaris /bin/sed for extracting ld
18331         version.
18332         * configure: Regenerate.
18334 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
18336         * testsuite/libgomp.graphite/bounds.c: New test.
18338 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18340         * Makefile.am (libgomp_la_LINK): New.
18341         * Makefile.in: Regenerate.
18343 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18345         * configure.ac (AC_PREREQ): Bump to 2.64.
18347 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18349         * Makefile.am (install-html, install-pdf): Remove.
18350         * Makefile.in: Regenerate.
18352         * Makefile.in: Regenerate.
18353         * aclocal.m4: Regenerate.
18354         * config.h.in: Regenerate.
18355         * configure: Regenerate.
18356         * testsuite/Makefile.in: Regenerate.
18358 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18360         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18361         * Makefile.in: Regenerate.
18363 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
18365         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18366         * Makefile.in: Regenerate.
18368 2009-08-19  Tobias Burnus  <burnus@net-b.de>
18370         PR fortran/41102
18371         omp_lib.h.in: Fix -std=f95 errors.
18373 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
18375         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18376         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18377         * testsuite/libgomp.graphite/graphite.exp: New.
18379 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
18381         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18382         only build.
18384 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
18386         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18387         needed memory barrier semantics.
18388         * config/linux/mips/mutex.h: New file.
18390 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18392         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18394 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
18396         * configure: Regenerate.
18398 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
18400         PR testsuite/40699
18401         PR testsuite/40707
18402         PR testsuite/40709
18403         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18404         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18405         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18407 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
18409         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18410         options when choosing a multilib.
18412 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
18414         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18415         ld_library_path.  Use add_path.  Add just find_libgcc_s to
18416         ld_library_path, not every libgcc multilib directory.
18417         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18418         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18419         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18420         Use add_path.
18421         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18423 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
18425         * Makefile.am (LTLDFLAGS): Define.
18426         (LINK): Define.
18427         * Makefile.in: Regenerate.
18429 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
18431         PR fortran/39718
18432         * testsuite/libgomp.fortran/fortran.exp: Don't link with
18433         libgfortranbegin, check existence of libgfortran.a instead of
18434         libgfortranbegin.a.
18436 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18438         PR libgomp/40174
18439         * team.c (gomp_thread_start): Destroy thr->release semaphore.
18440         (gomp_free_pool_helper): Likewise.
18442 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
18443             Jakub Jelinek  <jakub@redhat.com>
18445         PR fortran/35423
18446         * testsuite/libgomp.fortran/workshare2.f90: New test.
18448 2009-04-09  Nick Clifton  <nickc@redhat.com>
18450         * iter.c: Change copyright header to refer to version 3 of the
18451         GNU General Public License with version 3.1 of the GCC Runtime
18452         Library Exception and to point readers at the COPYING3 and
18453         COPYING3.RUNTIME files and the FSF's license web page.
18454         * alloc.c: Likewise.
18455         * barrier.c: Likewise.
18456         * config/bsd/proc.c: Likewise.
18457         * config/linux/affinity.c: Likewise.
18458         * config/linux/alpha/futex.h: Likewise.
18459         * config/linux/bar.c: Likewise.
18460         * config/linux/bar.h: Likewise.
18461         * config/linux/ia64/futex.h: Likewise.
18462         * config/linux/ia64/mutex.h: Likewise.
18463         * config/linux/lock.c: Likewise.
18464         * config/linux/mips/futex.h: Likewise.
18465         * config/linux/mutex.c: Likewise.
18466         * config/linux/mutex.h: Likewise.
18467         * config/linux/powerpc/futex.h: Likewise.
18468         * config/linux/proc.c: Likewise.
18469         * config/linux/ptrlock.c: Likewise.
18470         * config/linux/ptrlock.h: Likewise.
18471         * config/linux/s390/futex.h: Likewise.
18472         * config/linux/sem.c: Likewise.
18473         * config/linux/sem.h: Likewise.
18474         * config/linux/sparc/futex.h: Likewise.
18475         * config/linux/wait.h: Likewise.
18476         * config/linux/x86/futex.h: Likewise.
18477         * config/mingw32/proc.c: Likewise.
18478         * config/mingw32/time.c: Likewise.
18479         * config/posix/affinity.c: Likewise.
18480         * config/posix/bar.c: Likewise.
18481         * config/posix/bar.h: Likewise.
18482         * config/posix/lock.c: Likewise.
18483         * config/posix/mutex.h: Likewise.
18484         * config/posix/proc.c: Likewise.
18485         * config/posix/ptrlock.h: Likewise.
18486         * config/posix/sem.c: Likewise.
18487         * config/posix/sem.h: Likewise.
18488         * config/posix/time.c: Likewise.
18489         * config/posix95/lock.c: Likewise.
18490         * critical.c: Likewise.
18491         * env.c: Likewise.
18492         * error.c: Likewise.
18493         * fortran.c: Likewise.
18494         * iter_ull.c: Likewise.
18495         * libgomp.h: Likewise.
18496         * libgomp_f.h.in: Likewise.
18497         * libgomp_g.h: Likewise.
18498         * loop.c: Likewise.
18499         * loop_ull.c: Likewise.
18500         * omp.h.in: Likewise.
18501         * omp_lib.f90.in: Likewise.
18502         * omp_lib.h.in: Likewise.
18503         * ordered.c: Likewise.
18504         * parallel.c: Likewise.
18505         * sections.c: Likewise.
18506         * single.c: Likewise.
18507         * task.c: Likewise.
18508         * team.c: Likewise.
18509         * work.c: Likewise.
18511 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18513         * testsuite/config/default.exp: Change copyright header to refer to
18514         version 3 of the GNU General Public License and to point readers
18515         at the COPYING3 file and the FSF's license web page.
18517 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18519         PR middle-end/39573
18520         * libgomp.c++/pr39573.C: New test.
18522 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
18524         PR other/39591
18525         * testsuite/libgomp.c/pr39591-1.c: New test.
18526         * testsuite/libgomp.c/pr39591-2.c: New test.
18527         * testsuite/libgomp.c/pr39591-3.c: New test.
18529 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
18531         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18532         * testsuite/libgomp.c/atomic-6.c: Ditto.
18534 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
18536         PR c/39495
18537         * testsuite/libgomp.c/loop-12.c: New test.
18538         * testsuite/libgomp.c/loop-11.c: New test.
18539         * testsuite/libgomp.c++/loop-11.C: New test.
18540         * testsuite/libgomp.c++/loop-12.C: New test.
18541         * testsuite/libgomp.c++/for-8.C: New test.
18543 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18545         * configure: Regenerate.
18547 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18549         PR middle-end/39154
18550         * testsuite/libgomp.c/pr39154.c: New test.
18552 2009-01-30  Ian Lance Taylor  <iant@google.com>
18554         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18555         libgomp_ld_is_gold.  Get gold version number.
18556         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18557         * configure: Rebuild.
18559 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
18561         * testsuite/lib/libgomp.exp: Add -B option for targets that
18562         use libgfortran.a%s in their specs.
18564 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
18566         PR libgomp/38086
18567         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18568         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18569         HAVE_AS_SYMVER_DIRECTIVE is not defined.
18570         * configure: Regenerated.
18571         * config.h.in: Likewise.
18573 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
18575         PR c++/38650
18576         * testsuite/libgomp.c/pr38650.c: New test.
18577         * testsuite/libgomp.c++/pr38650.C: New test.
18579 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
18581         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18583 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
18585         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18587 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18589         * configure: Regenerate.
18591 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
18593         PR middle-end/36802
18594         * testsuite/libgomp.c/pr36802-1.c: New test.
18595         * testsuite/libgomp.c/pr36802-2.c: New test.
18596         * testsuite/libgomp.c/pr36802-3.c: New test.
18598 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
18600         PR libgomp/38270
18601         * config/linux/powerpc/mutex.h: New.
18603 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
18605         PR c++/38257
18606         * testsuite/libgomp.c++/for-7.C: New test.
18608         PR c++/38348
18609         * testsuite/libgomp.c++/for-6.C: New test.
18611 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
18613         PR testsuite/28870
18614         * testsuite/lib/libgomp.exp: Include new timeout library files.
18615         (libgomp_target_compile): Set timeout value from new proc.
18617 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
18619         PR libgomp/37938
18620         * config/linux/ia64/mutex.h: New.
18622 2008-11-04  Tobias Burnus  <burnus@net-b.de>
18624         PR libgomp/37935
18625         * libgomp.texi (Runtime library routines, environment variables):
18626         Update for OpenMP version 3.0.
18628 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
18629             Steve Ellcey  <sje@cup.hp.com>
18631         * configure: Regenerate for new libtool.
18632         * Makefile.in: Ditto.
18633         * testsuite/Makefile.in: Ditto.
18635 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
18636             Andreas Tobler  <a.tobler@schweiz.org>
18638         * config/bsd/proc.c: New file.
18639         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18640         * configure.ac: Check for header <sys/sysctl.h>
18641         * configure: Regenerate.
18642         * config.h.in: Likewise.
18644 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
18646         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18648 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
18650         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18651         * Makefile.in: Regenerated.
18652         * testsuite/Makefile.in: Regenerated.
18654 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
18656         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18657         depend on blddir if blddir exists.
18658         (libgomp_target_compile): Likewise.
18659         * testsuite/libgomp.c++/c++.exp: Likewise.
18660         * testsuite/libgomp.fortran/fortran.exp: Likewise.
18662 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18664         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
18665         Do not list GPL as Invariant Section.
18667 2008-07-28  Ilie Garbacea  <ilie@mips.com>
18668             Chao-ying Fu  <fu@mips.com>
18670         * configure.tgt: Enable futex for MIPS.
18671         * config/linux/mips/futex.h: New file.
18673 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
18675         * team.c (gomp_team_end): Free team immediately if it has
18676         just one thread.
18678 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
18680         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18681         * testsuite/libgomp.fortran/fortran.exp: Same.
18682         * testsuite/libgomp.c/c.exp: Same.
18683         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18684         directory to library path first.
18686 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
18688         * env.c (parse_stacksize): Add cast to avoid warning.
18689         (parse_spincount): Likewise.
18691 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
18693         * testsuite/libgomp.c/loop-10.c: New test.
18694         * libgomp.c/loop-3.c (main): Add lastprivate clause.
18695         * libgomp.c++/loop-6.C (main): Likewise.
18697         PR debug/36617
18698         * testsuite/libgomp.c/debug-1.c: New test.
18700 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
18702         * testsuite/libgomp.c/nqueens-1.c: New test.
18704         PR c++/36523
18705         * testsuite/libgomp.c++/task-7.C: New function.
18707 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18709         * configure: Regenerate.
18711 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18713         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18714         mutex when HAVE_SYNC_BUILTINS isn't defined.
18716 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18718         * libgomp.texi (omp_test_lock): Fix typo.
18720 2008-06-12  Tobias Burnus  <burnus@net-b.de>
18722         * omp_lib.f90.in: Add "implicit none".
18724 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
18726         PR middle-end/36506
18727         * testsuite/libgomp.c/reduction-5.c: New test.
18729 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
18731         * libgomp.h (struct gomp_task): Add in_tied_task field.
18732         * task.c (gomp_init_task): Initialize it.
18733         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
18734         unconditionally.  Don't call gomp_team_barrier_wake if
18735         current task is implicit or if(0) from implicit and number of
18736         running tasks is equal to nthreads - 1.
18738         PR libgomp/36471
18739         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18740         omp_get_team_size_8): Fix pastos.
18742         PR libgomp/36469
18743         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18744         * configure: Regenerated.
18745         * config.h.in: Regenerated.
18746         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18747         defined.
18749 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
18751         PR bootstrap/36452
18752         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18753         (GOMP_loop_ull_dynamic_start): Likewise.
18754         (GOMP_loop_ull_guided_start): Likewise.
18755         (GOMP_loop_ull_ordered_static_start): Likewise.
18756         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18757         (GOMP_loop_ull_ordered_guided_start): Likewise.
18759 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
18760             Richard Henderson  <rth@redhat.com>
18761             Ulrich Drepper  <drepper@redhat.com>
18762             Jakob Blomer  <jakob.blomer@ira.uka.de>
18764         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18765         Substitute also OMP_*LOCK_25*.
18766         * configure: Regenerated.
18767         * config.h.in: Regenerated.
18768         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18769         ptrlock.c and task.c.
18770         * Makefile.in: Regenerated.
18771         * testsuite/Makefile.in: Regenerated.
18772         * task.c: New file.
18773         * loop_ull.c: New file.
18774         * iter_ull.c: New file.
18775         * libgomp.h: Include ptrlock.h.
18776         (enum gomp_task_kind): New type.
18777         (struct gomp_team): Add task_lock, task_queue, task_count,
18778         task_running_count, single_count fields.  Add
18779         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18780         Remove work_share_lock, generation_mask,
18781         oldest_live_gen, num_live_gen and init_work_shares fields, add
18782         work work_share_list_alloc, work_share_list_free and work_share_chunk
18783         fields.  Change work_shares from pointer to pointers into an array.
18784         Change ordered_release field into gomp_sem_t ** from flexible array
18785         member.  Add implicit_task and initial_work_shares fields.
18786         Move close to the end of the struct.
18787         (struct gomp_team_state): Add single_count, last_work_share,
18788         active_level and level fields, remove work_share_generation.
18789         (gomp_barrier_handle_tasks): New prototype.
18790         (gomp_finish_task): New inline function.
18791         (struct gomp_work_share): Move chunk_size, end, incr into
18792         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18793         next_ll fields.  Reshuffle fields.  Add next_alloc,
18794         next_ws, next_free and inline_ordered_team_ids fields, change
18795         ordered_team_ids into pointer from flexible array member.
18796         Add mode field.  Put lock and next into a different cache line
18797         from most of the write-once fields.
18798         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18799         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18800         gomp_iter_ull_guided_next): New prototypes.
18801         (gomp_new_icv): New prototype.
18802         (struct gomp_thread): Add thread_pool and task fields.
18803         (struct gomp_thread_pool): New type.
18804         (gomp_new_team): New prototype.
18805         (gomp_team_start): Change type of last argument.
18806         (gomp_new_work_share): Removed.
18807         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18808         (gomp_work_share_init_done): New static inline.
18809         (gomp_throttled_spin_count_var, gomp_available_cpus,
18810         gomp_managed_threads): New extern decls.
18811         (gomp_init_task): New prototype.
18812         (gomp_spin_count_var): New extern var decl.
18813         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18814         or no alias support, or if not PIC.
18815         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18816         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18817         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18818         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18819         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18820         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18821         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18822         gomp_test_nest_lock_25): New prototypes.
18823         (omp_lock_symver, strong_alias): Define.
18824         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18825         decls.
18826         (gomp_end_task): New.
18827         (struct gomp_task_icv, gomp_global_icv): New.
18828         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18829         (struct gomp_task): New.
18830         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18831         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18832         (gomp_icv): New.
18833         (gomp_schedule_type): Reorder enum to match
18834         omp_sched_t.
18835         * team.c (struct gomp_thread_start_data): Add thread_pool and task
18836         fields.
18837         (gomp_thread_start): Add gomp_team_barrier_wait call.
18838         For non-nested case remove clearing of docked thread thr fields.
18839         Use pool fields instead of global gomp_* variables.  Use
18840         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
18841         Create tasks for each member thread.
18842         (free_team): Only destroy team barrier, task_lock here and free it.
18843         (gomp_free_thread): Free last_team if non-NULL.
18844         (gomp_team_end): Call gomp_team_barrier_wait instead of
18845         gomp_barrier_wait.  For nested case call one extra
18846         gomp_barrier_wait.  Move here some destruction from free_team.
18847         Call free_team on pool->last_team if any, rather than freeing
18848         current team.  Destroy work_share_list_free_lock ifndef
18849         HAVE_SYNC_BUILTINS.
18850         (gomp_new_icv): New function.
18851         (gomp_threads, gomp_threads_size, gomp_threads_used,
18852         gomp_threads_dock): Removed.
18853         (gomp_thread_destructor): New variable.
18854         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18855         functions.
18856         (gomp_team_start): Create new pool if current thread doesn't have
18857         one.  Use pool fields instead of global gomp_* variables.
18858         Initialize thread_pool field for new threads.  Clear single_count.
18859         Change last argument from ws to team, don't create
18860         new team, set ts.work_share to &team->work_shares[0] and clear
18861         ts.last_work_share.  Don't clear ts.work_share_generation.
18862         If number of threads changed, adjust atomically gomp_managed_threads.
18863         Use gomp_init_task instead of gomp_new_task,
18864         set thr->task to the corresponding implicit_task array entry.
18865         Create tasks for each member thread.  Initialize ts.level.
18866         (initialize_team): Call pthread_key_create on
18867         gomp_thread_destructor.
18868         (team_destructor): New function.
18869         (new_team): Removed.
18870         (gomp_new_team): New function.
18871         (free_team): Free gomp_work_share blocks chained through next_alloc,
18872         instead of freeing work_shares and destroying work_share_lock.
18873         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
18874         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
18875         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18876         of gomp_barrier_wait.
18877         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18878         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
18879         if gomp_work_share_start returned true.  Don't unlock ws->lock.
18880         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18881         of gomp_barrier_wait.
18882         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
18883         gomp_work_share_init_done if gomp_work_share_start returned true.
18884         Don't unlock ws->lock.
18885         * work.c: Include stddef.h.
18886         (free_work_share): Use work_share_list_free_lock instead
18887         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
18888         Call gomp_fini_work_share and then either free ws if orphaned, or
18889         put it into work_share_list_free list of the current team.
18890         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18891         functions.
18892         (gomp_work_share_start, gomp_work_share_end,
18893         gomp_work_share_end_nowait): Rewritten.
18894         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18895         (openmp_version): Set to 200805.
18896         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18897         omp_sched_guided, omp_sched_auto): New parameters.
18898         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18899         omp_set_max_active_levels, omp_get_max_active_levels,
18900         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18901         omp_get_active_level): New interfaces.
18902         * omp_lib.h.in (openmp_version): Set to 200805.
18903         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18904         omp_sched_guided, omp_sched_auto): New parameters.
18905         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18906         omp_set_max_active_levels, omp_get_max_active_levels,
18907         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18908         omp_get_active_level): New externals.
18909         * loop.c: Include limits.h.
18910         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18911         GFS_AUTO.
18912         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18913         Likewise.  Use gomp_icv.
18914         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18915         ts.static_trip here.
18916         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18917         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
18918         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18919         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
18920         don't unlock ws->lock, otherwise lock it.
18921         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18922         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
18923         (gomp_parallel_loop_start): Call gomp_new_team instead of
18924         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
18925         Adjust gomp_team_start caller.  Pass 0 as second argument to
18926         gomp_resolve_num_threads.
18927         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18928         If adding ws->chunk_size nthreads + 1 times after end won't
18929         overflow, set ws->mode to 1.
18930         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18931         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18932         GOMP_loop_ull_ordered_static_start,
18933         GOMP_loop_ull_ordered_dynamic_start,
18934         GOMP_loop_ull_ordered_guided_start,
18935         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18936         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18937         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18938         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18939         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18940         prototypes.
18941         * libgomp.map: Export lock routines also @@OMP_2.0.
18942         (GOMP_loop_ordered_dynamic_first,
18943         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18944         GOMP_loop_ordered_static_first): Remove.
18945         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18946         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18947         GOMP_loop_ull_ordered_dynamic_next,
18948         GOMP_loop_ull_ordered_dynamic_start,
18949         GOMP_loop_ull_ordered_guided_next,
18950         GOMP_loop_ull_ordered_guided_start,
18951         GOMP_loop_ull_ordered_runtime_next,
18952         GOMP_loop_ull_ordered_runtime_start,
18953         GOMP_loop_ull_ordered_static_next,
18954         GOMP_loop_ull_ordered_static_start,
18955         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18956         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18957         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18958         (omp_set_schedule, omp_get_schedule,
18959         omp_get_thread_limit, omp_set_max_active_levels,
18960         omp_get_max_active_levels, omp_get_level,
18961         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18962         omp_set_schedule_, omp_set_schedule_8_,
18963         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18964         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18965         omp_get_max_active_levels_, omp_get_level_,
18966         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18967         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18968         New exports @@OMP_3.0.
18969         * omp.h.in (omp_sched_t): New type.
18970         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18971         omp_set_max_active_levels, omp_get_max_active_levels,
18972         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18973         omp_get_active_level): New prototypes.
18974         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18975         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18976         gomp_thread_limit_var, gomp_remaining_threads_count,
18977         gomp_remaining_threads_lock): New variables.
18978         (parse_spincount): New function.
18979         (initialize_env): Call gomp_init_num_threads unconditionally.
18980         Initialize gomp_available_cpus.  Call parse_spincount,
18981         initialize gomp_{,throttled_}spin_count_var
18982         depending on presence and value of OMP_WAIT_POLICY and
18983         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
18984         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18985         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
18986         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
18987         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
18988         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18989         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18990         (gomp_global_icv): New.
18991         (parse_schedule): Use it.  Parse "auto".
18992         (omp_set_num_threads): Use gomp_icv.
18993         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
18994         Likewise.
18995         (omp_get_max_threads): Move from parallel.c.
18996         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18997         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
18998         add ialias.
18999         (parse_stacksize, parse_wait_policy): New functions.
19000         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19001         both wrappers for compatibility and new locks.
19002         (omp_set_schedule, omp_get_schedule,
19003         omp_get_thread_limit, omp_set_max_active_levels,
19004         omp_get_max_active_levels, omp_get_level,
19005         omp_get_ancestor_thread_num, omp_get_team_size,
19006         omp_get_active_level): New ialias_redirect.
19007         (omp_set_schedule_, omp_set_schedule_8_,
19008         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19009         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19010         omp_get_max_active_levels_, omp_get_level_,
19011         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19012         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19013         New functions.
19014         * parallel.c: Include limits.h.
19015         (gomp_resolve_num_threads): Add count argument.  Rewritten.
19016         (GOMP_parallel_start): Call gomp_new_team and pass that as last
19017         argument to gomp_team_start.  Pass 0 as second argument to
19018         gomp_resolve_num_threads.
19019         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19020         if gomp_thread_limit_var != ULONG_MAX.
19021         (omp_in_parallel): Implement using ts.active_level.
19022         (omp_get_max_threads): Move to env.c.
19023         (omp_get_level, omp_get_ancestor_thread_num,
19024         omp_get_team_size, omp_get_active_level): New functions,
19025         add ialias.
19026         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19027         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
19028         gomp_iter_dynamic_next instead of the _locked variant and don't take
19029         lock around it, otherwise acquire it before calling
19030         gomp_iter_dynamic_next_locked.
19031         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19032         gomp_iter_dynamic_next instead of the _locked variant and don't take
19033         lock around it.
19034         (GOMP_parallel_sections_start): Call gomp_new_team instead of
19035         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
19036         Adjust gomp_team_start caller.  Pass count as second argument to
19037         gomp_resolve_num_threads, don't adjust num_threads after the call.
19038         Use gomp_icv.
19039         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19040         ws->chunk_size by incr.
19041         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
19042         code.
19043         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19044         types.
19045         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19046         (omp_check_defines): Check even the compat defines.
19047         * config/linux/ptrlock.c: New file.
19048         * config/linux/ptrlock.h: New file.
19049         * config/linux/wait.h: New file.
19050         * config/posix/ptrlock.c: New file.
19051         * config/posix/ptrlock.h: New file.
19052         * config/linux/bar.h (gomp_team_barrier_wait,
19053         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19054         (gomp_team_barrier_set_task_pending,
19055         gomp_team_barrier_clear_task_pending,
19056         gomp_team_barrier_set_waiting_for_tasks,
19057         gomp_team_barrier_waiting_for_tasks,
19058         gomp_team_barrier_done): New inlines.
19059         (gomp_barrier_t): Rewritten.
19060         (gomp_barrier_state_t): New typedef.
19061         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19062         gomp_barrier_wait_start): Rewritten.
19063         (gomp_barrier_wait_end): Change second argument to
19064         gomp_barrier_state_t.
19065         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19066         inlines.
19067         * config/linux/bar.c: Include wait.h instead of libgomp.h and
19068         futex.h.
19069         (gomp_barrier_wait_end): Rewritten.
19070         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19071         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19072         * config/posix/bar.h (gomp_barrier_t): Add generation field.
19073         (gomp_barrier_state_t): New typedef.
19074         (gomp_team_barrier_wait,
19075         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19076         (gomp_barrier_wait_start): Or all but low 2 bits from generation
19077         into the return value.  Return gomp_barrier_state_t.
19078         (gomp_team_barrier_set_task_pending,
19079         gomp_team_barrier_clear_task_pending,
19080         gomp_team_barrier_set_waiting_for_tasks,
19081         gomp_team_barrier_waiting_for_tasks,
19082         gomp_team_barrier_done): New inlines.
19083         (gomp_barrier_wait_end): Change second argument to
19084         gomp_barrier_state_t.
19085         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19086         inlines.
19087         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19088         (gomp_barrier_wait_end): Change second argument to
19089         gomp_barrier_state_t.
19090         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19091         gomp_team_barrier_wake): New functions.
19092         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19093         futex.h.
19094         (gomp_futex_wake, gomp_futex_wait): New variables.
19095         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19096         * config/linux/lock.c: Rewrite to make locks task owned,
19097         for backwards compatibility provide the old entrypoints
19098         if symbol versioning.  Include wait.h instead of libgomp.h and
19099         futex.h.
19100         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19101         * config/posix95/lock.c: Rewrite to make locks task owned,
19102         for backwards compatibility provide the old entrypoints
19103         if symbol versioning.
19104         * config/posix/lock.c: Rewrite to make locks task owned,
19105         for backwards compatibility provide the old entrypoints
19106         if symbol versioning.
19107         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19108         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19109         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19110         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19111         (sys_futex0): Return error code.
19112         (futex_wake, futex_wait): If ENOSYS was returned, clear
19113         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19114         (cpu_relax, atomic_write_barrier): New static inlines.
19115         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19116         (futex_wake, futex_wait): If ENOSYS was returned, clear
19117         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19118         (cpu_relax, atomic_write_barrier): New static inlines.
19119         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19120         (sys_futex0): Return error code.
19121         (futex_wake, futex_wait): If ENOSYS was returned, clear
19122         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19123         (cpu_relax, atomic_write_barrier): New static inlines.
19124         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19125         (sys_futex0): Return error code.
19126         (futex_wake, futex_wait): If ENOSYS was returned, clear
19127         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19128         (cpu_relax, atomic_write_barrier): New static inlines.
19129         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19130         (sys_futex0): Return error code.
19131         (futex_wake, futex_wait): If ENOSYS was returned, clear
19132         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19133         (cpu_relax, atomic_write_barrier): New static inlines.
19134         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19135         (sys_futex0): Return error code.
19136         (futex_wake, futex_wait): If ENOSYS was returned, clear
19137         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19138         (cpu_relax, atomic_write_barrier): New static inlines.
19139         * config/linux/sem.c: Include wait.h instead of libgomp.h and
19140         futex.h.
19141         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19142         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19143         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19144         types.
19145         (omp_nest_lock_t): Change owner into void *, add lock field.
19146         * config/posix95/omp-lock.h: Include semaphore.h.
19147         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19148         (omp_lock_t): Use sem_t instead of mutex if semaphores
19149         aren't broken.
19150         (omp_nest_lock_t): Likewise.  Change owner to void *.
19151         * config/posix/omp-lock.h: Include semaphore.h.
19152         (omp_lock_25_t, omp_nest_lock_25_t): New types.
19153         (omp_lock_t): Use sem_t instead of mutex if semaphores
19154         aren't broken.
19155         (omp_nest_lock_t): Likewise.  Add owner field.
19157 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
19159         * testsuite/libgomp.c/collapse-1.c: New test.
19160         * testsuite/libgomp.c/collapse-2.c: New test.
19161         * testsuite/libgomp.c/collapse-3.c: New test.
19162         * testsuite/libgomp.c/icv-1.c: New test.
19163         * testsuite/libgomp.c/icv-2.c: New test.
19164         * testsuite/libgomp.c/lib-2.c: New test.
19165         * testsuite/libgomp.c/lock-1.c: New test.
19166         * testsuite/libgomp.c/lock-2.c: New test.
19167         * testsuite/libgomp.c/lock-3.c: New test.
19168         * testsuite/libgomp.c/loop-4.c: New test.
19169         * testsuite/libgomp.c/loop-5.c: New test.
19170         * testsuite/libgomp.c/loop-6.c: New test.
19171         * testsuite/libgomp.c/loop-7.c: New test.
19172         * testsuite/libgomp.c/loop-8.c: New test.
19173         * testsuite/libgomp.c/loop-9.c: New test.
19174         * testsuite/libgomp.c/nested-3.c: New test.
19175         * testsuite/libgomp.c/nestedfn-6.c: New test.
19176         * testsuite/libgomp.c/sort-1.c: New test.
19177         * testsuite/libgomp.c/task-1.c: New test.
19178         * testsuite/libgomp.c/task-2.c: New test.
19179         * testsuite/libgomp.c/task-3.c: New test.
19180         * testsuite/libgomp.c/task-4.c: New test.
19181         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19182         to C++ testsuite default compiler options.
19183         * testsuite/libgomp.c++/collapse-1.C: New test.
19184         * testsuite/libgomp.c++/collapse-2.C: New test.
19185         * testsuite/libgomp.c++/ctor-10.C: New test.
19186         * testsuite/libgomp.c++/for-1.C: New test.
19187         * testsuite/libgomp.c++/for-2.C: New test.
19188         * testsuite/libgomp.c++/for-3.C: New test.
19189         * testsuite/libgomp.c++/for-4.C: New test.
19190         * testsuite/libgomp.c++/for-5.C: New test.
19191         * testsuite/libgomp.c++/loop-8.C: New test.
19192         * testsuite/libgomp.c++/loop-9.C: New test.
19193         * testsuite/libgomp.c++/loop-10.C: New test.
19194         * testsuite/libgomp.c++/task-1.C: New test.
19195         * testsuite/libgomp.c++/task-2.C: New test.
19196         * testsuite/libgomp.c++/task-3.C: New test.
19197         * testsuite/libgomp.c++/task-4.C: New test.
19198         * testsuite/libgomp.c++/task-5.C: New test.
19199         * testsuite/libgomp.c++/task-6.C: New test.
19200         * testsuite/libgomp.fortran/allocatable1.f90: New test.
19201         * testsuite/libgomp.fortran/allocatable2.f90: New test.
19202         * testsuite/libgomp.fortran/allocatable3.f90: New test.
19203         * testsuite/libgomp.fortran/allocatable4.f90: New test.
19204         * testsuite/libgomp.fortran/collapse1.f90: New test.
19205         * testsuite/libgomp.fortran/collapse2.f90: New test.
19206         * testsuite/libgomp.fortran/collapse3.f90: New test.
19207         * testsuite/libgomp.fortran/collapse4.f90: New test.
19208         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19209         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19210         * testsuite/libgomp.fortran/lib4.f90: New test.
19211         * testsuite/libgomp.fortran/lock-1.f90: New test.
19212         * testsuite/libgomp.fortran/lock-2.f90: New test.
19213         * testsuite/libgomp.fortran/nested1.f90: New test.
19214         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19215         * testsuite/libgomp.fortran/strassen.f90: New test.
19216         * testsuite/libgomp.fortran/tabs1.f90: New test.
19217         * testsuite/libgomp.fortran/tabs2.f: New test.
19218         * testsuite/libgomp.fortran/task1.f90: New test.
19219         * testsuite/libgomp.fortran/task2.f90: New test.
19220         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19221         * testsuite/libgomp.fortran/vla5.f90: Likewise.
19222         * testsuite/libgomp.c/pr26943-2.c: Likewise.
19223         * testsuite/libgomp.c/pr26943-3.c: Likewise.
19224         * testsuite/libgomp.c/pr26943-4.c: Likewise.
19226 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
19228         PR c++/36308
19229         * testsuite/libgomp.c++/ctor-11.C: New test.
19230         * testsuite/libgomp.c++/ctor-12.C: New test.
19232 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
19234         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19236 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
19238         PR middle-end/36106
19239         * testsuite/libgomp.c/atomic-5.c: New test.
19240         * testsuite/libgomp.c/atomic-6.c: New test.
19241         * testsuite/libgomp.c/autopar-1.c: New test.
19243 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19245         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19246         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19247         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19248         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19249         * configure: Regenerate.
19250         * Makefile.in, testsuite/Makefile.in: Likewise.
19252 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
19254         PR bootstrap/35457
19255         * aclocal.m4: Regenerate.
19256         * configure: Regenerate.
19258 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19260         PR middle-end/35611
19261         * testsuite/libgomp.c/atomic-4.c: New test.
19263         PR libgomp/35625
19264         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19265         (gomp_iter_guided_next): Likewise.
19266         * testsuite/libgomp.c/pr35625.c: New test.
19268 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19270         * aclocal.m4: Regenerate.
19271         * configure: Likewise.
19272         * Makefile.in: Likewise.
19273         * testsuite/Makefile.in: Likewise.
19275 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19277         PR middle-end/35185
19278         * testsuite/libgomp.c++/pr35185.C: New test.
19280 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19282         PR middle-end/35549
19283         * testsuite/libgomp.c/pr35549.c: New test.
19285 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19287         * testsuite/libgomp.c/atomic-3.c: New test.
19289 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19291         PR fortran/33197
19292         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19293         .F08 file suffixes.
19295 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
19297         PR libgomp/33131
19298         * configure.ac: Add ACX_HEADER_STRING.
19299         * env.c: Include strings.h.
19300         * aclocal.m4: Regenerate.
19301         * config.h.in: Regenerate.
19302         * configure: Regenerate.
19303         * Makefile.in: Regenerate.
19304         * testsuite/Makefile.in: Regenerate.
19306 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
19308         PR middle-end/35196
19309         * testsuite/libgomp.c/pr35196.c: New test.
19311         PR middle-end/35130
19312         * testsuite/libgomp.fortran/pr35130.f90: New test.
19313         * testsuite/libgomp.c/pr35130.c: New test.
19315 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
19317         PR middle-end/33880
19318         * testsuite/libgomp.c/pr33880.c: New test.
19319         * testsuite/libgomp.fortran/pr33880.f90: New test.
19321 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
19323         * configure: Regenerate.
19325 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
19327         * configure.ac: Move futex checking into ../config/futex.m4.
19328         * configure: Rebuilt.
19329         * aclocal.m4: Rebuilt.
19330         * Makefile.in: Rebuilt.
19332         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19333         2007-10-15 ../config/tls.m4 change.
19335 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
19337         PR c++/34513
19338         * testsuite/libgomp.c/pr34513.c: New test.
19339         * testsuite/libgomp.c++/pr34513.C: New test.
19341 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
19343         PR target/32765
19344         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19346 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
19348         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
19350 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
19352         * testsuite/libgomp.c/private-1.c: New test.
19354 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
19355             Paolo Bonzini  <bonzini@gnu.org>
19357         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
19358         instead of 'VPATH ='.
19359         * Makefile.in: Regenerate.
19361 2007-11-23  Matthias Klose  <doko@ubuntu.com>
19363         * configure.ac: Adjust makeinfo version check.
19364         * configure: Regenerate.
19366 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
19368         PR fortran/34020
19369         * testsuite/libgomp.fortran/pr34020.f90: New test.
19371 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
19373         PR c++/33894
19374         * testsuite/libgomp.c++/atomic-1.C: New test.
19376 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
19378         PR libgomp/33275
19379         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19380         Make x and y integers rather than (implicit) reals.  Add private (j)
19381         clause to the last omp parallel.
19383 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
19385         * configure: Regenerate following changes to ../config/tls.m4.
19387 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
19389         * testsuite/libgomp.fortran/stack.f90: New test.
19391 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
19393         * config/mingw32/proc.c: New file.
19395 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
19397         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19398         (main): Use __get_cpuid to get i386 target fetaures.
19399         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19400         (main): Use __get_cpuid to get x86_64 target fetaures.
19402 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
19404         PR target/32765
19405         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19406         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19408 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
19410         PR fortran/32550
19411         * testsuite/libgomp.fortran/pr32550.f90: New test.
19412         * testsuite/libgomp.fortran/crayptr2.f90: New test.
19414 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19416         * aclocal.m4: Regenerated.
19418 2007-07-05  Tobias Burnus  <burnus@net-b.de>
19420         PR fortran/32359
19421         * testsuite/libgomp.fortran/pr32359.f90: New.
19423 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
19425         PR libgomp/32468
19426         * sections.c (GOMP_parallel_sections_start): Only decrease
19427         number of threads to COUNT if dyn_var is true.
19428         * testsuite/libgomp.c/pr32468.c: New test.
19430 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19432         PR libgomp/26308
19433         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19435 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
19437         PR middle-end/32362
19438         * testsuite/libgomp.c/pr32362-1.c: New test.
19439         * testsuite/libgomp.c/pr32362-2.c: New test.
19440         * testsuite/libgomp.c/pr32362-3.c: New test.
19442 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
19444         * team.c (gomp_team_start): Fix setting up thread_attr
19445         stack size.
19447 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
19449         * configure: Regenerate.
19451 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
19453         * Makefile.in: Regenerate.
19454         * configure: Regenerate.
19455         * aclocal.m4: Regenerate.
19456         * testsuite/Makefile.in: Regenerate.
19458 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
19460         * config/linux/proc.c: New file.
19462         PR libgomp/28482
19463         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19465 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
19467         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19469 2007-04-16  Matthias Klose  <doko@debian.org>
19471         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19472         flags if not building with -m64.
19473         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19474         flag for i?86-*-* targets, if current target matches -m64.
19476 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
19478         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19479         * Makefile.in: Regenerate.
19481 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19483         PR testsuite/31369
19484         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19485         ld_library_path.
19486         * testsuite/libgomp.fortran/fortran.exp: Likewise.
19488 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
19490         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19491         decls.
19492         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19493         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19494         (parse_affinity): New function.
19495         (initialize_env): Call it and gomp_init_affinity.
19496         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19497         create new pthread_attr_t and call gomp_init_thread_affinity
19498         on it for each thread before passing the attribute to pthread_create.
19499         * config/linux/affinity.c: New file.
19500         * config/posix/affinity.c: New file.
19501         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19502         * configure: Rebuilt.
19503         * config.h.in: Rebuilt.
19504         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19505         * Makefile.in: Rebuilt.
19507 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
19509         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19510         *-*-darwin*.
19511         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19512         and use it if found.
19514 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
19516         * testsuite/config/default.exp: New file.
19517         * testsuite/lib/libgomp.exp: New file.
19518         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19519         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19520         load_lib *, load_gcc_lib *): Move to libgomp.exp.
19521         (libgomp_load): Remove.
19522         * testsuite/lib/libgomp.exp (libgomp_init): Compute
19523         always_ld_library_path, not ld_library_path.  Set additional_flags
19524         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19525         (target_compile): Do not call libgomp_init.  Append lang_library_path
19526         and lang_link_flags to options.
19527         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
19528         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
19529         here.
19530         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19531         always_ld_library_path.  Set LD_LIBRARY_PATH here.
19532         * testsuite/libgomp.fortran/fortran.exp: Ditto.
19533         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19534         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19535         CX8 flag.
19536         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19537         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19538         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19539         * testsuite/libgomp.c/pr29947-1.c: Ditto.
19540         * testsuite/libgomp.c/atomic-10.c: Ditto.
19542 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
19544         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19545         dg-final cleanup-modules line.
19546         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19547         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19548         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19549         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19550         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19551         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19552         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19554 2007-03-18  Andreas Schwab  <schwab@suse.de>
19556         * acinclude.m4: Adjust regular expression for ld version
19557         extraction.
19558         * configure: Regenerate.
19560 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
19562         * Makefile.am: Add install-pdf target as copied from
19563         automake v1.10 rules.
19564         * Makefile.in: Regenerate
19566 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
19568         PR libgomp/28486
19569         * configure: Regenerate.
19571         PR c++/30703
19572         * testsuite/libgomp.c++/pr30703.C: New test.
19574 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
19576         Revert:
19577         2006-07-05  Eric Christopher  <echristo@apple.com>
19578         * configure.ac: Depend addition of -pthread on host OS.
19579         * configure: Regenerate.
19581 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19583         * libgomp.texi: Fix spacing after abbreviations.
19585 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
19587         PR libgomp/30546
19588         * configure.ac: Add check for makeinfo
19589         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19590         if an appropriate version of makeinfo is found.
19591         * aclocal.m4: Regenerated.
19592         * configure: Regenerated.
19593         * Makefile.in: Regenerated.
19594         * testsuite/Makefile.in: Regenerated.
19596 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
19598         PR libgomp/30540
19599         * libgomp.texi: More about implementation-dependent settings.
19601 2007-01-26  Tobias Burnus  <burnus@net-b.de>
19603         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19605 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
19607         PR middle-end/30494
19608         * testsuite/libgomp.c/pr30494.c: New test.
19610 2007-01-15  Tom Tromey  <tromey@redhat.com>
19612         * configure: Rebuilt.
19613         * configure.ac: Fixed comment.
19615 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
19617         * libgomp.texi: Document implementation specific default values of
19618         environment variables.
19620 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
19622         PR libgomp/28209
19623         * libgomp.texi: New file.
19624         * configure.ac: Add --enable-generated-files-in-srcdir option.
19625         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19626         files to srcdir.
19627         * Makefile.in: Regenerated.
19628         * config.h.in: Regenerated.
19629         * testsuite/Makefile.in: Regenerated.
19630         * NOTES: Removed.
19632 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
19634         PR libgomp/29949
19635         * env.c (omp_set_num_threads): Set illegal thread count to 1.
19637 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
19639         * configure: Regenerate.
19641 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
19643         PR libgomp/29947
19644         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
19645         start if there shouldn't be any loop iterations.
19646         (gomp_loop_ordered_static_start): Remove start == end test.
19647         * testsuite/libgomp.c/pr29947-1.c: New test.
19648         * testsuite/libgomp.c/pr29947-2.c: New test.
19650 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
19652         * configure.tgt: Force initial-exec TLS model on Linux only.
19654 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
19656         * configure: Regenerated.
19658 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
19660         * env.c (parse_schedule): Reject out of range values.
19661         (parse_unsigned_long): Reject out of range, negative or zero values.
19663 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
19665         PR fortran/29629
19666         * testsuite/libgomp.fortran/pr29629.f90: New test.
19668 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
19670         PR libgomp/29494
19671         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19672         * config/posix95: New directory.
19673         * config/posix95/omp-lock.h: New file.
19674         * config/posix95/lock.c: Likewise.
19676 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
19678         * aclocal.m4: Regenerate.
19679         * configure: Regenerate.
19681 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19683         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19684         '<' to '<='.
19686 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
19688         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19689         test.
19690         * configure: Regenerate.
19691         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19693 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
19695         PR middle-end/25261
19696         PR middle-end/28790
19697         * testsuite/libgomp.c/nestedfn-4.c: New test.
19698         * testsuite/libgomp.c/nestedfn-5.c: New test.
19699         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19701         PR fortran/29097
19702         * testsuite/libgomp.fortran/condinc1.f: New test.
19703         * testsuite/libgomp.fortran/condinc2.f: New test.
19704         * testsuite/libgomp.fortran/condinc3.f90: New test.
19705         * testsuite/libgomp.fortran/condinc4.f90: New test.
19706         * testsuite/libgomp.fortran/condinc1.inc: New file.
19708 2006-09-18  Tom Tromey  <tromey@redhat.com>
19710         * configure: Rebuilt.
19712 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
19714         PR c/28768
19715         PR preprocessor/14634
19716         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19717         to AC_DEFINE.
19718         * configure: Regenerate.
19720 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19722         * testsuite/libgomp.fortran/reduction3.f90: Change
19723         -2147483648 to -huge(i)-1 to avoid overflow.
19724         * testsuite/libgomp.fortran/reduction4.f90: Change
19725         Z'ffffffff' to not(0) to avoid overflow.
19727 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
19729         PR libgomp/25938
19730         * Makefile.am (libsubincludedir): New.
19731         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19732         * Makefile.in: Regenerate.
19734 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
19736         PR libgomp/28725
19737         * env.c: Include ctype.h.
19738         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19739         leading and/or trailing whitespace and compare strings case
19740         insensitively.
19742 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
19744         PR fortran/28390
19745         * testsuite/libgomp.fortran/pr28390.f: New test.
19747 2006-07-05  Eric Christopher  <echristo@apple.com>
19749         * configure.ac: Depend addition of -pthread on host OS.
19750         * configure: Regenerate.
19752 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
19754         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19755         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19756         defined.
19758 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
19760         PR libgomp/26175
19761         PR libgomp/26477
19762         * configure.ac: If neither --enable-linux-futex nor
19763         --disable-linux-futex is passed, determine the default by checking
19764         for compiling and/or running against NPTL.  With --enable-linux-futex,
19765         check if SYS_gettid and SYS_futex are defined.
19766         * configure: Rebuilt.
19768 2006-06-14  Richard Henderson  <rth@redhat.com>
19770         PR libgomp/28008
19771         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19772         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19774 2006-06-09  Richard Henderson  <rth@redhat.com>
19776         * env.c (gomp_nthreads_var): Change to unsigned long.
19777         (gomp_run_sched_chunk): Likewise.
19778         (parse_unsigned_long): Rename from parse_num_threads and generalize.
19779         (initialize_env): Initialize gomp_thread_attr.
19780         * libgomp.h (gomp_nthreads_var): Update decl.
19781         (gomp_run_sched_chunk): Likewise.
19782         (gomp_thread_attr): Declare.
19783         * team.c (gomp_thread_attr): Export.
19784         (initialize_team): Don't initialize it.
19786 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
19788         PR fortran/27916
19789         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19790         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19792 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19794         * config/mingw32/time.c: New file.
19795         * configure.tgt: Use it.
19797 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
19799         * Makefile.am: Add install-html target. Add install-html to .PHONY
19800         * Makefile.in: Regenerate.
19802 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19804         PR libgomp/27612
19805         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19806         * testsuite/libgomp.c/critical-1.c: Likewise.
19807         * testsuite/libgomp.c/loop-1.c: Likewise.
19808         * testsuite/libgomp.c/loop-2.c: Likewise.
19809         * testsuite/libgomp.c/single-1.c: Likewise.
19810         * testsuite/libgomp.c/ordered-1.c: Likewise.
19811         * testsuite/libgomp.c/ordered-2.c: Likewise.
19813 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
19815         PR middle-end/27416
19816         * libgomp.fortran/pr27416-1.f90: New test.
19818 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
19820         PR fortran/27395
19821         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19822         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19824 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19826         PR c++/26943
19827         * testsuite/libgomp.c/pr26943-1.c: New test.
19828         * testsuite/libgomp.c/pr26943-2.c: New test.
19829         * testsuite/libgomp.c/pr26943-3.c: New test.
19830         * testsuite/libgomp.c/pr26943-4.c: New test.
19831         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19832         * testsuite/libgomp.c++/pr26943.C: New test.
19834 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
19836         PR middle-end/27337
19837         * testsuite/libgomp.c++/pr27337.C: New test.
19839 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
19841         PR c/26171
19842         * testsuite/libgomp.c/pr26171.c: New test.
19844 2006-04-25  Richard Henderson  <rth@redhat.com>
19846         PR libgomp/25865
19847         * configure.ac: Use GCC_CHECK_TLS.
19848         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19849         * Makefile.in, aclocal.m4, configure: Regenerate.
19851 2006-04-10  Matthias Klose  <doko@debian.org>
19853         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19854         directory names containing underscores.
19856 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
19858         PR c++/26691
19859         * testsuite/libgomp.c++/pr26691.C: New test.
19861 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
19863         * testsuite/libgomp.fortran/retval2.f90: New test.
19865 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
19867         * testsuite/libgomp.c++: New directory.
19869 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
19871         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19872         * config/posix/sem.c: Implement the above.
19874 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
19876         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19877         define HAVE_BROKEN_POSIX_SEMAPHORES.
19878         * configure: Rebuilt.
19879         * config.h.in: Rebuilt.
19881 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19883         PR bootstrap/26161
19884         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19885         for the other pthread check.
19886         * configure: Regenerate.
19887         * config.h.in: Regenerate.
19889 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
19891         PR libgomp/25938
19892         PR libgomp/25984
19893         * Makefile.am (fincludedir): New variable.
19894         (nodist_include_HEADERS): Remove Fortran files.
19895         (nodist_finclude_HEADERS): New variable.
19896         * Makefile.in: Regenerated.
19898 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
19900         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19901         Remove tests for returning assumed character length arrays.
19903 2006-02-12  Roger Sayle  <roger@eyesopen.com>
19904             John David Anglin  <dave@hiauly1.hia.nrc.ca>
19906         PR libgomp/25936
19907         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19909 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
19911         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19913 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19915         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19916         part of LD_LIBRARY_PATH manually.
19918 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
19920         PR libgomp/25852
19921         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19922         libgomp_init.
19924 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
19926         PR libgomp/25884
19927         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19928         * configure.ac (PERL): Don't set.
19929         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19930         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19931         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19932         * omp.h.in: Wrap the new configure substitutions with @ characters.
19933         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19934         * aclocal.m4, configure, Makefile.in: Regenerate.
19935         * mkomp_h.pl: Delete.
19937 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
19939         PR libgomp/25259
19940         * configure.ac: Use GCC_HEADER_STDINT.
19941         * libgomp.h: Include gstdint.h.
19942         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19943         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19945 2006-01-24  Richard Henderson  <rth@redhat.com>
19947         PR libgomp/25942
19948         * configure.ac: Add AM_MAINTAINER_MODE.
19949         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19951 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
19953         * Makefile.in: Regenerate.
19954         * testsuite/Makefile.in: Regenerate.
19955         * aclocal.m4: Regenerate.
19957 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
19959         * config/posix/proc.c: Conditional include of sys/loadavg.h for
19960         Solaris.
19961         * configure.ac: Add check for loadavg.h.
19962         (link_gomp): Adjust comment.
19963         * configure: Regenerate.
19964         * config.h.in: Regenerate.
19966 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
19968         PR libgomp/25877
19969         * configure.ac: Remove check for alloca.h.
19970         * configure: Regenerate.
19971         * config.h.in: Regenerate.
19972         * libgomp.h: define gomp_alloca to be __builtin_alloca.
19973         * team.c: Remove use of alloca.h.
19974         Call gomp_alloca instead of alloca.
19976 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
19978         PR libgomp/25877
19979         * team.c: Add include of alloca.h.
19980         * configure.ac: Add check for alloca.h.
19981         * configure: Regenerate.
19982         * config.h.in: Regenerate.
19984 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
19986         PR fortran/25219
19987         * testsuite/libgomp.fortran/pr25219.f90: New test.
19989 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
19991         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19992         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19993         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19994         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
19995         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
19996         testsuite/libgomp.fortran/threadprivate1.f90,
19997         testsuite/libgomp.fortran/threadprivate2.f90,
19998         testsuite/libgomp.fortran/threadprivate3.f90,
19999         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20000         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20001         testsuite/libgomp.fortran/omp_parse3.f90: Change required
20002         effective-target to TLS runtime.
20004         * testsuite/libgomp.fortran/pr25162.f: Require
20005         effective-target TLS runtime.
20007 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
20009         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20010         * testsuite/libgomp.c/nestedfn-3.c: New test.
20012 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
20014         PR fortran/25162
20015         * testsuite/libgomp.fortran/pr25162.f: New test.
20017 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
20019         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20020         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20022 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
20024         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20025         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20026         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20027         single.c, team.c, work.c, config/linux/alpha/futex.h,
20028         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20029         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20030         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20031         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20032         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20033         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20034         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20035         FSF address.
20037 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20039         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20040         to nodist_noinst_HEADERS.
20041         * Makefile.in: Rebuilt.
20043         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20044         add integer count field.
20045         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20046         omp_nest_lock_t type change.
20047         (omp_init_nest_lock): Likewise.  Initialize count to 0.
20048         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20049         Increment count.
20050         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20051         Decrement count.
20052         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20053         Increment count if successful and return the new nesting level.
20054         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20055         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20056         * testsuite/libgomp.c/lib-1.c: New test.
20057         * testsuite/libgomp.fortran/lib1.f90: New test.
20058         * testsuite/libgomp.fortran/lib2.f: New test.
20059         * testsuite/libgomp.fortran/lib3.f: New test.
20061 2005-11-17  Richard Henderson  <rth@redhat.com>
20063         PR 24845
20064         * Makefile.am (nodist_toolexeclib_HEADERS): New.
20065         * configure.ac (link_gomp): New.  Substitute it.
20066         (AC_CONFIG_FILES): Add libgomp.spec.
20067         * libgomp.spec.in: New file.
20068         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20069         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20071 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
20073         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20074         reduction(-:var) behaving the same as reduction(+:var).
20075         * testsuite/libgomp.c/reduction-4.c: New test.
20077 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
20079         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20080         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20081         testsuite/libgomp.c/copyin-3.c,
20082         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20083         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20084         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20085         testsuite/libgomp.c++/pr24455.C,
20086         testsuite/libgomp.fortran/threadprivate1.f90,
20087         testsuite/libgomp.fortran/threadprivate2.f90,
20088         testsuite/libgomp.fortran/threadprivate3.f90,
20089         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20090         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20091         testsuite/libgomp.fortran/omp_parse3.f90: Require
20092         effective-target TLS.
20094 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
20096         * HEADER: Remove.
20098 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
20100         PR libgomp/24797
20101         * team.c (initialize_team): Pass NULL rather than free as
20102         pthread_key_create destructor.  Initialize thread specific data
20103         pointer in initial thread to a static local variable rather than
20104         malloced memory.
20106 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
20108         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20109         its location to ld_library_path.
20111 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20113         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20115 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
20117         * testsuite/libgomp.c: Rename from libgomp.dg.
20119 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
20121         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20122         threadprivate variable 'i'.
20124 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
20126         * config/linux/s390/futex.h: New file.
20127         * configure.tgt: Use it.
20129         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20130         before the parallel.
20132 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
20134         PR c++/24734
20135         * testsuite/libgomp.c++/master-1.C: New test.
20137 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20139         * testsuite/libgomp.dg/copyin-3.c: New test.
20141 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
20143         * testsuite/libgomp.fortran/retval1.f90: New test.
20144         * testsuite/libgomp.fortran/vla7.f90: New test.
20146 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
20148         * testsuite/libgomp.fortran/vla2.f90: New test.
20149         * testsuite/libgomp.fortran/vla3.f90: New test.
20150         * testsuite/libgomp.fortran/vla4.f90: New test.
20151         * testsuite/libgomp.fortran/vla5.f90: New test.
20152         * testsuite/libgomp.fortran/vla6.f90: New test.
20154 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
20156         * config/linux/sparc/futex.h: New file.
20157         * configure.tgt: Use it.
20158         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20160         * critical.c: Include stdlib.h.
20161         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20162         ignoring return value.
20163         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20164         LIBGOMP_CHECK_SYNC_BUILTINS check.
20165         * configure: Rebuilt.
20167 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20169         * testsuite/libgomp.fortran/vla1.f90: New test.
20171 2005-10-31  Richard Henderson  <rth@redhat.com>
20173         * testsuite/libgomp.fortran/character2.f90: Fix race condition
20174         setting 's' in different threads.
20176 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
20178         * libgomp.h (attribute_hidden, ialias): Define.
20179         * config/posix/proc.c (omp_get_num_procs): Add ialias.
20180         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20181         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20182         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20183         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20184         omp_test_lock, omp_test_nest_lock): Likewise.
20185         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20186         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20187         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20188         omp_test_lock, omp_test_nest_lock): Likewise.
20189         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20190         omp_get_dynamic, omp_get_nested): Likewise.
20191         * parallel.c (omp_get_num_threads, omp_get_max_threads,
20192         omp_get_thread_num, omp_in_parallel): Likewise.
20193         * fortran.c (ialias_redirect): Define.
20194         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20195         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20196         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20197         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20198         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20199         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20200         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20201         omp_get_wtime): Add ialias_redirect.
20203 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
20205         * fortran.c: Include stdlib.h.
20207 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
20209         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20210         * Makefile.in: Regenerated.
20212 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
20214         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20215         * libgomp_f.h.in (omp_check_defines): New function.
20216         * env.c: Include libgomp_f.h.
20217         (initialize_env): Call omp_check_defines.
20219         * testsuite/libgomp.dg/copyin-2.c: New test.
20220         * testsuite/libgomp.c++/copyin-2.C: New test.
20221         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20223         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20224         * testsuite/libgomp.fortran/sharing2.f90: New test.
20226         * testsuite/libgomp.dg/copyin-1.c: New test.
20227         * testsuite/libgomp.c++/copyin-1.C: New test.
20229 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
20231         * testsuite/libgomp.fortran/crayptr1.f90: New test.
20233         * testsuite/libgomp.fortran/workshare1.f90: New test.
20235         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20236         only test.
20237         * libgomp.fortran/sharing1.f90: New test.
20239 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
20241         PR c++/24502
20242         * testsuite/libgomp.c++/loop-7.C: New test.
20244         * testsuite/libgomp.dg/nestedfn-2.c: New test.
20246         * testsuite/libgomp.dg/nestedfn-1.c: New test.
20247         * testsuite/libgomp.fortran/reduction6.f90: New test.
20248         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20250 2005-10-23  Richard Henderson  <rth@redhat.com>
20252         * testsuite/libgomp.c++/ctor-1.C: New.
20253         * testsuite/libgomp.c++/ctor-2.C: New.
20254         * testsuite/libgomp.c++/ctor-3.C: New.
20255         * testsuite/libgomp.c++/ctor-4.C: New.
20256         * testsuite/libgomp.c++/ctor-5.C: New.
20257         * testsuite/libgomp.c++/ctor-6.C: New.
20258         * testsuite/libgomp.c++/ctor-7.C: New.
20259         * testsuite/libgomp.c++/ctor-8.C: New.
20260         * testsuite/libgomp.c++/ctor-9.C: New.
20262 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
20264         PR 24455
20265         * testsuite/libgomp.c++/pr24455-1.C: New test.
20266         * testsuite/libgomp.c++/pr24455.C: New test.
20267         * testsuite/libgomp.dg/pr24455-1.c: New test.
20268         * testsuite/libgomp.dg/pr24455.c: New test.
20270 2005-10-20  Richard Henderson  <rth@redhat.com>
20272         * testsuite/libgomp.c++/loop-6.C: New.
20273         * testsuite/libgomp.dg/loop-3.c: New.
20275 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
20277         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20278         explicitly private.
20279         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20280         explicitly shared.
20282 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
20284         * testsuite/libgomp.fortran/jacobi.f: New test.
20286 2005-10-19  Richard Henderson  <rth@redhat.com>
20288         * configure.tgt (i?86-linux): Default to with_arch instead of
20289         CFLAGS.  Add -mtune to match target_cpu.
20290         (x86_64-linux): Tune to i686.
20292         * fortran.c (omp_test_nest_lock_): Fix typo.
20294 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
20296         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20297         gomp_ordered_sync): Do nothing if team->nthreads == 1.
20298         * testsuite/libgomp.dg/ordered-3.c: New test.
20300         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20301         Remove volatile keyword.
20303         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20304         in COMMON block to avoid warnings on 64-bit targets.
20306 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
20308         * testsuite/libgomp.dg/shared-3.c: New test.
20310 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20312         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20313         * testsuite/libgomp.fortran/reduction5.f90: New test.
20315 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
20317         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20318         dg-options.
20319         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
20320         flush loop now that __sync_synchronize has proper memory barrier.
20321         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20322         Add -ffixed-form to dg-options.
20324 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20326         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20327         from subdirectories.
20328         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20329         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20330         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20331         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20332         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20333         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20334         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20335         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20336         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20337         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20338         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20339         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20340         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20341         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20342         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20343         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20344         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20345         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20346         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20347         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20348         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20349         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20350         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20351         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20352         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20354 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
20356         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20357         lang_library_path exists.  Use find instead of glob to gather tests.
20358         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20360 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
20362         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20363         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20364         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20365         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20366         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20367         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20368         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20369         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20370         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20371         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20372         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20373         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20374         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20376 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
20378         * testsuite/libgomp.dg/vla-1.c: New test.
20380         * testsuite/libgomp.fortran/reference2.f90: New test.
20382         * testsuite/libgomp.fortran/character2.f90: Remove explicit
20383         declaration of omp_get_thread_num.
20384         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
20385         use omp_lib.
20387         * testsuite/libgomp.fortran/reduction1.f90: New test.
20388         * testsuite/libgomp.fortran/reduction2.f90: New test.
20389         * testsuite/libgomp.fortran/reduction3.f90: New test.
20390         * testsuite/libgomp.fortran/reduction4.f90: New test.
20392 2005-10-13  Richard Henderson  <rth@redhat.com>
20394         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20395         * Makefile.in: Regenerate.
20396         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20397         * libgomp.h: Include bar.h.
20398         (struct gomp_barrier): Remove.
20399         (struct gomp_team): Add barrier.  Replace master_barrier with
20400         master_release.  Replace threads with ordered_release.
20401         (struct gomp_thread): Replace barrier with release.
20402         * ordered.c (gomp_ordered_first): Update for ordered_release change.
20403         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20404         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20405         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20406         (GOMP_single_copy_end): Likewise.
20407         * team.c (gomp_threads_dock): New.
20408         (gomp_barrier_init, gomp_barrier_destroy): Remove.
20409         (gomp_thread_start): Use gomp_barrier_wait.
20410         (new_team, free_team): Update for gomp_team changes.
20411         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20412         (gomp_team_end): Use gomp_barrier_wait.
20413         (initialize_team): Update for gomp_thread changes.
20414         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20415         (gomp_work_share_end_nowait): Use atomic ops when available.
20416         * config/linux/bar.c, config/linux/bar.h: New files.
20417         * config/posix/bar.c, config/posix/bar.h: New files.
20419 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
20421         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20422         * testsuite/libgomp.dg/single-2.c: New test.
20424         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20425         lang_link_flags): Unset, so that they aren't inherited from previously
20426         sourced *.exp.
20428         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20430 2005-10-12  Richard Henderson  <rth@redhat.com>
20432         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20433         (libgomp_init): Use lang_test_file, lang_library_path, and
20434         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
20436         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20437         (lang_test_file, lang_link_flags): New.
20438         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20440         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20441         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20442         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20443         testsuite/libgomp.c++/parallel-1.C,
20444         testsuite/libgomp.c++/reduction-1.C,
20445         testsuite/libgomp.c++/reduction-2.C,
20446         testsuite/libgomp.c++/reduction-3.C,
20447         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20448         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20449         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20450         New files, largely cribbed from the C testsuite.
20452 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
20454         * testsuite/libgomp.fortran/character1.f90: New test.
20455         * testsuite/libgomp.fortran/character2.f90: New test.
20457         * testsuite/libgomp.dg/nested-1.c: New test.
20458         * testsuite/libgomp.dg/nested-2.c: New test.
20459         * testsuite/libgomp.fortran/do1.f90: New test.
20460         * testsuite/libgomp.fortran/do2.f90: New test.
20462         * testsuite/libgomp.fortran/reference1.f90: New test.
20464 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
20466         * testsuite/libgomp.dg/reduction-1.c: New test.
20467         * testsuite/libgomp.dg/reduction-2.c: New test.
20468         * testsuite/libgomp.dg/reduction-3.c: New test.
20470 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
20472         * testsuite/libgomp.dg/atomic-1.c: New test.
20473         * testsuite/libgomp.dg/atomic-2.c: New test.
20475 2005-10-09  Richard Henderson  <rth@redhat.com>
20477         * critical.c (atomic_lock): New.
20478         (initialize_critical): Initialize it.
20479         (GOMP_atomic_start, GOMP_atomic_end): New.
20480         * libgomp.map: Export them.
20481         * libgomp_g.h: Declare them.
20483         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20485 2005-10-02  Richard Henderson  <rth@redhat.com>
20487         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
20488         to XCFLAGS instead of CFLAGS.
20490 2005-09-30  Richard Henderson  <rth@redhat.com>
20492         * configure.ac: Determine whether -pthread or -lpthread is needed.
20493         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20494         * Makefile.in, configure: Rebuild.
20496 2005-09-28  Richard Henderson  <rth@redhat.com>
20498         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20499         * testsuite/libgomp.dg/omp-single-3.c: New test.
20501 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
20503         * testsuite/libgomp.dg/omp-single-2.c: New test.
20504         * testsuite/libgomp.dg/shared-2.c: Fix return code.
20506 2005-09-27  Richard Henderson  <rth@redhat.com>
20508         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20509         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20511 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
20513         * testsuite/libgomp.dg/omp-loop03.c: New test.
20515 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20517         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20519 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
20521         * testsuite/libgomp.dg/omp-single-1.c: New test.
20522         * testsuite/libgomp.dg/shared-1.c: Return 0.
20523         Add prototype for abort.
20524         * testsuite/libgomp.dg/shared-2.c: Likewise.
20526 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
20528         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20529         constructs.
20531 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
20533         * testsuite/libgomp.dg/shared-1.c: New test.
20534         * testsuite/libgomp.dg/shared-2.c: New test.
20536 2005-09-24  Richard Henderson  <rth@redhat.com>
20538         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20540 2005-09-24  Richard Henderson  <rth@redhat.com>
20542         * iter.c (gomp_iter_static_next): Round up when computing number
20543         of iterations.  Don't bother distributing a remainder equally.
20545         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20546         Don't call srand.  Zero b before testing.
20547         (main): New.
20549 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
20551         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20552         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20554 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
20556         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20557         without !$omp end do, followed immediately by subroutine end.
20559 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
20561         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20563 2005-09-22  Richard Henderson  <rth@redhat.com>
20565         * critical.c (GOMP_critical_name_start): Change argument to void**.
20566         Reuse the pointer space if the mutex fits.
20567         (GOMP_critical_name_end): Likewise.
20568         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20569         * libgomp_g.h (GOMP_critical_name_start): Update decl.
20570         (GOMP_critical_name_end): Likewise.
20571         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20572         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20574 2005-09-20  Richard Henderson  <rth@redhat.com>
20576         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20577         (create_lock_lock): New.
20578         (initialize_critical): Initialize it.
20579         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20580         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20582 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20584         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20586 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
20588         * testsuite/libgomp.dg/omp-loop01.c: New test.
20589         * testsuite/libgomp.dg/omp-loop02.c: New test.
20591 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
20593         * configure.ac (AC_PROG_FC): Add.
20594         (USE_FORTRAN): New automake conditional.
20595         * configure: Rebuilt.
20596         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20597         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20598         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20599         Add rules to build them.
20600         * Makefile.in: Rebuilt.
20601         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20602         OMP_NEST_LOCK_KIND.
20603         * libgomp.map: Add Fortran wrappers.
20604         * libgomp_f.h.in: New file.
20605         * omp_lib.h.in: New file.
20606         * omp_lib.f90.in: New file.
20607         * fortran.c: New file.
20608         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20609         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20610         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20611         libgfortran has been built.
20612         * testsuite/libgomp.fortran/fortran.exp: New file.
20613         * testsuite/libgomp.fortran/omp_cond1.f: New test.
20614         * testsuite/libgomp.fortran/omp_cond2.f: New test.
20615         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20616         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20617         * testsuite/libgomp.fortran/omp_hello.f: New test.
20618         * testsuite/libgomp.fortran/omp_orphan.f: New test.
20619         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20620         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20621         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20622         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20623         * testsuite/libgomp.fortran/omp_reduction.f: New test.
20624         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20625         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20627 2005-08-30  Richard Henderson  <rth@redhat.com>
20629         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20630         function for when aliases are not usable.
20631         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20632         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20633         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20634         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20635         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20636         GOMP_loop_ordered_guided_next): Likewise.
20637         * ordered.c (GOMP_ordered_start): Likewise.
20639 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
20641         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20642         * testsuite/libgomp.dg/omp_hello.c: Fix return code
20643         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20644         * testsuite/libgomp.dg/omp_orphan.c: Likewise
20645         * testsuite/libgomp.dg/omp_reduction.c: Likewise
20646         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20647         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20648         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20649         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20651 2005-07-07  Eric Christopher  <echristo@redhat.com>
20652             Diego Novillo  <dnovillo@redhat.com>
20654         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20655         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20656         up code.
20657         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20658         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20659         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20660         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20661         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20662         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20663         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20665 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
20667         * TOPLEVEL.patch: Remove.
20669 2005-05-16  Richard Henderson  <rth@redhat.com>
20671         * configure.ac: Test for clock_gettime.
20672         * config.h.in, configure: Rebuild.
20673         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20674         (omp_get_wtime): Use clock_gettime if available.
20675         (omp_get_wtick): Use clock_getres if available.
20677 2005-05-11  Richard Henderson  <rth@redhat.com>
20679         * config/linux/ia64/futex.h: New file.
20680         * configure.tgt: Use it.
20682         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20684 2005-05-07  Richard Henderson  <rth@redhat.com>
20686         * config/linux/powerpc/futex.h: New file.
20687         * configure.tgt: Use it.
20689         * config/linux/i486/futex.h: Merge ...
20690         * config/linux/x86_64/futex.h: ... into ...
20691         * config/linux/x86/futex.h: ... here.
20692         * configure.tgt: Update to match.
20694 2005-05-06  Richard Henderson  <rth@redhat.com>
20696         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20697         * config/linux/i486/futex.h: Likewise.
20698         * config/linux/x86_64/futex.h: Likewise.
20700         * config/linux/lock.c: New file.
20701         * config/linux/omp-lock.h: New file.
20703         * critical.c, env.h: Don't include omp.h
20704         * config/posix/lock.c: Include libgomp.h instead of omp.h.
20705         * config/posix/time.c: Likewise.
20706         * config/posix/omp-lock.h: New file.
20707         * libgomp.h: Include omp-lock.h and omp.h.
20708         * Makefile.am (nodist_include_HEADERS): New.
20709         (omp.h): New rule.
20710         * configure.ac (PERL): New.
20711         * mkomp_h.pl: New file.
20712         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20713         with templates.
20714         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20716         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20717         build directory.  Re-add -march=i486 hack.
20719         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20720         (libgomp_link_flags): Remove.
20721         (libgomp_initialized): Remove.
20722         (libgomp_init): Don't protect from reinitialization.  Copy code
20723         from libstdc++ for getting the multilib set correctly.
20725 2005-05-05  Richard Henderson  <rth@redhat.com>
20727         * config/linux/alpha/futex.h: New file.
20728         * configure.tgt (alpha*-*-linux*): Use it.
20730         * config/posix/mutex.c: New file.
20731         * config/posix/sem.c: Use libgomp.h.
20733         * configure.tgt (x86_64-linux): Also test CC for -m32.
20734         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20736         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20737         after $gccpath.
20739         * Makefile.am (SUBDIRS): New.
20740         (libgomp_la_LDFLAGS): Add -lpthread.
20741         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20742         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20744         * libgomp_g.h: New file.
20745         * libgomp.h: Split out all public declarations to libgomp_g.h.
20746         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20747         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20748         * config/linux/sem.h: Likewise.
20749         * config/posix/sem.h: Likewise.
20751         * Makefile.am (AM_LDFLAGS): New.
20752         (libgomp_version_script): Split out from ...
20753         (libgomp_la_LDFLAGS): ... here.
20754         (libgomp_version_info): New.
20755         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20756         (LIBGOMP_ENABLE): New.
20757         (LIBGOMP_CHECK_LINKER_FEATURES): New.
20758         (LIBGOMP_ENABLE_SYMVERS): New.
20759         * configure.ac (AC_INIT): Version 1.0.
20760         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20761         (enable-linux-futex): Likewise.  Rename from enable-futex.
20762         (libtool_VERSION): New.
20763         (LIBGOMP_ENABLE_SYMVERS): Use it.
20764         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20765         * Makefile.in, aclocal.m4, configure: Rebuild.
20767         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20768         (gomp_mutex_unlock_slow): Fix typo.
20769         * config/linux/sem.c: Similarly.
20770         (gomp_sem_post_slow): Fix typo.
20771         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20772         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20773         [__PIC__] (sys_futex0): Don't use tmp output in asm.
20775         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20776         (libgomp_la_LDFLAGS): Add top_srcdir to path.
20777         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20778         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
20779         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20780         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20781         LDFLAGS.  Pull enable_futex check to top-level.
20782         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
20783         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20785         First attempt at real configury.
20786         * Makefile, config.h: Remove file.
20787         * Makefile.am, Makefile.in: New file.
20788         * acinclude.m4 aclocal.m4: New file.
20789         * configure.ac, configure.tgt, configure: New file.
20791         * config/posix/lock.c: Rename from sys-lock.c.
20792         * config/posix/mutex.h: Rename from sys-mutex.h.
20793         * config/posix/sem.c: Rename from sys-sem.c.
20794         * config/posix/sem.h: Rename from sys-sem.h.
20795         * config/posix/proc.c: Rename from sys-proc.c.
20796         * config/posix/time.c: Rename from sys-proc.c.
20798         * config/linux/mutex.c: New file.
20799         * config/linux/mutex.h: New file.
20800         * config/linux/sem.c: New file.
20801         * config/linux/sem.h: New file.
20802         * config/linux/i486/futex.h: New file.
20803         * config/linux/x86_64/futex.h: New file.
20805 2005-05-04  Richard Henderson  <rth@redhat.com>
20807         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20808         * libgomp.h: Declare them.
20809         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20810         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20812 2005-05-04  Richard Henderson  <rth@redhat.com>
20814         * libgomp-1 code drop
20816 2005-05-04  Richard Henderson  <rth@redhat.com>
20818         * iter.c (gomp_iter_static_next): Return tri-state on 0.
20819         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20820         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20821         (gomp_iter_static_next): Update.
20822         (gomp_ordered_static_next): Update.
20823         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20824         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
20825         totally empty range.
20826         (gomp_loop_ordered_static_next): Refine test for calling
20827         gomp_ordered_static_next.
20828         * testsuite/ordered-1.c: Add case for more threads than iterations.
20830         * iter.c (gomp_iter_runtime_next_locked): Remove.
20831         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20832         gomp_loop_guided_start, gomp_loop_ordered_static_start,
20833         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20834         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20835         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20836         gomp_loop_ordered_guided_next): Downcase name, make static, add
20837         an external alias with the old name.
20838         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20839         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20840         switch and call one of the above static functions.
20841         * libgomp.h: Update.
20843         * work.c (gomp_work_share_start): Lock the mutex for !first too.
20844         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20845         GOMP_loop_guided_start, GOMP_loop_runtime_start,
20846         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20847         GOMP_loop_ordered_guided_start): Update to match.
20848         * sections.c (GOMP_sections_start): Likewise.
20849         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20851         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20852         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20853         Use bounds check instead of modulus.
20854         (gomp_ordered_sync): Split out of GOMP_ordered_start.
20855         (gomp_ordered_last): Don't sync with ordered_owner here.
20856         (gomp_ordered_next): Likewise.
20857         (gomp_ordered_static_loop_next): Likewise.
20858         * loop.c, libgomp.h: Update to match.
20860         * libgomp.h (GOMP_barrier): Declare.
20862         * testsuite/barrier-1.c: New file.
20863         * testsuite/critical-1.c: New file.
20864         * testsuite/ordered-2.c: New file.
20865         * testsuite/ordered-1.c: New file.
20866         * testsuite/sections-1.c: New file.
20867         * testsuite/single-1.c: New file.
20868         * testsuite/Makefile (TESTS): Add them.
20870 2005-05-04  Richard Henderson  <rth@redhat.com>
20872         * libgomp.h (struct gomp_work_share): Add ordered_owner.
20873         * loop.c (GOMP_loop_static_start): If not the startup thread,
20874         acquire the mutex to wait for initialization complete.
20875         (GOMP_loop_ordered_static_start): Likewise.
20876         (GOMP_loop_ordered_runtime_start): Likewise.
20877         (GOMP_loop_ordered_static_first): Remove.
20878         (GOMP_loop_ordered_dynamic_first): Remove.
20879         (GOMP_loop_ordered_guided_first): Remove.
20880         (GOMP_loop_ordered_runtime_first): Remove.
20881         * ordered.c (gomp_ordered_loop_first): Post to own release when
20882         we're the first thread.
20883         (gomp_ordered_loop_last): Wait on release if not owner.
20884         (gomp_ordered_loop_next): Likewise.
20885         (gomp_ordered_static_loop_init): New.
20886         (gomp_ordered_static_loop_next): Use ordered_owner.
20887         (GOMP_ordered_start): Likewise.
20888         * work.c (gomp_new_work_share): Initialize ordered_owner.
20890 2005-05-03  Richard Henderson  <rth@redhat.com>
20892         * Makefile (OPT): New.
20893         (CFLAGS): Use it.
20895         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20896         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20897         * libgomp.h, libgomp.map, NOTES: Update to match.
20899         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20900         Add initialized and thr members.
20901         (gomp_thread_start): Pause when initially spawned to wait for
20902         the whole team to be created.
20903         (gomp_team_start): Release team members at the end.
20905         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
20906         (f_foo_1): Use GOMP_loop_end.
20907         (f_foo_2): Use GOMP_loop_end_nowait.
20909         * testsuite/loop-2.c: New file.
20910         * testsuite/Makefile (TESTS): Add it.
20912 2005-05-03  Richard Henderson  <rth@redhat.com>
20914         * iter.c (gomp_iter_static_next): Fix overflow check typo.
20915         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20916         * team.c (new_team): Initialize oldest_live_gen to 1 if no
20917         initial work_share.
20919         * testsuite/Makefile: New file.
20920         * testsuite/loop-1.c: New file.
20922 2005-05-03  Richard Henderson  <rth@redhat.com>
20924         Initial implementation and checkin.
20926 Copyright (C) 2005-2024 Free Software Foundation, Inc.
20928 Copying and distribution of this file, with or without modification,
20929 are permitted in any medium without royalty provided the copyright
20930 notice and this notice are preserved.