1 2024-01-17 Jakub Jelinek <jakub@redhat.com>
4 * testsuite/libgomp.c/bitint-1.c: New test.
6 2024-01-11 Julian Brown <julian@codesourcery.com>
8 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
9 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
10 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
12 2024-01-10 Jakub Jelinek <jakub@redhat.com>
15 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
16 instead of \$(abs_top_srcdir)/testsuite/flock.
17 * configure: Regenerated.
19 2024-01-09 Julian Brown <julian@codesourcery.com>
21 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
23 * testsuite/libgomp.c++/baseptrs-6.C: New test.
24 * testsuite/libgomp.c++/ind-base-1.C: New test.
25 * testsuite/libgomp.c++/ind-base-2.C: New test.
26 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
27 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
28 * testsuite/libgomp.c++/map-comma-1.C: New test.
29 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
30 * testsuite/libgomp.c++/struct-ref-1.C: New test.
31 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
32 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
33 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
35 2024-01-09 Jakub Jelinek <jakub@redhat.com>
38 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
39 rather than $srcdir/testsuite/flock.
40 * configure: Regenerated.
42 2024-01-08 Thomas Schwinge <thomas@codesourcery.com>
44 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
45 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
47 2024-01-08 Julian Brown <julian@codesourcery.com>
49 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
50 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
51 hsa_amd_memory_async_copy_rect_fn function pointers.
52 (init_hsa_runtime_functions): Add above functions, with
54 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
56 2024-01-08 Tobias Burnus <tobias@codesourcery.com>
58 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
59 (gcn_isa_name_len): Fix length.
60 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
62 2024-01-06 Tobias Burnus <tobias@codesourcery.com>
64 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
65 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
66 omp_target_is_accessible.
67 (Environment Display Routine): Uncomment and add
68 omp_display_env description.
69 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
71 2024-01-06 Mark Wielaard <mark@klomp.org>
73 * configure: Regenerate.
75 2024-01-03 Jakub Jelinek <jakub@redhat.com>
77 * libgomp.texi: Bump @copying's copyright year.
79 2023-12-21 Julian Brown <julian@codesourcery.com>
81 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
83 2023-12-20 Julian Brown <julian@codesourcery.com>
85 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
86 avoid out-of-bounds array checks in CUDA runtime.
87 (GOMP_OFFLOAD_memcpy3d): Likewise.
88 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
90 2023-12-18 Jakub Jelinek <jakub@redhat.com>
92 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
93 drop because of that unneeded target selector from other directives
94 and remove the aarch64 specific ones.
96 2023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
98 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
99 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
101 2023-12-15 Thomas Schwinge <thomas@codesourcery.com>
103 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
104 'dg-output's to 'target offload_device_nonshared_as'.
106 2023-12-15 Julian Brown <julian@codesourcery.com>
108 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
109 goacc_exit_data_internal, GOACC_enter_exit_data): Add
110 GOMP_MAP_STRUCT_UNORD support.
111 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
112 Detect incorrect use of variable indexing of arrays of structs.
113 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
114 GOMP_MAP_STRUCT_UNORD support.
115 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
116 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
117 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
118 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
120 2023-12-13 Julian Brown <julian@codesourcery.com>
122 * testsuite/libgomp.fortran/map-subarray.f90: New test.
123 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
124 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
125 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
126 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
127 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
128 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
129 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
130 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
131 descriptor-mapping changes. Remove XFAIL.
133 2023-12-13 Julian Brown <julian@codesourcery.com>
135 * target.c (gomp_map_pointer): Modify zero-length array section
137 (gomp_attach_pointer): Likewise.
138 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
139 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
140 "unassociated" pointers).
141 (gomp_map_vars_internal): Handle zero-sized struct members. Add
142 diagnostic for unmapped struct pointer members.
143 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
144 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
145 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
146 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
147 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
148 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
150 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
151 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
152 * testsuite/libgomp.c++/class-array-1.C: New test.
153 * testsuite/libgomp.c++/baseptrs-3.C: New test.
154 * testsuite/libgomp.c++/baseptrs-4.C: New test.
155 * testsuite/libgomp.c++/baseptrs-5.C: New test.
156 * testsuite/libgomp.c++/baseptrs-8.C: New test.
157 * testsuite/libgomp.c++/baseptrs-9.C: New test.
158 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
159 * testsuite/libgomp.c++/target-48.C: New test.
160 * testsuite/libgomp.c++/target-49.C: New test.
161 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
162 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
164 * testsuite/libgomp.c++/target-this-3.C: Likewise.
165 * testsuite/libgomp.c++/target-this-4.C: Likewise.
166 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
167 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
169 2023-12-13 Thomas Schwinge <thomas@codesourcery.com>
171 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
172 vs. '%ld' format string mismatch.
174 2023-12-13 Andrew Stubbs <ams@codesourcery.com>
175 Thomas Schwinge <thomas@codesourcery.com>
177 * allocator.c (MEMSPACE_ALLOC): Add PIN.
178 (MEMSPACE_CALLOC): Add PIN.
179 (MEMSPACE_REALLOC): Add PIN.
180 (MEMSPACE_FREE): Add PIN.
181 (MEMSPACE_VALIDATE): Add PIN.
182 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
183 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
184 (omp_aligned_calloc): Likewise.
185 (omp_realloc): Likewise.
186 (omp_free): Likewise.
187 * config/linux/allocator.c: New file.
188 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
189 (MEMSPACE_CALLOC): Add PIN.
190 (MEMSPACE_REALLOC): Add PIN.
191 (MEMSPACE_FREE): Add PIN.
192 (MEMSPACE_VALIDATE): Add PIN.
193 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
194 (MEMSPACE_CALLOC): Add PIN.
195 (MEMSPACE_REALLOC): Add PIN.
196 (MEMSPACE_FREE): Add PIN.
197 * libgomp.texi: Switch pinned trait to supported.
198 (MEMSPACE_VALIDATE): Add PIN.
199 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
200 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
201 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
202 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
204 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
206 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
207 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
208 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
210 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
212 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
213 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
215 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
217 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
219 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
221 * allocator.c (struct fort_alloc_splay_tree_key_s,
222 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
223 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
224 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
225 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
226 (GOMP_5.1.1): ... here.
227 * libgomp.texi (Impl. Status, Memory management): Update for
228 allocators/allocate directives.
229 * splay-tree.c: Handle splay_tree_static define to declare all
231 (splay_tree_lookup_node): New.
232 * splay-tree.h: Handle splay_tree_decl_only define.
233 (splay_tree_lookup_node): New prototype.
234 * target.c: Define splay_tree_static for 'reverse'.
235 * testsuite/libgomp.fortran/allocators-1.f90: New test.
236 * testsuite/libgomp.fortran/allocators-2.f90: New test.
237 * testsuite/libgomp.fortran/allocators-3.f90: New test.
238 * testsuite/libgomp.fortran/allocators-4.f90: New test.
239 * testsuite/libgomp.fortran/allocators-5.f90: New test.
241 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
243 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
244 (TEAM_ARENA_FREE): Likewise.
245 (TEAM_ARENA_END): Likewise.
246 (GCN_LOWLAT_HEAP): New.
247 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
248 (__gcn_lowlat_init): New prototype.
249 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
250 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
251 (TEAM_ARENA_FREE): Likewise.
252 (TEAM_ARENA_END): Likewise.
253 * plugin/plugin-gcn.c (lowlat_size): New variable.
254 (print_kernel_dispatch): Label the group_segment_size purpose.
255 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
256 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
257 (run_kernel): Use shadow; don't assume values.
258 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
259 * config/gcn/allocator.c: New file.
260 * libgomp.texi: Document low-latency implementation details.
262 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
264 * allocator.c (MEMSPACE_VALIDATE): New macro.
265 (omp_init_allocator): Use MEMSPACE_VALIDATE.
266 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
267 (omp_aligned_calloc): Likewise.
268 (omp_realloc): Likewise.
269 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
270 (MEMSPACE_VALIDATE): New macro.
271 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
272 * libgomp.texi: Document low-latency implementation details.
273 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
274 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
275 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
276 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
277 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
278 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
279 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
281 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
282 Kwok Cheung Yeung <kcy@codesourcery.com>
283 Thomas Schwinge <thomas@codesourcery.com>
285 * allocator.c (MEMSPACE_ALLOC): New macro.
286 (MEMSPACE_CALLOC): New macro.
287 (MEMSPACE_REALLOC): New macro.
288 (MEMSPACE_FREE): New macro.
289 (predefined_alloc_mapping): New array. Add _Static_assert to match.
290 (ARRAY_SIZE): New macro.
291 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
292 Implement fall-backs for predefined allocators. Simplify existing
294 (omp_free): Use MEMSPACE_FREE.
295 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
296 predefined allocators. Simplify existing fall-backs.
297 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
298 Implement fall-backs for predefined allocators. Simplify existing
300 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
301 (__nvptx_lowlat_init): New prototype.
302 (gomp_nvptx_main): Call __nvptx_lowlat_init.
303 * libgomp.texi: Update memory space table.
304 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
305 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
306 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
307 * basic-allocator.c: New file.
308 * config/nvptx/allocator.c: New file.
309 * testsuite/libgomp.c/omp_alloc-1.c: New test.
310 * testsuite/libgomp.c/omp_alloc-2.c: New test.
311 * testsuite/libgomp.c/omp_alloc-3.c: New test.
312 * testsuite/libgomp.c/omp_alloc-4.c: New test.
313 * testsuite/libgomp.c/omp_alloc-5.c: New test.
314 * testsuite/libgomp.c/omp_alloc-6.c: New test.
316 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
318 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
319 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
320 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
321 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
322 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
323 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
324 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
325 * testsuite/libgomp.c/declare-variant-4.c: New.
327 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
329 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
331 * testsuite/libgomp.c/declare-variant-3.c: New.
332 * testsuite/libgomp.c/declare-variant-3.h: Extend.
334 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
336 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
337 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
338 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
339 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
340 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
341 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
342 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
343 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
344 'scan-offload-tree-dump' to
345 'only_for_offload_target amdgcn-amdhsa'.
346 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
347 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
348 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
349 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
350 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
352 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
354 * testsuite/libgomp.c/declare-variant-3-sm30.c:
355 'dg-additional-options -foffload=nvptx-none'.
356 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
357 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
358 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
359 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
360 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
362 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
364 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
365 'scan-offload-ipa-dump's to
366 'only_for_offload_target amdgcn-amdhsa'.
367 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
368 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
370 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
372 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
375 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
377 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
378 (f75, f80, f): Add '__attribute__ ((noipa))'.
379 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
380 (gfx908, gfx90a, f): Likewise.
382 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
383 Andrew Jenner <andrew@codesourcery.com>
385 * plugin/plugin-gcn.c (max_isa_vgprs): New.
386 (run_kernel): CDNA2 devices have more VGPRs.
388 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
390 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
391 renamed section from TR11.
393 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
395 * config/linux/target-indirect.c: Move to...
396 * target-indirect.c: ...here.
398 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
400 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
401 * Makefile.in: Regenerate.
402 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
403 (GOMP_OFFLOAD_load_image): Add extra argument.
404 * libgomp.h (struct indirect_splay_tree_key_s): New.
405 (indirect_splay_tree_node, indirect_splay_tree,
406 indirect_splay_tree_key): New.
407 (indirect_splay_compare): New.
408 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
409 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
410 calls in target region and on indirect clause.
411 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
412 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
413 * oacc-host.c (host_load_image): Add extra argument.
414 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
415 enough, read host indirect functions table and pass to
417 * config/accel/target-indirect.c: New.
418 * config/linux/target-indirect.c: New.
419 * config/gcn/team.c (build_indirect_map): Add prototype.
420 (gomp_gcn_enter_kernel): Initialize support for indirect
421 function calls on GCN target.
422 * config/nvptx/team.c (build_indirect_map): Add prototype.
423 (gomp_nvptx_main): Initialize support for indirect function
424 calls on NVPTX target.
425 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
426 indirect 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
430 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
432 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
433 is high enough, Build address translation table and copy it to target
435 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
436 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
437 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
439 2023-11-05 Jakub Jelinek <jakub@redhat.com>
441 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
444 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
446 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
447 'acc_map_data' variant.
449 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
451 * oacc-parallel.c (GOACC_data_start): Handle
452 'GOACC_FLAG_LOCAL_DEVICE'.
453 (GOACC_parallel_keyed): Simplify accordingly.
454 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
456 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
458 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
459 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
460 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
461 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
462 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
464 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
466 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
467 GOACC_FLAG_LOCAL_DEVICE case.
468 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
470 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
472 * Makefile.am: Handle Darwin rpaths.
473 * Makefile.in: Regenerate.
474 * configure: Regenerate.
475 * configure.ac: Handle Darwin rpaths
477 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
479 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
480 (isa_hsa_name): Recognise gfx1030.
481 (isa_code): Likewise.
482 * team.c (defined): Remove s_endpgm.
484 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
486 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
489 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
491 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
492 improve wording especially for Fortran; mention -fopenmp-simd.
493 (Enabling OpenACC): Minor cleanup; remove conditional compilation
496 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
498 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
499 Actually document what the function does.
500 (GCC_ACC_NOTIFY): Remove unused env var.
502 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
504 * libgomp.texi: Replace most future tense by present tense.
506 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
508 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
509 dg-additional-options "-fdump-tree-gimple"; fix scan.
511 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
513 * libgomp.texi: Fix some typos.
514 (Memory Management Routines): Document remaining 5.x routines.
515 (Memory allocation): Make clear when the section applies.
517 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
519 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
520 supports the allocate directive for stack variables.
521 * testsuite/libgomp.fortran/allocate-5.f90: New test.
522 * testsuite/libgomp.fortran/allocate-6.f90: New test.
523 * testsuite/libgomp.fortran/allocate-7.f90: New test.
524 * testsuite/libgomp.fortran/allocate-8.f90: New test.
526 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
528 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
530 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
531 clarify MANDATORY behavior.
533 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
535 * env.c (initialize_env): Use do_adjust_default_spincount.
536 * config/linux/x86/spincount.h: New file.
538 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
540 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
542 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
544 * libgomp.texi (Device Memory Routines): New.
546 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
548 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
549 and that other target archs have no 'arch'/'isa' traits implemented.
551 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
553 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
554 implemented for C only.
555 * testsuite/libgomp.c/allocate-4.c: New test.
556 * testsuite/libgomp.c/allocate-5.c: New test.
557 * testsuite/libgomp.c/allocate-6.c: New test.
559 2023-09-20 Jakub Jelinek <jakub@redhat.com>
562 * libgomp.texi: Mark decl attribute was added to the C++ attribute
563 syntax as implemented.
565 2023-09-19 Jakub Jelinek <jakub@redhat.com>
568 * env.c (initialize_env): Don't dereference environ if it is NULL.
571 2023-09-18 Richard Biener <rguenther@suse.de>
573 PR tree-optimization/111294
574 * team.c (gomp_team_start): Assert alloca size to avoid false
575 positive alloc-size diagnostic.
577 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
578 Chung-Lin Tang <cltang@codesourcery.com>
582 * configure.ac: Revert earlier changes, instead
583 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
584 * Makefile.in: Regenerate.
585 * configure: Likewise.
586 * testsuite/Makefile.in: Likewise.
587 * testsuite/lib/libgomp.exp (libgomp_init): Remove
588 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
589 If '--with-build-sysroot=[...]' was specified, use it for
591 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
592 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
593 (SYSROOT_CFLAGS_FOR_TARGET): Set.
594 * testsuite/libgomp.c++/c++.exp (lang_source_re)
595 (lang_include_flags): Set for build-tree testing.
596 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
597 (lang_include_flags): Likewise.
599 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
601 * libgomp.texi (Memory Management Routines): New; add documentation for
602 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
603 omp_get_default_allocator.
604 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
606 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
608 * target.c (gomp_unload_device): Remove tailing whitespace.
610 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
611 Thomas Schwinge <thomas@codesourcery.com>
613 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
615 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
617 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
619 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
621 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
622 * testsuite/libgomp.fortran/imperfect1.f90: New.
623 * testsuite/libgomp.fortran/imperfect2.f90: New.
624 * testsuite/libgomp.fortran/imperfect3.f90: New.
625 * testsuite/libgomp.fortran/imperfect4.f90: New.
626 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
627 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
628 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
629 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
631 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
633 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
634 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
635 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
636 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
637 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
638 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
639 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
640 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
641 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
642 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
644 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
646 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
647 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
648 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
649 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
650 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
651 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
652 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
653 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
654 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
655 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
656 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
657 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
658 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
660 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
662 * testsuite/lib/libgomp.exp: Add effective target.
663 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
666 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
668 * libgomp.texi (OpenMP 5.2 status): Add depobj with
669 destroy-var argument as 'N'. Mark defaultmap with
670 'all' category as 'Y'.
672 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
675 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
677 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
680 * allocator.c (gomp_init_libnuma): Call numa_available; if
681 not available or not returning 0, disable libnuma usage.
683 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
685 * configure: Regenerate.
687 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
689 * configure: Regenerate.
691 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
693 * configure: Regenerate.
695 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
697 * configure: Regenerate.
699 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
701 * configure: Regenerate.
703 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
705 * configure: Regenerate.
707 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
709 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
710 GOMP_OFFLOAD_CAP_SHARED_MEM.
711 (omp_target_memcpy_rect_copy): Likewise for lock condition.
712 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
714 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
715 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
716 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
718 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
720 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
721 GOMP_OFFLOAD_memcpy3d): New prototypes.
722 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
724 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
725 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
726 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
727 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
728 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
729 GOMP_OFFLOAD_memcpy3d): New.
730 * target.c (omp_target_memcpy_rect_worker):
731 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
732 Permit all device-to-device copyies; invoke new plugins for
733 2D and 3D copying when available.
734 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
735 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
736 * testsuite/libgomp.fortran/target-12.f90: Likewise.
737 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
739 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
741 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
742 (Tasking Routines): Document omp_in_explicit_task.
743 (Implementation-defined ICV Initialization): Use @ref not @code.
745 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
747 * libgomp.texi (OpenMP Runtime Library Routines):
748 Split long list by adding sections and moving routines there.
749 (OMP_ALLOCATORS): Fix typo.
751 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
754 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
755 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
757 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
758 test file; tests are in non-rectangular-loop-1.f90.
759 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
760 testcase to use a non-constant step to retain the 'sorry' test.
761 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
763 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
764 Chung-Lin Tang <cltang@codesourcery.com>
766 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
767 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
769 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
771 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
772 the traits. Add crossref to 'Memory allocation'.
773 (Memory allocation): Refer to OMP_ALLOCATOR for the available
774 traits and allocators/mem spaces; document the default value
775 for the pool_size trait.
777 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
779 * allocator.c (omp_init_allocator): Check whether symbol from
780 dlopened libnuma is available before using libnuma for
783 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
785 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
786 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
787 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
789 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
791 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
792 'Memory allocation' section which contains the full status.
793 (TR11): Remove differently worded duplicated entry.
795 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
797 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
798 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
799 add GOMP_MEMKIND_LIBNUMA.
800 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
801 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
802 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
803 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
805 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
806 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
807 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
808 updated for libnuma usage.
809 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
810 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
812 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
814 * allocator.c (omp_init_allocator): Use malloc for
815 omp_high_bw_mem_space when the memkind lib is unavailable
816 instead of returning omp_null_allocator.
817 * libgomp.texi (OpenMP 5.0): Fix typo.
818 (Memory allocation with libmemkind): Document implementation
821 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
823 * libgomp.texi: Use @var for ICV vars.
824 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
825 document which ICV is set and which scope the ICV has; extend/cleanup
827 (Implementation-defined ICV Initialization): New.
828 (nvptx): Document the implementation-defined used per-warp stack size.
830 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
832 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
835 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
837 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
838 as expected dg-output.
840 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
843 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
844 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
845 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
846 * testsuite/libgomp.c/target-19.c: Update expected value.
847 * testsuite/libgomp.c++/target-18.C: Likewise.
848 * testsuite/libgomp.c++/target-19.C: Likewise.
849 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
850 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
851 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
853 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
855 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
856 gomp_init_targets_once was called before using default-device-var.
857 * testsuite/libgomp.c/target-55.c: New test.
858 * testsuite/libgomp.c/target-55a.c: New test.
860 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
862 * env.c (gomp_def_allocator_envvar): New var.
863 (parse_allocator): Handle OpenMP 5.1 syntax.
865 (omp_display_env): Output gomp_def_allocator_envvar
866 for an allocator with traits.
867 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
868 OMP_DISPLAY_AFFINITY): New.
869 * testsuite/libgomp.c/allocator-1.c: New test.
870 * testsuite/libgomp.c/allocator-2.c: New test.
871 * testsuite/libgomp.c/allocator-3.c: New test.
872 * testsuite/libgomp.c/allocator-4.c: New test.
873 * testsuite/libgomp.c/allocator-5.c: New test.
874 * testsuite/libgomp.c/allocator-6.c: New test.
876 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
878 * target.c (resolve_device): Align a
879 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
880 * testsuite/libgomp.c/target-51.c: Adjust.
882 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
884 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
886 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
888 * testsuite/libgomp.c/simd-math-1.c: Remove
889 '-foffload-options=-lm'.
890 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
892 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
895 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
897 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
898 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
901 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
903 * testsuite/libgomp.c/target-51.c: Fix typo.
905 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
907 * env.c (gomp_default_icv_values): Init default_device_var to
908 an nonconforming value - INT_MIN.
909 (initialize_env): After env-var parsing, set default_device_var to
910 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
911 (omp_display_env): If default_device_var is INT_MIN, call
912 gomp_init_targets_once.
913 * icv-device.c (omp_get_default_device): Likewise.
914 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
915 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
916 * target.c (resolve_device): Improve error message device-num < 0
917 with 'mandatory' and no no-host devices available.
918 (gomp_target_init): Set default-device-var if INT_MIN.
919 * testsuite/libgomp.c/target-48.c: New test.
920 * testsuite/libgomp.c/target-49.c: New test.
921 * testsuite/libgomp.c/target-50.c: New test.
922 * testsuite/libgomp.c/target-50a.c: New test.
923 * testsuite/libgomp.c/target-51.c: New test.
924 * testsuite/libgomp.c/target-52.c: New test.
925 * testsuite/libgomp.c/target-53.c: New test.
926 * testsuite/libgomp.c/target-54.c: New test.
928 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
931 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
932 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
934 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
936 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
937 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
938 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
940 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
941 changed error message.
942 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
943 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
944 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
945 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
946 extend testcase to check that data is copied when needed.
947 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
948 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
950 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
951 Tobias Burnus <tobias@codesourcery.com>
953 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
954 also for non-offload_device targets; check that it runs
955 successfully for those and for all until a checkpoint for all
956 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
957 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
958 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
959 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
960 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
961 add missing vars to map clause.
963 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
965 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
966 unified_address requirement as supported.
967 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
968 'unified_address' from the not-supported requirements.
970 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
971 Tobias Burnus <tobias@codesourcery.com>
973 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
974 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
975 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
977 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
978 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
979 Emit runtime error if memory region not present.
980 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
981 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
982 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
983 * testsuite/libgomp.fortran/target-present-1.f90: New test.
984 * testsuite/libgomp.fortran/target-present-2.f90: New test.
985 * testsuite/libgomp.fortran/target-present-3.f90: New test.
987 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
990 * testsuite/lib/libgomp.exp: 'flock' through stdout.
991 * testsuite/flock: New.
992 * configure.ac (FLOCK): Point to that if no 'flock' available, but
994 * configure: Regenerate.
996 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
998 * configure.ac (PERL): Remove.
999 * configure: Regenerate.
1000 * Makefile.in: Likewise.
1001 * testsuite/Makefile.in: Likewise.
1003 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
1005 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1007 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
1009 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1011 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
1014 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1015 * config/nvptx/target.c (GOMP_teams4): Likewise.
1016 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1017 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1018 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1019 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1021 2023-05-19 Jakub Jelinek <jakub@redhat.com>
1024 * configure.ac (link_gomp): Include also $DL_LIBS.
1025 * configure: Regenerated.
1027 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
1029 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1031 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1032 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1033 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1034 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1036 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1039 * configure.ac: Look for 'flock'.
1040 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1041 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1042 * testsuite/lib/libgomp.exp: ... but here, instead.
1043 (libgomp_load): Override for parallel testing.
1044 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1045 * configure: Regenerate.
1046 * Makefile.in: Regenerate.
1047 * testsuite/Makefile.in: Regenerate.
1049 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050 Thomas Schwinge <thomas@codesourcery.com>
1053 * testsuite/Makefile.am (PWD_COMMAND): New variable.
1054 (%/site.exp): New target.
1055 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1056 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1057 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1059 (check_DEJAGNU_libgomp_targets): New variables.
1060 ($(check_DEJAGNU_libgomp_targets)): New target.
1061 ($(check_DEJAGNU_libgomp_targets)): New dependency.
1062 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1063 * testsuite/Makefile.in: Regenerate.
1064 * testsuite/lib/libgomp.exp: For parallel testing,
1065 'load_file ../libgomp-test-support.exp'.
1067 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1070 * configure.ac: 'AC_SUBST(CXX)'.
1071 * configure: Regenerate.
1072 * Makefile.in: Likewise.
1073 * testsuite/Makefile.in: Likewise.
1074 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1075 (GFORTRAN_UNDER_TEST): Set.
1076 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1077 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1078 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1079 * testsuite/libgomp.fortran/fortran.exp: Use
1080 'GFORTRAN_UNDER_TEST'.
1081 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1083 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1086 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1088 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1089 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1090 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1091 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1093 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1094 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1095 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1098 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
1101 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1102 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1104 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1106 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1107 'lang_library_path' into a list of 'lang_library_paths'.
1108 * testsuite/libgomp.c++/c++.exp: Adjust.
1109 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1110 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1112 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1114 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1116 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1117 at 'lang_test_file_found'.
1118 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1119 'return' early if not able to test. Simplify 'ld_library_path' setup.
1120 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1121 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1122 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1124 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1126 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1128 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1129 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1130 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1132 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1134 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1135 * testsuite/libgomp.c/c.exp: Likewise.
1136 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1137 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1138 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1139 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1140 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1142 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1144 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1145 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1146 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1147 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1148 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1150 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1151 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1152 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1153 'lang_test_file_found' instead of 'lang_test_file'.
1155 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1157 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1159 * testsuite/libgomp.c++/c++.exp: Likewise.
1160 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1162 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1164 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1165 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1167 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1169 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1170 of 'libstdcxx_includes'.
1171 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1173 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1175 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1176 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1177 * libgomp.h (gomp_target_rev): Adjust.
1178 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1179 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1180 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1181 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1182 (rev_off_host_to_dev_cpy): Remove.
1183 (GOMP_OFFLOAD_run): Adjust.
1185 2023-05-04 Julian Brown <julian@codesourcery.com>
1188 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1189 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1190 vector length warning.
1191 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1192 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1193 missing copyin/copyout variable. Ignore vector length warnings.
1194 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1195 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1196 vector length warnings.
1197 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1199 2023-04-28 Julian Brown <julian@codesourcery.com>
1202 * testsuite/libgomp.fortran/pr109622.f90: New test.
1203 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1204 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1206 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1208 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1209 * testsuite/libgomp.c/scan-23.c: New test.
1210 * testsuite/libgomp.fortran/scan-2.f90: New test.
1212 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1214 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1215 weak_undefined options.
1217 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1219 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1221 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1224 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1227 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1230 * target.c (gomp_map_vars_internal): Allow for
1231 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1232 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1233 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1234 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1235 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1237 (gomp_offload_free): Remove.
1238 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1239 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1240 (cuda_free_argmem): Remove.
1241 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1244 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1246 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1247 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1250 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1252 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1253 'GOMP_MAP_IF_PRESENT'.
1254 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1255 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1256 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1257 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1258 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1260 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1262 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1264 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1267 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1269 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1270 another aspect of OpenACC 'async' semantics.
1272 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1274 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1276 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1277 Verify 'acc_ev_alloc', 'acc_ev_free'.
1279 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1282 * env.c (wait_policy): Initialize to -1.
1283 (initialize_icvs): Initialize icvs->wait_policy to -1.
1284 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1286 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1288 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1290 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1291 Paul-Antoine Arras <pa@codesourcery.com>
1293 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1295 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1297 PR middle-end/108546
1298 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1299 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1301 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1303 * testsuite/libgomp.fortran/alloc-10.f90: Use
1304 '-Wno-complain-wrong-lang'.
1305 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1306 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1307 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1308 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1309 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1310 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1311 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1312 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1313 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1314 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1316 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1318 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1319 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1320 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1321 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1324 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1326 * libgomp.texi: Fix typos - theads -> threads.
1328 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1330 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1331 comment typo and improve its wording.
1333 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1335 * target.c (gomp_target_rev): Dereference ptr
1336 to get device address.
1337 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1338 for unallocated allocatable.
1340 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1342 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1344 (GOMP_target_enter_exit_data): If the next map item is
1345 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1346 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1348 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1351 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1352 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1353 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1354 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1355 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1356 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1358 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1360 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1361 offloading compilation.
1363 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1365 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1366 freeing not allocated memory.
1367 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1369 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1371 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1373 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1374 reverse-offload requirement.
1376 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1378 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1379 (DEFAULT_TEAM_ARENA_SIZE): New define.
1380 (struct heap): Move to this file.
1381 (struct kernargs_abi): Likewise.
1382 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1384 * libgomp.h: Include libgomp-gcn.h.
1385 (TEAM_ARENA_SIZE): Remove.
1386 (team_malloc): Update the error message.
1387 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1388 struct kernargs_abi.
1389 (struct agent_info): Rename team arenas to ephemeral memories.
1390 (struct team_arena_list): Rename ....
1391 (struct ephemeral_memories_list): to this.
1392 (struct heap): Delete.
1393 (team_arena_size): New variable.
1394 (stack_size): New variable.
1395 (print_kernel_dispatch): Update debug messages.
1396 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1397 Read GCN_STACK_SIZE.
1398 (get_team_arena): Rename ...
1399 (configure_ephemeral_memories): ... to this, and set up stacks.
1400 (release_team_arena): Rename ...
1401 (release_ephemeral_memories): ... to this.
1402 (destroy_team_arenas): Rename ...
1403 (destroy_ephemeral_memories): ... to this.
1404 (create_kernel_dispatch): Add num_threads parameter.
1405 Adjust for kernargs_abi refactor and ephemeral memories.
1406 (release_kernel_dispatch): Adjust for ephemeral memories.
1407 (run_kernel): Pass thread-count to create_kernel_dispatch.
1408 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1409 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1411 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1413 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1415 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1417 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1418 usage, remove unused -fdump-tree-original.
1419 * testsuite/libgomp.fortran/allocate-4.f90: New.
1421 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1423 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1424 (GCN): Add item about 'omp requires'.
1425 (nvptx): Likewise; add item about reverse offload.
1427 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1430 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1432 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1434 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1435 loop nest back to 'P' as Fortran support is incomplete.
1437 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1439 PR middle-end/108459
1440 * testsuite/libgomp.c/pr108459.c: New test.
1442 2023-01-17 Martin Liska <mliska@suse.cz>
1444 * Makefile.in: Regenerate.
1445 * configure: Regenerate.
1447 2023-01-07 LIU Hao <lh_mouse@126.com>
1449 PR middle-end/108300
1450 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1453 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1456 * testsuite/libgomp.c++/pr108286.C: New test.
1458 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1460 * libgomp.texi: Bump @copying's copyright year.
1462 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1465 * config/nvptx/bar.c (generation_to_barrier): Remove.
1466 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1467 (GOMP_WAIT_H): Remove.
1468 (#include "../linux/bar.c"): Remove.
1469 (gomp_barrier_wait_end): New function.
1470 (gomp_barrier_wait): Likewise.
1471 (gomp_barrier_wait_last): Likewise.
1472 (gomp_team_barrier_wait_end): Likewise.
1473 (gomp_team_barrier_wait): Likewise.
1474 (gomp_team_barrier_wait_final): Likewise.
1475 (gomp_team_barrier_wait_cancel_end): Likewise.
1476 (gomp_team_barrier_wait_cancel): Likewise.
1477 (gomp_team_barrier_cancel): Likewise.
1478 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1479 (gomp_barrier_init): Remove init of waiters, lock fields.
1480 (gomp_team_barrier_wake): Remove prototype, add new static inline
1483 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1486 * testsuite/libgomp.c++/pr108180.C: New test.
1488 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1490 PR libfortran/108056
1491 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1492 accidentally added file.
1494 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1496 PR libfortran/108056
1497 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1499 2022-12-14 Julian Brown <julian@codesourcery.com>
1501 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1504 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1506 * libgomp.h (struct target_mem_desc): Predeclare; move
1507 below after 'reverse_splay_tree_node' and add rev_array
1509 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1510 (reverse_splay_tree_node, reverse_splay_tree,
1511 reverse_splay_tree_key): New typedef.
1512 (struct gomp_device_descr): Add mem_map_rev member.
1513 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1514 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1515 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1516 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1517 splay_tree_callback but returning int not void.
1518 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1519 taking splay_tree_callback_stop as argument.
1520 * splay-tree.c (splay_tree_foreach_internal_lazy,
1521 splay_tree_foreach_lazy): New; but early exit if callback returns
1523 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1524 (gomp_map_lookup_rev): New.
1525 (gomp_load_image_to_device): Handle reverse-offload function
1527 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1528 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1529 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1530 gomp_map_cdata_lookup): New auxiliary structs and functions for
1532 (gomp_target_rev): Implement reverse offloading and its mapping.
1533 (gomp_target_init): Init current_device.mem_map_rev.root.
1534 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1535 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1536 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1537 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1538 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1539 mapping of on-device allocated variables.
1541 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1543 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1544 item about 'align'; mark clause as 'Y' and directive as 'N'.
1545 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1546 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1548 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1550 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1551 allow processing of device-specific values.
1552 (omp_set_teams_thread_limit): Likewise.
1554 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1555 (omp_set_teams_thread_limit): Likewise.
1557 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1559 (omp_set_teams_thread_limit): Likewise.
1560 * icv.c (omp_set_teams_thread_limit): Removed.
1561 (omp_get_teams_thread_limit): Likewise.
1563 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1564 to the limitation of the number of teams.
1565 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1566 the number of teams by twice the number of compute units.
1567 (parse_target_attributes): Limit the number of teams on gcn offload
1569 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1571 (gomp_load_image_to_device): Added a size check for the ICVs struct
1573 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1574 copy back the ICV values from device to host.
1575 (GOMP_target_ext): Update the number of teams and threads in the kernel
1576 args also considering device-specific values.
1577 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1578 of OMP_TEAMS_THREAD_LIMIT from the environment.
1579 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1580 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1581 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1582 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1583 * testsuite/libgomp.fortran/icv-5.f90: New test.
1584 * testsuite/libgomp.fortran/icv-6.f90: New test.
1586 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1588 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1589 (TR11): Add missing '@tab N @tab'.
1591 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1593 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1595 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1597 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1598 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1599 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1600 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1601 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1602 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1603 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1605 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1607 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1609 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1611 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1612 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1613 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1614 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1616 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1618 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1619 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1620 as valid and the code having no reverse-offload code.
1621 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1623 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1625 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1626 and status for Technical Report (TR) 11.
1628 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1630 * config/gcn/libgomp-gcn.h (struct output):
1631 Remove 'msg_u64' from the union, change
1632 value_u64[2] to value_u64[6].
1633 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1634 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1637 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1639 * config/gcn/libgomp-gcn.h: New file; contains
1640 struct output, declared previously in plugin-gcn.c.
1641 * config/gcn/target.c: Include it.
1642 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1643 (GOMP_target_ext): Handle reverse offload.
1644 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1645 (struct kernargs): Replace struct def by the one
1646 from libgomp-gcn.h for output_data.
1647 (process_reverse_offload): New.
1648 (console_output): Call it.
1650 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1651 Andrew Stubbs <ams@codesourcery.com>
1653 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1654 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1656 2022-11-14 Martin Liska <mliska@suse.cz>
1659 2022-11-14 Martin Liska <mliska@suse.cz>
1661 * doc/amd-radeon-gcn.rst: New file.
1662 * doc/conf.py: New file.
1663 * doc/copyright.rst: New file.
1664 * doc/cuda-streams-usage.rst: New file.
1665 * doc/enabling-openacc.rst: New file.
1666 * doc/enabling-openmp.rst: New file.
1667 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1668 * doc/first-invocation-openacc-library-api.rst: New file.
1669 * doc/funding.rst: New file.
1670 * doc/general-public-license-3.rst: New file.
1671 * doc/gnu-free-documentation-license.rst: New file.
1672 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1673 * doc/index.rst: New file.
1674 * doc/indices-and-tables.rst: New file.
1675 * doc/introduction.rst: New file.
1676 * doc/memory-allocation-with-libmemkind.rst: New file.
1677 * doc/nvptx.rst: New file.
1678 * doc/offload-target-specifics.rst: New file.
1679 * doc/openacc-environment-variables.rst: New file.
1680 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1681 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1682 * doc/openacc-environment-variables/accproflib.rst: New file.
1683 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1684 * doc/openacc-introduction.rst: New file.
1685 * doc/openacc-library-and-environment-variables.rst: New file.
1686 * doc/openacc-library-interoperability.rst: New file.
1687 * doc/openacc-profiling-interface.rst: New file.
1688 * doc/openacc-runtime-library-routines.rst: New file.
1689 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1690 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1691 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1692 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1693 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1694 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1695 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1696 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1697 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1698 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1699 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1700 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1701 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1702 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1703 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1704 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1705 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1706 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1707 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1708 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1709 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1710 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1711 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1712 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1713 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1714 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1715 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1716 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1717 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1718 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1719 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1720 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1721 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1722 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1723 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1724 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1725 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1726 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1727 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1728 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1729 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1730 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1731 * doc/openmp-context-selectors.rst: New file.
1732 * doc/openmp-environment-variables.rst: New file.
1733 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1734 * doc/openmp-environment-variables/gompdebug.rst: New file.
1735 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1736 * doc/openmp-environment-variables/gompspincount.rst: New file.
1737 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1738 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1739 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1740 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1741 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1742 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1743 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1744 * doc/openmp-environment-variables/ompnested.rst: New file.
1745 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1746 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1747 * doc/openmp-environment-variables/ompplaces.rst: New file.
1748 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1749 * doc/openmp-environment-variables/ompschedule.rst: New file.
1750 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1751 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1752 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1753 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1754 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1755 * doc/openmp-implementation-specifics.rst: New file.
1756 * doc/openmp-implementation-status.rst: New file.
1757 * doc/openmp-implementation-status/openmp-45.rst: New file.
1758 * doc/openmp-implementation-status/openmp-50.rst: New file.
1759 * doc/openmp-implementation-status/openmp-51.rst: New file.
1760 * doc/openmp-implementation-status/openmp-52.rst: New file.
1761 * doc/openmp-runtime-library-routines.rst: New file.
1762 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
1763 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
1764 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
1765 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
1766 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
1767 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
1768 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
1769 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
1770 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
1771 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
1772 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
1773 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
1774 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
1775 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
1776 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
1777 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
1778 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
1779 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
1780 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
1781 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
1782 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
1783 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
1784 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
1785 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
1786 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
1787 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
1788 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
1789 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
1790 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
1791 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
1792 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
1793 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
1794 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
1795 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
1796 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
1797 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
1798 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
1799 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
1800 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
1801 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
1802 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
1803 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
1804 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
1805 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
1806 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
1807 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
1808 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
1809 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
1810 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
1811 * doc/reporting-bugs.rst: New file.
1812 * doc/the-libgomp-abi.rst: New file.
1813 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
1814 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
1815 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
1816 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
1818 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
1819 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
1820 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
1821 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
1822 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
1823 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
1824 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
1825 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
1826 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
1827 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
1828 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
1830 2022-11-14 Martin Liska <mliska@suse.cz>
1833 2022-11-14 Martin Liska <mliska@suse.cz>
1835 * Makefile.in: Support Sphinx based documentation.
1837 2022-11-14 Martin Liska <mliska@suse.cz>
1840 2022-11-14 Martin Liska <mliska@suse.cz>
1842 * libgomp.texi: Removed.
1844 2022-11-14 Martin Liska <mliska@suse.cz>
1847 2022-11-14 Martin Liska <mliska@suse.cz>
1849 * Makefile.in: Support --with-sphinx-build.
1850 * configure.ac: Likewise..
1851 * configure: Regenerate.
1853 2022-11-14 Martin Liska <mliska@suse.cz>
1856 2022-11-09 Martin Liska <mliska@suse.cz>
1858 * Makefile.in: Build info pages conditionally.
1860 2022-11-14 Martin Liska <mliska@suse.cz>
1863 2022-11-14 Martin Liska <mliska@suse.cz>
1865 * doc/amd-radeon-gcn.rst:
1866 Add trailing newline.
1867 * doc/copyright.rst:
1868 Add trailing newline.
1869 * doc/cuda-streams-usage.rst:
1870 Add trailing newline.
1871 * doc/enabling-openacc.rst:
1872 Add trailing newline.
1873 * doc/enabling-openmp.rst:
1874 Add trailing newline.
1875 * doc/first-invocation-nvidia-cublas-library-api.rst:
1876 Add trailing newline.
1877 * doc/first-invocation-openacc-library-api.rst:
1878 Add trailing newline.
1880 Add trailing newline.
1881 * doc/general-public-license-3.rst:
1882 Add trailing newline.
1883 * doc/gnu-free-documentation-license.rst:
1884 Add trailing newline.
1885 * doc/implementation-status-and-implementation-defined-behavior.rst:
1886 Add trailing newline.
1888 Add trailing newline.
1889 * doc/indices-and-tables.rst:
1890 Add trailing newline.
1891 * doc/introduction.rst:
1892 Add trailing newline.
1893 * doc/memory-allocation-with-libmemkind.rst:
1894 Add trailing newline.
1896 Add trailing newline.
1897 * doc/offload-target-specifics.rst:
1898 Add trailing newline.
1899 * doc/openacc-environment-variables.rst:
1900 Add trailing newline.
1901 * doc/openacc-environment-variables/accdevicenum.rst:
1902 Add trailing newline.
1903 * doc/openacc-environment-variables/accdevicetype.rst:
1904 Add trailing newline.
1905 * doc/openacc-environment-variables/accproflib.rst:
1906 Add trailing newline.
1907 * doc/openacc-environment-variables/gccaccnotify.rst:
1908 Add trailing newline.
1909 * doc/openacc-introduction.rst:
1910 Add trailing newline.
1911 * doc/openacc-library-and-environment-variables.rst:
1912 Add trailing newline.
1913 * doc/openacc-library-interoperability.rst:
1914 Add trailing newline.
1915 * doc/openacc-profiling-interface.rst:
1916 Add trailing newline.
1917 * doc/openacc-runtime-library-routines.rst:
1918 Add trailing newline.
1919 * doc/openacc-runtime-library-routines/accasynctest.rst:
1920 Add trailing newline.
1921 * doc/openacc-runtime-library-routines/accasynctestall.rst:
1922 Add trailing newline.
1923 * doc/openacc-runtime-library-routines/accattach.rst:
1924 Add trailing newline.
1925 * doc/openacc-runtime-library-routines/acccopyin.rst:
1926 Add trailing newline.
1927 * doc/openacc-runtime-library-routines/acccopyout.rst:
1928 Add trailing newline.
1929 * doc/openacc-runtime-library-routines/acccreate.rst:
1930 Add trailing newline.
1931 * doc/openacc-runtime-library-routines/accdelete.rst:
1932 Add trailing newline.
1933 * doc/openacc-runtime-library-routines/accdetach.rst:
1934 Add trailing newline.
1935 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
1936 Add trailing newline.
1937 * doc/openacc-runtime-library-routines/accfree.rst:
1938 Add trailing newline.
1939 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
1940 Add trailing newline.
1941 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
1942 Add trailing newline.
1943 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
1944 Add trailing newline.
1945 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
1946 Add trailing newline.
1947 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
1948 Add trailing newline.
1949 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
1950 Add trailing newline.
1951 * doc/openacc-runtime-library-routines/accgetproperty.rst:
1952 Add trailing newline.
1953 * doc/openacc-runtime-library-routines/acchostptr.rst:
1954 Add trailing newline.
1955 * doc/openacc-runtime-library-routines/accinit.rst:
1956 Add trailing newline.
1957 * doc/openacc-runtime-library-routines/accispresent.rst:
1958 Add trailing newline.
1959 * doc/openacc-runtime-library-routines/accmalloc.rst:
1960 Add trailing newline.
1961 * doc/openacc-runtime-library-routines/accmapdata.rst:
1962 Add trailing newline.
1963 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
1964 Add trailing newline.
1965 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
1966 Add trailing newline.
1967 * doc/openacc-runtime-library-routines/accondevice.rst:
1968 Add trailing newline.
1969 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
1970 Add trailing newline.
1971 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
1972 Add trailing newline.
1973 * doc/openacc-runtime-library-routines/accproflookup.rst:
1974 Add trailing newline.
1975 * doc/openacc-runtime-library-routines/accprofregister.rst:
1976 Add trailing newline.
1977 * doc/openacc-runtime-library-routines/accprofunregister.rst:
1978 Add trailing newline.
1979 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
1980 Add trailing newline.
1981 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
1982 Add trailing newline.
1983 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
1984 Add trailing newline.
1985 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
1986 Add trailing newline.
1987 * doc/openacc-runtime-library-routines/accshutdown.rst:
1988 Add trailing newline.
1989 * doc/openacc-runtime-library-routines/accunmapdata.rst:
1990 Add trailing newline.
1991 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
1992 Add trailing newline.
1993 * doc/openacc-runtime-library-routines/accupdateself.rst:
1994 Add trailing newline.
1995 * doc/openacc-runtime-library-routines/accwait.rst:
1996 Add trailing newline.
1997 * doc/openacc-runtime-library-routines/accwaitall.rst:
1998 Add trailing newline.
1999 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2000 Add trailing newline.
2001 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2002 Add trailing newline.
2003 * doc/openmp-context-selectors.rst:
2004 Add trailing newline.
2005 * doc/openmp-environment-variables.rst:
2006 Add trailing newline.
2007 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2008 Add trailing newline.
2009 * doc/openmp-environment-variables/gompdebug.rst:
2010 Add trailing newline.
2011 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2012 Add trailing newline.
2013 * doc/openmp-environment-variables/gompspincount.rst:
2014 Add trailing newline.
2015 * doc/openmp-environment-variables/gompstacksize.rst:
2016 Add trailing newline.
2017 * doc/openmp-environment-variables/ompcancellation.rst:
2018 Add trailing newline.
2019 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2020 Add trailing newline.
2021 * doc/openmp-environment-variables/ompdisplayenv.rst:
2022 Add trailing newline.
2023 * doc/openmp-environment-variables/ompdynamic.rst:
2024 Add trailing newline.
2025 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2026 Add trailing newline.
2027 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2028 Add trailing newline.
2029 * doc/openmp-environment-variables/ompnested.rst:
2030 Add trailing newline.
2031 * doc/openmp-environment-variables/ompnumteams.rst:
2032 Add trailing newline.
2033 * doc/openmp-environment-variables/ompnumthreads.rst:
2034 Add trailing newline.
2035 * doc/openmp-environment-variables/ompplaces.rst:
2036 Add trailing newline.
2037 * doc/openmp-environment-variables/ompprocbind.rst:
2038 Add trailing newline.
2039 * doc/openmp-environment-variables/ompschedule.rst:
2040 Add trailing newline.
2041 * doc/openmp-environment-variables/ompstacksize.rst:
2042 Add trailing newline.
2043 * doc/openmp-environment-variables/omptargetoffload.rst:
2044 Add trailing newline.
2045 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2046 Add trailing newline.
2047 * doc/openmp-environment-variables/ompthreadlimit.rst:
2048 Add trailing newline.
2049 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2050 Add trailing newline.
2051 * doc/openmp-implementation-specifics.rst:
2052 Add trailing newline.
2053 * doc/openmp-implementation-status.rst:
2054 Add trailing newline.
2055 * doc/openmp-implementation-status/openmp-45.rst:
2056 Add trailing newline.
2057 * doc/openmp-implementation-status/openmp-50.rst:
2058 Add trailing newline.
2059 * doc/openmp-implementation-status/openmp-51.rst:
2060 Add trailing newline.
2061 * doc/openmp-implementation-status/openmp-52.rst:
2062 Add trailing newline.
2063 * doc/openmp-runtime-library-routines.rst:
2064 Add trailing newline.
2065 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2066 Add trailing newline.
2067 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2068 Add trailing newline.
2069 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2070 Add trailing newline.
2071 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2072 Add trailing newline.
2073 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2074 Add trailing newline.
2075 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2076 Add trailing newline.
2077 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2078 Add trailing newline.
2079 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2080 Add trailing newline.
2081 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2082 Add trailing newline.
2083 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2084 Add trailing newline.
2085 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2086 Add trailing newline.
2087 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2088 Add trailing newline.
2089 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2090 Add trailing newline.
2091 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2092 Add trailing newline.
2093 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2094 Add trailing newline.
2095 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2096 Add trailing newline.
2097 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2098 Add trailing newline.
2099 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2100 Add trailing newline.
2101 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2102 Add trailing newline.
2103 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2104 Add trailing newline.
2105 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2106 Add trailing newline.
2107 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2108 Add trailing newline.
2109 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2110 Add trailing newline.
2111 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2112 Add trailing newline.
2113 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2114 Add trailing newline.
2115 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2116 Add trailing newline.
2117 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2118 Add trailing newline.
2119 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2120 Add trailing newline.
2121 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2122 Add trailing newline.
2123 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2124 Add trailing newline.
2125 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2126 Add trailing newline.
2127 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2128 Add trailing newline.
2129 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2130 Add trailing newline.
2131 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2132 Add trailing newline.
2133 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2134 Add trailing newline.
2135 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2136 Add trailing newline.
2137 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2138 Add trailing newline.
2139 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2140 Add trailing newline.
2141 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2142 Add trailing newline.
2143 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2144 Add trailing newline.
2145 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2146 Add trailing newline.
2147 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2148 Add trailing newline.
2149 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2150 Add trailing newline.
2151 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2152 Add trailing newline.
2153 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2154 Add trailing newline.
2155 * doc/openmp-runtime-library-routines/omptestlock.rst:
2156 Add trailing newline.
2157 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2158 Add trailing newline.
2159 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2160 Add trailing newline.
2161 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2162 Add trailing newline.
2163 * doc/reporting-bugs.rst:
2164 Add trailing newline.
2165 * doc/the-libgomp-abi.rst:
2166 Add trailing newline.
2167 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2168 Add trailing newline.
2169 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2170 Add trailing newline.
2171 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2172 Add trailing newline.
2173 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2174 Add trailing newline.
2175 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2176 Add trailing newline.
2177 * doc/the-libgomp-abi/implementing-for-construct.rst:
2178 Add trailing newline.
2179 * doc/the-libgomp-abi/implementing-master-construct.rst:
2180 Add trailing newline.
2181 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2182 Add trailing newline.
2183 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2184 Add trailing newline.
2185 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2186 Add trailing newline.
2187 * doc/the-libgomp-abi/implementing-private-clause.rst:
2188 Add trailing newline.
2189 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2190 Add trailing newline.
2191 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2192 Add trailing newline.
2193 * doc/the-libgomp-abi/implementing-single-construct.rst:
2194 Add trailing newline.
2195 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2196 Add trailing newline.
2198 2022-11-14 Martin Liska <mliska@suse.cz>
2201 2022-11-09 Martin Liska <mliska@suse.cz>
2203 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2205 2022-11-14 Martin Liska <mliska@suse.cz>
2208 2022-11-14 Martin Liska <mliska@suse.cz>
2210 * doc/conf.py: Add newline at last line.
2212 2022-11-14 Martin Liska <mliska@suse.cz>
2215 2022-11-14 Martin Liska <mliska@suse.cz>
2218 * configure: Regenerate.
2219 * configure.ac: Always set sphinx-build.
2221 2022-11-13 Martin Liska <mliska@suse.cz>
2224 * configure: Regenerate.
2225 * configure.ac: Always set sphinx-build.
2227 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2230 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2231 unsigned long. Change type of upper from unsigned to unsigned long.
2233 2022-11-10 Martin Liska <mliska@suse.cz>
2235 * doc/conf.py: Add newline at last line.
2237 2022-11-09 Martin Liska <mliska@suse.cz>
2239 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2241 2022-11-09 Martin Liska <mliska@suse.cz>
2243 * doc/amd-radeon-gcn.rst:
2244 Add trailing newline.
2245 * doc/copyright.rst:
2246 Add trailing newline.
2247 * doc/cuda-streams-usage.rst:
2248 Add trailing newline.
2249 * doc/enabling-openacc.rst:
2250 Add trailing newline.
2251 * doc/enabling-openmp.rst:
2252 Add trailing newline.
2253 * doc/first-invocation-nvidia-cublas-library-api.rst:
2254 Add trailing newline.
2255 * doc/first-invocation-openacc-library-api.rst:
2256 Add trailing newline.
2258 Add trailing newline.
2259 * doc/general-public-license-3.rst:
2260 Add trailing newline.
2261 * doc/gnu-free-documentation-license.rst:
2262 Add trailing newline.
2263 * doc/implementation-status-and-implementation-defined-behavior.rst:
2264 Add trailing newline.
2266 Add trailing newline.
2267 * doc/indices-and-tables.rst:
2268 Add trailing newline.
2269 * doc/introduction.rst:
2270 Add trailing newline.
2271 * doc/memory-allocation-with-libmemkind.rst:
2272 Add trailing newline.
2274 Add trailing newline.
2275 * doc/offload-target-specifics.rst:
2276 Add trailing newline.
2277 * doc/openacc-environment-variables.rst:
2278 Add trailing newline.
2279 * doc/openacc-environment-variables/accdevicenum.rst:
2280 Add trailing newline.
2281 * doc/openacc-environment-variables/accdevicetype.rst:
2282 Add trailing newline.
2283 * doc/openacc-environment-variables/accproflib.rst:
2284 Add trailing newline.
2285 * doc/openacc-environment-variables/gccaccnotify.rst:
2286 Add trailing newline.
2287 * doc/openacc-introduction.rst:
2288 Add trailing newline.
2289 * doc/openacc-library-and-environment-variables.rst:
2290 Add trailing newline.
2291 * doc/openacc-library-interoperability.rst:
2292 Add trailing newline.
2293 * doc/openacc-profiling-interface.rst:
2294 Add trailing newline.
2295 * doc/openacc-runtime-library-routines.rst:
2296 Add trailing newline.
2297 * doc/openacc-runtime-library-routines/accasynctest.rst:
2298 Add trailing newline.
2299 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2300 Add trailing newline.
2301 * doc/openacc-runtime-library-routines/accattach.rst:
2302 Add trailing newline.
2303 * doc/openacc-runtime-library-routines/acccopyin.rst:
2304 Add trailing newline.
2305 * doc/openacc-runtime-library-routines/acccopyout.rst:
2306 Add trailing newline.
2307 * doc/openacc-runtime-library-routines/acccreate.rst:
2308 Add trailing newline.
2309 * doc/openacc-runtime-library-routines/accdelete.rst:
2310 Add trailing newline.
2311 * doc/openacc-runtime-library-routines/accdetach.rst:
2312 Add trailing newline.
2313 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2314 Add trailing newline.
2315 * doc/openacc-runtime-library-routines/accfree.rst:
2316 Add trailing newline.
2317 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2318 Add trailing newline.
2319 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2320 Add trailing newline.
2321 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2322 Add trailing newline.
2323 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2324 Add trailing newline.
2325 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2326 Add trailing newline.
2327 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2328 Add trailing newline.
2329 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2330 Add trailing newline.
2331 * doc/openacc-runtime-library-routines/acchostptr.rst:
2332 Add trailing newline.
2333 * doc/openacc-runtime-library-routines/accinit.rst:
2334 Add trailing newline.
2335 * doc/openacc-runtime-library-routines/accispresent.rst:
2336 Add trailing newline.
2337 * doc/openacc-runtime-library-routines/accmalloc.rst:
2338 Add trailing newline.
2339 * doc/openacc-runtime-library-routines/accmapdata.rst:
2340 Add trailing newline.
2341 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2342 Add trailing newline.
2343 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2344 Add trailing newline.
2345 * doc/openacc-runtime-library-routines/accondevice.rst:
2346 Add trailing newline.
2347 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2348 Add trailing newline.
2349 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2350 Add trailing newline.
2351 * doc/openacc-runtime-library-routines/accproflookup.rst:
2352 Add trailing newline.
2353 * doc/openacc-runtime-library-routines/accprofregister.rst:
2354 Add trailing newline.
2355 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2356 Add trailing newline.
2357 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2358 Add trailing newline.
2359 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2360 Add trailing newline.
2361 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2362 Add trailing newline.
2363 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2364 Add trailing newline.
2365 * doc/openacc-runtime-library-routines/accshutdown.rst:
2366 Add trailing newline.
2367 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2368 Add trailing newline.
2369 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2370 Add trailing newline.
2371 * doc/openacc-runtime-library-routines/accupdateself.rst:
2372 Add trailing newline.
2373 * doc/openacc-runtime-library-routines/accwait.rst:
2374 Add trailing newline.
2375 * doc/openacc-runtime-library-routines/accwaitall.rst:
2376 Add trailing newline.
2377 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2378 Add trailing newline.
2379 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2380 Add trailing newline.
2381 * doc/openmp-context-selectors.rst:
2382 Add trailing newline.
2383 * doc/openmp-environment-variables.rst:
2384 Add trailing newline.
2385 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2386 Add trailing newline.
2387 * doc/openmp-environment-variables/gompdebug.rst:
2388 Add trailing newline.
2389 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2390 Add trailing newline.
2391 * doc/openmp-environment-variables/gompspincount.rst:
2392 Add trailing newline.
2393 * doc/openmp-environment-variables/gompstacksize.rst:
2394 Add trailing newline.
2395 * doc/openmp-environment-variables/ompcancellation.rst:
2396 Add trailing newline.
2397 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2398 Add trailing newline.
2399 * doc/openmp-environment-variables/ompdisplayenv.rst:
2400 Add trailing newline.
2401 * doc/openmp-environment-variables/ompdynamic.rst:
2402 Add trailing newline.
2403 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2404 Add trailing newline.
2405 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2406 Add trailing newline.
2407 * doc/openmp-environment-variables/ompnested.rst:
2408 Add trailing newline.
2409 * doc/openmp-environment-variables/ompnumteams.rst:
2410 Add trailing newline.
2411 * doc/openmp-environment-variables/ompnumthreads.rst:
2412 Add trailing newline.
2413 * doc/openmp-environment-variables/ompplaces.rst:
2414 Add trailing newline.
2415 * doc/openmp-environment-variables/ompprocbind.rst:
2416 Add trailing newline.
2417 * doc/openmp-environment-variables/ompschedule.rst:
2418 Add trailing newline.
2419 * doc/openmp-environment-variables/ompstacksize.rst:
2420 Add trailing newline.
2421 * doc/openmp-environment-variables/omptargetoffload.rst:
2422 Add trailing newline.
2423 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2424 Add trailing newline.
2425 * doc/openmp-environment-variables/ompthreadlimit.rst:
2426 Add trailing newline.
2427 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2428 Add trailing newline.
2429 * doc/openmp-implementation-specifics.rst:
2430 Add trailing newline.
2431 * doc/openmp-implementation-status.rst:
2432 Add trailing newline.
2433 * doc/openmp-implementation-status/openmp-45.rst:
2434 Add trailing newline.
2435 * doc/openmp-implementation-status/openmp-50.rst:
2436 Add trailing newline.
2437 * doc/openmp-implementation-status/openmp-51.rst:
2438 Add trailing newline.
2439 * doc/openmp-implementation-status/openmp-52.rst:
2440 Add trailing newline.
2441 * doc/openmp-runtime-library-routines.rst:
2442 Add trailing newline.
2443 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2444 Add trailing newline.
2445 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2446 Add trailing newline.
2447 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2448 Add trailing newline.
2449 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2450 Add trailing newline.
2451 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2452 Add trailing newline.
2453 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2454 Add trailing newline.
2455 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2456 Add trailing newline.
2457 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2458 Add trailing newline.
2459 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2460 Add trailing newline.
2461 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2462 Add trailing newline.
2463 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2464 Add trailing newline.
2465 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2466 Add trailing newline.
2467 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2468 Add trailing newline.
2469 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2470 Add trailing newline.
2471 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2472 Add trailing newline.
2473 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2474 Add trailing newline.
2475 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2476 Add trailing newline.
2477 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2478 Add trailing newline.
2479 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2480 Add trailing newline.
2481 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2482 Add trailing newline.
2483 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2484 Add trailing newline.
2485 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2486 Add trailing newline.
2487 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2488 Add trailing newline.
2489 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2490 Add trailing newline.
2491 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2492 Add trailing newline.
2493 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2494 Add trailing newline.
2495 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2496 Add trailing newline.
2497 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2498 Add trailing newline.
2499 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2500 Add trailing newline.
2501 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2502 Add trailing newline.
2503 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2504 Add trailing newline.
2505 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2506 Add trailing newline.
2507 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2508 Add trailing newline.
2509 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2510 Add trailing newline.
2511 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2512 Add trailing newline.
2513 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2514 Add trailing newline.
2515 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2516 Add trailing newline.
2517 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2518 Add trailing newline.
2519 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2520 Add trailing newline.
2521 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2522 Add trailing newline.
2523 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2524 Add trailing newline.
2525 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2526 Add trailing newline.
2527 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2528 Add trailing newline.
2529 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2530 Add trailing newline.
2531 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2532 Add trailing newline.
2533 * doc/openmp-runtime-library-routines/omptestlock.rst:
2534 Add trailing newline.
2535 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2536 Add trailing newline.
2537 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2538 Add trailing newline.
2539 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2540 Add trailing newline.
2541 * doc/reporting-bugs.rst:
2542 Add trailing newline.
2543 * doc/the-libgomp-abi.rst:
2544 Add trailing newline.
2545 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2546 Add trailing newline.
2547 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2548 Add trailing newline.
2549 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2550 Add trailing newline.
2551 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2552 Add trailing newline.
2553 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2554 Add trailing newline.
2555 * doc/the-libgomp-abi/implementing-for-construct.rst:
2556 Add trailing newline.
2557 * doc/the-libgomp-abi/implementing-master-construct.rst:
2558 Add trailing newline.
2559 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2560 Add trailing newline.
2561 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2562 Add trailing newline.
2563 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2564 Add trailing newline.
2565 * doc/the-libgomp-abi/implementing-private-clause.rst:
2566 Add trailing newline.
2567 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2568 Add trailing newline.
2569 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2570 Add trailing newline.
2571 * doc/the-libgomp-abi/implementing-single-construct.rst:
2572 Add trailing newline.
2573 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2574 Add trailing newline.
2576 2022-11-09 Martin Liska <mliska@suse.cz>
2578 * Makefile.in: Build info pages conditionally.
2580 2022-11-09 Martin Liska <mliska@suse.cz>
2582 * Makefile.in: Support --with-sphinx-build.
2583 * configure.ac: Likewise..
2584 * configure: Regenerate.
2586 2022-11-09 Martin Liska <mliska@suse.cz>
2588 * libgomp.texi: Removed.
2590 2022-11-09 Martin Liska <mliska@suse.cz>
2592 * Makefile.in: Support Sphinx based documentation.
2594 2022-11-09 Martin Liska <mliska@suse.cz>
2596 * doc/amd-radeon-gcn.rst: New file.
2597 * doc/conf.py: New file.
2598 * doc/copyright.rst: New file.
2599 * doc/cuda-streams-usage.rst: New file.
2600 * doc/enabling-openacc.rst: New file.
2601 * doc/enabling-openmp.rst: New file.
2602 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2603 * doc/first-invocation-openacc-library-api.rst: New file.
2604 * doc/funding.rst: New file.
2605 * doc/general-public-license-3.rst: New file.
2606 * doc/gnu-free-documentation-license.rst: New file.
2607 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2608 * doc/index.rst: New file.
2609 * doc/indices-and-tables.rst: New file.
2610 * doc/introduction.rst: New file.
2611 * doc/memory-allocation-with-libmemkind.rst: New file.
2612 * doc/nvptx.rst: New file.
2613 * doc/offload-target-specifics.rst: New file.
2614 * doc/openacc-environment-variables.rst: New file.
2615 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2616 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2617 * doc/openacc-environment-variables/accproflib.rst: New file.
2618 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2619 * doc/openacc-introduction.rst: New file.
2620 * doc/openacc-library-and-environment-variables.rst: New file.
2621 * doc/openacc-library-interoperability.rst: New file.
2622 * doc/openacc-profiling-interface.rst: New file.
2623 * doc/openacc-runtime-library-routines.rst: New file.
2624 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2625 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2626 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2627 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2628 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2629 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2630 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2631 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2632 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2633 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2634 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2635 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2636 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2637 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2638 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2639 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2640 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2641 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2642 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2643 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2644 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2645 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2646 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2647 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2648 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2649 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2650 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2651 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2652 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2653 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2654 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2655 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2656 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2657 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2658 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2659 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2660 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2661 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2662 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2663 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2664 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2665 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2666 * doc/openmp-context-selectors.rst: New file.
2667 * doc/openmp-environment-variables.rst: New file.
2668 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2669 * doc/openmp-environment-variables/gompdebug.rst: New file.
2670 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2671 * doc/openmp-environment-variables/gompspincount.rst: New file.
2672 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2673 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2674 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2675 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2676 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2677 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2678 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2679 * doc/openmp-environment-variables/ompnested.rst: New file.
2680 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2681 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2682 * doc/openmp-environment-variables/ompplaces.rst: New file.
2683 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2684 * doc/openmp-environment-variables/ompschedule.rst: New file.
2685 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2686 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2687 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2688 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2689 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2690 * doc/openmp-implementation-specifics.rst: New file.
2691 * doc/openmp-implementation-status.rst: New file.
2692 * doc/openmp-implementation-status/openmp-45.rst: New file.
2693 * doc/openmp-implementation-status/openmp-50.rst: New file.
2694 * doc/openmp-implementation-status/openmp-51.rst: New file.
2695 * doc/openmp-implementation-status/openmp-52.rst: New file.
2696 * doc/openmp-runtime-library-routines.rst: New file.
2697 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2698 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2699 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2700 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2701 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2702 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2703 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2704 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2705 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2706 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2707 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2708 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2709 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2710 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2711 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2712 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2713 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2714 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2715 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2716 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2717 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2718 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2719 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2720 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2721 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2722 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2723 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2724 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2725 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2726 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2727 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2728 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2729 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2730 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2731 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2732 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2733 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2734 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2735 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2736 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2737 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2738 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2739 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2740 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2741 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2742 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2743 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2744 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2745 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2746 * doc/reporting-bugs.rst: New file.
2747 * doc/the-libgomp-abi.rst: New file.
2748 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2749 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2750 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2751 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2753 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2754 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2755 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2756 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2757 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2758 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2759 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2760 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2761 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2762 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2763 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2765 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
2767 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
2768 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
2770 * plugin/configfrag.ac <enable_offload_targets>
2771 [*-intelmic-* | *-intelmicemul-*]: Remove.
2772 * configure: Regenerate.
2773 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
2775 (offload_target_to_openacc_device_type)
2776 [$offload_target = *-intelmic*]: Remove.
2777 (check_effective_target_offload_device_intel_mic)
2778 (check_effective_target_offload_device_any_intel_mic): Remove.
2779 * testsuite/libgomp.c-c++-common/on_device_arch.h
2780 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
2781 (any_device_arch_intel_mic): Remove.
2782 * testsuite/libgomp.c-c++-common/target-45.c: Remove
2783 'offload_device_any_intel_mic' XFAIL.
2784 * testsuite/libgomp.fortran/target10.f90: Likewise.
2786 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
2788 * testsuite/libgomp.fortran/target-11.f90: New test.
2789 * testsuite/libgomp.fortran/target-13.f90: New test.
2791 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2795 * oacc-mem.c (goacc_enter_data_internal): Support
2796 OpenACC 'declare create' with Fortran allocatable arrays, part II.
2797 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2799 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
2801 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2804 * oacc-mem.c (goacc_enter_data_internal): Support
2805 OpenACC 'declare create' with Fortran allocatable arrays, part I.
2806 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
2808 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
2811 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2813 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
2816 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
2818 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
2821 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
2822 Thomas Schwinge <thomas@codesourcery.com>
2824 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
2826 2022-10-28 Julian Brown <julian@codesourcery.com>
2827 Thomas Schwinge <thomas@codesourcery.com>
2830 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
2831 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
2832 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2833 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2834 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
2836 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
2838 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
2839 'ptx_dev->rev_data'.
2841 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
2843 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
2844 'static' for this variable.
2845 * config/nvptx/libgomp-nvptx.h: New file.
2846 * config/nvptx/target.c: Include it.
2847 (GOMP_ADDITIONAL_ICVS): Declare extern var.
2848 (GOMP_REV_OFFLOAD_VAR): Declare var.
2849 (GOMP_target_ext): Handle reverse offload.
2850 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
2851 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
2852 * target.c (gomp_target_rev): ... this new stub function.
2853 * libgomp.h (gomp_target_rev): Declare.
2854 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
2855 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
2856 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
2857 (struct ptx_device): Add rev_data member.
2858 (nvptx_open_device): Remove async_engines query, last used in
2859 r10-304-g1f4c5b9b; add unified-address assert check.
2860 (GOMP_OFFLOAD_get_num_devices): Claim unified address
2862 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
2863 offload functions exist. Make offload var available
2865 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
2866 (GOMP_OFFLOAD_run): Handle reverse offload.
2868 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
2870 PR tree-optimization/107195
2872 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
2875 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
2877 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
2879 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
2880 on_device_arch_gcn): New.
2881 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
2882 requires-4.c but using heap-allocated memory.
2884 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
2887 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
2889 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
2891 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
2892 '-foffload-options' syntax.
2894 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
2896 * testsuite/libgomp.fortran/task-7.f90: New test.
2897 * testsuite/libgomp.fortran/task-8.f90: New test.
2898 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
2899 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
2900 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
2901 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
2902 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
2904 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2906 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
2907 in deprecation bullet.
2909 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2911 * omp.h.in (omp_in_explicit_task): Declare.
2912 * omp_lib.h.in (omp_in_explicit_task): Likewise.
2913 * omp_lib.f90.in (omp_in_explicit_task): New interface.
2914 * libgomp.map (OMP_5.2): New symbol version, export
2915 omp_in_explicit_task and omp_in_explicit_task_.
2916 * task.c (omp_in_explicit_task): New function.
2917 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
2918 (omp_in_explicit_task_): New function.
2919 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
2920 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
2921 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
2922 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
2924 2022-10-12 Jakub Jelinek <jakub@redhat.com>
2926 * task.c (gomp_create_artificial_team): Fix up handling of invocations
2927 from within explicit task.
2928 * target.c (GOMP_target_ext): Likewise.
2929 * testsuite/libgomp.c/task-7.c: New test.
2930 * testsuite/libgomp.c/task-8.c: New test.
2931 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
2932 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
2934 2022-10-12 Martin Liska <mliska@suse.cz>
2936 * configure: Regenerate.
2938 2022-10-11 Olivier Hainque <hainque@adacore.com>
2939 Olivier Hainque <hainque@adacore.com>
2941 * configure: Regenerate.
2943 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
2945 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
2947 2022-10-04 Jakub Jelinek <jakub@redhat.com>
2949 * libgomp.texi (Support begin/end declare target syntax in C/C++):
2950 Mark as implemented.
2952 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
2955 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
2957 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
2959 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
2960 for C/C++. Remove duplicated 'begin declare target' entry.
2962 2022-09-24 Jakub Jelinek <jakub@redhat.com>
2965 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
2967 2022-09-14 Julian Brown <julian@codesourcery.com>
2969 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
2970 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
2971 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
2972 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
2973 test to here, make "run" test.
2975 2022-09-13 Jakub Jelinek <jakub@redhat.com>
2978 * env.c (get_icv_member_addr): Cast false to void * before assigning
2979 it to icv_addr[1], and comment the whole assignment out.
2981 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
2983 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
2986 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
2988 * libgomp.texi (Offload-Target Specifics: nvptx): Document
2989 that reverse offload requires >= -march=sm_35.
2990 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
2992 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
2993 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
2994 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
2995 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
2996 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
2998 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3000 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3001 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3003 2022-09-12 Jakub Jelinek <jakub@redhat.com>
3006 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3007 (main): Avoid tests for which corresponding non-_ALL suffixed variable
3008 is in the environment, or for OMP_NUM_TEAMS on the device
3009 OMP_NUM_TEAMS_DEV_?.
3011 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
3013 * env.c (initialize_env): Include libiberty environ.h.
3015 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3017 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3018 function address table '$offload_func_table' if rev_fn_table
3021 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3023 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3024 .offload_func_table to populate rev_fn_table when requested.
3026 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3028 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3029 'uint64_t **rev_fn_table' argument.
3030 * oacc-host.c (host_load_image): Likewise.
3031 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3033 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3034 * target.c (gomp_load_image_to_device): Update call but pass
3037 2022-09-09 Jakub Jelinek <jakub@redhat.com>
3040 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3041 char * for dest[1] initialization from params[1]. Formatting fixes.
3043 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3046 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3048 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3050 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3051 section; move OpenMP Context Selectors from ...
3052 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3055 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
3057 * config/gcn/icv-device.c (omp_get_default_device): Return device-
3059 (omp_get_max_teams): Added for GCN devices.
3060 (omp_set_num_teams): Likewise.
3062 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3064 (omp_get_max_teams): Added for NVPTX devices.
3065 (omp_set_num_teams): Likewise.
3067 * env.c (struct gomp_icv_list): New struct to store entries of initial
3069 (struct gomp_offload_icv_list): New struct to store entries of device-
3070 specific ICV values that are copied to the device and back.
3071 (struct gomp_default_icv_values): New struct to store default values of
3072 ICVs according to the OpenMP standard.
3073 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3074 (print_env_var_error): Function that prints an error for invalid values
3076 (parse_unsigned_long_1): Removed getenv. Generalized.
3077 (parse_unsigned_long): Likewise.
3078 (parse_int_1): Likewise.
3079 (parse_int): Likewise.
3080 (parse_int_secure): Likewise.
3081 (parse_unsigned_long_list): Likewise.
3082 (parse_target_offload): Likewise.
3083 (parse_bind_var): Likewise.
3084 (parse_stacksize): Likewise.
3085 (parse_boolean): Likewise.
3086 (parse_wait_policy): Likewise.
3087 (parse_allocator): Likewise.
3088 (omp_display_env): Extended to output different variants of environment
3090 (print_schedule): New helper function for omp_display_env which prints
3091 the values of run_sched_var.
3092 (print_proc_bind): New helper function for omp_display_env which prints
3093 the values of proc_bind_var.
3094 (enum gomp_parse_type): Collection of types used for parsing environment
3096 (ENTRY): Preprocess string lengths of environment variables.
3097 (OMP_VAR_CNT): Preprocess table size.
3098 (OMP_HOST_VAR_CNT): Likewise.
3099 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3101 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3102 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3103 (print_device_specific_icvs): New helper function for omp_display_env to
3104 print device specific ICV values.
3105 (get_device_num): New helper function for parse_device_specific.
3106 Extracts the device number from an environment variable name.
3107 (get_icv_member_addr): Gets the memory address for a particular member
3109 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3110 (initialize_icvs): New function to initialize a gomp_initial_icvs
3112 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3113 (startswith): Checks if a string starts with a given prefix.
3114 (initialize_env): Extended to parse the new syntax of environment
3116 * icv-device.c (omp_get_max_teams): Added.
3118 (omp_set_num_teams): Likewise.
3119 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3120 (omp_get_max_teams): Likewise.
3122 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3123 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3124 holds the designated ICVs of the target device.
3125 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3126 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3128 (enum gomp_env_suffix): Collection of possible suffixes of environment
3130 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3132 (struct gomp_default_icv):New struct to hold ICVs for which we need
3133 to store initial values.
3134 (struct gomp_icv_list): Definition of a linked list that is used for
3135 storing ICVs for the devices and also for _DEV, _ALL, and without
3137 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3139 (struct gomp_offload_icv_list): Definition of a linked list that holds
3140 device-specific ICVs that are copied to devices.
3141 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3142 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3143 * libgomp.texi: Updated.
3144 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3145 further ICVs from the offload image.
3146 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3147 * target.c (gomp_get_offload_icv_item): Get a list item of
3148 gomp_offload_icv_list.
3149 (get_gomp_offload_icvs): New. Returns the ICV values
3150 depending on the device num and the variable hierarchy.
3151 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3152 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3153 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3154 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3155 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3156 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3157 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3159 2022-09-08 Jakub Jelinek <jakub@redhat.com>
3161 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3163 * testsuite/libgomp.c/doacross-4.c: New test.
3164 * testsuite/libgomp.c/doacross-5.c: New test.
3165 * testsuite/libgomp.c/doacross-6.c: New test.
3166 * testsuite/libgomp.c/doacross-7.c: New test.
3168 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
3170 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3172 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
3174 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3175 refer to 'requires'.
3176 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3177 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3178 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3179 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3181 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3183 PR middle-end/106548
3184 * testsuite/libgomp.c/linear-2.c: New test.
3186 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3188 * splay-tree.h: Fix splay_* macro unsetting if
3189 splay_tree_prefix is defined.
3191 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
3193 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3195 2022-07-29 Jakub Jelinek <jakub@redhat.com>
3197 PR middle-end/106449
3198 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3200 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
3202 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3204 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3206 PR middle-end/101551
3207 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3208 'offloading_enabled' diagnostics issue.
3210 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3212 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3213 '_Pragma' diagnostics verification.
3215 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3217 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3218 improved warning locations.
3219 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3221 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3223 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3224 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3225 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3226 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3227 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3229 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3231 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3232 Denote as legacy entry points.
3233 * testsuite/lib/libgomp.exp
3234 (check_effective_target_offload_target_any): New proc.
3235 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3236 'offload_target_any'.
3237 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3238 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3239 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3241 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3243 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3244 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3246 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3248 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3250 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3252 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3254 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3256 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3257 Jakub Jelinek <jakub@redhat.com>
3259 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3261 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3262 Chung-Lin Tang <cltang@codesourcery.com>
3263 Thomas Schwinge <thomas@codesourcery.com>
3265 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3266 omp_requires_mask arg.
3267 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3268 return -1 when device available but omp_requires_mask != 0.
3269 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3270 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3272 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3273 goacc_attach_host_thread_to_device, acc_get_num_devices,
3274 acc_set_device_num, get_property_any): Likewise.
3275 * target.c (omp_requires_mask): New global var.
3276 (gomp_requires_to_name): New.
3277 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3278 (gomp_target_init): Handle omp_requires_mask.
3279 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3280 (OpenMP 5.1): Add a missed item.
3281 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3282 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3283 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3284 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3285 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3286 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3287 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3288 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3289 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3290 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3291 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3292 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3293 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3294 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3295 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3296 * testsuite/libgomp.fortran/requires-1.f90: New test.
3298 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3300 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3301 with fromto as implemented.
3303 2022-06-28 Martin Liska <mliska@suse.cz>
3305 * acinclude.m4: Fix typo in mold linker detection.
3306 * Makefile.in: Regenerate.
3307 * configure: Regenerate.
3309 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3310 Paul Iannetta <piannetta@kalrayinc.com>
3313 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3315 2022-06-17 Martin Liska <mliska@suse.cz>
3317 * libgomp.texi: Add table header for new features of
3320 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3322 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3323 q to ddress of an automatic variable. Use -5 instead of -1 in
3324 omp_get_mapped_ptr call. Add test with omp_initial_device.
3325 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3326 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3327 Renumber stop arguments afterwards.
3329 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3331 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3332 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3334 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3335 * target.c (resolve_device): Add remapped argument, handle
3336 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3337 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3338 if remapped, otherwise treat omp_initial_device that way. For
3339 omp_invalid_device, always emit gomp_fatal, even when
3340 OMP_TARGET_OFFLOAD isn't mandatory.
3341 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3342 GOMP_target_update, GOMP_target_update_ext,
3343 GOMP_target_enter_exit_data): Pass true as remapped argument to
3345 (omp_target_alloc, omp_target_free, omp_target_is_present,
3346 omp_target_memcpy_check, omp_target_associate_ptr,
3347 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3348 omp_target_is_accessible): Pass false as remapped argument to
3349 resolve_device. Treat omp_initial_device the same as
3350 gomp_get_num_devices (). Don't bypass resolve_device calls if
3351 device_num is negative.
3352 (omp_pause_resource): Treat omp_initial_device the same as
3353 gomp_get_num_devices (). Call resolve_device.
3354 * icv-device.c (omp_set_default_device): Always set to device_num
3355 even when it is negative.
3356 * libgomp.texi: Document that Conforming device numbers,
3357 omp_initial_device and omp_invalid_device is implemented.
3358 * testsuite/libgomp.c/target-41.c (main): Add test with
3360 * testsuite/libgomp.c/target-45.c: New test.
3361 * testsuite/libgomp.c/target-46.c: New test.
3362 * testsuite/libgomp.c/target-47.c: New test.
3363 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3364 test with omp_initial_device. Use -5 instead of -1 for negative value
3366 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3367 Likewise. Reorder stop numbers.
3369 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3371 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3372 rather than "libmemkind.so".
3374 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3376 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3377 * plugin/configfrag.ac (--with-cuda-driver)
3378 (--with-cuda-driver-include, --with-cuda-driver-lib)
3379 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3380 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3382 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3383 (cuda_driver_lib): Remove.
3384 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3385 * Makefile.in: Regenerate.
3386 * configure: Likewise.
3387 * testsuite/Makefile.in: Likewise.
3389 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3391 * config/linux/allocator.c: Fix up #include directive.
3393 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3395 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3396 (enum gomp_memkind_kind): New type.
3397 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3399 (struct gomp_memkind_data): New type.
3400 (memkind_data, memkind_data_once): New variables.
3401 (gomp_init_memkind, gomp_get_memkind): New functions.
3402 (omp_init_allocator): Initialize data.memkind, don't fail for
3403 omp_high_bw_mem_space if libmemkind supports it.
3404 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3405 memkind support of LIBGOMP_USE_MEMKIND is defined.
3406 * config/linux/allocator.c: New file.
3408 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3410 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3411 * testsuite/libgomp.fortran/scope-2.f90: New test.
3413 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3415 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3417 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3419 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3420 scope construct with allocate clause.
3421 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3422 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3424 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3426 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3427 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3428 explicit 'to' and 'enter' clause.
3429 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3431 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3434 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3435 defined(HAVE__ALIGNED_MALLOC) case.
3436 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3437 handling as last option before fallback instead of first.
3438 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3441 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3443 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3445 * testsuite/libgomp.c/target-41.c: Likewise.
3447 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3449 * libgomp.texi (Other new OpenMP 5.1 features): Add
3450 'begin declare target'.
3451 (Other new OpenMP 5.2 features): New.
3453 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3455 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3456 is the last task taskwait depend depends on, wake it up.
3457 Similarly if it is the last child of a taskgroup, use atomic
3458 store instead of decrement and awak taskgroup wait if any.
3459 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3461 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3463 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3464 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3465 (gcn_gfx90a_s): New.
3466 (isa_hsa_name): Support gfx90a.
3467 (isa_code): Likewise.
3469 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3472 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3473 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3475 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3478 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3479 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3480 * task.c (empty_task): New function.
3481 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3482 (gomp_task_run_post_handle_depend): Declare.
3483 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3485 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3486 (GOMP_taskwait_depend_nowait): New function.
3487 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3489 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3492 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3493 Support attach for GOMP_MAP_FIRSTPRIVATE.
3494 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3495 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3496 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3498 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3500 * libgomp.map: Added omp_target_memcpy_async and
3501 omp_target_memcpy_rect_async.
3502 * libgomp.texi: Both functions are now supported.
3503 * omp.h.in: Added omp_target_memcpy_async and
3504 omp_target_memcpy_rect_async.
3505 * omp_lib.f90.in: Added interfaces for both new functions.
3506 * omp_lib.h.in: Likewise.
3507 * target.c (ialias_redirect): Added for GOMP_task.
3508 (omp_target_memcpy): Restructured into check and copy part.
3509 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3510 omp_target_memcpy_async that checks requirements.
3511 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3512 omp_target_memcpy_async that performs the memcpy.
3513 (omp_target_memcpy_async_helper): New helper function that is used in
3514 omp_target_memcpy_async for the asynchronous task.
3515 (omp_target_memcpy_async): Added.
3516 (omp_target_memcpy_rect): Restructured into check and copy part.
3517 (omp_target_memcpy_rect_check): New helper function for
3518 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3520 (omp_target_memcpy_rect_copy): New helper function for
3521 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3523 (omp_target_memcpy_rect_async_helper): New helper function that is used
3524 in omp_target_memcpy_rect_async for the asynchronous task.
3525 (omp_target_memcpy_rect_async): Added.
3526 * task.c (ialias): Added for GOMP_task.
3527 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3528 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3529 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3530 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3531 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3532 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3533 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3534 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3536 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3538 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3539 (OpenMP Context Selectors): Add missing comma.
3540 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3541 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3542 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3543 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3545 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3547 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3548 comment for omp_display_env feature.
3550 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3552 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3553 to document OpenMP context selectors.
3555 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3557 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3558 from bool to unsigned char.
3559 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3560 Ignore dependencies where
3561 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3562 rather than just task->depend[i].is_in && ent->is_in. Remember
3563 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3565 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3566 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3567 rather than just elem.is_in && ent->is_in.
3568 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3569 inoutset depend-kind.
3570 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3571 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3572 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3574 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3576 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3578 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3580 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3581 * testsuite/libgomp.fortran/depend-5.f90: New test.
3582 * testsuite/libgomp.fortran/depend-6.f90: New test.
3583 * testsuite/libgomp.fortran/depend-7.f90: New test.
3585 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3587 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3588 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3589 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3591 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3593 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3595 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3597 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3599 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3601 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3602 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3603 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3604 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3605 * Makefile.in: Regenerate.
3607 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3609 * Makefile.am (libgomp_la_LIBADD): Initialize.
3610 * plugin/configfrag.ac (DL_LIBS): New.
3611 (PLUGIN_GCN_LIBS): Remove.
3612 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3613 * plugin/Makefrag.am (libgomp_la_LIBADD)
3614 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3615 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3616 * Makefile.in: Regenerate.
3617 * config.h.in: Likewise.
3618 * configure: Likewise.
3619 * testsuite/Makefile.in: Likewise.
3621 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3623 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3624 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3625 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3626 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3627 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3628 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3629 * Makefile.in: Regenerate.
3630 * config.h.in: Likewise.
3631 * configure: Likewise.
3633 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3635 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3636 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3637 * Makefile.in: Regenerate.
3638 * config.h.in: Likewise.
3639 * configure: Likewise.
3640 * testsuite/Makefile.in: Likewise.
3642 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3644 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3645 * task.c (gomp_init_task): Initialize depend_all_memory.
3646 (gomp_task_handle_depend): Handle omp_all_memory.
3647 (gomp_task_run_post_handle_depend_hash): Clear
3648 parent->depend_all_memory if equal to current task.
3649 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3650 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3651 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3652 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3654 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3656 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3657 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3658 * Makefile.in: Regenerate.
3659 * configure: Likewise.
3660 * testsuite/Makefile.in: Likewise.
3662 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3664 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3665 consider 'PLUGIN_GCN_CPPFLAGS'.
3666 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3667 'PLUGIN_GCN_LDFLAGS'.
3668 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3670 * Makefile.in: Regenerate.
3671 * configure: Likewise.
3672 * testsuite/Makefile.in: Likewise.
3674 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3676 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3677 (HSA_RUNTIME_LDFLAGS): Remove.
3678 * configure: Regenerate.
3680 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3682 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3683 'append always_ld_library_path ":$hsa_runtime_lib"'.
3684 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3686 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3688 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3689 multi-device testing.
3691 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3693 * libgomp.map: Added omp_target_is_accessible.
3694 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3695 * omp.h.in: Added omp_target_is_accessible.
3696 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3697 * omp_lib.h.in: Likewise.
3698 * target.c (omp_target_is_accessible): Added implementation of
3699 omp_target_is_accessible.
3700 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3701 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3703 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3705 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3707 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3709 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3711 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3713 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3715 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3717 * libgomp.map: Added omp_get_mapped_ptr.
3718 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3719 * omp.h.in: Added omp_get_mapped_ptr.
3720 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3721 * omp_lib.h.in: Likewise.
3722 * target.c (omp_get_mapped_ptr): Added implementation of
3724 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3725 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3726 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3727 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3728 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3729 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3730 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3731 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3733 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3736 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3737 privatization scanning. For GCN offloading compilation, raise
3738 '-mgang-private-size'.
3740 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3743 * work.c (gomp_init_work_share): Don't mask of adjustment for
3744 dynamic long long realignment if struct gomp_work_share has smaller
3745 alignof than long long.
3746 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3747 struct gomp_work_share has smaller alignof than long long or if
3748 sizeof (struct gomp_work_share) is smaller than
3749 INLINE_ORDERED_TEAM_IDS_OFF.
3750 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3751 * sections.c (GOMP_sections2_start): Likewise.
3753 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3754 Thomas Schwinge <thomas@codesourcery.com>
3757 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3759 2022-04-13 Jakub Jelinek <jakub@redhat.com>
3761 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
3763 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
3765 * plugin/cuda/cuda.h: Remove file.
3766 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
3767 "cuda/cuda.h" instead of <cuda.h>.
3768 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
3769 'PLUGIN_NVPTX_CPPFLAGS'.
3770 * configure: Regenerate.
3772 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
3774 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
3776 2022-04-04 Tom de Vries <tdevries@suse.de>
3778 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
3779 on_device_arch_nvptx instead of offload_target_nvptx.
3780 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3782 2022-04-01 Tom de Vries <tdevries@suse.de>
3784 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
3786 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3788 2022-04-01 Tom de Vries <tdevries@suse.de>
3790 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
3793 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
3794 Lulu Cheng <chenglulu@loongson.cn>
3796 * configure.tgt: Add LoongArch triplet.
3798 2022-03-28 Tom de Vries <tdevries@suse.de>
3800 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
3801 instead of /libexec/.
3802 * configure: Regenerate.
3804 2022-03-25 Tom de Vries <tdevries@suse.de>
3807 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
3809 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
3810 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
3812 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
3814 PR middle-end/104285
3815 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
3816 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
3817 * testsuite/libgomp.c++/target-same-name-2.C: New test.
3818 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
3819 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
3820 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
3822 2022-03-22 Tom de Vries <tdevries@suse.de>
3826 * testsuite/libgomp.c/pr104783-2.c: New test.
3828 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
3831 * testsuite/libgomp.fortran/associate4.f90: New test.
3833 2022-03-18 Tom de Vries <tdevries@suse.de>
3836 * testsuite/libgomp.c/pr104952-1.c: New test.
3837 * testsuite/libgomp.c/pr104952-2.c: New test.
3839 2022-03-18 Jakub Jelinek <jakub@redhat.com>
3841 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
3842 variable next to pl variable.
3844 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3846 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3848 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3849 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3851 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
3854 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
3855 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3857 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
3859 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
3860 omp_set_max_active_levels.
3861 * testsuite/libgomp.fortran/icv-8.f90: New test.
3863 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
3866 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
3868 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
3870 * libgomp.texi: Fix typo.
3872 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3874 PR middle-end/100280
3875 PR middle-end/104892
3876 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
3877 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
3878 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3880 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3882 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3883 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3884 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3887 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3889 PR middle-end/104892
3890 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
3892 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
3893 enable '--param=openacc-kernels=decompose' and adjust.
3894 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3896 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3897 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3900 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3903 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
3904 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
3905 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3906 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
3908 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
3910 PR middle-end/100280
3911 PR middle-end/104086
3912 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
3914 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
3916 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
3918 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3921 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
3923 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
3924 trait. Test last index in w and v array. Remove redundant
3925 assignment to V(1). Move alignment checks at the end of
3928 2022-03-10 Tom de Vries <tdevries@suse.de>
3930 * testsuite/libgomp.c/pr104783.c: New test.
3932 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3935 PR middle-end/102330
3936 PR middle-end/104774
3937 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
3939 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3941 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3943 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3945 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3947 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3949 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3951 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3953 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3955 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3957 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3959 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3961 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3963 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3965 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
3966 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
3967 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3969 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
3972 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
3973 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3974 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3975 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3977 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3980 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
3981 expected diagnostics.
3983 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
3985 PR middle-end/104784
3986 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3987 Test with '--param=openacc-kernels=decompose'.
3988 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3990 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3992 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3994 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3996 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3998 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4000 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4002 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4004 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4006 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4008 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4010 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4012 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4014 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4016 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4018 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4020 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4022 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4024 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4026 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4028 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4030 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4032 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4034 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4036 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4038 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4040 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4042 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4044 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4046 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4048 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4050 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4053 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4055 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4056 Test '-fopt-info-omp-all'.
4057 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4059 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4061 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4063 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4065 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4067 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4069 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4071 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4073 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4075 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4077 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4079 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4081 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4083 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4085 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4087 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4089 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4091 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4093 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4095 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4097 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4099 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4101 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4103 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4105 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4107 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4109 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4111 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4113 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4115 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4117 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4119 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4122 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4124 PR middle-end/100280
4125 PR middle-end/104132
4126 PR middle-end/104133
4127 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4130 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4132 PR middle-end/100280
4133 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4134 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4137 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4139 PR middle-end/100280
4140 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4141 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4144 2022-02-28 Tom de Vries <tdevries@suse.de>
4146 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4147 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4148 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4149 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4150 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4151 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4153 2022-02-24 Tom de Vries <tdevries@suse.de>
4155 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4156 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4157 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4158 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4159 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4160 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4161 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4163 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4165 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4166 gang-redundant execution.
4168 2022-02-22 Tom de Vries <tdevries@suse.de>
4171 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4172 from config/rtems/bar.c.
4173 (futex_wait, futex_wake): New function.
4174 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4175 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4176 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4177 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4178 and replace with include of config/linux/bar.c.
4179 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4180 (gomp_barrier_init): Init new fields.
4181 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4183 * testsuite/libgomp.c/pr99555-1.c: Same.
4184 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4186 2022-02-22 Tom de Vries <tdevries@suse.de>
4189 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4190 -foffload=-Wa,--verify for nvptx.
4191 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4193 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
4195 * testsuite/libgomp.fortran/depend-4.f90: New test.
4197 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
4200 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4202 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4204 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4205 * target.c (copy_firstprivate_data): Copy only if host address is not
4207 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4208 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4209 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4210 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4211 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4212 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4213 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4214 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4215 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4216 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4218 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4221 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4223 * testsuite/libgomp.c/pr104385.c: New test.
4225 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4227 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4228 STOP of previous commit.
4230 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4232 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4233 from is_64bit_aligned_.
4234 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4235 and use it, more implicit none, remove unused argument.
4237 2022-02-03 David Seifert <soap@gentoo.org>
4238 Jakub Jelinek <jakub@redhat.com>
4240 * configure.ac: Support --disable-werror.
4241 * configure: Regenerate.
4243 2022-02-01 Tom de Vries <tdevries@suse.de>
4245 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4247 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4248 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4250 2022-02-01 Tom de Vries <tdevries@suse.de>
4252 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4253 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4255 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4257 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4259 2022-02-01 Tom de Vries <tdevries@suse.de>
4261 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4263 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4265 2022-01-31 Martin Liska <mliska@suse.cz>
4267 * acinclude.m4: Detect *_ld_is_mold and use it.
4268 * configure: Regenerate.
4270 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4272 * libgomp.texi (OpenMP 5.0): Update implementation status.
4274 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4276 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4277 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4278 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4279 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4280 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4281 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4282 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4283 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4284 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4285 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4286 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4287 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4288 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4289 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4290 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4292 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4294 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4295 "static") to make the device num available in the offload image.
4297 2022-01-19 Martin Liska <mliska@suse.cz>
4298 Thomas Schwinge <thomas@codesourcery.com>
4300 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4302 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4303 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4305 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4306 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4307 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4308 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4309 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4311 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4313 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4315 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4317 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4319 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4321 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4322 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4323 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4325 2022-01-18 Martin Liska <mliska@suse.cz>
4327 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4329 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4330 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4331 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4332 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4333 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4334 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4335 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4336 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4337 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4338 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4339 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4340 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4341 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4342 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4343 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4345 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4347 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4348 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4349 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4351 2022-01-17 Julian Brown <julian@codesourcery.com>
4352 Thomas Schwinge <thomas@codesourcery.com>
4354 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4355 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4356 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4358 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4359 Andrew Stubbs <ams@codesourcery.com>
4361 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4362 the number of teams and threads if necessary.
4363 (gcn_exec): Automatically set the number of gangs and workers if
4366 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4368 * testsuite/libgomp.fortran/allocate-1.c: New test.
4369 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4370 * libgomp.texi: Remove string that says that allocate clause
4371 support is for C/C++ only.
4373 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4375 * testsuite/libgomp.c-c++-common/on_device_arch.h
4376 (any_device_arch, any_device_arch_intel_mic): New.
4377 * testsuite/lib/libgomp.exp
4378 (check_effective_target_offload_device_any_intel_mic): New.
4379 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4380 * testsuite/libgomp.fortran/target10.f90: Likewise.
4382 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4384 PR tree-optimization/102192
4385 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4386 '-Wuninitialized' diagnostics.
4388 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4390 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4391 current '-Wuninitialized' diagnostics.
4392 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4393 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4394 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4395 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4396 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4397 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4398 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4399 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4400 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4401 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4402 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4405 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4407 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4408 for 'offload_device_intel_mic'.
4410 2022-01-13 Julian Brown <julian@codesourcery.com>
4411 Thomas Schwinge <thomas@codesourcery.com>
4413 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4414 offloading execution XFAIL.
4416 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4418 PR middle-end/100280
4419 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4421 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4422 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4425 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4427 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4429 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4431 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4432 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4433 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4434 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4435 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4437 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4438 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4439 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4440 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4442 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4444 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4445 * testsuite/libgomp.fortran/target10.f90: Likewise.
4447 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4449 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4450 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4451 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4453 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4455 * libgomp.texi: Bump @copying's copyright year.
4457 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4459 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4460 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4462 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4464 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4465 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4466 table, not individual symbols.
4468 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4470 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4471 "target offload_device_nonshared_as"
4472 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4473 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4475 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4477 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4478 not overwritten during cross-host/device copying.
4479 (gomp_update): Likewise.
4480 (gomp_exit_data): Likewise.
4481 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4482 * testsuite/libgomp.c++/target-12.C: Likewise.
4483 * testsuite/libgomp.c++/target-15.C: Likewise.
4484 * testsuite/libgomp.c++/target-16.C: Likewise.
4485 * testsuite/libgomp.c++/target-17.C: Likewise.
4486 * testsuite/libgomp.c++/target-21.C: Likewise.
4487 * testsuite/libgomp.c++/target-23.C: Likewise.
4488 * testsuite/libgomp.c/target-23.c: Likewise.
4489 * testsuite/libgomp.c/target-29.c: Likewise.
4490 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4492 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4495 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4496 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4497 (goacc_enter_data_internal): Likewise.
4498 * target.c (gomp_map_vars_existing): Update assert condition to
4499 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4500 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4501 parameter, add support for mapping a pointer with NULL target.
4502 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4503 parameter, add support for attaching a pointer with NULL target.
4504 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4505 gomp_attach_pointer, add handling for
4506 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4507 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4508 * testsuite/libgomp.c++/target-23.C: New testcase.
4509 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4510 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4511 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4512 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4513 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4514 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4515 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4517 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4519 * libgomp.texi (OpenMP 5.1): Update status.
4521 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4523 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4525 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4528 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4529 * testsuite/libgomp.fortran/pr90030.f90: New test.
4531 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4532 Thomas Schwinge <thomas@codesourcery.com>
4534 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4537 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4538 Thomas Schwinge <thomas@codesourcery.com>
4540 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4543 2021-11-29 Richard Biener <rguenther@suse.de>
4545 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4548 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4550 PR middle-end/103384
4551 * testsuite/libgomp.c/declare-variant-2.c: New test.
4553 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4555 * alloc.c (gomp_aligned_alloc): Fix typo.
4557 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4560 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4561 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4562 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4563 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4564 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4565 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4566 gomp_aligned_alloc instead of team_malloc.
4568 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4571 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4572 memalign over posix_memalign over aligned_alloc over fallback
4573 with malloc instead of aligned_alloc over _aligned_alloc over
4574 posix_memalign over memalign over fallback with malloc. For
4575 aligned_alloc, round up size up to multiple of al.
4577 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4579 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4580 construct as implemented.
4582 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4584 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4586 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4588 * task.c (gomp_create_target_task): Copy args array as well.
4589 * target.c (gomp_target_fallback): Add args argument.
4590 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4591 (GOMP_target): Adjust gomp_target_fallback caller.
4592 (GOMP_target_ext): Likewise.
4593 (gomp_target_task_fn): Likewise.
4594 * config/nvptx/team.c (gomp_nvptx_main): Set
4595 gomp_global_icv.thread_limit_var.
4596 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4598 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4600 * config/nvptx/team.c (__gomp_team_num): Define as
4601 __attribute__((shared)) var.
4602 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4603 * config/nvptx/target.c (__gomp_team_num): Declare as
4604 extern __attribute__((shared)) var.
4605 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4606 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4607 is bigger than num_blocks, use num_teams_lower teams and arrange for
4608 bumping of __gomp_team_num if !first and returning false once we run
4610 * config/nvptx/teams.c (__gomp_team_num): Declare as
4611 extern __attribute__((shared)) var.
4612 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4614 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4616 * testsuite/libgomp.c/teams-5.c: New test.
4618 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4621 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4623 * config/gcn/teams.c: ... here. New file.
4625 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4627 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4628 implicit map handling to allow a "superset" existing map as valid case.
4629 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4630 (get_implicit): New function to extract implicit status.
4631 (gomp_map_fields_existing): Adjust arguments in calls to
4632 gomp_map_vars_existing, and add uses of get_implicit.
4633 (gomp_map_vars_internal): Likewise.
4634 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4636 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4638 * libgomp_g.h (GOMP_teams4): Declare.
4639 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4640 * target.c (GOMP_teams4): New function.
4641 * config/nvptx/target.c (GOMP_teams): Remove.
4642 (GOMP_teams4): New function.
4643 * config/gcn/target.c (GOMP_teams): Remove.
4644 (GOMP_teams4): New function.
4645 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4646 teams instead of <= 2.
4647 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4649 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4651 * testsuite/libgomp.fortran/teams-1.f90: New test.
4653 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4655 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4656 * team.c (struct gomp_thread_start_data): Likewise.
4657 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4658 (gomp_team_start): Initialize start_data->num_teams and
4659 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4660 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4661 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4662 instead of gomp_num_teams and gomp_team_num.
4663 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4664 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4665 * testsuite/libgomp.c/teams-4.c: New test.
4667 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4669 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4671 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4673 * env.c (parse_gomp_openacc_dim): Restore parsing.
4675 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4677 PR middle-end/102972
4678 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4680 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4681 * testsuite/libgomp.c/target-3.c: Likewise.
4682 * testsuite/libgomp.c/target-5.c: Likewise.
4683 * testsuite/libgomp.c/target-6.c: Likewise.
4684 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4685 * testsuite/libgomp.c/teams-1.c: Likewise.
4686 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4687 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4688 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4689 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4690 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4691 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4692 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4694 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4696 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4697 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4699 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4701 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4702 aren't implemented for Fortran yet.
4704 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4706 * testsuite/libgomp.c/loop-26.c: New test.
4707 * testsuite/libgomp.c/loop-27.c: New test.
4709 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4712 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4713 instead of #include <alloca.h> + alloca.
4715 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4717 * libgomp.texi (Support of strictly structured blocks in Fortran):
4719 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4721 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4723 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4724 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4726 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4729 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4730 (struct gomp_work_share): Only use aligned(64) attribute if
4731 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4732 add padding before lock to ensure lock is at offset 64 bytes
4734 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4735 New poor man's static assertions.
4736 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4737 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4739 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4740 Richard Biener <rguenther@suse.de>
4742 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4744 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4746 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4747 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4749 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4758 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4760 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4762 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
4763 type from char [50] to const char *.
4764 (places_array): Add a testcase for simplified syntax place followed
4765 by length or length and stride.
4767 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4769 * env.c (parse_one_place): Handle non-negative-number the same
4770 as { non-negative-number }. Reject even !number:1 and
4771 !number:1:stride or !place:1 or !place:1:stride instead of just
4772 length other than 1.
4773 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
4774 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
4775 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
4777 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
4780 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4782 * env.c (parse_schedule): For strtoul or strtoull calls which don't
4783 clearly reject return value 0 as invalid handle the case where end
4784 pointer is the same as first argument as invalid.
4785 (parse_unsigned_long_1): Likewise.
4786 (parse_one_place): Likewise.
4787 (parse_places_var): Likewise.
4788 (parse_stacksize): Likewise.
4789 (parse_spincount): Likewise.
4790 (parse_affinity): Likewise.
4791 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
4792 Make code valid C89.
4793 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
4794 For strtoul calls which don't clearly reject return value 0 as
4795 invalid handle the case where end pointer is the same as first
4796 argument as invalid.
4797 (gomp_affinity_init_level_1): Likewise.
4798 (gomp_affinity_init_numa_domains): Likewise.
4799 * config/rtems/proc.c (parse_thread_pools): Likewise.
4801 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4803 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
4804 after creating count places clean up and return immediately.
4805 * testsuite/libgomp.c/places-6.c: New test.
4806 * testsuite/libgomp.c/places-7.c: New test.
4807 * testsuite/libgomp.c/places-8.c: New test.
4808 * testsuite/libgomp.c/places-9.c: New test.
4809 * testsuite/libgomp.c/places-10.c: New test.
4811 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4813 * env.c (parse_places_var): Handle numa_domains as level 5.
4814 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
4816 (gomp_affinity_init_level): Use it instead of
4817 gomp_affinity_init_level_1 for level == 5.
4818 * testsuite/libgomp.c/places-5.c: New test.
4820 2021-10-15 Jakub Jelinek <jakub@redhat.com>
4822 * env.c (parse_places_var): Handle ll_caches as level 4.
4823 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
4825 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
4827 (gomp_affinity_init_level): Likewise.
4828 * testsuite/libgomp.c/places-1.c: New test.
4829 * testsuite/libgomp.c/places-2.c: New test.
4830 * testsuite/libgomp.c/places-3.c: New test.
4831 * testsuite/libgomp.c/places-4.c: New test.
4833 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4835 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
4838 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
4840 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
4842 2021-10-12 Julian Brown <julian@codesourcery.com>
4844 * target.c (gomp_copy_host2dev): Release device lock on cbuf
4847 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
4849 * testsuite/libgomp.fortran/icv-3.f90: New.
4850 * testsuite/libgomp.fortran/icv-4.f90: New.
4852 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4854 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
4855 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
4856 OMP_TEAMS_THREAD_LIMIT): Document.
4858 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4860 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
4861 to avoid makeinfo warnings.
4863 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4865 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
4866 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
4868 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4872 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
4873 allocation sizes from 420 to 320 and from 768 to 568.
4874 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
4875 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
4876 for cr from 16 to 4.
4878 2021-10-12 Jakub Jelinek <jakub@redhat.com>
4880 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
4881 * testsuite/libgomp.c/scan-12.c: Likewise.
4882 * testsuite/libgomp.c/scan-13.c: Likewise.
4883 * testsuite/libgomp.c/scan-14.c: Likewise.
4884 * testsuite/libgomp.c/scan-15.c: Likewise.
4885 * testsuite/libgomp.c/scan-16.c: Likewise.
4886 * testsuite/libgomp.c/scan-17.c: Likewise.
4887 * testsuite/libgomp.c/scan-18.c: Likewise.
4888 * testsuite/libgomp.c/scan-19.c: Likewise.
4889 * testsuite/libgomp.c/scan-20.c: Likewise.
4890 * testsuite/libgomp.c/scan-21.c: Likewise.
4891 * testsuite/libgomp.c/scan-22.c: Likewise.
4892 * testsuite/libgomp.c++/scan-9.C: Likewise.
4893 * testsuite/libgomp.c++/scan-10.C: Likewise.
4894 * testsuite/libgomp.c++/scan-11.C: Likewise.
4895 * testsuite/libgomp.c++/scan-12.C: Likewise.
4896 * testsuite/libgomp.c++/scan-13.C: Likewise.
4897 * testsuite/libgomp.c++/scan-14.C: Likewise.
4898 * testsuite/libgomp.c++/scan-15.C: Likewise.
4899 * testsuite/libgomp.c++/scan-16.C: Likewise.
4901 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
4903 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
4905 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
4907 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
4909 * omp.h.in: Add deprecated flag for omp_atv_sequential.
4910 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
4911 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
4912 * testsuite/libgomp.fortran/alloc-12.f90: New test.
4914 2021-10-11 Jakub Jelinek <jakub@redhat.com>
4916 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
4917 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4918 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
4919 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4920 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
4921 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
4922 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
4923 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
4924 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
4925 omp_set_teams_thread_limit{,_,_8_}.
4926 * icv.c (omp_set_num_teams, omp_get_max_teams,
4927 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
4929 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
4930 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
4931 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
4933 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
4934 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
4935 is not specified, use gomp_nteams_var.
4936 * fortran.c (omp_set_num_teams, omp_get_max_teams,
4937 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
4939 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
4940 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
4941 omp_get_teams_thread_limit_): New functions.
4943 2021-10-09 liuhongt <hongtao.liu@intel.com>
4945 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
4946 * testsuite/libgomp.c++/scan-11.C: Ditto.
4947 * testsuite/libgomp.c++/scan-12.C: Ditto.
4948 * testsuite/libgomp.c++/scan-13.C: Ditto.
4949 * testsuite/libgomp.c++/scan-14.C: Ditto.
4950 * testsuite/libgomp.c++/scan-15.C: Ditto.
4951 * testsuite/libgomp.c++/scan-16.C: Ditto.
4952 * testsuite/libgomp.c++/scan-9.C: Ditto.
4953 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
4954 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
4955 * testsuite/libgomp.c/scan-11.c: Ditto.
4956 * testsuite/libgomp.c/scan-12.c: Ditto.
4957 * testsuite/libgomp.c/scan-13.c: Ditto.
4958 * testsuite/libgomp.c/scan-14.c: Ditto.
4959 * testsuite/libgomp.c/scan-15.c: Ditto.
4960 * testsuite/libgomp.c/scan-16.c: Ditto.
4961 * testsuite/libgomp.c/scan-17.c: Ditto.
4962 * testsuite/libgomp.c/scan-18.c: Ditto.
4963 * testsuite/libgomp.c/scan-19.c: Ditto.
4964 * testsuite/libgomp.c/scan-20.c: Ditto.
4965 * testsuite/libgomp.c/scan-21.c: Ditto.
4966 * testsuite/libgomp.c/scan-22.c: Ditto.
4968 2021-10-09 Jakub Jelinek <jakub@redhat.com>
4970 * libgomp.texi (OpenMP 5.1): Mention implemented support for
4971 structured block sequences in C/C++. Mention support for
4972 unconstrained/reproducible modifiers on order clause.
4973 Mention partial (C/C++ only) support of extentensions to atomics
4974 construct. Mention partial (C/C++ on clause only) support of
4975 align/allocator modifiers on allocate clause.
4977 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
4979 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
4980 based on libgomp.c-c++-common/order-reproducible-1.c.
4981 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
4982 * testsuite/libgomp.fortran/my-usleep.c: New test.
4984 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
4986 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
4987 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
4988 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
4989 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
4990 based on libgomp.c-c++-common/alloc-9.c.
4992 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4994 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
4995 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
4997 2021-10-01 Jakub Jelinek <jakub@redhat.com>
4999 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5001 * env.c (handle_omp_display_env): Use ialias_call.
5002 * icv-device.c: Move ialias right below each function.
5003 (omp_get_device_num): Use ialias_call.
5004 * fortran.c (omp_fulfill_event): Add ialias_redirect.
5005 * icv.c (omp_get_active_level): Add ialias_redirect.
5007 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5009 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5010 __alloc_align__ (1) attribute.
5011 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5013 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5015 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5016 for -fintrinsic-modules-path= warning of the C compiler.
5017 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5018 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5020 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5022 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5023 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5024 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5026 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5028 * testsuite/libgomp.fortran/alloc-10.f90: New test.
5029 * testsuite/libgomp.fortran/alloc-6.f90: New test.
5030 * testsuite/libgomp.fortran/alloc-7.c: New test.
5031 * testsuite/libgomp.fortran/alloc-7.f90: New test.
5032 * testsuite/libgomp.fortran/alloc-8.f90: New test.
5033 * testsuite/libgomp.fortran/alloc-9.f90: New test.
5035 2021-09-30 Jakub Jelinek <jakub@redhat.com>
5037 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5038 omp_realloc): New prototypes.
5039 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5041 * allocator.c: Include string.h.
5042 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
5043 variable and use it instead of alignment so that when retrying the old
5044 alignment is used again. Don't retry if new alignment is the same
5045 as old alignment, unless allocator had pool size.
5046 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5047 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5048 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5049 omp_aligned_calloc and omp_realloc.
5050 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5051 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5052 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5053 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5054 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5055 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5057 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
5060 * configure.ac: Only check for int-type = 2*size_t support when
5061 building with Fortran support.
5062 * configure: Regenerate.
5064 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
5066 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5067 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5069 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
5071 * team.c: Initialize start_data.
5072 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5073 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5075 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5077 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5078 dg-message back to dg-note.
5080 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5083 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5084 expected dg-note output.
5086 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
5089 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5090 r12-3722 by removing -Wno-missing-include-dirs.
5091 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5093 2021-09-22 Jakub Jelinek <jakub@redhat.com>
5095 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5096 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5098 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
5101 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5103 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5105 2021-09-18 Jakub Jelinek <jakub@redhat.com>
5107 * testsuite/libgomp.c++/default-1.C: New test.
5108 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5109 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5110 to default clause in C and C++" as implemented.
5112 2021-09-17 Julian Brown <julian@codesourcery.com>
5114 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5116 2021-09-17 Julian Brown <julian@codesourcery.com>
5118 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5120 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5122 * libgomp.texi (OpenMP 5.1): Spelling fix,
5123 declare variante -> declare variant.
5125 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5127 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5128 Use /* */ comments instead of //.
5129 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5130 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5131 * testsuite/libgomp.c++/atomic-16.C: New test.
5132 * testsuite/libgomp.c++/atomic-17.C: New test.
5134 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5136 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5137 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5138 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5140 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5142 * libgomp.texi (OpenMP Implementation Status): Extend
5144 (OpenACC Profiling Interface): Fix typo.
5146 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5148 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5149 not to 4.5; link to new section.
5150 (OpenMP Implementation Status): New.
5152 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5154 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5156 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
5158 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5160 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5162 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5163 Jakub Jelinek <jakub@redhat.com>
5165 * testsuite/libgomp.c/address-space-1.c: New file.
5167 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5169 * testsuite/lib/libgomp.exp
5170 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5171 (check_effective_target_offload_device_intel_mic): New 'proc'.
5172 * testsuite/libgomp.c-c++-common/on_device_arch.h
5173 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5174 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5176 * testsuite/libgomp.fortran/target10.f90: Likewise.
5178 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
5180 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5181 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5182 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5183 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5185 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5187 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5188 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5189 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5191 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5193 * config/nvptx/error.c (fwrite, exit): Override, too.
5194 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5195 of offloading testing.
5196 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5198 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
5200 * testsuite/libgomp.fortran/error-1.f90: New test.
5202 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5204 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5205 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5206 * error.c (GOMP_warning, GOMP_error): New functions.
5207 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5209 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5211 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5212 omp_target_free. omp_target_is_present, omp_target_memcpy,
5213 omp_target_memcpy_rect, omp_target_associate_ptr,
5214 omp_target_disassociate_ptr): Add interface.
5215 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5216 omp_target_free. omp_target_is_present, omp_target_memcpy,
5217 omp_target_memcpy_rect, omp_target_associate_ptr,
5218 omp_target_disassociate_ptr): Add interface.
5219 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5220 interface block for omp_alloc + omp_free.
5221 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5222 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5223 * testsuite/libgomp.fortran/target-12.f90: New test.
5225 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5227 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5229 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5231 * testsuite/libgomp.fortran/scope-1.f90: New test.
5232 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5234 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5236 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5237 * Makefile.in: Regenerated.
5238 * libgomp_g.h (GOMP_scope_start): Declare.
5239 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5240 * scope.c: New file.
5241 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5242 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5244 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5246 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5249 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5251 * testsuite/libgomp.fortran/masked-1.f90: New test.
5253 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5255 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5257 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5259 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5261 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5263 * env.c (parse_bind_var): Accept 'primary' as alias for
5265 (omp_display_env): Add TODO comment to
5266 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5267 * libgomp.texi: Change 'master thread' to 'primary thread'
5268 in line with OpenMP 5.1.
5269 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5270 omp_proc_bind_master is an alias of it.
5271 (OMP_PROC_BIND): Mention 'PRIMARY'.
5272 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5273 (omp_proc_bind_primary): Add.
5274 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5275 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5276 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5277 * omp_lib.h.in (omp_proc_bind_primary): Add.
5278 * testsuite/libgomp.c/affinity-1.c: Check that
5279 'primary' works and is identical to 'master'.
5281 2021-08-09 Julian Brown <julian@codesourcery.com>
5282 Kwok Cheung Yeung <kcy@codesourcery.com>
5283 Thomas Schwinge <thomas@codesourcery.com>
5285 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5287 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5288 [acc_device_radeon]: Update.
5289 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5290 [ACC_DEVICE_TYPE_radeon]: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5292 [acc_device_radeon]: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5294 [ACC_DEVICE_TYPE_radeon]: Likewise.
5295 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5296 'openacc_radeon_accel_selected' and '-O0'.
5297 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5299 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5301 * icv-device.c (omp_get_device_num): New API function, host side.
5302 * fortran.c (omp_get_device_num_): New interface function.
5303 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5304 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5305 omp_get_device_num_.
5306 * libgomp.texi (omp_get_device_num): Add documentation for new API
5308 * omp.h.in (omp_get_device_num): Add declaration.
5309 * omp_lib.f90.in (omp_get_device_num): Likewise.
5310 * omp_lib.h.in (omp_get_device_num): Likewise.
5311 * target.c (gomp_load_image_to_device): If additional entry for device
5312 number exists at end of returned entries from 'load_image_func' hook,
5313 copy the assigned device number over to the device variable.
5314 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5315 (omp_get_device_num): New API function, device side.
5316 * plugin/plugin-gcn.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 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5320 (omp_get_device_num): New API function, device side.
5321 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5322 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5323 at end of returned 'target_table' entries.
5324 * testsuite/lib/libgomp.exp
5325 (check_effective_target_offload_target_intelmic): New function for
5326 testing for intelmic offloading.
5327 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5328 * testsuite/libgomp.fortran/target10.f90: New test.
5330 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5331 Ulrich Drepper <drepper@redhat.com>
5333 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5334 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5336 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5337 Julian Brown <julian@codesourcery.com>
5338 Kwok Cheung Yeung <kcy@codesourcery.com>
5340 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5341 's%oaccdevlow%oaccloops%g'.
5342 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5343 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5344 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5346 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5348 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5350 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5352 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5354 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5356 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5358 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5360 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5362 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5364 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5366 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5368 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5370 * env.c (wait_policy, stacksize): New static variables,
5371 move out of handle_omp_display_env.
5372 (omp_display_env): New function. The meat of the old
5373 handle_omp_display_env function.
5374 (handle_omp_display_env): Change to not take parameters
5375 and instead use the global variables. Only perform
5376 parsing, defer to omp_display_env for the implementation.
5377 (initialize_env): Remove local variables wait_policy and
5378 stacksize. Don't pass parameters to handle_omp_display_env.
5379 * fortran.c: Add ialias_redirect for omp_display_env.
5380 (omp_display_env_, omp_display_env_8_): New functions.
5381 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5382 omp_display_env_, and omp_display_env_8_.
5383 * omp.h.in: Declare omp_display_env.
5384 * omp_lib.f90.in: Likewise.
5385 * omp_lib.h.in: Likewise.
5387 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5388 Julian Brown <julian@codesourcery.com>
5390 * target.c (gomp_coalesce_buf_add): Update comment.
5391 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5393 (gomp_map_vars_internal): Only 'if (!aq)', do
5394 'gomp_coalesce_buf_add'.
5395 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5398 2021-07-27 Julian Brown <julian@codesourcery.com>
5399 Thomas Schwinge <thomas@codesourcery.com>
5401 * libgomp.h (gomp_copy_host2dev): Update prototype.
5402 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5403 argument to gomp_copy_host2dev (false).
5404 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5405 (copy_data): Don't free src.
5406 (queue_push_copy): Remove free_src handling.
5407 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5408 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5410 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5412 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5413 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5414 data when true, and set up deferred freeing of temporary buffer.
5415 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5416 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5417 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5418 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5419 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5422 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5423 Tom de Vries <tom@codesourcery.com>
5425 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5426 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5428 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5430 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5431 sequencing of 'async' data copying vs. profiling events.
5432 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5435 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5436 Julian Brown <julian@codesourcery.com>
5438 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5439 'async'/'wait' issue.
5440 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5441 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5442 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5444 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5445 Joseph Myers <joseph@codesourcery.com>
5446 Cesar Philippidis <cesar@codesourcery.com>
5448 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5450 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5452 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5454 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5456 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5459 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5460 '-Wno-error=array-bounds'.
5461 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5462 * libgomp.h [__AMDGCN__]: Likewise.
5464 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5467 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5468 * libgomp.h [__AMDGCN__]: Likewise.
5470 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5471 Florian Weimer <fweimer@redhat.com>
5473 * config/linux/sem.h: Don't include limits.h.
5474 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5475 * config/linux/affinity.c: Include limits.h.
5477 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5480 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5482 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5485 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5486 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5487 avoid disabling other offload targets.
5488 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5489 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5490 * testsuite/libgomp.c/target-44.c: Likewise.
5492 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5494 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5495 target has shared memory and disable some scalar pointer/allocatable
5496 checks if not as firstprivate does not work.
5498 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5501 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5502 Add "target offload_device_nonshared_as" condition for enabling test.
5504 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5506 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5507 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5508 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5509 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5511 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5513 PR middle-end/101167
5514 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5516 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5518 * hashtab.h (htab_clear): New function with initialization code
5519 factored out from...
5520 (htab_create): ...here, adjust to use htab_clear function.
5521 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5522 special refcount values, add comments.
5523 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5524 (REFCOUNT_LINK): Likewise.
5525 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5527 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5529 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5530 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5531 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5532 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5533 (struct splay_tree_key_s): Add structelem_refcount and
5534 structelem_refcount_ptr fields into a union with dynamic_refcount.
5536 (gomp_map_vars): Delete declaration.
5537 (gomp_map_vars_async): Likewise.
5538 (gomp_unmap_vars): Likewise.
5539 (gomp_unmap_vars_async): Likewise.
5540 (goacc_map_vars): New declaration.
5541 (goacc_unmap_vars): Likewise.
5542 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5543 (goacc_enter_datum): Likewise.
5544 (goacc_enter_data_internal): Likewise.
5545 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5546 and goacc_unmap_vars.
5547 (GOACC_data_start): Adjust to use goacc_map_vars.
5548 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5549 * target.c (hash_entry_type): New typedef.
5550 (htab_alloc): New function hook for hashtab.h.
5551 (htab_free): Likewise.
5552 (htab_hash): Likewise.
5553 (htab_eq): Likewise.
5554 (hashtab.h): Add file include.
5555 (gomp_increment_refcount): New function.
5556 (gomp_decrement_refcount): Likewise.
5557 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5558 gomp_increment_refcount.
5559 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5560 to gomp_map_vars_existing.
5561 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5562 variable to guard OpenMP specific paths, adjust calls to
5563 gomp_map_vars_existing, add structure element sibling splay_tree_key
5564 sequence creation code, adjust Fortran map case to avoid increment
5566 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5567 local refcount_set if caller passed in NULL, adjust call to
5568 gomp_map_vars_internal.
5569 (gomp_map_vars_async): Adjust and rename into...
5570 (goacc_map_vars): ...this new function, adjust call to
5571 gomp_map_vars_internal.
5572 (gomp_remove_splay_tree_key): New function with code factored out from
5573 gomp_remove_var_internal.
5574 (gomp_remove_var_internal): Add code to handle removing multiple
5575 splay_tree_key sequence for structure elements, adjust code to use
5576 gomp_remove_splay_tree_key for splay-tree key removal.
5577 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5578 gomp_decrement_refcount.
5579 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5580 local refcount_set if caller passed in NULL, adjust call to
5581 gomp_unmap_vars_internal.
5582 (gomp_unmap_vars_async): Adjust and rename into...
5583 (goacc_unmap_vars): ...this new function, adjust call to
5584 gomp_unmap_vars_internal.
5585 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5587 (GOMP_target_ext): Likewise.
5588 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5589 (GOMP_target_data): Likewise.
5590 (GOMP_target_data_ext): Likewise.
5591 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5592 (gomp_exit_data): Add refcount_set parameter, adjust to use
5593 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5595 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5596 gomp_map_vars and gomp_exit_data.
5597 (gomp_target_task_fn): Likewise.
5598 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5599 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5600 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5601 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5602 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5603 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5605 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5608 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5610 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5611 Thomas Schwinge <thomas@codesourcery.com>
5613 * libgomp.map (GOACC_2.0.2): New symbol version.
5614 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5615 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5617 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5618 Andrew Stubbs <ams@codesourcery.com>
5620 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5622 (GOACC_enter_exit_data): ... here.
5623 (GOACC_declare): Use it.
5625 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5627 * oacc-parallel.c (GOACC_declare): Move...
5628 * oacc-mem.c: ... here.
5629 * libgomp_g.h: Adjust.
5631 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5632 Thomas Schwinge <thomas@codesourcery.com>
5634 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5637 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5639 PR tree-optimization/100981
5640 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5641 dsdotr and dsdoti to 0.
5643 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5645 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5646 if atomic compare-and-swap is supported on 'int'.
5648 2021-06-09 Richard Biener <rguenther@suse.de>
5650 PR tree-optimization/100981
5651 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5653 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5655 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5657 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5659 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5660 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5662 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5664 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5665 '-DACC_MEM_SHARED=0'.
5666 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5667 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5668 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5669 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5670 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5671 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5672 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5673 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5674 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5675 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5676 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5677 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5678 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5679 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5680 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5681 'acc_device_radeon' testing.
5682 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5683 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5684 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5685 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5686 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5687 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5688 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5689 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5690 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5691 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5692 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5693 for non-'openacc_nvidia_accel_selected'.
5694 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5695 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5696 all implement this checking".
5697 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5698 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5699 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5700 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5701 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5703 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5705 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5706 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5708 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5710 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5711 for 'acc_device_radeon'.
5713 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5715 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5716 for non-'acc_device_nvidia'.
5718 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5720 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5721 'acc_device_radeon' testing.
5722 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5723 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5724 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5726 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5728 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5729 require 'openacc_nvidia_accel_selected'. Fix up for
5730 'ACC_DEVICE_TYPE_radeon'.
5732 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5734 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5735 'openacc_nvidia_accel_selected'.
5736 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5738 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5740 * testsuite/lib/libgomp.exp
5741 (check_effective_target_openacc_radeon_accel_selected):
5744 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5746 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5749 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5751 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5752 <acc_device_nvidia>: Update comment.
5754 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5756 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5758 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5760 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
5761 check_effective_target_openacc_cublas,
5762 check_effective_target_openacc_cudart): New.
5763 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
5764 target openacc_cublas.
5765 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5766 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5767 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
5768 target openacc_cuda.
5769 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5770 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5771 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5772 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5773 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5776 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5777 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
5778 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5779 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5780 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5781 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5782 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5783 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5784 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5785 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
5786 targets openacc_cublas and openacc_cudart.
5787 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5788 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5789 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5790 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5791 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
5792 Require effective target openacc_cudart.
5793 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
5794 for effective target openacc_cuda and add && defined USE_CUDA_H to
5795 preprocessor conditionals. Guard -lcuda also on openacc_cuda
5798 2021-05-26 Jakub Jelinek <jakub@redhat.com>
5801 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
5802 GOMP_target_end_data, GOMP_target_update_ext,
5803 GOMP_target_enter_exit_data): New dummy entrypoints.
5804 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
5805 GOMP_target_end_data, GOMP_target_update_ext,
5806 GOMP_target_enter_exit_data): Likewise.
5807 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
5808 OMPFROM, OMPTO): Define.
5809 (main): Remove #pragma omp target teams around all the tests.
5810 * testsuite/libgomp.c-c++-common/target-41.c: New test.
5811 * testsuite/libgomp.c-c++-common/target-42.c: New test.
5813 2021-05-25 Jakub Jelinek <jakub@redhat.com>
5816 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
5818 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
5821 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
5822 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
5823 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
5825 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
5828 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
5829 uninteresting/varying diagnostics.
5831 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5834 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
5835 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5837 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5840 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
5842 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5843 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
5844 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
5846 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5848 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5850 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5852 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5854 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5856 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5858 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5860 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5862 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5864 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5866 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5868 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5870 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5872 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5874 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5876 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5878 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5880 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5882 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5884 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5886 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5887 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5888 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5889 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
5890 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5891 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5892 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5893 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5894 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5895 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5896 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5897 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5898 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5899 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5900 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
5902 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
5904 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
5906 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5908 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5909 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
5911 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5912 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5913 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5914 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5915 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
5916 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5917 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5919 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5921 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5923 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5925 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5927 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5929 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5931 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5933 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5935 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5937 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5939 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5941 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5943 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
5944 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
5945 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5947 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5949 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5950 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5951 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5953 2021-05-21 Julian Brown <julian@codesourcery.com>
5954 Chung-Lin Tang <cltang@codesourcery.com>
5955 Thomas Schwinge <thomas@codesourcery.com>
5958 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
5960 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
5962 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
5965 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
5967 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
5968 for nvptx offloading.
5970 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
5972 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
5974 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
5977 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
5979 2021-05-19 Julian Brown <julian@codesourcery.com>
5981 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
5983 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5985 * testsuite/lib/libgomp.exp
5986 (check_effective_target_offload_target_nvptx): Don't shadow global
5987 'offload_targets' variable.
5989 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5991 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
5992 '-latomic' to nvptx offloading compilation.
5993 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5995 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
5997 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
5998 offloading compilation.
6000 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6002 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6003 if new tasks generated.
6004 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6006 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
6008 * testsuite/libgomp.fortran/parallel-master.f90: New test.
6010 2021-05-13 Martin Liska <mliska@suse.cz>
6013 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6014 * testsuite/libgomp.c/pr46032-2.c: Likewise.
6015 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6016 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6018 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
6020 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6021 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6023 2021-05-11 Jakub Jelinek <jakub@redhat.com>
6025 PR middle-end/100471
6026 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6027 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6029 * testsuite/libgomp.c/task-reduction-4.c: New test.
6031 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
6032 Tom de Vries <tdevries@suse.de>
6034 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6035 complex/floating-point || + && reduction with 'omp target'.
6036 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6038 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6040 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6041 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6042 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6043 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6045 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6048 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6049 declaration to scope of non-'depend'-guarded assignment to avoid races.
6051 2021-05-03 Tom de Vries <tdevries@suse.de>
6054 * testsuite/libgomp.c/target-44.c: New test.
6056 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
6058 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6060 2021-04-29 Tom de Vries <tdevries@suse.de>
6062 * testsuite/libgomp.c/pr81778.c: New test.
6064 2021-04-29 Tom de Vries <tdevries@suse.de>
6067 * testsuite/libgomp.c/target-43.c: New file.
6069 2021-04-28 Jakub Jelinek <jakub@redhat.com>
6070 Tobias Burnus <tobias@codesourcery.com>
6072 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6073 * target.c (gomp_load_plugin_for_device): If set and if a plugin
6074 can't be dlopened, silently assume it has no devices.
6075 * Makefile.in: Regenerate.
6076 * config.h.in: Regenerate.
6077 * configure: Regenerate.
6079 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6081 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6082 Use [Ww]arning in dg-bogus as FE diagnostic and default
6083 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6084 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6085 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6086 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6088 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6090 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6091 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6092 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6093 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6094 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6096 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6097 Nathan Sidwell <nathan@codesourcery.com>
6098 Tom de Vries <vries@codesourcery.com>
6099 Julian Brown <julian@codesourcery.com>
6100 Kwok Cheung Yeung <kcy@codesourcery.com>
6102 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6103 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6104 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6105 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6106 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6107 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6108 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6110 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6111 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6112 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6113 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6115 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6116 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6118 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6119 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6120 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6121 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6122 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6123 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6125 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6126 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6127 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6128 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6129 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6130 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6131 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6132 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6133 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6134 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6135 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6137 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6139 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6141 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6142 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6144 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6145 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6146 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6147 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6148 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6149 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6150 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6152 2021-04-22 Richard Biener <rguenther@suse.de>
6154 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6157 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6159 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6160 omp_depend_kind instead of defining it as 16.
6162 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6164 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6165 New, based on check_effective_target_offload_target_nvptx.
6166 (check_effective_target_offload_target_nvptx): Call it.
6167 (check_effective_target_offload_target_amdgcn): New.
6168 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6169 Require target offload_target_nvptx || offload_target_amdgcn.
6170 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6171 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6172 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6174 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6176 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6178 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6180 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6181 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6182 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6184 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6186 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6188 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6191 * testsuite/lib/libgomp.exp
6192 (check_effective_target_offload_device_nvptx): New.
6193 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6194 resolved, make sure that we exit quickly, with error status,
6196 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6197 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6199 2021-04-14 Jakub Jelinek <jakub@redhat.com>
6202 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6203 cp = omp_alloc with cp, p arguments instead of cq, q and call
6204 c_f_pointer after last cq = omp_alloc with cq, q.
6206 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6209 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6210 for loop with GT/GE condition.
6211 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6213 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6218 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6220 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6223 * team.c (gomp_thread_start): Call pthread_setspecific for
6224 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6225 has been initialized to avoid false positive warning.
6227 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6230 * testsuite/lib/on_device_arch.c: Move to ...
6231 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6232 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6233 #include on_device_arch.h.
6234 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6235 on_device_arch.h instead of using dg-additional-source.
6236 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6237 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6238 on_device_arch.c without relative paths.
6240 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6242 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6243 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6244 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6245 * config.h.in: Regenerate.
6246 * configure: Likewise.
6248 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6251 * testsuite/lib/on_device_arch.c: New file.
6252 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6253 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6254 skip for nvptx offloading, with error status.
6255 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6257 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6259 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6260 OpenACC 'serial' construct diagnostic for nvptx offloading.
6262 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6265 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6267 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6270 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6272 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6274 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6275 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6276 checking of -m32 or -mx32 options on the command line.
6277 * config.h.in: Regenerated.
6278 * configure: Regenerated.
6280 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6282 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6283 support from the target.
6285 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6286 Jakub Jelinek <jakub@redhat.com>
6289 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6290 (struct gomp_task): Replace detach and completion_sem fields with
6291 union containing completion_sem and detach_team. Add deferred_p
6293 (struct gomp_team): Remove task_detach_queue.
6294 * task.c: Include assert.h.
6295 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6296 Rearrange initialization order of fields.
6297 (task_fulfilled_p): Delete.
6298 (GOMP_task): Use address of task as the event handle. Remove
6299 initialization of detach field. Initialize deferred_p field.
6300 Use automatic local for completion_sem. Initialize detach_team field
6302 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6303 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6304 decrement task_running_count. Move finish_cancelled block out of
6305 else branch. Relocate call to gomp_team_barrier_done.
6306 (GOMP_taskwait): Handle tasks with completion events that have not
6308 (GOMP_taskgroup_end): Likewise.
6309 (omp_fulfill_event): Use address of task as event handle. Post to
6310 completion_sem for undeferred tasks. Clear detach_team if task
6311 has not finished. For finished tasks, handle post-execution tasks,
6312 call gomp_team_barrier_wake if necessary, and free task.
6313 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6314 (free_team): Remove free of task_detach_queue.
6315 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6316 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6317 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6318 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6319 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6320 Change data-sharing of detach events on enclosing parallel to private.
6321 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6323 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6324 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6325 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6326 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6327 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6328 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6329 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6330 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6331 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6332 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6333 Change data-sharing of detach events on enclosing parallel to private.
6334 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6336 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6337 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6338 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6339 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6340 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6342 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6345 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6347 2021-02-17 Julian Brown <julian@codesourcery.com>
6349 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6352 2021-02-17 Julian Brown <julian@codesourcery.com>
6354 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6355 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6357 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6359 * config/linux/x86/futex.h (__futex_wait):
6360 Revert output type back to long.
6361 (__futex_wake): Ditto.
6362 (futex_wait): Update for revert.
6363 (futex_wake): Ditto.
6365 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6367 * config/linux/x86/futex.h (__futex_wait): New static inline
6368 wrapper function. Correct output type to int and
6369 timeout type to void *.
6370 (__futex_wake): New static inline wrapper function.
6371 Correct output type to int.
6372 (futex_wait): Use __futex_wait.
6373 (futex_wake): Use __futex_wake.
6375 2021-02-10 Julian Brown <julian@codesourcery.com>
6378 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6381 2021-02-04 Julian Brown <julian@codesourcery.com>
6383 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6385 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6387 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6388 EF_AMDGPU_MACH_AMDGCN_GFX908.
6389 (gcn_gfx908_s): New constant string.
6390 (isa_hsa_name): Add gfx908.
6391 (isa_code): Add gfx908.
6393 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6395 * libgomp.texi (omp_fulfill_event): New entry.
6397 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6399 * task.c (GOMP_task): Rename priority argument to priority_arg,
6400 add priority automatic variable and modify that variable. Instead of
6401 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6402 check flags for that bit.
6404 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6407 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6409 2021-01-18 Andreas Schwab <schwab@suse.de>
6411 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6413 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6415 * config/rtems/sem.h (gomp_sem_getcount): New function.
6417 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6419 * config/linux/sem.h (gomp_sem_getcount): New function.
6420 * config/posix/sem.h (gomp_sem_getcount): New function.
6421 * config/posix/sem.c (gomp_sem_getcount): New function.
6422 * config/accel/sem.h (gomp_sem_getcount): New function.
6423 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6424 (omp_fulfill_event): Likewise.
6426 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6428 * fortran.c (omp_fulfill_event_): New.
6429 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6430 (struct gomp_team): Add task_detach_queue and task_detach_count
6432 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6433 * libgomp_g.h (GOMP_task): Add extra argument.
6434 * omp.h.in (enum omp_event_handle_t): New.
6435 (omp_fulfill_event): New.
6436 * omp_lib.f90.in (omp_event_handle_kind): New.
6437 (omp_fulfill_event): New.
6438 * omp_lib.h.in (omp_event_handle_kind): New.
6439 (omp_fulfill_event): Declare.
6440 * priority_queue.c (priority_tree_find): New.
6441 (priority_list_find): New.
6442 (priority_queue_find): New.
6443 * priority_queue.h (priority_queue_predicate): New.
6444 (priority_queue_find): New.
6445 * task.c (gomp_init_task): Initialize detach field.
6446 (task_fulfilled_p): New.
6447 (GOMP_task): Add detach argument. Ignore detach argument if
6448 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6449 field. Copy address of completion_sem into detach argument and
6450 into the start of the data record. Wait for detach event if task
6452 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6453 Remove completed tasks and requeue dependent tasks.
6454 (omp_fulfill_event): New.
6455 * team.c (gomp_new_team): Initialize task_detach_queue and
6456 task_detach_count fields.
6457 (free_team): Free task_detach_queue field.
6458 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6459 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6460 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6461 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6462 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6463 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6464 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6465 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6466 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6467 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6468 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6469 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6471 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6474 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6475 be added through preprocessor check on
6476 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6478 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6481 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6483 * configure: Regenerate.
6484 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6487 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6489 * configure: Re-generate.
6491 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6493 * configure: Re-generate.
6495 2021-01-05 Julian Brown <julian@codesourcery.com>
6497 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6498 (struct ptx_device): Add omp_stacks struct.
6499 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6500 (nvptx_close_device): Free cached stacks block and mutex.
6501 (nvptx_stacks_free): New function.
6502 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6503 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6504 (nvptx_stacks_alloc): Rename to...
6505 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6506 size or smaller is required.
6507 (nvptx_stacks_free): Remove.
6508 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6509 during kernel execution.
6511 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6513 * libgomp.texi: Bump @copying's copyright year.
6515 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6517 * libgomp.texi (Top): Avoid bad "up" link.
6519 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6521 * testsuite/libgomp.c/task-6.c: New test.
6523 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6525 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6526 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6528 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6530 * testsuite/libgomp.fortran/scan-1.f90: New test.
6532 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6535 * configure: Regenerate.
6537 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6539 * configure: Regenerate.
6541 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6543 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6544 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6546 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6548 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6551 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6553 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6554 (reserved): Delete unused define.
6556 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6558 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6559 Tcl 8.5-specific behavior.
6560 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6562 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6564 * env.c (gomp_global_icv): Remove nest_var field. Add
6565 max_active_levels_var field.
6566 (gomp_max_active_levels_var): Remove.
6567 (parse_boolean): Return true on success.
6568 (handle_omp_display_env): Express OMP_NESTED in terms of
6569 max_active_levels_var. Change format specifier for
6570 max_active_levels_var.
6571 (initialize_env): Set max_active_levels_var from
6572 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6574 * icv.c (omp_set_nested): Express in terms of
6575 max_active_levels_var.
6576 (omp_get_nested): Likewise.
6577 (omp_set_max_active_levels): Use max_active_levels_var field instead
6578 of gomp_max_active_levels_var.
6579 (omp_get_max_active_levels): Likewise.
6580 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6581 max_active_levels_var field.
6582 (gomp_supported_active_levels): Set to UCHAR_MAX.
6583 (gomp_max_active_levels_var): Delete.
6584 * libgomp.texi (omp_get_nested): Update documentation.
6585 (omp_set_nested): Likewise.
6586 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6587 (OMP_NESTED): Likewise.
6588 (OMP_NUM_THREADS): Likewise.
6589 (OMP_PROC_BIND): Likewise.
6590 * parallel.c (gomp_resolve_num_threads): Replace reference
6591 to nest_var with max_active_levels_var. Use max_active_levels_var
6592 field instead of gomp_max_active_levels_var.
6594 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6596 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6597 nvptx_usleep; use also for device={arch(gcn)}.
6599 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6601 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6602 (foo): Add tests for non-VLA private and firstprivate clauses on
6604 (bar): Likewise. Remove taking of address from private/firstprivate
6606 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6607 (foo): Add p, q, px and s arguments. Add tests for array reductions
6608 and for non-VLA private and firstprivate clauses on omp task.
6610 (main): Adjust foo caller. Don't call bar.
6612 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6613 Thomas Schwinge <thomas@codesourcery.com>
6615 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6617 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6619 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6621 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6622 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6624 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6625 Thomas Schwinge <thomas@codesourcery.com>
6628 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6630 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6632 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6633 for array reductions.
6634 (main): Adjust foo callers.
6636 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6638 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6639 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6640 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6641 * allocator.c (omp_aligned_alloc): New for now static function,
6642 add alignment argument and handle it.
6643 (omp_alloc): Reimplement using omp_aligned_alloc.
6644 (GOMP_alloc, GOMP_free): New functions.
6645 (omp_free): Add ialias.
6646 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6647 * testsuite/libgomp.c++/allocate-1.C: New test.
6649 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6652 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6654 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6656 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6658 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6659 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6660 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6661 (goacc_enter_data_internal): Likewise.
6662 * target.c (gomp_map_vars_internal):
6663 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6664 of gomp_attach_pointer for OpenMP cases.
6665 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6666 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6667 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6669 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6670 Kwok Cheung Yeung <kcy@codesourcery.com>
6672 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6673 * Makefile.in: Regenerate.
6674 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6675 pragmas to ignore -Wdeprecated-declarations warnings.
6677 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6678 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6679 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6680 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6682 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6684 * testsuite/libgomp.c/affinity-1.c: Likewise.
6685 * testsuite/libgomp.c/affinity-2.c: Likewise.
6686 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6687 * testsuite/libgomp.c/lib-1.c: Likewise.
6688 * testsuite/libgomp.c/nested-1.c: Likewise.
6689 * testsuite/libgomp.c/nested-2.c: Likewise.
6690 * testsuite/libgomp.c/nested-3.c: Likewise.
6691 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6692 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6693 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6694 * testsuite/libgomp.c/pr35549.c: Likewise.
6695 * testsuite/libgomp.c/pr42942.c: Likewise.
6696 * testsuite/libgomp.c/pr61200.c: Likewise.
6697 * testsuite/libgomp.c/sort-1.c: Likewise.
6698 * testsuite/libgomp.c/target-5.c: Likewise.
6699 * testsuite/libgomp.c/target-6.c: Likewise.
6700 * testsuite/libgomp.c/teams-1.c: Likewise.
6701 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6702 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6703 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6704 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6705 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6706 * testsuite/libgomp.fortran/lib2.f: Likewise.
6707 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6708 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6710 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6713 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6714 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6715 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6717 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6721 * testsuite/lib/libgomp.exp (libgomp_init): Set
6722 'gcc_warning_prefix', 'gcc_error_prefix'.
6724 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6726 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6727 even in field_tgt_clear initializer.
6729 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6731 * testsuite/libgomp.c/target-42.c: New test.
6733 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6734 Tom de Vries <tdevries@suse.de>
6737 * testsuite/libgomp.c/usleep.h: New file.
6738 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6739 (main): Use tgt_usleep instead of usleep.
6740 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6741 (main): Use tgt_usleep instead of usleep.
6743 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6746 * testsuite/libgomp.c/declare-variant-1.c: New test.
6748 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6750 * testsuite/libgomp.c/target-41.c: New test.
6752 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6754 * icv.c (omp_get_initial_device): Remove including corresponding
6756 * icv-device.c (omp_get_initial_device): New function. Return
6757 gomp_get_num_devices (). Add ialias.
6758 * target.c (resolve_device): Don't fail with
6759 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6760 gomp_get_num_devices ().
6761 (omp_target_alloc, omp_target_free, omp_target_is_present,
6762 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
6763 omp_target_disassociate_ptr, omp_pause_resource): Use
6764 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
6765 first use in the functions, in uses dominated by the
6766 gomp_get_num_devices call use num_devices_openmp instead.
6767 * libgomp.texi (omp_get_initial_device): Document.
6768 * config/gcn/icv-device.c (omp_get_initial_device): New function.
6770 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
6771 * testsuite/libgomp.c/target-40.c: New test.
6773 2020-10-21 Jakub Jelinek <jakub@redhat.com>
6775 * env.c (parse_target_offload): Change new_offload var type to int,
6776 preinitialize to -1, remove found var and test new_offload != -1
6779 2020-10-20 Jakub Jelinek <jakub@redhat.com>
6781 * target.c (gomp_target_init): Inside of the function, use automatic
6782 variables corresponding to num_devices, num_devices_openmp and devices
6783 global variables and update the globals only at the end of the
6786 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
6788 * env.c (gomp_target_offload_var): New.
6789 (parse_target_offload): New.
6790 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
6791 (initialize_env): Parse OMP_TARGET_OFFLOAD.
6792 * libgomp.h (gomp_target_offload_t): New.
6793 (gomp_target_offload_var): New.
6794 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
6795 * target.c (resolve_device): Generate error if device not found and
6796 offloading is mandatory.
6797 (gomp_target_fallback): Generate error if offloading is mandatory.
6798 (GOMP_target): Add argument in call to gomp_target_fallback.
6799 (GOMP_target_ext): Likewise.
6800 (gomp_target_data_fallback): Generate error if offloading is mandatory.
6801 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
6802 (GOMP_target_data_ext): Likewise.
6803 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
6804 (gomp_target_init): Return early if offloading is disabled.
6806 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
6808 * libgomp.texi (omp_get_max_active_levels): Modify description.
6809 (omp_get_supported_active_levels): Make descriptions consistent.
6811 2020-10-14 Jakub Jelinek <jakub@redhat.com>
6813 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
6815 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6817 * env.c (gomp_max_active_levels_var): Initialize to
6818 gomp_supported_active_levels.
6819 (initialize_env): Limit gomp_max_active_levels_var to be at most
6820 equal to gomp_supported_active_levels.
6821 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
6822 (omp_get_supported_active_levels_): New.
6823 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
6824 to at most equal to gomp_supported_active_levels.
6825 (omp_get_supported_active_levels): New.
6826 * libgomp.h (gomp_supported_active_levels): New.
6827 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
6828 omp_get_supported_active_levels_.
6829 * libgomp.texi (omp_get_supported_active_levels): New.
6830 (omp_set_max_active_levels): Update. Add reference to
6831 omp_get_supported_active_levels.
6832 * omp.h.in (omp_get_supported_active_levels): New.
6833 * omp_lib.f90.in (omp_get_supported_active_levels): New.
6834 * omp_lib.h.in (omp_get_supported_active_levels): New.
6835 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
6836 against omp_get_supported_active_levels.
6837 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
6839 2020-10-11 Clement Chigot <clement.chigot@atos.net>
6841 * config/t-aix: Delete and recreate libgomp before creating
6844 2020-10-08 Tom de Vries <tdevries@suse.de>
6847 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
6850 2020-10-06 Tom de Vries <tdevries@suse.de>
6852 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
6854 2020-10-06 Tom de Vries <tdevries@suse.de>
6857 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
6859 2020-10-05 Tom de Vries <tdevries@suse.de>
6862 * testsuite/libgomp.fortran/pr95654.f90: New test.
6864 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
6866 * Makefile.in: Regenerate with automake 1.15.1.
6867 * aclocal.m4: Likewise.
6868 * configure: Likewise.
6869 * testsuite/Makefile.in: Likewise.
6871 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
6873 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
6876 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6878 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
6880 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
6882 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
6883 total number of threads is one.
6884 (gomp_team_barrier_wake): Likewise.
6885 (gomp_team_barrier_wait_end): Likewise.
6886 (gomp_team_barrier_wait_cancel_end): Likewise.
6887 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
6888 (gomp_team_barrier_wake): Likewise.
6889 (gomp_team_barrier_wait_end): Likewise.
6890 (gomp_team_barrier_wait_cancel_end): Likewise.
6891 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
6893 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6896 * testsuite/libgomp.c++/pr96390.C: New test.
6897 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
6899 2020-09-27 Clement Chigot <clement.chigot@atos.net>
6901 * config/t-aix: Use $(AR) without -X32_64.
6903 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6905 * testsuite/libgomp.c/loop-25.c: New test.
6907 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
6910 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
6912 2020-09-22 Tom de Vries <tdevries@suse.de>
6914 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
6917 2020-09-16 Nathan Sidwell <nathan@acm.org>
6919 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
6921 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6924 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
6926 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
6929 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
6930 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
6931 (gomp_map_vars_existing): Update call to it.
6932 (gomp_map_fields_existing): Likewise
6933 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
6934 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
6936 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
6938 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
6939 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
6941 2020-09-14 Tom de Vries <tdevries@suse.de>
6943 * config/nvptx/atomic.c: New file. Add
6944 __sync_val_compare_and_swap_16.
6945 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
6946 target offload_target_nvptx.
6948 2020-09-08 Julian Brown <julian@codesourcery.com>
6950 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
6951 iteration-ordering assumptions.
6953 2020-09-08 Julian Brown <julian@codesourcery.com>
6955 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
6956 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6958 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
6960 * plugin/plugin-nvptx.c (nvptx_free):
6961 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
6962 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
6965 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
6967 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
6969 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
6971 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
6973 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6975 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
6976 * testsuite/libgomp.c/loop-23.c (main): Likewise.
6977 * testsuite/libgomp.c/loop-24.c: New test.
6979 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6980 Tobias Burnus <tobias@codesourcery.com>
6983 * testsuite/libgomp.fortran/pr93553.f90: New test.
6985 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6987 * testsuite/libgomp.c/loop-22.c: New test.
6988 * testsuite/libgomp.c/loop-23.c: New test.
6990 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6993 * testsuite/libgomp.c/teams-3.c: New test.
6994 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
6996 (N(test)): Use it before all N(f*) calls.
6997 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
6998 (main): Don't call all test_* functions from within
6999 #pragma omp teams reduction(|:err), call them directly.
7001 2020-08-04 Tom de Vries <tdevries@suse.de>
7004 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7005 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7007 2020-08-03 Julian Brown <julian@codesourcery.com>
7008 Thomas Schwinge <thomas@codesourcery.com>
7010 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7011 shared-memory devices. Extend with further checking.
7013 2020-08-03 Martin Jambor <mjambor@suse.cz>
7015 * plugin/Makefrag.am: Remove configuration of HSA plugin.
7016 * aclocal.m4: Regenerated.
7017 * Makefile.in: Regenerated.
7018 * config.h.in: Regenerated.
7019 * configure: Regenerated.
7020 * plugin/configfrag.ac: Likewise.
7021 * plugin/hsa_ext_finalize.h: Removed.
7022 * plugin/plugin-hsa.c: Likewise.
7023 * testsuite/Makefile.in: Regenerated.
7024 * testsuite/lib/libgomp.exp
7025 (offload_target_to_openacc_device_type): Remove hsa case.
7026 (check_effective_target_hsa_offloading_selected_nocache): Removed
7027 (check_effective_target_hsa_offloading_selected): Likewise.
7028 (libgomp_init): Do not add -Wno-hsa to additional_flags.
7029 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7030 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7031 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7032 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7033 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7034 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7035 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7036 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7037 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7038 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7039 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7040 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7041 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7042 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7043 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7044 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7045 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7046 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7047 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7048 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7049 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7050 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7051 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7052 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7054 2020-07-27 Julian Brown <julian@codesourcery.com>
7055 Thomas Schwinge <thomas@codesourcery.com>
7057 * libgomp.h (struct target_var_desc): Rename do_detach field to
7059 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
7060 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7061 (goacc_enter_data_internal): Don't affect reference counts
7062 for attach mappings.
7063 (goacc_exit_data_internal): Don't affect reference counts for detach
7065 * target.c (gomp_map_vars_existing): Don't affect reference counts for
7067 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7068 mark attach mappings.
7069 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7070 reference count for attach mappings.
7071 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7072 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7073 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7074 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7076 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7077 gracefully in no-finalize mode.
7078 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7080 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7082 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7084 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7085 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7087 2020-07-23 Julian Brown <julian@codesourcery.com>
7088 Thomas Schwinge <thomas@codesourcery.com>
7090 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7091 finalization for detach operation.
7092 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7095 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
7097 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7098 * libgomp_f.h.in (omp_check_defines): Check whether
7099 sizeof of determined Fortran kind and C typedef match.
7100 * omp_lib.f90.in: Add omp_depened_kind.
7101 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7102 * configure: Regenerate.
7103 * Makefile.in: Regenerate.
7104 * testsuite/Makefile.in: Regenerate.
7106 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7108 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7109 gcc/testsuite/c-c++-common/gomp/.
7110 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7111 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7112 from gcc/testsuite/gfortran.dg/gomp/.
7113 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7115 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7117 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7118 * omp_lib.h.in: Likewise.
7120 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
7123 * testsuite/libgomp.c/pr95620.c: New test.
7125 2020-07-16 Julian Brown <julian@codesourcery.com>
7126 Thomas Schwinge <thomas@codesourcery.com>
7128 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7129 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7131 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7133 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7134 avoid conversion on 32bit systems from 32bit to 64bit due
7135 to -fdefault-integer-8.
7137 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7139 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7140 variables; add character(kind=4) tests; update TODO comment.
7142 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7144 * allocator.c: Add ialias for omp_init_allocator and
7145 omp_destroy_allocator.
7146 * configure.ac: Set INTPTR_T_KIND.
7147 * configure: Regenerate.
7148 * Makefile.in: Regenerate.
7149 * testsuite/Makefile.in: Regenerate.
7150 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7151 omp_set_default_allocator_, omp_get_default_allocator_): New
7152 functions and ialias_redirect.
7153 * icv.c: Add ialias for omp_set_default_allocator and
7154 omp_get_default_allocator.
7155 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7156 omp_destroy_allocator_, omp_set_default_allocator_ and
7157 omp_get_default_allocator_.
7158 * omp_lib.f90.in: Add allocator traits parameters, declare
7159 allocator routines and add related kind parameters.
7160 * omp_lib.h.in: Likewise.
7161 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7162 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7163 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7164 * testsuite/libgomp.fortran/alloc-3.F: New test.
7165 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7166 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7168 2020-07-14 Tom de Vries <tom@codesourcery.com>
7169 Cesar Philippidis <cesar@codesourcery.com>
7170 Thomas Schwinge <thomas@codesourcery.com>
7171 Kwok Cheung Yeung <kcy@codesourcery.com>
7173 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7175 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7176 acc_init_state to initializing at the start, and to initialized at the
7178 (self_initializing_p): New function.
7179 (acc_get_device_type): Return acc_device_none if called by thread that
7180 is currently executing acc_init_1.
7181 * libgomp.texi (acc_get_device_type): Update documentation.
7182 (Implementation Status and Implementation-Defined Behavior): Likewise.
7183 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7185 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
7187 * config/t-aix: Set BITS from compiler cpp macro.
7189 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7191 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7193 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7196 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7198 2020-07-14 Jakub Jelinek <jakub@redhat.com>
7200 * testsuite/libgomp.c/loop-21.c: New test.
7202 2020-07-13 Julian Brown <julian@codesourcery.com>
7203 Thomas Schwinge <thomas@codesourcery.com>
7205 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7207 2020-07-10 Julian Brown <julian@codesourcery.com>
7208 Thomas Schwinge <thomas@codesourcery.com>
7210 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7212 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7213 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7215 (acc_unmap_data): Update comment.
7216 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7217 dynamic_refcount semantics.
7218 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7219 Adjust for dynamic_refcount semantics.
7220 (goacc_enter_data_internal): Implement "present" case of dynamic
7221 memory-map handling here. Update "non-present" case for
7222 dynamic_refcount semantics.
7223 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7224 * target.c (gomp_map_vars_internal): Remove
7225 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7227 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7228 (gomp_load_image_to_device): Substitute dynamic_refcount for
7230 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7231 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7232 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7233 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7234 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7236 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7238 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7240 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7241 Remove stale comment.
7242 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7243 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7244 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7245 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7246 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7247 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7249 2020-07-10 Julian Brown <julian@codesourcery.com>
7250 Thomas Schwinge <thomas@codesourcery.com>
7252 * oacc-mem.c (goacc_map_var_existing): New function.
7253 (goacc_enter_datum): Use above function.
7254 (goacc_exit_datum_1): New function.
7255 (goacc_exit_datum): Use above function.
7257 2020-07-09 Julian Brown <julian@codesourcery.com>
7258 Thomas Schwinge <thomas@codesourcery.com>
7261 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7262 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7264 2020-07-09 Julian Brown <julian@codesourcery.com>
7266 * oacc-mem.c (find_group_last): Group data-movement clauses
7267 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7268 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7270 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7272 * testsuite/libgomp.c/loop-19.c: New test.
7273 * testsuite/libgomp.c/loop-20.c: New test.
7275 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7277 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7278 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7279 it. Remove __omp_alloctrait_value_max__.
7280 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7281 omp_atk_alignment and omp_atk_pool_size.
7283 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7285 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7286 behavior for 'GOMP_MAP_FORCE_FROM'.
7287 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7289 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7291 * oacc-mem.c (goacc_exit_data_internal): Remove
7292 'GOMP_MAP_ALWAYS_FROM' handling.
7294 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7296 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7297 'scan-assembler' with 'scan-offload-rtl'.
7298 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7299 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7300 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7301 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7303 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7305 * target.c (gomp_map_vars_existing): Assert 'kind !=
7307 (gomp_map_vars_internal): Clean up.
7309 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7311 * testsuite/libgomp.c/loop-17.c: New test.
7312 * testsuite/libgomp.c/loop-18.c: New test.
7314 2020-06-26 Marek Polacek <polacek@redhat.com>
7316 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7318 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7320 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7321 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7323 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7325 * Makefile.am: Use -include.
7326 * Makefile.in: Regenerate.
7328 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7330 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7331 * Makefile.in: Regenerate
7332 * configure.ac (tmake_file): Substitute.
7333 * configure: Regenerate.
7334 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7335 * config/t-aix: New file.
7337 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7340 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7343 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7345 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7346 variant for HSA_RUNTIME_LIB name.
7347 (find_executable_symbol_1): Delete.
7348 (find_executable_symbol): Delete.
7349 (init_kernel_properties): Add ".kd" suffix to symbol names.
7350 (find_load_offset): Delete.
7351 (create_and_finalize_hsa_program): Remove relocation handling.
7353 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7355 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7357 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7361 * testsuite/libgomp.fortran/target-var.f90: New test.
7363 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7364 Julian Brown <julian@codesourcery.com>
7366 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7369 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7370 Julian Brown <julian@codesourcery.com>
7372 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7375 2020-06-05 Julian Brown <julian@codesourcery.com>
7377 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7378 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7380 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7382 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7383 Evaluate 'copyfrom' individually for each entry.
7384 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7386 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7388 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7389 Evaluate 'finalize' individually for each entry.
7390 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7391 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7394 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7396 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7398 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7400 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7401 Julian Brown <julian@codesourcery.com>
7403 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7405 (acc_unmap_data, goacc_exit_data_internal): Restore
7406 'is_tgt_unmapped' checking.
7407 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7409 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7410 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7411 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7412 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7413 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7414 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7416 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7417 Julian Brown <julian@codesourcery.com>
7419 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7421 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7424 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7426 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7429 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7432 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7433 Julian Brown <julian@codesourcery.com>
7435 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7437 (acc_map_data): Clean up accordingly.
7439 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7441 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7442 of over-eager 'finalize' clause.
7443 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7445 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7446 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7447 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7448 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7449 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7450 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7451 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7452 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7454 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7456 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7458 2020-06-04 Julian Brown <julian@codesourcery.com>
7460 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7462 (goacc_detach_internal): Likewise.
7464 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7466 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7468 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7469 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7470 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7471 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7472 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7474 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7476 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7479 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7481 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7483 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7485 * allocator.c (omp_alloc): For size == 0, return NULL early.
7487 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7490 * configure: Regenerated.
7492 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7495 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7497 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7499 * omp.h.in (omp_uintptr_t): New typedef.
7500 (__GOMP_UINTPTR_T_ENUM): Define.
7501 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7502 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7503 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7504 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7505 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7506 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7507 (gomp_def_allocator): Declare.
7508 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7509 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7510 omp_alloc and omp_free.
7511 * team.c (gomp_team_start): Copy over ts.def_allocator.
7512 * env.c (gomp_def_allocator): New variable.
7513 (parse_wait_policy): Adjust function comment.
7514 (parse_allocator): New function.
7515 (handle_omp_display_env): Print OMP_ALLOCATOR.
7516 (initialize_env): Call parse_allocator.
7517 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7518 * allocator.c: New file.
7519 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7521 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7522 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7523 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7524 * Makefile.in: Regenerated.
7526 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7529 * configure: Regenerated.
7531 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7534 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7536 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7538 * configure: Regenerated.
7540 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7542 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7544 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7547 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7548 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7549 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7550 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7551 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7552 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7553 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7555 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7557 * testsuite/libgomp.c/target-39.c: New test.
7559 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7561 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7562 * openacc.f90 (acc_device_current): Likewise.
7563 * openacc.h (acc_device_current): Likewise.
7564 * openacc_lib.h (acc_device_current): Likewise.
7567 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7568 'dg-allow-blank-lines-in-output'.
7570 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7571 * testsuite/lib/libgomp.exp
7572 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7573 'radeon'. Adjust all users.
7574 (check_effective_target_openacc_amdgcn_accel_present): Rename
7576 (check_effective_target_openacc_radeon_accel_present): ... this.
7578 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7579 (check_effective_target_openacc_radeon_accel_selected): ... this.
7582 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7585 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7589 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7591 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7592 hsa_agent_iterate_regions.
7594 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7597 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7600 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7603 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7606 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7609 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7611 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7614 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7616 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7618 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7620 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7622 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7624 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7626 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7628 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7630 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7632 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7634 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7636 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7638 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7640 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7642 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7644 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7646 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7648 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7650 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7652 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7654 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7656 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7658 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7660 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7662 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7664 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7666 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7668 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7670 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7672 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7674 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7676 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7679 2020-04-10 Julian Brown <julian@codesourcery.com>
7680 Thomas Schwinge <thomas@codesourcery.com>
7683 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7685 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7687 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7689 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7691 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7693 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7695 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7697 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7699 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7701 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7703 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7705 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7707 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7709 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7711 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7713 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7716 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7718 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7721 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7724 * libgomp.oacc-c++/declare-pr94120.C: New.
7726 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7728 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7730 * configure: Regenerate.
7731 * testsuite/libgomp-site-extra.exp.in: New file.
7732 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7734 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7736 * testsuite/Makefile.in: Regenerate.
7738 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7740 PR tree-optimization/89713
7742 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7744 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7746 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7748 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7749 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7751 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7754 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7756 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7759 * target.c (gomp_load_image_to_device): Fix link
7762 2020-03-19 Jakub Jelinek <jakub@redhat.com>
7765 * testsuite/libgomp.c++/pr93931.C: New test.
7767 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
7769 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
7770 dg-allow-blank-lines-in-output.
7772 2020-03-18 Julian Brown <julian@codesourcery.com>
7773 Tobias Burnus <tobias@codesourcery.com>
7775 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7776 it work concurrently.
7778 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
7780 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
7781 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
7782 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
7784 2020-03-14 Jakub Jelinek <jakub@redhat.com>
7787 * testsuite/libgomp.c/pr93566.c: New test.
7789 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
7791 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
7792 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
7793 integer(acc_device_property) for the type of the return value of
7796 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
7798 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
7799 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
7800 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
7801 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7802 (acc_set_device_num): Fix Fortran argument name, use same name for C.
7803 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
7804 corrections; add note about the previous interface and named constant.
7805 (OpenACC library and environment variables): Fix two typos.
7806 * openacc.f90: Use for all procedures the argument names from the spec
7807 as for …_h they are user visible.
7808 (openacc_kinds): Rename acc_device_property to
7809 acc_device_property_kinds and change value to int32 ; and update users.
7810 Re-add acc_device_property for for backward compatibility.
7811 (acc_get_property_string_h): Clean up as acc_device_property_kind
7813 (acc_get_property_h): Likewise and return c_size_t instead of
7814 acc_device_property.
7815 (openacc): Also export acc_device_property_kinds.
7816 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
7817 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
7818 handling; check against /= 0 instead of == 1 to match C.
7819 * openacc_lib.h: Use for all procedures the argument names from the spec
7820 as for …_h they are user visible. Place !GCC$ into the first column to
7821 be active also for fixed-form souce form.
7822 (acc_device_current, acc_device_property_kind, acc_device_property,
7823 acc_property_memory, acc_property_free_memory, acc_property_name,
7824 acc_property_vendor, acc_property_driver): New named constants.
7825 (acc_get_property, acc_get_property_string): New generic interface.
7827 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
7830 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
7831 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
7833 (gomp_target_task_fn): Assert "devicep->async_run_func".
7834 (clear_unsupported_flags): New function to remove unsupported flags
7835 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
7836 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
7837 * testsuite/libgomp.c/target-33.c:
7838 Remove xfail for offload_target_nvptx.
7839 * testsuite/libgomp.c/target-34.c: Likewise.
7841 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
7843 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
7844 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
7845 * testsuite/libgomp.c/target-34.c: Likewise.
7846 * testsuite/libgomp.c/target-link-1.c: Add xfail for
7847 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
7849 2020-02-09 Jakub Jelinek <jakub@redhat.com>
7851 * testsuite/libgomp.c/target-38.c: New test.
7853 2020-02-06 Jakub Jelinek <jakub@redhat.com>
7856 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
7858 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
7860 * testsuite/lib/libgomp.exp
7861 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
7862 and not as 'source' argument to libgomp_target_compile.
7864 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
7866 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
7867 (gcn_gfx801_s): Remove.
7868 (isa_hsa_name): Remove gfx801.
7869 (isa_gcc_name): Remove gfx801/carizzo.
7870 (isa_code): Remove gfx801.
7872 2020-02-03 Julian Brown <julian@codesourcery.com>
7873 Tobias Burnus <tobias@codesourcery.com>
7875 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
7876 and *_finalize variants; document acc_attach and acc_detach; update
7877 references from OpenACC 2.0 to 2.6.
7878 * openacc.f90 (openacc_version): Update to 201711.
7879 * openacc_lib.h (openacc_version): Update to 201711.
7880 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
7881 openacc_version to 201711.
7882 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7884 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
7886 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
7887 and vgpr_count fields.
7888 (struct kernel_info): Add a field for a hsa_kernel_description.
7889 (run_kernel): Reduce the number of threads/workers if the requested
7890 number would require too many VGPRs.
7891 (init_basic_kernel_info): Initialize description field with
7892 the hsa_kernel_description entry for the kernel.
7894 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
7897 * plugin/configfrag.ac (enable_offload_targets): Skip
7898 HSA and GCN plugin besides -m32 also for -mx32.
7899 * configure: Regenerate.
7901 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7903 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
7905 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
7907 * plugin-gcn.c (struct agent_info): Add fields "name" and
7909 (GOMP_OFFLOAD_init_device): ... and init from here.
7910 (struct hsa_context_info): Add field "driver_version_s" ...
7911 (init_hsa_contest): ... and init from here.
7912 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
7914 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7915 Enable test execution for amdgcn and host offloading targets.
7916 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
7917 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7918 (expect_device_properties): Split function into ...
7919 (expect_device_string_properties): ... this new function ...
7920 (expect_device_memory): ... and this new function.
7921 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
7924 2020-01-28 Julian Brown <julian@codesourcery.com>
7926 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
7927 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
7928 component/non-component variable refs in a single directive.
7929 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
7931 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
7933 * configure.ac: Handle `--with-toolexeclibdir='.
7934 * Makefile.in: Regenerate.
7935 * aclocal.m4: Regenerate.
7936 * configure: Regenerate.
7937 * testsuite/Makefile.in: Regenerate.
7939 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
7941 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
7942 (expect_device_properties): Remove "expected_free_mem" argument,
7943 change "expected_total_mem" argument type to size_t;
7944 change types of acc_get_property results to size_t,
7945 adapt format strings.
7946 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
7947 Use %zu instead of %zd to print size_t values.
7948 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
7950 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
7951 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
7953 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
7955 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
7957 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
7960 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
7962 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
7963 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
7964 Adjust test dimensions for amdgcn.
7965 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
7966 gang/worker/vector expectations dynamically.
7967 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
7969 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
7971 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
7972 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
7973 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
7976 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
7977 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
7978 (acc_gang): Recognise acc_device_radeon.
7979 (acc_worker): Likewise.
7980 (acc_vector): Likewise.
7981 (main): Set expectations for amdgcn.
7982 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
7983 (main): Adjust gang/worker/vector expectations dynamically.
7984 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
7990 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
7992 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
7994 (openacc): Likewise.
7995 * openacc.f90 (openacc_kinds): Likewise.
7996 (openacc): Likewise.
7997 * openacc.h (acc_device_t): Likewise.
7998 * openacc_lib.h: Likewise.
7999 * testsuite/lib/libgomp.exp
8000 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8002 (cb_compute_construct_end): Likewise.
8003 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8004 (cb_enqueue_launch_start): Likewise.
8005 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8006 (cb_enter_data_end): Likewise.
8007 (cb_exit_data_start): Likewise.
8008 (cb_exit_data_end): Likewise.
8009 (cb_compute_construct_end): Likewise.
8010 (cb_enqueue_launch_start): Likewise.
8011 (cb_enqueue_launch_end): Likewise.
8012 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8015 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
8017 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
8018 to use this instead of 'enum gomp_device_property'.
8019 (GOMP_OFFLOAD_get_property): Rename to...
8020 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
8021 * libgomp.h (struct gomp_device_descr): Move
8022 'GOMP_OFFLOAD_openacc_get_property'...
8023 (struct acc_dispatch_t): ... here. Adjust all users.
8024 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8026 * target.c (gomp_map_vars_internal)
8027 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8030 2020-01-10 Jakub Jelinek <jakub@redhat.com>
8033 * libgomp.h (gomp_print_string): Change return type from void to int.
8034 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
8035 not all characters have been written.
8037 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
8039 * libgomp.texi: Fix typos, use https.
8041 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
8043 * testsuite/libgomp.fortran/optional-map.f90: Add test for
8044 unallocated/disassociated actual arguments to nonallocatable/nonpointer
8045 dummy arguments; those are/shall be regarded as absent arguments.
8046 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8047 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8049 2020-01-01 Jakub Jelinek <jakub@redhat.com>
8051 Update copyright years.
8053 * libgomp.texi: Bump @copying's copyright year.
8055 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
8058 * oacc-init.c (goacc_runtime_deinitialize): New function.
8060 2019-12-28 Jakub Jelinek <jakub@redhat.com>
8063 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8064 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
8066 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
8067 Frederik Harwath <frederik@codesourcery.com>
8068 Thomas Schwinge <tschwinge@codesourcery.com>
8070 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8071 * libgomp-plugin.h (gomp_device_property_value): New union.
8072 (gomp_device_property_value): New prototype.
8073 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8075 (acc_device_property_t): New enum.
8076 (acc_get_property, acc_get_property_string): New prototypes.
8077 * oacc-init.c (acc_get_device_type): Also assert that result
8078 is not `acc_device_current'.
8079 (get_property_any, acc_get_property, acc_get_property_string):
8081 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8082 `acc_property_memory', `acc_property_free_memory',
8083 `acc_property_name', `acc_property_vendor' and
8084 `acc_property_driver' constants. Add `acc_device_property' data
8086 (openacc_internal): Add `acc_get_property' and
8087 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8088 `acc_get_property_string_h', `acc_get_property_l' and
8089 `acc_get_property_string_l'.
8090 * oacc-host.c (host_get_property): New function.
8091 (host_dispatch): Wire it.
8092 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8093 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8094 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8095 * libgomp.texi (OpenACC Runtime Library Routines): Add
8097 (acc_get_property): New node.
8098 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8100 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8101 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8102 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8104 (GOMP_OFFLOAD_get_property): New function.
8105 (struct ptx_device): Add new field "name".
8106 (cuda_driver_version_s): Add new static variable ...
8107 (nvptx_init): ... and init from here.
8109 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8110 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8111 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8112 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8113 with test helper functions.
8115 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8117 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
8119 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8122 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8124 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8127 2019-12-19 Julian Brown <julian@codesourcery.com>
8129 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8130 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8131 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8133 2019-12-19 Julian Brown <julian@codesourcery.com>
8134 Cesar Philippidis <cesar@codesourcery.com>
8136 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8137 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8138 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8139 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8140 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8141 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8142 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8143 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8144 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8145 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8146 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8147 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8148 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8150 2019-12-19 Julian Brown <julian@codesourcery.com>
8152 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8153 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8154 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8155 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8156 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8157 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8158 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8159 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8160 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8161 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8162 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8163 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8165 2019-12-19 Julian Brown <julian@codesourcery.com>
8167 * libgomp.h (struct target_var_desc): Add do_detach flag.
8168 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8169 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8170 struct components. Tidy up and add some new checks.
8171 (goacc_enter_data_internal): Update call to find_group_last.
8172 (goacc_exit_data_internal): Support detach operations and
8174 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8175 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8176 attach/detach in enter/exit data detection code.
8177 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8179 (gomp_map_vars_internal): Support attach.
8180 (gomp_unmap_vars_internal): Support detach.
8182 2019-12-19 Julian Brown <julian@codesourcery.com>
8183 Thomas Schwinge <thomas@codesourcery.com>
8185 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8186 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8187 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8188 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8189 acc_detach_finalize_async.
8190 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8191 acc_detach, acc_detach_async, acc_detach_finalize,
8192 acc_detach_finalize_async): New functions.
8193 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8194 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8196 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8197 (gomp_remove_var_internal): Free attachment counts if present.
8198 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8199 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8201 2019-12-19 Julian Brown <julian@codesourcery.com>
8202 Cesar Philippidis <cesar@codesourcery.com>
8204 * libgomp.h (gomp_map_val): Add prototype.
8205 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8206 open-coding device-address calculation.
8207 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8210 2019-12-19 Julian Brown <julian@codesourcery.com>
8212 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8213 field for virtual_refcount.
8214 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8215 (gomp_free_memmap): Remove prototype.
8216 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8217 instead of calling gomp_free_memmap.
8218 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8220 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8221 to_free field to NULL then calling gomp_unmap_vars. Handle
8222 REFCOUNT_INFINITY on target blocks.
8223 (goacc_enter_data): Rename to...
8224 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8225 handling for mapping groups. Use virtual_refcount instead of
8226 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8227 map_map_vars_async call. Re-do lookup for target pointer return value.
8228 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8229 renamed goacc_enter_datum function.
8230 (goacc_exit_data): Rename to...
8231 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8232 (acc_delete, acc_delete_async, acc_delete_finalize,
8233 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8234 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8235 goacc_exit_datum function.
8236 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8237 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8239 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8240 goacc_exit_data_internal helper functions.
8241 * target.c (gomp_map_vars_internal): Handle
8242 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8244 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8245 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8246 virtual_refcount field instead of dynamic_refcount.
8247 (gomp_free_memmap): Remove function.
8248 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8249 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8250 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8252 2019-12-19 Julian Brown <julian@codesourcery.com>
8253 Thomas Schwinge <thomas@codesourcery.com>
8255 * libgomp.h (struct splay_tree_aux): New.
8256 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8257 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8259 (gomp_remove_var_internal): Free aux block if present.
8260 (gomp_load_image_to_device): Zero-initialise aux field instead of
8262 (omp_target_associate_pointer): Zero-initialise aux field.
8264 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8267 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8269 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8272 2019-12-19 Julian Brown <julian@codesourcery.com>
8273 Maciej W. Rozycki <macro@codesourcery.com>
8274 Tobias Burnus <tobias@codesourcery.com>
8275 Thomas Schwinge <thomas@codesourcery.com>
8277 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8278 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8279 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8280 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8281 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8282 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8283 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8284 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8285 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8287 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8289 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8291 (goacc_insert_pointer): ... from here, "present" case.
8292 (goacc_insert_pointer): Inline function into...
8293 (GOACC_enter_exit_data): ... here, and simplify.
8295 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8297 (goacc_insert_pointer): ... from here, "not present" case.
8299 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8302 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8303 'goacc_enter_data', 'goacc_exit_data'.
8305 * oacc-mem.c (delete_copyout): Refactor into...
8306 (goacc_exit_data): ... this. Adjust all users.
8308 * oacc-mem.c (present_create_copy): Refactor into...
8309 (goacc_enter_data): ... this. Adjust all users.
8311 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8314 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8315 like 'GOMP_MAP_FROM'.
8320 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8322 (GOACC_enter_exit_data): Simplify accordingly.
8323 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8325 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8326 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8328 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8330 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8331 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8333 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8335 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8337 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8338 'finalize' handling.
8341 * oacc-mem.c (acc_map_data, present_create_copy)
8342 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8343 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8344 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8345 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8346 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8347 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8348 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8349 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8352 * target.c (gomp_unmap_tgt): Make it 'static'.
8353 * libgomp.h (gomp_unmap_tgt): Remove.
8355 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8358 * testsuite/libgomp.c/pr86416-1.c: New.
8359 * testsuite/libgomp.c/pr86416-2.c: New.
8361 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8363 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8364 all symbols as public except for the 'use …, only' imported symbol,
8366 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8367 all symbols from module openacc_kinds as PUBLIC
8368 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8370 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8372 2019-12-13 Julian Brown <julian@codesourcery.com>
8376 * libgomp.h (gomp_remove_var_async): Add prototype.
8377 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8379 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8380 whether target_mem_desc was unmapped.
8381 (gomp_unref_tgt_void): New.
8382 (gomp_remove_var): Reimplement in terms of...
8383 (gomp_remove_var_internal): ...this new helper function.
8384 (gomp_remove_var_async): New, implemented using above helper function.
8385 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8388 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8390 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8391 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8392 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8393 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8394 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8396 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8397 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8399 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8401 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8402 as public except for the 'use …, only' imported symbol, which is
8404 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8405 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8406 attributes for acc_copyout_finalize and acc_delete_finalize.
8408 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8411 * testsuite/libgomp.fortran/atomic1.f90: New test.
8413 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8416 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8417 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8419 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8420 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8421 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8422 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8423 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8425 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8426 * oacc-mem.c: ... here.
8427 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8428 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8429 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8431 * libgomp_g.h: Update.
8433 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8434 * oacc-async.c: ... here.
8435 * oacc-int.h (goacc_wait): Declare.
8436 * libgomp_g.h: Update
8439 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8441 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8443 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8445 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8447 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8449 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8452 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8453 Julian Brown <julian@codesourcery.com>
8455 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8456 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8458 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8460 * omp_lib.h.in: Fix spelling of function declaration
8461 omp_get_cancell(l)ation.
8462 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8464 * env.c: Fix comment typos.
8465 * oacc-host.c: Likewise.
8466 * ordered.c: Likewise.
8469 * config/gcn/task.c: Likewise.
8470 * config/gcn/team.c: Likewise.
8471 * config/nvptx/task.c: Likewise.
8472 * config/nvptx/team.c: Likewise.
8473 * plugin/plugin-gcn.c: Likewise.
8474 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8475 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8476 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8478 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8480 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8481 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8482 unnecessary 'dg-additional-options "-w"'.
8484 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8485 Julian Brown <julian@codesourcery.com>
8490 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8491 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8493 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8495 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8497 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8499 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8502 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8503 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8505 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8507 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8509 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8511 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8513 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8515 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8516 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8521 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8522 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8524 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8527 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8528 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8529 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8531 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8533 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8535 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8536 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8539 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8541 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8543 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8545 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8547 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8548 ... with their content moved into, and extended in this new file.
8549 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8551 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8553 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8555 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8558 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8561 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8563 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8565 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8567 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8569 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8571 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8572 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8573 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8574 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8576 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8577 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8579 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8581 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8583 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8584 Kwok Cheung Yeung <kcy@codesourcery.com>
8586 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8587 if input it a NULL pointer.
8588 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8589 diagnostic of NULL pointer.
8590 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8591 * testsuite/libgomp.fortran/optional-map.f90: New.
8592 * testsuite/libgomp.fortran/use_device_addr-1.f90
8593 (test_dummy_opt_callee_1_absent): New.
8594 (test_dummy_opt_call_1): Call it.
8595 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8596 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8597 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8598 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8599 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8600 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8601 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8602 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8603 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8604 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8605 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8606 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8607 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8608 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8609 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8610 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8612 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8614 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8615 expect dg-output of 'Error termination.' for GCN.
8616 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8617 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8619 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8622 * testsuite/libgomp.fortran/teams1.f90: New test.
8623 * testsuite/libgomp.fortran/teams2.f90: New test.
8625 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8627 * oacc-init.c (acc_known_device_type): Add function.
8628 (unknown_device_type_error): Add function.
8629 (name_of_acc_device_t): Change to call unknown_device_type_error
8631 (resolve_device): Use acc_known_device_type.
8632 (acc_init): Fail if acc_device_t argument is not valid.
8633 (acc_shutdown): Likewise.
8634 (acc_get_num_devices): Likewise.
8635 (acc_set_device_type): Likewise.
8636 (acc_get_device_num): Likewise.
8637 (acc_set_device_num): Likewise.
8638 (acc_on_device): Add comment that argument validity is not checked.
8640 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8642 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8644 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8645 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8646 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8647 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8648 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8650 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8653 * configure.tgt: Avoid IE tls on *-*-musl*.
8655 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8657 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8658 adding a common-block test case.
8660 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8663 * testsuite/libgomp.c++/udr-20.C: New test.
8664 * testsuite/libgomp.c++/udr-21.C: New test.
8666 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8668 * testsuite/lib/libgomp.exp
8669 (check_effective_target_offload_target_nvptx): New proc.
8670 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8672 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8673 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8674 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8676 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8678 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8679 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8680 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8681 * testsuite/libgomp.c/private-1.c: Likewise.
8682 * testsuite/libgomp.c/task-1.c: Likewise.
8683 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8685 2019-11-20 Julian Brown <julian@codesourcery.com>
8687 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8689 (queue_push_launch): Lock aq->mutex before calling
8690 wait_for_queue_nonfull.
8691 (queue_push_callback): Likewise.
8692 (queue_push_asyncwait): Likewise.
8693 (queue_push_placeholder): Likewise.
8695 2019-11-20 Julian Brown <julian@codesourcery.com>
8697 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8698 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8699 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8702 2019-11-20 Julian Brown <julian@codesourcery.com>
8706 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8707 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8708 in non-present/create case.
8709 (delete_copyout): Change error condition to fail only on copies outside
8710 of mapped block. Adjust error message accordingly.
8711 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8712 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8713 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8715 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8716 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8717 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8719 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8721 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8722 libatomic in build-tree testing.
8724 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8726 * testsuite/Makefile.in: Regenerate.
8728 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8730 * testsuite/libgomp.c/target-print-1.c: New file.
8731 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8732 * testsuite/libgomp.oacc-c/print-1.c: New file.
8733 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8735 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8736 Kwok Cheung Yeung <kcy@codesourcery.com>
8737 Julian Brown <julian@codesourcery.com>
8738 Tom de Vries <tom@codesourcery.com>
8740 * plugin/Makefrag.am: Add amdgcn plugin support.
8741 * plugin/configfrag.ac: Likewise.
8742 * plugin/plugin-gcn.c: New file.
8743 * configure: Regenerate.
8744 * Makefile.in: Regenerate.
8745 * testsuite/Makefile.in: Regenerate.
8747 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8749 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8750 and use team_malloc variants.
8751 (gomp_gcn_exit_kernel): Use team_free.
8752 * libgomp.h (TEAM_ARENA_SIZE): Define.
8753 (TEAM_ARENA_START): Define.
8754 (TEAM_ARENA_FREE): Define.
8755 (TEAM_ARENA_END): Define.
8756 (team_malloc): New function.
8757 (team_malloc_cleared): New function.
8758 (team_free): New function.
8759 * team.c (gomp_new_team): Initialize and use team_malloc.
8760 (free_team): Use team_free.
8761 (gomp_free_thread): Use team_free.
8762 (gomp_pause_host): Use team_free.
8763 * work.c (gomp_init_work_share): Use team_malloc.
8764 (gomp_fini_work_share): Use team_free.
8766 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8767 Kwok Cheung Yeung <kcy@codesourcery.com>
8768 Julian Brown <julian@codesourcery.com>
8769 Tom de Vries <tom@codesourcery.com>
8771 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
8772 * Makefile.in: Regenerate.
8773 * config.h.in (PLUGIN_GCN): Add new undef.
8774 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
8775 * config/gcn/affinity-fmt.c: New file.
8776 * config/gcn/bar.c: New file.
8777 * config/gcn/bar.h: New file.
8778 * config/gcn/doacross.h: New file.
8779 * config/gcn/icv-device.c: New file.
8780 * config/gcn/oacc-target.c: New file.
8781 * config/gcn/simple-bar.h: New file.
8782 * config/gcn/target.c: New file.
8783 * config/gcn/task.c: New file.
8784 * config/gcn/team.c: New file.
8785 * config/gcn/time.c: New file.
8786 * configure.ac: Add amdgcn*-*-*.
8787 * configure: Regenerate.
8788 * configure.tgt: Add amdgcn*-*-*.
8789 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
8790 * libgomp.h (gcn_thrs): Add amdgcn variant.
8791 (set_gcn_thrs): Likewise.
8792 (gomp_thread): Likewise.
8793 * oacc-int.h (goacc_thread): Likewise.
8794 * oacc-target.c: New file.
8795 * openacc.f90 (acc_device_gcn): New parameter.
8796 * openacc.h (acc_device_t): Add acc_device_gcn.
8797 * team.c (gomp_free_pool_helper): Add amdgcn support.
8799 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8800 Julian Brown <julian@codesourcery.com>
8802 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
8804 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
8806 * oacc-host.c (host_openacc_async_construct): Add device parameter.
8807 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
8810 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8812 * configure.tgt (nvptx*-*-*): Add "accel" directory.
8813 * config/nvptx/libgomp-plugin.c: Move ...
8814 * config/accel/libgomp-plugin.c: ... to here.
8815 * config/nvptx/lock.c: Move ...
8816 * config/accel/lock.c: ... to here.
8817 * config/nvptx/mutex.c: Move ...
8818 * config/accel/mutex.c: ... to here.
8819 * config/nvptx/mutex.h: Move ...
8820 * config/accel/mutex.h: ... to here.
8821 * config/nvptx/oacc-async.c: Move ...
8822 * config/accel/oacc-async.c: ... to here.
8823 * config/nvptx/oacc-cuda.c: Move ...
8824 * config/accel/oacc-cuda.c: ... to here.
8825 * config/nvptx/oacc-host.c: Move ...
8826 * config/accel/oacc-host.c: ... to here.
8827 * config/nvptx/oacc-init.c: Move ...
8828 * config/accel/oacc-init.c: ... to here.
8829 * config/nvptx/oacc-mem.c: Move ...
8830 * config/accel/oacc-mem.c: ... to here.
8831 * config/nvptx/oacc-plugin.c: Move ...
8832 * config/accel/oacc-plugin.c: ... to here.
8833 * config/nvptx/omp-lock.h: Move ...
8834 * config/accel/omp-lock.h: ... to here.
8835 * config/nvptx/openacc.f90: Move ...
8836 * config/accel/openacc.f90: ... to here.
8837 * config/nvptx/pool.h: Move ...
8838 * config/accel/pool.h: ... to here.
8839 * config/nvptx/proc.c: Move ...
8840 * config/accel/proc.c: ... to here.
8841 * config/nvptx/ptrlock.c: Move ...
8842 * config/accel/ptrlock.c: ... to here.
8843 * config/nvptx/ptrlock.h: Move ...
8844 * config/accel/ptrlock.h: ... to here.
8845 * config/nvptx/sem.c: Move ...
8846 * config/accel/sem.c: ... to here.
8847 * config/nvptx/sem.h: Move ...
8848 * config/accel/sem.h: ... to here.
8849 * config/nvptx/thread-stacksize.h: Move ...
8850 * config/accel/thread-stacksize.h: ... to here.
8852 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
8853 Tobias Burnus <tobias@codesourcery.com>
8854 Frederik Harwath <frederik@codesourcery.com>
8855 Thomas Schwinge <thomas@codesourcery.com>
8858 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
8859 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
8860 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
8862 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
8863 Kwok Cheung Yeung <kcy@codesourcery.com>
8865 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
8866 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
8868 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
8870 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
8872 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
8874 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8875 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
8877 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
8879 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
8880 Add expected warnings about missing reduction clauses.
8881 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8883 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
8885 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
8888 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8890 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
8891 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
8892 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
8893 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
8894 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
8895 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
8897 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
8900 * testsuite/libgomp.fortran/allocatable2.f90: Use
8901 unique numbers with 'stop'.
8902 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
8903 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
8904 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
8905 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
8906 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
8908 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
8910 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
8911 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
8912 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8913 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
8914 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
8915 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
8917 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8919 * testsuite/libgomp.fortran/target9.f90: New.
8921 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
8923 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
8924 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
8925 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
8926 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
8927 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
8928 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
8929 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
8930 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
8931 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
8932 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
8933 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
8934 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
8935 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
8936 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
8937 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
8938 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
8939 * testsuite/libgomp.fortran/associate1.f90: Ditto.
8940 * testsuite/libgomp.fortran/associate2.f90: Ditto.
8941 * testsuite/libgomp.fortran/associate3.f90: Ditto.
8942 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
8943 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
8944 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
8945 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
8946 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
8947 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
8948 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
8949 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
8950 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
8951 * testsuite/libgomp.fortran/character1.f90: Ditto.
8952 * testsuite/libgomp.fortran/character2.f90: Ditto.
8953 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
8954 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
8955 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
8956 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
8957 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
8958 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
8959 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
8960 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
8961 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
8962 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
8963 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
8964 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
8965 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
8966 * testsuite/libgomp.fortran/do1.f90: Ditto.
8967 * testsuite/libgomp.fortran/do2.f90: Ditto.
8968 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
8969 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
8970 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
8971 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
8972 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
8973 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
8974 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
8975 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
8976 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
8977 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
8978 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
8979 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
8980 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
8981 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
8982 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
8983 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
8984 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
8985 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
8986 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
8987 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
8988 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
8989 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
8990 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
8991 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
8992 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
8993 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
8994 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
8995 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
8996 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
8997 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
8998 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
8999 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9000 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9001 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9002 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9003 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9004 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9005 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9006 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9007 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9008 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9009 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9010 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9011 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9012 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9013 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9014 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9015 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9016 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9017 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9018 * testsuite/libgomp.fortran/lib1.f90: Ditto.
9019 * testsuite/libgomp.fortran/lib4.f90: Ditto.
9020 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9021 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9022 * testsuite/libgomp.fortran/nested1.f90: Ditto.
9023 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9024 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9025 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9026 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9027 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9028 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9029 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9030 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9031 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9032 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9033 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9034 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9035 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9036 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9037 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9038 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9039 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9040 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9041 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9042 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9043 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9044 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9045 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9046 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9047 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9048 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9049 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9050 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9051 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9052 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9053 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9054 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9055 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9056 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9057 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9058 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9059 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9060 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9061 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9062 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9063 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9064 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9065 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9066 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9067 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9068 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9069 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9070 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9071 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9072 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9073 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9074 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9075 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9076 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9077 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9078 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9079 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9080 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9081 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9082 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9083 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9084 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9085 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9086 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9087 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9088 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9089 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9090 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9091 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9092 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9093 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9094 * testsuite/libgomp.fortran/stack.f90: Ditto.
9095 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9096 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9097 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9098 * testsuite/libgomp.fortran/target1.f90: Ditto.
9099 * testsuite/libgomp.fortran/target2.f90: Ditto.
9100 * testsuite/libgomp.fortran/target3.f90: Ditto.
9101 * testsuite/libgomp.fortran/target4.f90: Ditto.
9102 * testsuite/libgomp.fortran/target5.f90: Ditto.
9103 * testsuite/libgomp.fortran/target6.f90: Ditto.
9104 * testsuite/libgomp.fortran/target7.f90: Ditto.
9105 * testsuite/libgomp.fortran/target8.f90: Ditto.
9106 * testsuite/libgomp.fortran/task1.f90: Ditto.
9107 * testsuite/libgomp.fortran/task2.f90: Ditto.
9108 * testsuite/libgomp.fortran/task3.f90: Ditto.
9109 * testsuite/libgomp.fortran/task4.f90: Ditto.
9110 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9111 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9112 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9113 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9114 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9115 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9116 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9117 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9118 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9119 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9120 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9121 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9122 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9123 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9124 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9125 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9126 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9127 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9128 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9129 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9130 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9131 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9132 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9133 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9134 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9135 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9136 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9137 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9138 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9139 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9140 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9141 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9142 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9143 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9145 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9147 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9148 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9149 Ditto; add 'dg-do run' for torture testing.
9150 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9151 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9152 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9153 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9154 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9155 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9156 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9157 * testsuite/libgomp.fortran/task2.f90: Ditto.
9158 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9159 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9160 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9161 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9162 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9163 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9165 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
9167 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9168 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9169 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9170 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9171 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9172 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9173 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9174 Use 'stop' not abort().
9175 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9176 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9177 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9178 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9179 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9180 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9181 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9182 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9183 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9184 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9185 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9186 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9187 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9188 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9189 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9190 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9191 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9193 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9195 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9197 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9199 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9201 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9203 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9205 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9207 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9209 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9211 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9213 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9215 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9217 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9219 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9220 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9221 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9222 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9223 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9224 Likewise and also add 'dg-do run'.
9225 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9228 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9229 Tobias Burnus <tobias@codesourcery.com>
9231 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9232 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9233 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9235 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9238 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9241 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9243 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9244 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9246 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9249 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9252 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9255 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9257 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9259 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9262 * target.c (gomp_map_vars_internal): Readd the previous
9263 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9264 though do that just in the !not_found_cnt case.
9266 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9268 * gfortran.dg/gomp/target-simd.f90: New.
9270 2019-10-02 Julian Brown <julian@codesourcery.com>
9271 Cesar Philippidis <cesar@codesourcery.com>
9273 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9274 * target.c (FIELD_TGT_EMPTY): Define.
9275 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9276 as switch instead of list of ifs.
9277 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9279 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9281 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9282 include. Replace alloca () with __builtin_alloca ().
9283 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9285 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9287 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9288 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9289 * oacc-parallel.c: Don't include "libgomp_g.h".
9290 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9291 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9292 * aclocal.m4: Regenerated.
9293 * config.h.in: Regenerated.
9294 * configure: Regenerated.
9295 * Makefile.in: Regenerated.
9297 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9299 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9301 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9303 * configure: Regenerate.
9305 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9307 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9308 string is initialized.
9310 2019-09-06 Florian Weimer <fweimer@redhat.com>
9312 * configure: Regenerate.
9314 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9317 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9318 scanning to conform to the GNU Coding Standards.
9319 * configure: Regenerate.
9321 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9324 * testsuite/libgomp.c/scan-21.c: New test.
9325 * testsuite/libgomp.c/scan-22.c: New test.
9327 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9330 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9332 * testsuite/libgomp.c/scan-12.c: Likewise.
9333 * testsuite/libgomp.c/scan-13.c: Likewise.
9334 * testsuite/libgomp.c/scan-14.c: Likewise.
9335 * testsuite/libgomp.c/scan-15.c: Likewise.
9336 * testsuite/libgomp.c/scan-16.c: Likewise.
9337 * testsuite/libgomp.c/scan-17.c: Likewise.
9338 * testsuite/libgomp.c/scan-18.c: Likewise.
9339 * testsuite/libgomp.c/scan-19.c: Likewise.
9340 * testsuite/libgomp.c/scan-20.c: Likewise.
9341 * testsuite/libgomp.c++/scan-9.C: Likewise.
9342 * testsuite/libgomp.c++/scan-10.C: Likewise.
9343 * testsuite/libgomp.c++/scan-11.C: Likewise.
9344 * testsuite/libgomp.c++/scan-12.C: Likewise.
9345 * testsuite/libgomp.c++/scan-14.C: Likewise.
9346 * testsuite/libgomp.c++/scan-15.C: Likewise.
9347 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9348 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9349 * testsuite/libgomp.c++/scan-16.C: Likewise.
9351 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9354 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9355 -std=legacy so invalid code in the test case is accepted.
9357 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9360 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9363 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9365 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9366 perform the lookup in the first loop only if !not_found_cnt, otherwise
9367 perform lookups for it in the second loop guarded with
9368 if (not_found_cnt || has_firstprivate).
9369 * testsuite/libgomp.c/target-37.c: New test.
9370 * testsuite/libgomp.c++/target-22.C: New test.
9372 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9374 * testsuite/libgomp.c/target-18.c (struct S): New type.
9375 (foo): Use use_device_addr clause instead of use_device_ptr clause
9376 where required by OpenMP 5.0, add further tests for both use_device_ptr
9377 and use_device_addr clauses.
9378 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9379 (foo): Use use_device_addr clause instead of use_device_ptr clause
9380 where required by OpenMP 5.0, add further tests for both use_device_ptr
9381 and use_device_addr clauses. Add t and u arguments.
9382 (main): Adjust caller.
9384 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9386 * testsuite/libgomp.c++/loop-13.C: New test.
9387 * testsuite/libgomp.c++/loop-14.C: New test.
9388 * testsuite/libgomp.c++/loop-15.C: New test.
9390 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9393 * testsuite/libgomp.c++/for-27.C: New test.
9395 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9397 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9398 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9400 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9402 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9404 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9406 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9407 * testsuite/libgomp.c++/scan-16.C: Likewise.
9409 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9411 * testsuite/libgomp.c/scan-19.c: New test.
9412 * testsuite/libgomp.c/scan-20.c: New test.
9414 * testsuite/libgomp.c/scan-11.c: New test.
9415 * testsuite/libgomp.c/scan-12.c: New test.
9416 * testsuite/libgomp.c/scan-13.c: New test.
9417 * testsuite/libgomp.c/scan-14.c: New test.
9418 * testsuite/libgomp.c/scan-15.c: New test.
9419 * testsuite/libgomp.c/scan-16.c: New test.
9420 * testsuite/libgomp.c/scan-17.c: New test.
9421 * testsuite/libgomp.c/scan-18.c: New test.
9422 * testsuite/libgomp.c++/scan-9.C: New test.
9423 * testsuite/libgomp.c++/scan-10.C: New test.
9424 * testsuite/libgomp.c++/scan-11.C: New test.
9425 * testsuite/libgomp.c++/scan-12.C: New test.
9426 * testsuite/libgomp.c++/scan-13.C: New test.
9427 * testsuite/libgomp.c++/scan-14.C: New test.
9428 * testsuite/libgomp.c++/scan-15.C: New test.
9429 * testsuite/libgomp.c++/scan-16.C: New test.
9431 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9433 * testsuite/libgomp.c/scan-9.c: New test.
9434 * testsuite/libgomp.c/scan-10.c: New test.
9436 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9438 * testsuite/libgomp.c++/scan-1.C: New test.
9439 * testsuite/libgomp.c++/scan-2.C: New test.
9440 * testsuite/libgomp.c++/scan-3.C: New test.
9441 * testsuite/libgomp.c++/scan-4.C: New test.
9442 * testsuite/libgomp.c++/scan-5.C: New test.
9443 * testsuite/libgomp.c++/scan-6.C: New test.
9444 * testsuite/libgomp.c++/scan-7.C: New test.
9445 * testsuite/libgomp.c++/scan-8.C: New test.
9446 * testsuite/libgomp.c/scan-1.c: New test.
9447 * testsuite/libgomp.c/scan-2.c: New test.
9448 * testsuite/libgomp.c/scan-3.c: New test.
9449 * testsuite/libgomp.c/scan-4.c: New test.
9450 * testsuite/libgomp.c/scan-5.c: New test.
9451 * testsuite/libgomp.c/scan-6.c: New test.
9452 * testsuite/libgomp.c/scan-7.c: New test.
9453 * testsuite/libgomp.c/scan-8.c: New test.
9455 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9457 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9458 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9461 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9464 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9466 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9469 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9472 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9474 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9475 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9476 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9477 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9480 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9483 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9485 2019-06-16 Tom de Vries <tdevries@suse.de>
9487 PR tree-optimization/89376
9488 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9490 2019-06-15 Tom de Vries <tdevries@suse.de>
9492 PR tree-optimization/89713
9493 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9494 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9496 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9499 * testsuite/libgomp.c/pr90779.c: New test.
9500 * testsuite/libgomp.fortran/pr90779.f90: New test.
9502 2019-06-15 Tom de Vries <tdevries@suse.de>
9504 PR tree-optimization/90009
9505 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9507 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9509 PR tree-optimization/89713
9510 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9512 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9515 * testsuite/libgomp.c/pr90811.c: New test.
9517 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9519 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9520 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9522 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9524 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9525 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9526 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9527 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9529 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9531 * configure.ac: Call AX_COUNT_CPUS.
9532 Substitute CPU_COUNT.
9533 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9535 * aclocal.m4: Regenerate.
9536 * configure: Regenerate.
9537 * Makefile.in, testsuite/Makefile.in: Regenerate.
9539 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9541 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9543 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9544 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9545 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9547 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9549 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9551 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9554 * work.c (gomp_init_work_share): Instead of aligning final ordered
9555 value to multiples of long long alignment, align to that the
9556 first part (ordered team ids) and if inline_ordered_team_ids
9557 is not on a long long alignment boundary within the structure,
9558 use __alignof__ (long long) - 1 pad size always.
9559 * loop.c (GOMP_loop_start): Fix *mem computation if
9560 inline_ordered_team_ids is not aligned on long long alignment boundary
9561 within the structure.
9562 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9563 * sections.c (GOMP_sections2_start): Likewise.
9565 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9567 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9568 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9571 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9572 HAVE_INTTYPES_H is defined.
9573 (print_uint64_t): New typedef.
9574 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9575 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9576 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9577 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9578 before casting to void *.
9579 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9580 * oacc-mem.c: Don't include config.h nor stdint.h.
9581 * target.c: Don't include config.h.
9582 * oacc-cuda.c: Likewise.
9583 * oacc-host.c: Don't include stdint.h.
9585 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9588 * alloc.c (_GNU_SOURCE): Define.
9590 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9592 * acc_prof.h: New file.
9593 * oacc-profiling.c: Likewise.
9594 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9595 Add these, respectively.
9596 * Makefile.in: Regenerate.
9597 * env.c (initialize_env): Call goacc_profiling_initialize.
9598 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9599 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9600 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9601 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9602 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9603 acc_prof_register, acc_prof_unregister, and acc_register_library.
9604 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9605 GOMP_PLUGIN_goacc_thread.
9606 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9607 prof_callbacks_enabled members.
9608 (goacc_prof_enabled, goacc_profiling_initialize)
9609 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9610 (goacc_profiling_dispatch): Declare.
9611 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9612 (GOACC_PROFILING_SETUP_P): Define.
9613 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9614 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9615 OpenACC Profiling Interface.
9616 * oacc-cuda.c (acc_get_current_cuda_device)
9617 (acc_get_current_cuda_context, acc_get_cuda_stream)
9618 (acc_set_cuda_stream): Likewise.
9619 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9620 (acc_init, acc_set_device_type, acc_get_device_type)
9621 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9622 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9623 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9624 (acc_unmap_data, present_create_copy, delete_copyout)
9625 (update_dev_host): Likewise.
9626 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9627 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9629 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9630 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9632 * libgomp.texi: Update.
9633 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9635 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9636 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9638 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9640 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9642 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9645 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9647 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9648 (struct goacc_asyncqueue_list): Likewise.
9649 (goacc_aq): Likewise.
9650 (goacc_aq_list): Likewise.
9651 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9652 (GOMP_OFFLOAD_openacc_async_test): Remove.
9653 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9654 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9655 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9656 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9657 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9658 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9659 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9660 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9661 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9662 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9663 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9664 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9665 (GOMP_OFFLOAD_openacc_async_test): Declare.
9666 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9667 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9668 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9669 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9670 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9672 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9673 (gomp_acc_insert_pointer): Adjust declaration.
9674 (gomp_copy_host2dev): New declaration.
9675 (gomp_copy_dev2host): Likewise.
9676 (gomp_map_vars_async): Likewise.
9677 (gomp_unmap_tgt): Likewise.
9678 (gomp_unmap_vars_async): Likewise.
9679 (gomp_fini_device): Likewise.
9681 * oacc-async.c (get_goacc_thread): New function.
9682 (get_goacc_thread_device): New function.
9683 (lookup_goacc_asyncqueue): New function.
9684 (get_goacc_asyncqueue): New function.
9685 (acc_async_test): Adjust code to use new async design.
9686 (acc_async_test_all): Likewise.
9687 (acc_wait): Likewise.
9688 (acc_wait_async): Likewise.
9689 (acc_wait_all): Likewise.
9690 (acc_wait_all_async): Likewise.
9691 (goacc_async_free): New function.
9692 (goacc_init_asyncqueues): Likewise.
9693 (goacc_fini_asyncqueues): Likewise.
9694 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9696 (acc_set_cuda_stream): Likewise.
9697 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9698 (host_openacc_register_async_cleanup): Remove.
9699 (host_openacc_async_exec): New function.
9700 (host_openacc_async_test): Adjust parameters.
9701 (host_openacc_async_test_all): Remove.
9702 (host_openacc_async_wait): Remove.
9703 (host_openacc_async_wait_async): Remove.
9704 (host_openacc_async_wait_all): Remove.
9705 (host_openacc_async_wait_all_async): Remove.
9706 (host_openacc_async_set_async): Remove.
9707 (host_openacc_async_synchronize): New function.
9708 (host_openacc_async_serialize): New function.
9709 (host_openacc_async_host2dev): New function.
9710 (host_openacc_async_dev2host): New function.
9711 (host_openacc_async_queue_callback): New function.
9712 (host_openacc_async_construct): New function.
9713 (host_openacc_async_destruct): New function.
9714 (struct gomp_device_descr host_dispatch): Remove initialization of old
9715 interface, add initialization of new async sub-struct.
9716 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9717 (goacc_attach_host_thread_to_device): Remove old async code usage.
9718 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9719 (goacc_fini_asyncqueues): Likewise.
9720 (goacc_async_copyout_unmap_vars): Likewise.
9721 (goacc_async_free): Likewise.
9722 (get_goacc_asyncqueue): Likewise.
9723 (lookup_goacc_asyncqueue): Likewise.
9724 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9726 (present_create_copy): Adjust code to use new async design.
9727 (delete_copyout): Likewise.
9728 (update_dev_host): Likewise.
9729 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9731 (gomp_acc_remove_pointer): Adjust code to use new async design.
9732 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9734 (GOACC_enter_exit_data): Likewise.
9735 (goacc_wait): Likewise.
9736 (GOACC_update): Likewise.
9737 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9738 when called, warn as obsolete in comment.
9739 * target.c (goacc_device_copy_async): New function.
9740 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9741 add goacc_device_copy_async case.
9742 (gomp_copy_dev2host): Likewise.
9743 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9744 (gomp_map_pointer): Likewise.
9745 (gomp_map_fields_existing): Likewise.
9746 (gomp_map_vars_internal): New always_inline function, renamed from
9748 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9749 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9750 passing goacc_asyncqueue argument.
9751 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9752 (gomp_unref_tgt): New function.
9753 (gomp_unmap_vars_internal): New always_inline function, renamed from
9755 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9756 (gomp_unmap_vars_async): Implement by calling
9757 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9758 (gomp_fini_device): New function.
9759 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9760 (gomp_load_plugin_for_device): Remove old interface, adjust to load
9761 new async interface.
9762 (gomp_target_fini): Adjust code to call gomp_fini_device.
9764 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
9765 (struct ptx_stream): Remove.
9766 (struct nvptx_thread): Remove current_stream field.
9767 (cuda_map_create): Remove.
9768 (cuda_map_destroy): Remove.
9773 (struct goacc_asyncqueue): Define.
9774 (struct nvptx_callback): Define.
9775 (struct ptx_free_block): Define.
9776 (struct ptx_device): Remove null_stream, active_streams, async_streams,
9777 stream_lock, and next fields.
9778 (enum ptx_event_type): Remove.
9779 (struct ptx_event): Remove.
9780 (ptx_event_lock): Remove.
9781 (ptx_events): Remove.
9782 (init_streams_for_device): Remove.
9783 (fini_streams_for_device): Remove.
9784 (select_stream_for_async): Remove.
9785 (nvptx_init): Remove ptx_events and ptx_event_lock references.
9786 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
9788 (nvptx_open_device): Add free_blocks initialization, remove
9789 init_streams_for_device call.
9790 (nvptx_close_device): Remove fini_streams_for_device call, add
9791 free_blocks destruct code.
9793 (event_add): Remove.
9794 (nvptx_exec): Adjust parameters and code.
9795 (nvptx_free): Likewise.
9796 (nvptx_host2dev): Remove.
9797 (nvptx_dev2host): Remove.
9798 (nvptx_set_async): Remove.
9799 (nvptx_async_test): Remove.
9800 (nvptx_async_test_all): Remove.
9801 (nvptx_wait): Remove.
9802 (nvptx_wait_async): Remove.
9803 (nvptx_wait_all): Remove.
9804 (nvptx_wait_all_async): Remove.
9805 (nvptx_get_cuda_stream): Remove.
9806 (nvptx_set_cuda_stream): Remove.
9807 (GOMP_OFFLOAD_alloc): Adjust code.
9808 (GOMP_OFFLOAD_free): Likewise.
9809 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9810 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
9811 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9812 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9813 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9814 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9815 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9816 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9817 (cuda_free_argmem): New function.
9818 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
9819 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
9820 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
9821 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
9822 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
9823 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
9824 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
9825 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
9826 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
9827 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
9828 (cuda_callback_wrapper): New function.
9829 (cuda_memcpy_sanity_check): New function.
9830 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
9831 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
9832 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
9833 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
9835 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
9838 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
9840 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
9842 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
9844 2019-03-27 Kevin Buettner <kevinb@redhat.com>
9846 * team.c (gomp_team_start): Initialize pool->threads[0].
9848 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
9850 * testsuite/libgomp.oacc-c++/c++.exp: Specify
9851 "-foffload=$offload_target".
9852 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9853 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9854 * testsuite/lib/libgomp.exp
9855 (check_effective_target_openacc_nvidia_accel_configured): Remove,
9856 as (conceptually) merged into
9857 check_effective_target_openacc_nvidia_accel_selected. Adjust all
9860 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
9861 * testsuite/libgomp-test-support.exp.in: Adjust.
9862 * testsuite/lib/libgomp.exp: Likewise. Don't populate
9863 openacc_device_types_s.
9864 (offload_target_to_openacc_device_type): New proc.
9865 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
9866 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9867 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9868 * Makefile.in: Regenerate.
9869 * configure: Likewise.
9870 * testsuite/Makefile.in: Likewise.
9872 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
9873 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
9874 instead of OFFLOAD_TARGETS.
9875 * target.c (gomp_target_init): Adjust.
9876 * testsuite/libgomp-test-support.exp.in: Likewise.
9877 * testsuite/lib/libgomp.exp: Likewise. Populate
9878 openacc_device_types_s instead of offload_targets_s_openacc.
9879 (check_effective_target_openacc_nvidia_accel_selected)
9880 (check_effective_target_openacc_host_selected): Adjust.
9881 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
9882 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9883 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9884 * Makefile.in: Regenerate.
9885 * config.h.in: Likewise.
9886 * configure: Likewise.
9887 * testsuite/Makefile.in: Likewise.
9889 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
9890 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
9891 "offloading: supported, but hardware not accessible".
9892 * testsuite/libgomp.oacc-c/c.exp: Likewise.
9893 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9895 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
9898 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
9900 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
9901 and related adjustment.
9903 2019-01-30 Jakub Jelinek <jakub@redhat.com>
9906 * testsuite/libgomp.c++/pr88988.C: New test.
9908 2019-01-28 Jakub Jelinek <jakub@redhat.com>
9911 * testsuite/libgomp.c/pr89002.c: New test.
9913 2019-01-28 Richard Biener <rguenther@suse.de>
9916 PR tree-optimization/86865
9917 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
9919 2019-01-24 Tom de Vries <tdevries@suse.de>
9921 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
9922 once instantiated_devices drops to 0.
9924 2019-01-23 Tom de Vries <tdevries@suse.de>
9927 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
9929 (nvptx_exec): Don't call map_push if mapnum == 0.
9930 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
9932 2019-01-23 Tom de Vries <tdevries@suse.de>
9936 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
9937 (map_fini): Remove "assert (!s->map->active)".
9938 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
9940 2019-01-23 Tom de Vries <tdevries@suse.de>
9943 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
9944 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
9946 2019-01-15 Tom de Vries <tdevries@suse.de>
9949 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
9952 2019-01-12 Tom de Vries <tdevries@suse.de>
9954 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
9955 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
9956 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
9957 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
9959 2019-01-12 Tom de Vries <tdevries@suse.de>
9961 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
9963 2019-01-12 Tom de Vries <tdevries@suse.de>
9965 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
9966 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
9967 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
9969 2019-01-12 Tom de Vries <tdevries@suse.de>
9972 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
9973 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
9975 2019-01-12 Tom de Vries <tdevries@suse.de>
9978 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
9979 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
9981 2019-01-12 Tom de Vries <tdevries@suse.de>
9983 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
9984 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
9985 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
9987 2019-01-12 Tom de Vries <tdevries@suse.de>
9989 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
9990 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
9991 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
9993 2019-01-12 Tom de Vries <tdevries@suse.de>
9995 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
9996 resources diagnostic.
9998 2019-01-12 Tom de Vries <tdevries@suse.de>
10000 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10001 vector length to be 128.
10002 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10003 length 2097152 to be reduced to 1024 instead of 32.
10005 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
10006 James Norris <jnorris@codesourcery.com>
10008 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10009 Library Routines", and "Environment Variables".
10011 2019-01-11 Tom de Vries <tdevries@suse.de>
10013 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10016 2019-01-11 Tom de Vries <tdevries@suse.de>
10018 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10020 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10021 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10022 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10023 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10025 2019-01-11 Tom de Vries <tdevries@suse.de>
10027 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10030 2019-01-10 Nathan Sidwell <nathan@acm.org>
10031 Julian Brown <julian@codesourcery.com>
10034 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10035 * testsuite/libgomp.oacc-c++/pr71959.C: New.
10037 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10039 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10042 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10044 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
10045 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10048 2019-01-09 Tom de Vries <tdevries@suse.de>
10051 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10052 #define instead of "const int".
10053 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10054 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10055 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10056 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10058 2019-01-09 Tom de Vries <tdevries@suse.de>
10060 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10063 2019-01-07 Tom de Vries <tdevries@suse.de>
10065 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10066 GOMP_OPENACC_DIM argument.
10068 2019-01-03 Tom de Vries <tdevries@suse.de>
10070 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10071 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10073 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10075 Update copyright years.
10077 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10079 * libgomp.texi: Bump @copying's copyright year.
10081 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10083 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10084 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10085 (GOACC_declare): Redefine the "device" argument to "flags".
10087 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10088 Cesar Philippidis <cesar@codesourcery.com>
10090 * target.c (struct gomp_coalesce_chunk): New structure.
10091 (struct gomp_coalesce_buf): Update the chunks member to use that
10092 type. Adjust all users.
10094 2018-12-19 Tom de Vries <tdevries@suse.de>
10096 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10097 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10098 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10100 2018-12-19 Tom de Vries <tdevries@suse.de>
10102 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10103 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10104 gcc/testsuite/gcc.dg/goacc.
10105 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10107 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10108 Chung-Lin Tang <cltang@codesourcery.com>
10110 * oacc-mem.c (acc_present_or_create): Remove definition and change
10111 to alias of acc_create.
10112 (acc_present_or_copyin): Remove definition and change to alias of
10114 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10115 of acc_present_or_create.
10116 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10117 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10118 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10119 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10120 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10121 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10122 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10123 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10124 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10125 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10126 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10127 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10128 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10129 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10130 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10131 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10133 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10136 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10137 "identical parameters".
10138 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10139 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10142 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10143 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10146 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10147 (nvptx_wait_async): Unseen async-argument is a no-op.
10148 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10149 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10150 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10151 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10152 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10153 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10154 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10155 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10156 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10158 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10159 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10161 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10163 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10164 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10165 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10167 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10170 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10171 (acc_set_cuda_stream): Clarify.
10172 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10174 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10176 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10177 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10178 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10179 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10181 2018-12-14 Tom de Vries <tdevries@suse.de>
10183 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10184 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10185 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10186 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10187 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10189 2018-12-13 Tom de Vries <tdevries@suse.de>
10191 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10192 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10193 * fortran.c (omp_display_affinity_): ... here.
10194 * libgomp.h (gomp_print_string): Declare.
10195 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10196 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10199 2018-12-13 Jakub Jelinek <jakub@redhat.com>
10202 * testsuite/libgomp.c++/for-24.C (results): Include it in
10203 omp declare target region.
10204 (main): Use map (always, tofrom: results) instead of
10205 map (tofrom: results).
10207 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10210 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10211 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10213 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10215 2018-12-12 Andreas Schwab <schwab@suse.de>
10217 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10220 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10223 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10225 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10226 Jakub Jelinek <jakub@redhat.com>
10228 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10229 devicep->host2dev_func.
10231 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10234 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10235 tls_runtime effective target.
10236 (t): New threadprivate variable.
10237 (main): Set t in threads which execute iterations of the worksharing
10238 loop. Propagate that to the task after the loop and don't abort
10239 if the current taskgroup hasn't been cancelled.
10241 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10243 * testsuite/libgomp.c/task-reduction-3.c: New test.
10245 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10247 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10250 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10251 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10253 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10255 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10257 2018-10-19 Richard Biener <rguenther@suse.de>
10259 PR tree-optimization/88182
10260 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10262 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10264 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10265 (RUNTEST): Don't define.
10266 (RUNTESTDEFAULTFLAGS): Add.
10267 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10268 (distclean-am): Depend on distclean-DEJAGNU.
10269 (check-am): If -j% option is present in MFLAGS and if
10270 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10271 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10272 * testsuite/Makefile.in: Regenerated.
10274 2018-11-26 Richard Biener <rguenther@suse.de>
10276 PR tree-optimization/88182
10277 * testsuite/libgomp.c++/pr88182.C: New testcase.
10279 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10282 * config/mingw32/affinity-fmt.c: New file.
10284 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10286 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10287 (gomp_display_affinity): Use __builtin_choose_expr to handle
10288 properly handle argument having integral, or pointer or some other
10289 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10290 with uint64_t type instead of %llx and unsigned long long.
10292 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10293 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10295 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10297 * affinity.c: Include <string.h>, <stdio.h>.
10298 (gomp_display_affinity_place): Remove cpusetp.
10299 * teams.c: Include <limits.h>.
10301 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10303 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10304 in_reduction clause for s[0].
10306 * affinity.c (gomp_display_affinity_place): New function.
10307 * affinity-fmt.c: New file.
10308 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10309 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10310 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10311 Move these functions to ...
10312 * config/nvptx/teams.c: ... here. New file.
10313 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10315 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10317 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10318 and _aligned_malloc.
10319 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10320 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10321 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10322 gomp_affinity_format_len): New variables.
10323 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10324 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10325 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10326 modifiers. Display (non-default) chunk sizes. Print
10327 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10328 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10329 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10330 * fortran.c: Include stdio.h and string.h.
10331 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10332 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10333 (omp_set_affinity_format_, omp_get_affinity_format_,
10334 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10335 omp_pause_resource_all_): New functions.
10336 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10338 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10340 * teams.c: ... here. New file.
10341 * libgomp_g.h: Include gstdint.h.
10342 (GOMP_loop_nonmonotonic_runtime_start,
10343 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10344 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10345 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10346 GOMP_parallel_loop_nonmonotonic_runtime,
10347 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10348 GOMP_loop_ull_nonmonotonic_runtime_start,
10349 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10350 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10351 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10352 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10353 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10354 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10355 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10356 GOMP_teams_reg): Declare.
10357 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10358 gomp_aligned_alloc uses fallback implementation.
10359 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10360 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10361 (struct gomp_doacross_work_share): Add extra field.
10362 (struct gomp_work_share): Add task_reductions field.
10363 (struct gomp_taskgroup): Add workshare and reductions fields.
10364 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10365 (gomp_thread_handle): New typedef.
10366 (gomp_display_affinity_place, gomp_set_affinity_format,
10367 gomp_display_string, gomp_display_affinity,
10368 gomp_display_affinity_thread): Declare.
10369 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10370 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10371 gomp_workshare_task_reduction_register): Declare.
10372 (gomp_team_start): Add taskgroup argument.
10373 (gomp_pause_host): Declare.
10374 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10376 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10377 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10378 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10379 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10380 GOMP_loop_ull_doacross_start,
10381 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10382 GOMP_loop_maybe_nonmonotonic_runtime_next,
10383 GOMP_loop_maybe_nonmonotonic_runtime_start,
10384 GOMP_loop_nonmonotonic_runtime_next,
10385 GOMP_loop_nonmonotonic_runtime_start,
10386 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10387 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10388 GOMP_loop_ull_nonmonotonic_runtime_next,
10389 GOMP_loop_ull_nonmonotonic_runtime_start,
10390 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10391 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10392 GOMP_taskgroup_reduction_register,
10393 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10394 GOMP_teams_reg and GOMP_taskwait_depend.
10395 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10396 omp_{capture,display}_affinity{,_}, and
10397 omp_[gs]et_affinity_format{,_}.
10398 * loop.c: Include string.h.
10399 (GOMP_loop_runtime_next): Add ialias.
10400 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10401 (gomp_loop_static_start, gomp_loop_dynamic_start,
10402 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10403 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10404 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10405 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10406 or gomp_doacross_init callers.
10407 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10408 GOMP_loop_doacross_start): New functions.
10409 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10410 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10411 Mask off GFS_MONOTONIC bit.
10412 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10413 GOMP_loop_maybe_nonmonotonic_runtime_start,
10414 GOMP_loop_nonmonotonic_runtime_next,
10415 GOMP_loop_nonmonotonic_runtime_start,
10416 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10417 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10419 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10421 * loop_ull.c: Include string.h.
10422 (GOMP_loop_ull_runtime_next): Add ialias.
10423 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10424 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10425 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10426 gomp_loop_ull_ordered_dynamic_start,
10427 gomp_loop_ull_ordered_guided_start,
10428 gomp_loop_ull_doacross_static_start,
10429 gomp_loop_ull_doacross_dynamic_start,
10430 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10431 and gomp_doacross_ull_init callers.
10432 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10433 GOMP_loop_ull_doacross_start): New functions.
10434 (GOMP_loop_ull_runtime_start,
10435 GOMP_loop_ull_ordered_runtime_start,
10436 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10437 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10438 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10439 GOMP_loop_ull_nonmonotonic_runtime_next,
10440 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10441 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10442 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10443 (omp_pause_resource_t, omp_depend_t): New typedefs.
10444 (enum omp_lock_hint_t): Renamed to ...
10445 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10446 enumerators using numbers and omp_lock_hint_* as their aliases.
10447 (omp_lock_hint_t): New typedef. Rename to ...
10448 (omp_sync_hint_t): ... this.
10449 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10450 omp_sync_hint_t instead of omp_lock_hint_t.
10451 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10452 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10454 (omp_target_is_present, omp_target_disassociate_ptr):
10455 Change first argument from void * to const void *.
10456 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10457 from void * to const void *.
10458 (omp_target_associate_ptr): Change first and second arguments from
10459 void * to const void *.
10460 * omp_lib.f90.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):
10465 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10466 omp_pause_hard): New parameters.
10467 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10468 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10470 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10471 EXTRA argument. If not needed to prepare array, if extra is 0,
10472 clear ws->doacross, otherwise allocate just doacross structure and
10473 extra payload. If array is needed, allocate also extra payload.
10474 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10475 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10477 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10479 (GOMP_parallel): Likewise. Formatting fix.
10480 (GOMP_parallel_reductions): New function.
10481 (GOMP_cancellation_point): If taskgroup has workshare
10482 flag set, check cancelled of prev taskgroup if any.
10483 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10484 on prev taskgroup if any.
10485 * sections.c: Include string.h.
10486 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10487 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10488 (GOMP_sections2_start): New function.
10489 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10490 Pass NULL as taskgroup to gomp_team_start.
10491 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10492 gomp_work_share_start callers.
10493 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10494 If taskgroup has workshare flag set, check cancelled on prev
10495 taskgroup if any. Guard all cancellation tests with
10496 gomp_cancel_var test.
10497 (omp_target_is_present, omp_target_disassociate_ptr):
10498 Change ptr argument from void * to const void *.
10499 (omp_target_memcpy): Change src argument from void * to const void *.
10500 (omp_target_memcpy_rect): Likewise.
10501 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10502 instead of char * where needed.
10503 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10504 from void * to const void *.
10505 (omp_pause_resource, omp_pause_resource_all): New functions.
10506 * task.c (gomp_task_handle_depend): Handle new depend array format
10507 in addition to the old. Handle mutexinoutset kinds the same as
10508 inout for now, handle unspecified kinds.
10509 (gomp_create_target_task): If taskgroup has workshare flag set, check
10510 cancelled on prev taskgroup if any. Guard all cancellation tests with
10511 gomp_cancel_var test. Handle new depend array format count in
10512 addition to the old.
10513 (GOMP_task): Likewise. Adjust function comment.
10514 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10515 cancelled on prev taskgroup if any. Guard all cancellation tests with
10516 gomp_cancel_var test.
10517 (GOMP_taskwait_depend): New function.
10518 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10519 format in addition to the old. Handle mutexinoutset kinds the same as
10520 inout for now, handle unspecified kinds. Fix a function comment typo.
10521 (gomp_taskgroup_init): New function.
10522 (GOMP_taskgroup_start): Use it.
10523 (gomp_reduction_register, gomp_create_artificial_team,
10524 GOMP_taskgroup_reduction_register,
10525 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10526 gomp_parallel_reduction_register,
10527 gomp_workshare_task_reduction_register,
10528 gomp_workshare_taskgroup_start,
10529 GOMP_workshare_task_reduction_unregister): New functions.
10530 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10531 check cancelled on prev taskgroup if any. Guard all cancellation
10532 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10533 by calling GOMP_taskgroup_reduction_register.
10534 * team.c (gomp_thread_attr): Remove comment.
10535 (struct gomp_thread_start_data): Add handle field.
10536 (gomp_thread_start): Call pthread_detach.
10537 (gomp_new_team): Adjust gomp_init_work_share caller.
10538 (gomp_free_pool_helper): Call pthread_detach.
10539 (gomp_team_start): Add taskgroup argument, initialize implicit
10540 tasks' taskgroup field to that. Don't call
10541 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10542 (gomp_team_end): Determine nesting by thr->ts.level != 0
10543 rather than thr->ts.team != NULL.
10544 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10545 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10546 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10547 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10548 if more than 1 allocate also extra payload at the end of array. Never
10549 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10550 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10551 return true instead of ws.
10552 * Makefile.in: Regenerated.
10553 * configure: Regenerated.
10554 * config.h.in: Regenerated.
10555 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10557 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10558 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10559 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10560 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10561 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10562 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10563 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10564 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10565 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10566 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10567 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10568 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10569 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10570 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10571 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10572 define a different N(test), don't define N(f0) to N(f14), but instead
10573 define N(f20) to N(f34) using != comparisons.
10574 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10575 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10576 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10577 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10578 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10579 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10580 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10581 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10582 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10583 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10584 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10585 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10586 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10587 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10588 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10589 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10590 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10591 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10592 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10593 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10594 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10595 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10596 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10597 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10598 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10599 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10600 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10601 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10602 * testsuite/libgomp.c++/depend-1.C: New test.
10603 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10604 * testsuite/libgomp.c++/depobj-1.C: New test.
10605 * testsuite/libgomp.c++/for-16.C: New test.
10606 * testsuite/libgomp.c++/for-21.C: New test.
10607 * testsuite/libgomp.c++/for-22.C: New test.
10608 * testsuite/libgomp.c++/for-23.C: New test.
10609 * testsuite/libgomp.c++/for-24.C: New test.
10610 * testsuite/libgomp.c++/for-25.C: New test.
10611 * testsuite/libgomp.c++/for-26.C: New test.
10612 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10613 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10614 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10615 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10616 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10617 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10618 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10619 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10620 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10621 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10622 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10623 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10624 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10625 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10626 * testsuite/libgomp.c/task-reduction-1.c: New test.
10627 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10628 * testsuite/libgomp.c/task-reduction-2.c: New test.
10629 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10630 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10631 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10632 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10633 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10634 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10635 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10636 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10637 * testsuite/libgomp.c/teams-1.c: New test.
10638 * testsuite/libgomp.c/teams-2.c: New test.
10639 * testsuite/libgomp.c/thread-limit-4.c: New test.
10640 * testsuite/libgomp.c/thread-limit-5.c: New test.
10641 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10643 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10645 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10646 acc_memcpy_to/from_device functions, now with async parameter.
10647 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10648 (acc_memcpy_from_device): Likewise.
10649 (acc_memcpy_to_device_async): New API function.
10650 (acc_memcpy_from_device_async): Likewise.
10651 (present_create_copy): Add async parameter and async setting/unsetting.
10652 (acc_create): Adjust present_create_copy call.
10653 (acc_copyin): Likewise.
10654 (acc_present_or_create): Likewise.
10655 (acc_present_or_copyin): Likewise.
10656 (acc_create_async): New API function.
10657 (acc_copyin_async): New API function.
10658 (delete_copyout): Add async parameter and async setting/unsetting.
10659 (acc_delete): Adjust delete_copyout call.
10660 (acc_copyout): Likewise.
10661 (acc_delete_async): New API function.
10662 (acc_copyout_async): Likewise.
10663 (update_dev_host): Add async parameter and async setting/unsetting.
10664 (acc_update_device): Adjust update_dev_host call.
10665 (acc_update_self): Likewise.
10666 (acc_update_device_async): New API function.
10667 (acc_update_self_async): Likewise.
10668 * openacc.h (acc_copyin_async): Declare new API function.
10669 (acc_create_async): Likewise.
10670 (acc_copyout_async): Likewise.
10671 (acc_delete_async): Likewise.
10672 (acc_update_device_async): Likewise.
10673 (acc_update_self_async): Likewise.
10674 (acc_memcpy_to_device_async): Likewise.
10675 (acc_memcpy_from_device_async): Likewise.
10676 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10677 (acc_copyin_async_64_h): New subroutine.
10678 (acc_copyin_async_array_h): New subroutine.
10679 (acc_create_async_32_h): New subroutine.
10680 (acc_create_async_64_h): New subroutine.
10681 (acc_create_async_array_h): New subroutine.
10682 (acc_copyout_async_32_h): New subroutine.
10683 (acc_copyout_async_64_h): New subroutine.
10684 (acc_copyout_async_array_h): New subroutine.
10685 (acc_delete_async_32_h): New subroutine.
10686 (acc_delete_async_64_h): New subroutine.
10687 (acc_delete_async_array_h): New subroutine.
10688 (acc_update_device_async_32_h): New subroutine.
10689 (acc_update_device_async_64_h): New subroutine.
10690 (acc_update_device_async_array_h): New subroutine.
10691 (acc_update_self_async_32_h): New subroutine.
10692 (acc_update_self_async_64_h): New subroutine.
10693 (acc_update_self_async_array_h): New subroutine.
10694 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10695 (acc_copyin_async_64_h): New subroutine.
10696 (acc_copyin_async_array_h): New subroutine.
10697 (acc_create_async_32_h): New subroutine.
10698 (acc_create_async_64_h): New subroutine.
10699 (acc_create_async_array_h): New subroutine.
10700 (acc_copyout_async_32_h): New subroutine.
10701 (acc_copyout_async_64_h): New subroutine.
10702 (acc_copyout_async_array_h): New subroutine.
10703 (acc_delete_async_32_h): New subroutine.
10704 (acc_delete_async_64_h): New subroutine.
10705 (acc_delete_async_array_h): New subroutine.
10706 (acc_update_device_async_32_h): New subroutine.
10707 (acc_update_device_async_64_h): New subroutine.
10708 (acc_update_device_async_array_h): New subroutine.
10709 (acc_update_self_async_32_h): New subroutine.
10710 (acc_update_self_async_64_h): New subroutine.
10711 (acc_update_self_async_array_h): New subroutine.
10712 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10713 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10714 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10715 acc_memcpy_to_device_async*, acc_update_device_async*, and
10716 acc_update_self_async* entries.
10717 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10718 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10719 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10721 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10724 * Makefile.am: Include multilib.am
10725 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10726 (CLEANFILES): Remove libgomp.info.
10727 * configure.ac: Remove AC_PREREQ.
10728 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10729 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10732 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10733 Julian Brown <julian@codesourcery.com>
10735 * testsuite/libgomp.oacc-c++/this.C: New.
10737 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10739 * plugin/plugin-nvptx.c (struct cuda_map): New.
10740 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10741 h_tail with (cuda_map *) map.
10742 (cuda_map_create): New function.
10743 (cuda_map_destroy): New function.
10744 (map_init): Update to use a linked list of cuda_map objects.
10745 (map_fini): Likewise.
10746 (map_pop): Likewise.
10747 (map_push): Likewise. Return CUdeviceptr instead of void.
10748 (init_streams_for_device): Remove stales references to ptx_stream
10750 (select_stream_for_async): Likewise.
10751 (nvptx_exec): Update call to map_init.
10753 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10754 Julian Brown <julian@codesourcery.com>
10756 PR middle-end/86336
10757 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10759 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10760 Thomas Koenig <tkoenig@gcc.gnu.org>
10763 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10764 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10765 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10766 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10767 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10768 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10769 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10771 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
10772 Tom de Vries <tdevries@suse.de>
10775 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
10776 (cuOccupancyMaxPotentialBlockSize): Declare.
10777 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
10778 CUDA_ONE_CALL_MAYBE_NULL.
10779 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
10780 CUoccupancyB2DSize and declare
10781 cuOccupancyMaxPotentialBlockSize.
10782 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
10783 default num_gangs and num_workers when the driver supports it.
10785 2018-08-08 Tom de Vries <tdevries@suse.de>
10787 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
10788 CUDA_ONE_CALL_MAYBE_NULL.
10789 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
10790 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
10791 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
10794 2018-08-08 Tom de Vries <tdevries@suse.de>
10796 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
10797 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
10800 2018-08-08 Tom de Vries <tdevries@suse.de>
10802 * plugin/plugin-nvptx.c
10803 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
10804 (nvptx_open_device): Use
10805 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
10807 2018-08-08 Tom de Vries <tdevries@suse.de>
10809 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
10810 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
10812 2018-08-07 Tom de Vries <tdevries@suse.de>
10814 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
10815 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
10816 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
10817 corresponding call in CUDA_ONE_CALL. Add def/undef of
10818 CUDA_ONE_CALL_MAYBE_NULL.
10819 (CUDA_CALL_EXISTS): Define.
10821 2018-08-07 Tom de Vries <tdevries@suse.de>
10823 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
10824 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
10825 corresponding undefs right after.
10827 2018-08-04 Tom de Vries <tdevries@suse.de>
10829 * plugin/configfrag.ac: For --without-cuda-driver, set
10830 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
10831 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
10832 * configure: Regenerate.
10834 2018-08-02 Tom de Vries <tdevries@suse.de>
10837 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
10838 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
10839 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
10841 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
10842 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
10843 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
10845 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10846 Thomas Schwinge <thomas@codesourcery.com>
10848 * config/nvptx/oacc-parallel.c: Truncate.
10850 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
10851 James Norris <jnorris@codesourcery.com>
10853 * plugin/plugin-nvptx.c (struct map): Removed.
10854 (map_init, map_pop): Remove use of struct map.
10855 (map_push): Likewise and change argument list.
10856 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
10858 2018-08-01 Tom de Vries <tdevries@suse.de>
10860 * plugin/cuda-lib.def: New file. Factor out of ...
10861 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
10862 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
10865 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
10867 Revert 'AsyncI/O patch committed'.
10868 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10869 Thomas Koenig <tkoenig@gcc.gnu.org>
10872 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10873 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10874 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10875 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10876 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10877 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10878 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10880 2018-07-30 Tom de Vries <tdevries@suse.de>
10882 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
10883 (nvptx_exec): Ensure worker and vector default dims don't exceed
10884 targ_fn->max_threads_per_block.
10886 2018-07-30 Tom de Vries <tdevries@suse.de>
10888 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
10889 (nvptx_open_device): Init default_dims for device.
10890 (nvptx_exec): Use default_dims from device.
10892 2018-07-26 Jakub Jelinek <jakub@redhat.com>
10895 * testsuite/libgomp.c++/for-15.C (results): Include it in
10896 omp declare target region.
10897 (main): Use map (always, tofrom: results) instead of
10898 map (tofrom: results).
10900 PR middle-end/86660
10901 * testsuite/libgomp.c/pr86660.c: New test.
10903 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10904 Tom de Vries <tdevries@suse.de>
10906 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
10907 sufficient resources to launch a kernel, and give a hint on how to fix
10910 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
10911 Tom de Vries <tdevries@suse.de>
10913 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
10914 max_threads_per_block and max_threads_per_multiprocessor fields.
10915 (nvptx_open_device): Initialize new fields.
10916 (nvptx_exec): Use num_sms, and new fields.
10918 2018-07-26 Tom de Vries <tdevries@suse.de>
10920 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
10921 to correct locations. Remove xfail.
10923 2018-07-26 Tom de Vries <tdevries@suse.de>
10925 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
10926 acc_wait. Move acc_async_test calls to correct locations. Remove
10929 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
10930 Thomas Koenig <tkoenig@gcc.gnu.org>
10933 * testsuite/libgomp.fortran/async_io_1.f90: New test.
10934 * testsuite/libgomp.fortran/async_io_2.f90: New test.
10935 * testsuite/libgomp.fortran/async_io_3.f90: New test.
10936 * testsuite/libgomp.fortran/async_io_4.f90: New test.
10937 * testsuite/libgomp.fortran/async_io_5.f90: New test.
10938 * testsuite/libgomp.fortran/async_io_6.f90: New test.
10939 * testsuite/libgomp.fortran/async_io_7.f90: New test.
10941 2018-07-17 Jakub Jelinek <jakub@redhat.com>
10943 PR middle-end/86542
10944 * testsuite/libgomp.c++/pr86542.C: New test.
10946 PR middle-end/86539
10947 * testsuite/libgomp.c++/pr86539.C: New test.
10949 2018-07-11 Jakub Jelinek <jakub@redhat.com>
10952 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
10953 (results): Make sure the variable is not inside declare target region.
10954 (qux): Remove unused function.
10956 2018-07-10 Jakub Jelinek <jakub@redhat.com>
10959 * testsuite/libgomp.c++/for-15.C: New test.
10961 2018-06-26 Jakub Jelinek <jakub@redhat.com>
10964 * testsuite/libgomp.c++/pr86291.C: New test.
10966 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
10968 * libgomp.texi (Top): Move www.openmp.org to https.
10969 (Enabling OpenMP): Ditto.
10970 (omp_get_active_level): Ditto.
10971 (omp_get_ancestor_thread_num): Ditto.
10972 (omp_get_cancellation): Ditto.
10973 (omp_get_default_device): Ditto.
10974 (omp_get_dynamic): Ditto.
10975 (omp_get_level): Ditto.
10976 (omp_get_max_active_levels): Ditto.
10977 (omp_get_max_task_priority): Ditto.
10978 (omp_get_max_threads): Ditto.
10979 (omp_get_nested): Ditto.
10980 (omp_get_num_devices): Ditto.
10981 (omp_get_num_procs): Ditto.
10982 (omp_get_num_teams): Ditto.
10983 (omp_get_num_threads): Ditto.
10984 (omp_get_proc_bind): Ditto.
10985 (omp_get_schedule): Ditto.
10986 (omp_get_team_num): Ditto.
10987 (omp_get_team_size): Ditto.
10988 (omp_get_thread_limit): Ditto.
10989 (omp_get_thread_num): Ditto.
10990 (omp_in_parallel): Ditto.
10991 (omp_in_final): Ditto.
10992 (omp_is_initial_device): Ditto.
10993 (omp_set_default_device): Ditto.
10994 (omp_set_dynamic): Ditto.
10995 (omp_set_max_active_levels): Ditto.
10996 (omp_set_nested): Ditto.
10997 (omp_set_num_threads): Ditto.
10998 (omp_set_schedule): Ditto.
10999 (omp_init_lock): Ditto.
11000 (omp_set_lock): Ditto.
11001 (omp_test_lock): Ditto.
11002 (omp_unset_lock): Ditto.
11003 (omp_destroy_lock): Ditto.
11004 (omp_init_nest_lock): Ditto.
11005 (omp_set_nest_lock): Ditto.
11006 (omp_test_nest_lock): Ditto.
11007 (omp_unset_nest_lock): Ditto.
11008 (omp_destroy_nest_lock): Ditto.
11009 (omp_get_wtick): Ditto.
11010 (omp_get_wtime): Ditto.
11011 (OMP_CANCELLATION): Ditto.
11012 (OMP_DISPLAY_ENV): Ditto.
11013 (OMP_DEFAULT_DEVICE): Ditto.
11014 (OMP_DYNAMIC): Ditto.
11015 (OMP_MAX_ACTIVE_LEVELS): Ditto.
11016 (OMP_MAX_TASK_PRIORITY): Ditto.
11017 (OMP_NESTED): Ditto.
11018 (OMP_NUM_THREADS): Ditto.
11019 (OMP_PROC_BIND): Ditto.
11020 (OMP_PLACES): Ditto.
11021 (OMP_STACKSIZE): Ditto.
11022 (OMP_SCHEDULE): Ditto.
11023 (OMP_THREAD_LIMIT): Ditto.
11024 (OMP_WAIT_POLICY): Ditto.
11026 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
11027 James Norris <jnorris@codesourcery.com>
11028 Julian Brown <julian@codesourcery.com>
11029 Thomas Schwinge <thomas@codesourcery.com>
11030 Tom de Vries <tom@codesourcery.com>
11032 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11033 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11034 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11035 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11036 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11037 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11038 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11039 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11040 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11041 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11043 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11045 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11047 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11051 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11053 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11055 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11057 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11059 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11061 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11063 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11065 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11067 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11069 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11071 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11073 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11075 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11077 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11079 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11081 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11083 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11085 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11087 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11089 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11091 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11093 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11095 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11096 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11097 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11098 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11099 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11100 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11101 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11102 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11103 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11105 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11107 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11108 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11109 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11111 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11112 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11113 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11115 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11117 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11119 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11121 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11123 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11125 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11127 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11129 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11131 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11133 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11135 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11137 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11139 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11141 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11143 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11144 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11145 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11146 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11147 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11148 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11149 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11151 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11152 Thomas Schwinge <thomas@codesourcery.com>
11153 Cesar Philippidis <cesar@codesourcery.com>
11155 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11156 (gomp_acc_remove_pointer): Update declaration.
11157 (gomp_acc_declare_allocate): Declare.
11158 (gomp_remove_var): Declare.
11159 * libgomp.map (OACC_2.5): Define.
11160 * oacc-mem.c (acc_map_data): Update refcount.
11161 (acc_unmap_data): Likewise.
11162 (present_create_copy): Likewise.
11163 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11164 (acc_copyin): Likewise.
11165 (FLAG_FINALIZE): Define.
11166 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11167 (acc_delete_finalize): New function.
11168 (acc_delete_finalize_async): New function.
11169 (acc_copyout_finalize): New function.
11170 (acc_copyout_finalize_async): New function.
11171 (gomp_acc_insert_pointer): Update refcounts.
11172 (gomp_acc_remove_pointer): Return if data is not present on the
11174 * oacc-parallel.c (find_pset): Rename to find_pointer.
11175 (find_pointer): Add support for GOMP_MAP_POINTER.
11176 (handle_ftn_pointers): New function.
11177 (GOACC_parallel_keyed): Update refcounts of variables.
11178 (GOACC_enter_exit_data): Add support for finalized data mappings.
11179 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11181 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11182 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11183 for GOMP_MAP_FORCE_FROM.
11184 * openacc.f90 (module openacc_internal): Add
11185 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11186 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11187 acc_copyout_finalize and acc_delete_finalize.
11188 (acc_copyout_finalize_32_h): New subroutine.
11189 (acc_copyout_finalize_64_h): New subroutine.
11190 (acc_copyout_finalize_array_h): New subroutine.
11191 (acc_delete_finalize_32_h): New subroutine.
11192 (acc_delete_finalize_64_h): New subroutine.
11193 (acc_delete_finalize_array_h): New subroutine.
11194 * openacc.h (acc_copyout_finalize): Declare.
11195 (acc_copyout_finalize_async): Declare.
11196 (acc_delete_finalize): Declare.
11197 (acc_delete_finalize_async): Declare.
11198 * openacc_lib.h (acc_copyout_finalize): New interface.
11199 (acc_delete_finalize): New interface.
11200 * target.c (gomp_map_vars): Update dynamic_refcount.
11201 (gomp_remove_var): New function.
11202 (gomp_unmap_vars): Use it.
11203 (gomp_unload_image_from_device): Likewise.
11204 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11205 case to utilize OpenACC 2.5 data clause semantics.
11206 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11207 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11208 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11209 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11210 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11211 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11212 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11213 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11214 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11215 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11216 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11217 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11218 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11219 utilize OpenACC 2.5 data clause semantics.
11220 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11221 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11222 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11223 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11224 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11225 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11226 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11227 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11228 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11230 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11234 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11235 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11236 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11237 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11238 * testsuite/libgomp.fortran/task2.f90: Ditto.
11239 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11240 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11241 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11242 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11243 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11244 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11245 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11246 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11247 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11249 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11252 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11254 2018-05-09 Tom de Vries <tom@codesourcery.com>
11257 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11258 to GOACC_enter_exit_data.
11260 2018-05-09 Tom de Vries <tom@codesourcery.com>
11263 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11264 (async_synchronous_p): New function.
11265 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11267 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11268 async_valid_stream_id_p.
11269 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11270 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11272 2018-05-07 Tom de Vries <tom@codesourcery.com>
11275 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11276 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11278 2018-05-03 Tom de Vries <tom@codesourcery.com>
11281 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11282 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11283 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11284 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11286 2018-05-02 Tom de Vries <tom@codesourcery.com>
11289 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11290 GOMP_OPENACC_DIM ...
11291 * env.c (parse_gomp_openacc_dim): ... here. New function.
11292 (initialize_env): Call parse_gomp_openacc_dim.
11293 (goacc_default_dims): Define.
11294 * libgomp.h (goacc_default_dims): Declare.
11295 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11296 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11297 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11298 GOMP_PLUGIN_acc_default_dim.
11299 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11300 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11302 2018-05-02 Tom de Vries <tom@codesourcery.com>
11305 * testsuite/libgomp.c++/udr-9.C: Update.
11306 * testsuite/libgomp.c++/atomic-16.C: Remove.
11307 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11308 * testsuite/libgomp.c++/loop-13.C: Remove.
11309 * testsuite/libgomp.c++/loop-14.C: Remove.
11310 * testsuite/libgomp.c++/loop-15.C: Remove.
11311 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11312 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11313 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11314 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11315 * testsuite/libgomp.c++/ordered-1.C: Remove.
11316 * testsuite/libgomp.c++/pr45784.C: Remove.
11317 * testsuite/libgomp.c++/pr64824.C: Remove.
11318 * testsuite/libgomp.c++/pr64868.C: Remove.
11319 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11320 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11321 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11322 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11323 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11324 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11325 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11326 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11327 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11328 * testsuite/libgomp.c++/pr69389.C: Remove.
11329 * testsuite/libgomp.c++/simd10.C: Remove.
11330 * testsuite/libgomp.c++/simd11.C: Remove.
11331 * testsuite/libgomp.c++/simd12.C: Remove.
11332 * testsuite/libgomp.c++/simd13.C: Remove.
11333 * testsuite/libgomp.c++/target-1.C: Remove.
11334 * testsuite/libgomp.c++/target-3.C: Remove.
11335 * testsuite/libgomp.c++/target-4.C: Remove.
11336 * testsuite/libgomp.c++/target-5.C: Remove.
11337 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11338 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11339 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11340 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11341 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11342 * testsuite/libgomp.c++/udr-9.C: Remove.
11343 * testsuite/libgomp.c++/for-10.C: Remove.
11344 * testsuite/libgomp.c++/for-11.C: Remove.
11345 * testsuite/libgomp.c++/for-12.C: Remove.
11346 * testsuite/libgomp.c++/for-13.C: Remove.
11347 * testsuite/libgomp.c++/for-14.C: Remove.
11348 * testsuite/libgomp.c++/for-9.C: Remove.
11349 * testsuite/libgomp.c/atomic-18.c: Move ...
11350 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11351 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11352 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11353 * testsuite/libgomp.c/loop-13.c: Move ...
11354 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11355 * testsuite/libgomp.c/loop-14.c: Move ...
11356 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11357 * testsuite/libgomp.c/loop-15.c: Remove.
11358 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11359 * testsuite/libgomp.c/monotonic-1.c: Move ...
11360 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11361 * testsuite/libgomp.c/monotonic-2.c: Move ...
11362 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11363 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11364 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11365 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11366 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11367 * testsuite/libgomp.c/ordered-4.c: Move ...
11368 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11369 * testsuite/libgomp.c/pr45784.c: Move ...
11370 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11371 * testsuite/libgomp.c/pr64824.c: Move ...
11372 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11373 * testsuite/libgomp.c/pr64868.c: Move ...
11374 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11375 * testsuite/libgomp.c/pr66199-1.c: Move ...
11376 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11377 * testsuite/libgomp.c/pr66199-2.c: Move ...
11378 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11379 * testsuite/libgomp.c/pr66199-3.c: Move ...
11380 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11381 * testsuite/libgomp.c/pr66199-4.c: Move ...
11382 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11383 * testsuite/libgomp.c/pr66199-5.c: Move ...
11384 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11385 * testsuite/libgomp.c/pr66199-6.c: Move ...
11386 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11387 * testsuite/libgomp.c/pr66199-7.c: Move ...
11388 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11389 * testsuite/libgomp.c/pr66199-8.c: Move ...
11390 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11391 * testsuite/libgomp.c/pr66199-9.c: Move ...
11392 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11393 * testsuite/libgomp.c/pr69389.c: Move ...
11394 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11395 * testsuite/libgomp.c/simd-14.c: Move ...
11396 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11397 * testsuite/libgomp.c/simd-15.c: Move ...
11398 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11399 * testsuite/libgomp.c/simd-16.c: Move ...
11400 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11401 * testsuite/libgomp.c/simd-17.c: Move ...
11402 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11403 * testsuite/libgomp.c/target-1.c: Move ...
11404 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11405 * testsuite/libgomp.c/target-10.c: Move ...
11406 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11407 * testsuite/libgomp.c/target-13.c: Move ...
11408 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11409 * testsuite/libgomp.c/target-2.c: Move ...
11410 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11411 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11412 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11413 * testsuite/libgomp.c/taskloop-1.c: Move ...
11414 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11415 * testsuite/libgomp.c/taskloop-2.c: Move ...
11416 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11417 * testsuite/libgomp.c/taskloop-3.c: Move ...
11418 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11419 * testsuite/libgomp.c/taskloop-4.c: Move ...
11420 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11421 * testsuite/libgomp.c/udr-1.c: Move ...
11422 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11423 * testsuite/libgomp.c/for-1.c: Move ...
11424 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11425 * testsuite/libgomp.c/for-1.h: Move ...
11426 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11427 * testsuite/libgomp.c/for-2.c: Move ...
11428 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11429 * testsuite/libgomp.c/for-2.h: Move ...
11430 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11431 * testsuite/libgomp.c/for-3.c: Move ...
11432 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11433 * testsuite/libgomp.c/for-4.c: Move ...
11434 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11435 * testsuite/libgomp.c/for-5.c: Move ...
11436 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11437 * testsuite/libgomp.c/for-6.c: Move ...
11438 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11440 2018-05-02 Tom de Vries <tom@codesourcery.com>
11443 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11444 __builtin_goacc_parlevel_{id,size}.
11445 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11446 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11447 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11448 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11449 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11450 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11451 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11452 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11453 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11454 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11455 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11456 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11457 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11458 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11459 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11460 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11461 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11462 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11463 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11464 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11465 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11466 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11467 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11469 2018-05-02 Tom de Vries <tom@codesourcery.com>
11472 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11474 2018-05-02 Tom de Vries <tom@codesourcery.com>
11477 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11479 2018-04-29 Julian Brown <julian@codesourcery.com>
11480 Tom de Vries <tom@codesourcery.com>
11483 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11484 arbitrary order for iterations of atomic subtract check.
11486 2018-04-28 Tom de Vries <tom@codesourcery.com>
11489 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11490 atomic capture results obtained in parallel loop to an array, instead of
11493 2018-04-26 Tom de Vries <tom@codesourcery.com>
11496 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11497 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11498 (process_GOMP_NVPTX_JIT): New function.
11499 (link_ptx): Use process_GOMP_NVPTX_JIT.
11501 2018-04-26 Richard Biener <rguenther@suse.de>
11502 Tom de Vries <tom@codesourcery.com>
11505 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11507 2018-04-26 Tom de Vries <tom@codesourcery.com>
11510 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11511 recursion depth from 25 to 23.
11512 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11514 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11516 * configure: Regenerated.
11518 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11519 Tom de Vries <tom@codesourcery.com>
11522 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11524 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11527 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11528 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11529 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11530 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11531 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11532 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11534 PR libfortran/85166
11535 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11537 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11539 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11541 * configure: Regenerated.
11543 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11546 * configure: Regenerate.
11548 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11549 Tom de Vries <tom@codesourcery.com>
11551 PR middle-end/84955
11552 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11553 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11555 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11559 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11560 test from gfortran.dg to here.
11562 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11564 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11565 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11567 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11569 PR middle-end/84955
11570 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11571 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11573 2018-04-05 Tom de Vries <tom@codesourcery.com>
11576 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11578 2018-03-26 Tom de Vries <tom@codesourcery.com>
11580 PR tree-optimization/85063
11581 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11582 * testsuite/libgomp.c/switch-conversion.c: New test.
11583 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11584 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11586 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11589 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11590 call abort by STOP n.
11591 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11592 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11593 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11594 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11595 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11596 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11597 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11598 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11599 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11600 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11601 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11602 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11603 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11604 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11605 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11606 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11607 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11608 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11609 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11610 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11611 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11612 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11613 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11614 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11615 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11616 * testsuite/libgomp.fortran/character1.f90: Likewise.
11617 * testsuite/libgomp.fortran/character2.f90: Likewise.
11618 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11619 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11620 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11621 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11622 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11623 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11624 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11625 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11626 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11627 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11628 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11629 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11630 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11631 * testsuite/libgomp.fortran/do1.f90: Likewise.
11632 * testsuite/libgomp.fortran/do2.f90: Likewise.
11633 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11634 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11635 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11636 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11637 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11638 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11639 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11640 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11641 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11642 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11643 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11644 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11645 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11646 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11647 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11648 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11649 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11650 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11651 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11652 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11653 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11654 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11655 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11656 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11657 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11658 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11659 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11660 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11661 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11662 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11663 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11664 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11665 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11666 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11667 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11668 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11669 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11670 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11671 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11672 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11673 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11674 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11675 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11676 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11677 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11678 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11679 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11680 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11681 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11682 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11683 * testsuite/libgomp.fortran/lib2.f: Likewise.
11684 * testsuite/libgomp.fortran/lib3.f: Likewise.
11685 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11686 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11687 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11688 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11689 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11690 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11691 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11692 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11693 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11694 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11695 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11696 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11697 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11698 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11699 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11700 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11701 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11702 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11703 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11704 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11705 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11706 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11707 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11708 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11709 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11710 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11711 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11712 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11713 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11714 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11715 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11716 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11717 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11718 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11719 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11720 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11721 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11722 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11723 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11724 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11725 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11726 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11727 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11728 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11729 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11730 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11731 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11732 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11733 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11734 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11735 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11736 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11737 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11738 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11739 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11740 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11741 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11742 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11743 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11744 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11745 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11746 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11747 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11748 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11749 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11750 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11751 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11752 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11753 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11754 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11755 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11756 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11757 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11758 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11759 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11760 * testsuite/libgomp.fortran/simd7.f90: Likewise.
11761 * testsuite/libgomp.fortran/stack.f90: Likewise.
11762 * testsuite/libgomp.fortran/strassen.f90: Likewise.
11763 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
11764 * testsuite/libgomp.fortran/tabs2.f: Likewise.
11765 * testsuite/libgomp.fortran/target1.f90: Likewise.
11766 * testsuite/libgomp.fortran/target2.f90: Likewise.
11767 * testsuite/libgomp.fortran/target3.f90: Likewise.
11768 * testsuite/libgomp.fortran/target4.f90: Likewise.
11769 * testsuite/libgomp.fortran/target5.f90: Likewise.
11770 * testsuite/libgomp.fortran/target6.f90: Likewise.
11771 * testsuite/libgomp.fortran/target7.f90: Likewise.
11772 * testsuite/libgomp.fortran/target8.f90: Likewise.
11773 * testsuite/libgomp.fortran/task1.f90: Likewise.
11774 * testsuite/libgomp.fortran/task2.f90: Likewise.
11775 * testsuite/libgomp.fortran/task3.f90: Likewise.
11776 * testsuite/libgomp.fortran/task4.f90: Likewise.
11777 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
11778 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
11779 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
11780 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
11781 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
11782 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11783 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11784 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11785 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
11786 * testsuite/libgomp.fortran/udr1.f90: Likewise.
11787 * testsuite/libgomp.fortran/udr10.f90: Likewise.
11788 * testsuite/libgomp.fortran/udr11.f90: Likewise.
11789 * testsuite/libgomp.fortran/udr12.f90: Likewise.
11790 * testsuite/libgomp.fortran/udr13.f90: Likewise.
11791 * testsuite/libgomp.fortran/udr14.f90: Likewise.
11792 * testsuite/libgomp.fortran/udr15.f90: Likewise.
11793 * testsuite/libgomp.fortran/udr2.f90: Likewise.
11794 * testsuite/libgomp.fortran/udr3.f90: Likewise.
11795 * testsuite/libgomp.fortran/udr4.f90: Likewise.
11796 * testsuite/libgomp.fortran/udr5.f90: Likewise.
11797 * testsuite/libgomp.fortran/udr6.f90: Likewise.
11798 * testsuite/libgomp.fortran/udr7.f90: Likewise.
11799 * testsuite/libgomp.fortran/udr8.f90: Likewise.
11800 * testsuite/libgomp.fortran/udr9.f90: Likewise.
11801 * testsuite/libgomp.fortran/vla1.f90: Likewise.
11802 * testsuite/libgomp.fortran/vla2.f90: Likewise.
11803 * testsuite/libgomp.fortran/vla3.f90: Likewise.
11804 * testsuite/libgomp.fortran/vla4.f90: Likewise.
11805 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11806 * testsuite/libgomp.fortran/vla6.f90: Likewise.
11807 * testsuite/libgomp.fortran/vla7.f90: Likewise.
11808 * testsuite/libgomp.fortran/vla8.f90: Likewise.
11809 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
11810 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
11811 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11812 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11813 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11814 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11815 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11816 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11817 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11818 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11819 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
11820 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
11821 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
11822 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
11823 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
11824 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11825 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11826 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11827 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11828 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11829 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11830 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11831 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11832 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
11833 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
11834 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11835 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11836 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11837 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11838 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11839 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
11840 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
11841 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
11842 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
11843 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
11844 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
11845 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
11846 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
11847 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
11848 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
11849 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
11850 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
11851 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
11852 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
11853 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
11854 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
11855 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
11856 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
11857 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11858 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11859 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11860 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11861 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11862 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11863 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11864 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11865 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11866 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11867 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11868 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11869 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
11870 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
11871 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
11872 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
11873 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11874 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11875 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
11876 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
11877 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
11878 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11879 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
11880 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
11881 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
11882 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
11883 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
11884 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11885 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11886 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11887 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11888 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11889 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11890 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11891 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
11892 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
11893 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11894 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11895 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11896 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11897 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
11898 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
11899 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
11900 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11901 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11902 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
11904 2018-03-20 Richard Biener <rguenther@suse.de>
11906 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
11907 parallelizable loop.
11909 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11912 * configure: Regenerate.
11914 2018-02-16 Jakub Jelinek <jakub@redhat.com>
11917 * libgomp.fortran/pr84418-1.f90: New test.
11918 * libgomp.fortran/pr84418-2.f90: New test.
11920 2018-02-14 Jakub Jelinek <jakub@redhat.com>
11923 * testsuite/libgomp.fortran/threadprivate4.f90: Add
11924 -std=f2003 -fall-intrinsics into dg-additional-options.
11926 2018-02-08 Martin Jambor <mjambor@suse.cz>
11928 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
11931 2018-02-08 Martin Jambor <mjambor@suse.cz>
11933 * testsuite/libgomp.hsa.c/staticvar.c: New test.
11935 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11937 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
11938 [__cplusplus]: Declare extern "C".
11940 2018-02-07 Tom de Vries <tom@codesourcery.com>
11943 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
11945 2018-01-29 Christoph Spiel <cspiel@freenet.de>
11946 Jakub Jelinek <jakub@redhat.com>
11949 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
11950 instead of omp_lock_t.
11952 2018-01-25 Tom de Vries <tom@codesourcery.com>
11955 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
11957 2018-01-24 Tom de Vries <tom@codesourcery.com>
11960 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
11962 2018-01-24 Tom de Vries <tom@codesourcery.com>
11965 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
11967 2018-01-19 Tom de Vries <tom@codesourcery.com>
11968 Cesar Philippidis <cesar@codesourcery.com>
11971 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
11972 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
11974 2018-01-03 Jakub Jelinek <jakub@redhat.com>
11976 Update copyright years.
11978 * libgomp.texi: Bump @copying's copyright year.
11980 2017-12-30 Tom de Vries <tom@codesourcery.com>
11983 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
11984 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
11986 2017-12-27 Tom de Vries <tom@codesourcery.com>
11989 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
11990 (test_nonstatic): Fix return type to workaround PR83046.
11992 2017-12-05 Jakub Jelinek <jakub@redhat.com>
11995 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
11996 j suffix instead of i.
11997 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12000 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
12002 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12003 call to acc_wait (1).
12005 2017-11-24 Jakub Jelinek <jakub@redhat.com>
12008 * testsuite/libgomp.fortran/pr81304.f90: New test.
12010 2017-11-23 Jakub Jelinek <jakub@redhat.com>
12013 * libgomp.fortran/pr81841.f90: New test.
12015 2017-11-22 Jakub Jelinek <jakub@redhat.com>
12018 * target.c (gomp_target_init): Compute lengths just once and
12019 use them in both malloc size and subsequent copying.
12021 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12023 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12024 * acinclude.m4: Add cet.m4.
12025 * configure: Regenerate.
12026 * Makefile.in: Likewise.
12027 * testsuite/Makefile.in: Likewise.
12029 2017-11-15 Tom de Vries <tom@codesourcery.com>
12031 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12032 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
12033 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12034 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
12035 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12036 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
12038 2017-11-14 Tom de Vries <tom@codesourcery.com>
12040 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12041 non-nvidia devices.
12043 2017-11-07 Jakub Jelinek <jakub@redhat.com>
12046 * testsuite/libgomp.c++/pr82835.C: New test.
12048 2017-11-06 Martin Liska <mliska@suse.cz>
12050 * testsuite/libgomp.c++/loop-2.C: Return a value
12051 for functions with non-void return type, or change type to void,
12052 or add -Wno-return-type for test.
12053 * testsuite/libgomp.c++/loop-4.C: Likewise.
12054 * testsuite/libgomp.c++/parallel-1.C: Likewise.
12055 * testsuite/libgomp.c++/shared-1.C: Likewise.
12056 * testsuite/libgomp.c++/single-1.C: Likewise.
12057 * testsuite/libgomp.c++/single-2.C: Likewise.
12059 2017-10-31 Tom de Vries <tom@codesourcery.com>
12061 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12062 "do {} while (false)".
12063 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12064 after HSA_DEBUG call.
12066 2017-10-28 Jakub Jelinek <jakub@redhat.com>
12068 * target.c (struct gomp_coalesce_buf): New type.
12069 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12070 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12071 (gomp_copy_host2dev): Add CBUF argument, if copying into
12072 the cached ranges, memcpy into buffer instead of copying
12074 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12075 Add CBUF argument, pass it through to other calls.
12076 (gomp_map_vars): Aggregate copies from host to device if small enough
12077 and with small enough gaps in between into memcpy into a buffer and
12078 fewer host to device copies from the buffer.
12079 (gomp_update): Adjust gomp_copy_host2dev caller.
12081 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12083 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12085 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12086 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12087 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12088 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12090 2017-10-16 Tom de Vries <tom@codesourcery.com>
12092 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12093 openacc_nvidia_accel_selected.
12094 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12095 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12096 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12097 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12098 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12099 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12100 openacc_nvidia_accel_selected. Skip for shared memory device.
12101 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12102 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12104 2017-10-09 Martin Jambor <mjambor@suse.cz>
12107 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12109 2017-10-07 Tom de Vries <tom@codesourcery.com>
12111 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12112 Remove acc_device_nvidia references.
12113 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12116 2017-10-05 Tom de Vries <tom@codesourcery.com>
12118 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12119 vector_length(32) clause from acc parallel directive.
12120 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12122 2017-10-04 Tom de Vries <tom@codesourcery.com>
12124 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12125 (main): Reduce sum of arr elements. Assert that hres is exactly
12126 representable in 32-bit floating point.
12127 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12128 (main): Reduce sum of arr elements. Assert that hres and hmres are
12129 exactly representable in 32-bit floating point.
12130 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12132 2017-09-28 Tom de Vries <tom@codesourcery.com>
12134 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12136 * testsuite/libgomp.c++/pr69393.C: Same.
12137 * testsuite/libgomp.c++/taskloop-1.C: Same.
12138 * testsuite/libgomp.c++/taskloop-3.C: Same.
12139 * testsuite/libgomp.c++/taskloop-4.C: Same.
12140 * testsuite/libgomp.c/for-4.c: Same.
12141 * testsuite/libgomp.c/pr66199-3.c: Same.
12142 * testsuite/libgomp.c/pr66199-4.c: Same.
12143 * testsuite/libgomp.c/pr66199-6.c: Same.
12144 * testsuite/libgomp.c/taskloop-1.c: Same.
12145 * testsuite/libgomp.c/taskloop-3.c: Same.
12146 * testsuite/libgomp.c/taskloop-4.c: Same.
12147 * testsuite/libgomp.fortran/aligned1.f03: Same.
12148 * testsuite/libgomp.fortran/condinc1.f: Same.
12149 * testsuite/libgomp.fortran/condinc3.f90: Same.
12150 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12151 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12152 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12153 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12154 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12155 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12156 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12157 * testsuite/libgomp.fortran/recursion1.f90: Same.
12158 * testsuite/libgomp.fortran/target2.f90: Same.
12159 * testsuite/libgomp.fortran/target5.f90: Same.
12160 * testsuite/libgomp.fortran/task3.f90: Same.
12162 2017-09-28 Tom de Vries <tom@codesourcery.com>
12164 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12165 vector_length(32) clause from acc parallel directive.
12166 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12168 2017-09-27 Tom de Vries <tom@codesourcery.com>
12170 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12171 Remove acc_device_nvidia references.
12173 2017-09-16 Tom de Vries <tom@codesourcery.com>
12176 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12178 2017-09-14 Tom de Vries <tom@codesourcery.com>
12180 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12181 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12182 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12183 * testsuite/libgomp.c/c.exp: Include test-cases from
12184 libgomp.c-c++-common.
12185 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12188 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12191 * testsuite/libgomp.c++/pr81314.C: New test.
12193 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12195 * libgomp.texi (Top): www.openacc.org now uses https.
12196 (Enabling OpenACC): Ditto.
12197 (acc_get_num_devices): Ditto.
12198 (acc_set_device_type): Ditto.
12199 (acc_get_device_type): Ditto.
12200 (acc_set_device_num): Ditto.
12201 (acc_get_device_num): Ditto.
12202 (acc_async_test): Ditto.
12203 (acc_async_test_all): Ditto.
12205 (acc_wait_all): Ditto.
12206 (acc_wait_all_async): Ditto.
12207 (acc_wait_async): Ditto.
12209 (acc_shutdown): Ditto.
12210 (acc_on_device): Ditto.
12211 (acc_malloc): Ditto.
12213 (acc_copyin): Ditto.
12214 (acc_present_or_copyin): Ditto.
12215 (acc_create): Ditto.
12216 (acc_present_or_create): Ditto.
12217 (acc_copyout): Ditto.
12218 (acc_delete): Ditto.
12219 (acc_update_device): Ditto.
12220 (acc_update_self): Ditto.
12221 (acc_map_data): Ditto.
12222 (acc_unmap_data): Ditto.
12223 (acc_deviceptr): Ditto.
12224 (acc_hostptr): Ditto.
12225 (acc_is_present): Ditto.
12226 (acc_memcpy_to_device): Ditto.
12227 (acc_memcpy_from_device): Ditto.
12228 (acc_get_current_cuda_device): Ditto.
12229 (acc_get_current_cuda_context): Ditto.
12230 (acc_get_cuda_stream): Ditto.
12231 (acc_set_cuda_stream): Ditto.
12232 (ACC_DEVICE_TYPE): Ditto.
12233 (ACC_DEVICE_NUM): Ditto.
12234 (OpenACC Library Interoperability): Ditto.
12236 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12239 * testsuite/libgomp.c/pr81687-1.c: New test.
12240 * testsuite/libgomp.c/pr81687-2.c: New test.
12242 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12245 * testsuite/libgomp.c/pr69389.c: New test.
12246 * testsuite/libgomp.c++/pr69389.C: New test.
12248 2017-08-07 Tom de Vries <tom@codesourcery.com>
12250 PR middle-end/78266
12251 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12252 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12254 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12257 * testsuite/libgomp.c/pr45784.c: New test.
12258 * testsuite/libgomp.c++/pr45784.C: New test.
12260 2017-07-19 Tom de Vries <tom@codesourcery.com>
12262 * testsuite/libgomp.oacc-c/vec.c: New test.
12264 2017-07-03 Tom de Vries <tom@codesourcery.com>
12266 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12268 2017-06-27 Tom de Vries <tom@codesourcery.com>
12270 * plugin/plugin-nvptx.c (notify_var): New function.
12271 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12273 2017-06-27 Tom de Vries <tom@codesourcery.com>
12275 * env.c (parse_unsigned_long_1): Factor out of ...
12276 (parse_unsigned_long): ... here.
12277 (parse_int_1): Factor out of ...
12278 (parse_int): ... here.
12279 (parse_int_secure): New function.
12280 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12281 * secure_getenv.h: Factor out of ...
12282 * plugin/plugin-hsa.c: ... here.
12283 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12285 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12288 * testsuite/libgomp.c++/pr81130.C: New test.
12290 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12292 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12294 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12295 dg-xfail-run-if default args.
12297 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12299 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12300 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12302 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12305 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12306 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12307 sibling lists, depending on level just pick up what CPUs to put
12308 together into a place vs. whether add multiple ordered places.
12310 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12312 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12313 * libgomp.map (OACC_2.0.1): Add these.
12314 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12315 for "acc_wait", and "acc_wait_all", respectively.
12316 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12317 for "acc_wait", and "acc_wait_all", respectively.
12318 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12319 * libgomp.texi (acc_wait, acc_wait_all): Update.
12320 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12321 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12322 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12324 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12325 acc_present_or_copyin and acc_present_or_create procedures,
12327 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12328 generally different variants of OpenACC Runtime Library functions.
12329 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12331 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12332 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12334 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12335 of preprocessor definitions.
12336 * libgomp.h (strong_alias): Guard by "#ifdef
12337 HAVE_ATTRIBUTE_ALIAS".
12338 * oacc-mem.c: Provide "acc_pcreate" as alias for
12339 "acc_present_or_create", and "acc_pcopyin" as alias for
12340 "acc_present_or_copyin".
12341 * libgomp.map: New version "OACC_2.0.1".
12342 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12343 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12344 its content into...
12345 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12348 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12349 when disabling nvptx offloading.
12351 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12353 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12354 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12355 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12357 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12358 * testsuite/lib/libgomp.exp
12359 (check_effective_target_openacc_nvidia_accel_configured): New
12361 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12362 (check_effective_target_c++): New procs.
12363 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12364 (check_effective_target_c++): Likewise.
12366 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12368 PR middle-end/80809
12369 * testsuite/libgomp.c/pr80809-2.c: New test.
12370 * testsuite/libgomp.c/pr80809-3.c: New test.
12372 PR middle-end/80809
12373 * testsuite/libgomp.c/pr80809-1.c: New test.
12375 PR middle-end/80853
12376 * testsuite/libgomp.c/pr80853.c: New test.
12378 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12380 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12381 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12382 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12383 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12384 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12386 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12387 Debug output for failure.
12389 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12391 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12393 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12396 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12397 bootstrap compare failures.
12399 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12401 * testsuite/libgomp.c/target-36.c: New testcase.
12403 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12405 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12408 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12411 * testsuite/libgomp.c/pr80394.c: New test.
12413 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12416 * config/posix/thread-stacksize.h: New file.
12417 * config/darwin/thread-stacksize.h: New file.
12418 * config/nvptx/thread-stacksize.h: New file.
12419 * env.c: Include thread-stacksize.h.
12420 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12421 instead of 0. Call pthread_attr_setstacksize even if
12422 GOMP_DEFAULT_STACKSIZE is non-zero.
12424 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12426 * env.c (initialize_env): Initialize stacksize to 0.
12428 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12431 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12433 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12436 * testsuite/libgomp.c/pr79940.c: New test.
12438 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12440 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12442 Add __float128 options.
12444 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12446 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12447 hppa*-*-* dg-skip-if directive.
12449 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12451 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12452 dg-skip-if directive into a comment.
12454 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12455 Chung-Lin Tang <cltang@codesourcery.com>
12457 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12458 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12459 add additional case.
12460 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12461 "openacc_nvidia_accel_selected".
12462 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12463 Add num_workers(8) clause.
12465 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12467 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12469 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12470 include complex.h on hppa*-*-hpux*.
12471 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12473 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12475 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12477 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12478 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12479 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12480 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12481 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12482 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12483 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12484 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12485 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12486 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12488 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12490 * libgomp-plugin.h: #include <stdbool.h>.
12491 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12492 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12493 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12494 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12495 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12496 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12497 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12498 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12499 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12500 (GOMP_OFFLOAD_openacc_async_test)
12501 (GOMP_OFFLOAD_openacc_async_test_all)
12502 (GOMP_OFFLOAD_openacc_async_wait)
12503 (GOMP_OFFLOAD_openacc_async_wait_async)
12504 (GOMP_OFFLOAD_openacc_async_wait_all)
12505 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12506 (GOMP_OFFLOAD_openacc_async_set_async)
12507 (GOMP_OFFLOAD_openacc_create_thread_data)
12508 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12509 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12510 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12511 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12512 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12513 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12515 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12516 (GOMP_OFFLOAD_unload_image): Fix argument types.
12518 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12520 * testsuite/lib/libgomp.exp
12521 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12522 check_compile invocation. Fix up removal of executable. Drop
12523 bogus "2>&1" argument.
12525 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12528 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12529 Martin Jambor <mjambor@suse.cz>
12531 * plugin/hsa.h: Moved to top level include.
12532 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12534 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12537 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12538 of cat to get version from BASE-VER file.
12539 * testsuite/Makefile.in: Regenerated.
12541 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12543 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12546 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12548 * plugin/hsa.h: Add GCC runtime library exception.
12549 * plugin/hsa_ext_finalize.h: Likewise.
12551 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12552 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12553 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12554 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12555 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12556 library to link ptx plugin against.
12557 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12558 (CUDA_CALLS): Define.
12559 (cuda_lib, cuda_lib_inited): New variables.
12560 (init_cuda_lib): New function.
12561 (CUDA_CALL_PREFIX): Define.
12562 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12563 (CUDA_CALL): Use FN instead of (FN).
12564 (CUDA_CALL_NOCHECK): Define.
12565 (cuda_error, fini_streams_for_device, select_stream_for_async,
12566 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12567 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12568 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12569 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12571 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12573 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12574 Use CUDA_CALL_NOCHECK.
12575 * plugin/cuda/cuda.h: New file.
12576 * config.h.in: Regenerated.
12577 * configure: Regenerated.
12580 * configure.ac: Add GCC_BASE_VER.
12581 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12582 get version from BASE-VER file.
12583 * testsuite/Makefile.in: Regenerated.
12584 * configure: Regenerated.
12585 * Makefile.in: Regenerated.
12587 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12590 * Makefile.am: Make fincludedir multilib-aware.
12591 * Makefile.in: Regenerate.
12593 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12595 Update copyright years.
12597 * libgomp.texi: Bump @copying's copyright year.
12599 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12601 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12602 pthread_spinlock_t instead of gomp_mutex_t lock.
12603 (gomp_get_thread_pool): Likewise.
12604 (gomp_release_thread_pool): Likewise.
12605 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12608 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12610 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12611 thread pool in case nthreads == 1.
12613 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12615 * config/nvptx/env.c: Delete.
12616 * icv.c: Move definitions of ICV variables back ...
12617 * env.c: ...here. Do not compile environment-related functionality if
12618 LIBGOMP_OFFLOADED_ONLY is set.
12620 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12622 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12623 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12624 * configure: Regenerate.
12625 * config.h.in: Likewise.
12627 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12629 * Makefile.in: Regenerate with automake-1.11.6.
12630 * aclocal.m4: Likewise.
12631 * configure: Likewise.
12632 * testsuite/Makefile.in: Likewise.
12634 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12636 * config/nvptx/critical.c: Delete to use generic implementation.
12638 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12640 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12641 ../../affinity.c as fallback.
12642 * config/nvptx/affinity.c: Delete to use fallback implementation.
12644 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12645 Jakub Jelinek <jakub@redhat.com>
12646 Dmitry Melnik <dm@ispras.ru>
12648 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12649 * Makefile.in. Regenerate.
12650 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12651 (LIBGOMP_USE_PTHREADS): ...here; new define.
12652 * configure: Regenerate.
12653 * config.h.in: Likewise.
12654 * config/posix/affinity.c: Move to...
12655 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12656 interface by LIBGOMP_USE_PTHREADS.
12657 * critical.c: Split out GOMP_atomic_{start,end} into...
12658 * atomic.c: ...here (new file).
12659 * env.c: Split out ICV definitions into...
12660 * icv.c: ...here (new file) and...
12661 * icv-device.c: ...here. New file.
12662 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12663 (gomp_destroy_lock_30): Ditto.
12664 (gomp_set_lock_30): Ditto.
12665 (gomp_unset_lock_30): Ditto.
12666 (gomp_test_lock_30): Ditto.
12667 (gomp_init_nest_lock_30): Ditto.
12668 (gomp_destroy_nest_lock_30): Ditto.
12669 (gomp_set_nest_lock_30): Ditto.
12670 (gomp_unset_nest_lock_30): Ditto.
12671 (gomp_test_nest_lock_30): Ditto.
12673 * config/nvptx/lock.c: New.
12674 * config/nvptx/bar.c: New.
12675 * config/nvptx/bar.h: New.
12676 * config/nvptx/doacross.h: New.
12677 * config/nvptx/error.c: New.
12678 * config/nvptx/icv-device.c: New.
12679 * config/nvptx/mutex.h: New.
12680 * config/nvptx/pool.h: New.
12681 * config/nvptx/proc.c: New.
12682 * config/nvptx/ptrlock.h: New.
12683 * config/nvptx/sem.h: New.
12684 * config/nvptx/simple-bar.h: New.
12685 * config/nvptx/target.c: New.
12686 * config/nvptx/task.c: New.
12687 * config/nvptx/team.c: New.
12688 * config/nvptx/time.c: New.
12689 * config/posix/simple-bar.h: New.
12690 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12691 (gomp_num_teams_var): Declare.
12692 (struct gomp_thread_pool): Change threads_dock member to
12693 gomp_simple_barrier_t.
12694 [__nvptx__] (gomp_thread): New implementation.
12695 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12696 (gomp_thread_destructor): Ditto.
12697 (gomp_init_thread_affinity): Ditto.
12698 * team.c: Guard uses of Pthreads-specific interfaces by
12699 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12700 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12701 * config/nvptx/alloc.c: Delete.
12702 * config/nvptx/barrier.c: Ditto.
12703 * config/nvptx/fortran.c: Ditto.
12704 * config/nvptx/iter.c: Ditto.
12705 * config/nvptx/iter_ull.c: Ditto.
12706 * config/nvptx/loop.c: Ditto.
12707 * config/nvptx/loop_ull.c: Ditto.
12708 * config/nvptx/ordered.c: Ditto.
12709 * config/nvptx/parallel.c: Ditto.
12710 * config/nvptx/priority_queue.c: Ditto.
12711 * config/nvptx/sections.c: Ditto.
12712 * config/nvptx/single.c: Ditto.
12713 * config/nvptx/splay-tree.c: Ditto.
12714 * config/nvptx/work.c: Ditto.
12715 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12716 -foffload=-lgfortran in addition to -lgfortran.
12717 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12718 * plugin/plugin-nvptx.c: Include <limits.h>.
12719 (struct targ_fn_descriptor): Add new fields.
12720 (struct ptx_device): Ditto. Set them...
12721 (nvptx_open_device): ...here.
12722 (nvptx_adjust_launch_bounds): New.
12723 (nvptx_host2dev): Allow NULL 'nvthd'.
12724 (nvptx_dev2host): Ditto.
12725 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12726 (link_ptx): Adjust log sizes.
12727 (nvptx_host2dev): Allow NULL 'nvthd'.
12728 (nvptx_dev2host): Ditto.
12729 (nvptx_set_clocktick): New. Use it...
12730 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12732 (GOMP_OFFLOAD_dev2dev): New.
12733 (nvptx_adjust_launch_bounds): New.
12734 (nvptx_stacks_size): New.
12735 (nvptx_stacks_alloc): New.
12736 (nvptx_stacks_free): New.
12737 (GOMP_OFFLOAD_run): New.
12738 (GOMP_OFFLOAD_async_run): New (stub).
12740 2016-11-23 Martin Jambor <mjambor@suse.cz>
12742 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12743 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12744 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12746 2016-11-23 Martin Liska <mliska@suse.cz>
12747 Martin Jambor <mjambor@suse.cz>
12749 * plugin/hsa.h: New file.
12750 * plugin/hsa_ext_finalize.h: New file.
12751 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12752 header file unistd.h, and functions secure_getenv, __secure_getenv,
12753 getuid, geteuid, getgid and getegid.
12754 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12756 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12757 Handle various cases of secure_getenv presence, add an implementation
12758 when we can test effective UID and GID.
12759 (struct hsa_runtime_fn_info): New structure.
12760 (hsa_runtime_fn_info hsa_fns): New variable.
12761 (hsa_runtime_lib): Likewise.
12762 (support_cpu_devices): Likewise.
12763 (init_enviroment_variables): Load newly introduced ENV
12765 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
12766 (hsa_fatal): Likewise.
12767 (DLSYM_FN): New macro.
12768 (init_hsa_runtime_functions): New function.
12769 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
12770 structure. Depending on environment, also allow CPU devices.
12771 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
12772 (get_kernarg_memory_region): Likewise.
12773 (GOMP_OFFLOAD_init_device): Likewise.
12774 (destroy_hsa_program): Likewise.
12775 (init_basic_kernel_info): New function.
12776 (GOMP_OFFLOAD_load_image): Use it.
12777 (create_and_finalize_hsa_program): Call hsa run-time functions via
12779 (create_single_kernel_dispatch): Likewise.
12780 (release_kernel_dispatch): Likewise.
12781 (init_single_kernel): Likewise.
12782 (parse_target_attributes): Allow up multiple HSA grid dimensions.
12783 (get_group_size): New function.
12784 (run_kernel): Likewise.
12785 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
12786 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
12788 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
12789 * testsuite/libgomp-test-support.exp.in: Likewise.
12790 * Makefile.in: Regenerated.
12791 * aclocal.m4: Likewise.
12792 * config.h.in: Likewise.
12793 * configure: Likewise.
12794 * testsuite/Makefile.in: Likewise.
12796 2016-11-15 Martin Jambor <mjambor@suse.cz>
12797 Alexander Monakov <amonakov@ispras.ru>
12799 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
12800 mapping clauses to target constructs.
12801 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
12803 2016-11-15 Matthias Klose <doko@ubuntu.com>
12805 * configure: Regenerate.
12807 2016-11-10 Jakub Jelinek <jakub@redhat.com>
12809 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
12810 * omp_lib.h.in (openmp_version): Likewise.
12811 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
12813 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12815 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
12816 (fib_wrapper): Add map(from: x) clause.
12817 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
12818 (e_53_2): Likewise.
12819 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
12820 (accum): Add map(tmp) clause.
12821 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
12822 (accum): Add map(tofrom: tmp) clause.
12823 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
12824 (gramSchmidt): Likewise.
12825 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
12826 map(tofrom: sum) clause.
12827 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
12828 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
12829 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
12830 only allowed on the loop iterator.
12831 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
12832 * testsuite/libgomp.fortran/taskloop2.f90: New test.
12833 * testsuite/libgomp.fortran/taskloop4.f90: New test.
12834 * testsuite/libgomp.fortran/doacross1.f90: New test.
12835 * testsuite/libgomp.fortran/doacross3.f90: New test.
12836 * testsuite/libgomp.fortran/taskloop1.f90: New test.
12837 * testsuite/libgomp.fortran/taskloop3.f90: New test.
12838 * testsuite/libgomp.fortran/doacross2.f90: New test.
12839 * testsuite/libgomp.c/doacross-1.c (main): Add missing
12840 #pragma omp atomic read.
12841 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12842 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
12844 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
12845 Nathan Sidwell <nathan@acm.org>
12847 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
12848 to determine default geometry.
12849 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
12852 2016-11-01 Jakub Jelinek <jakub@redhat.com>
12854 * hashtab.h: Use standard GPLv3 with runtime exception
12857 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
12859 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
12860 size when allocating new thread.
12862 2016-09-14 Marek Polacek <polacek@redhat.com>
12864 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
12866 2016-08-19 Jakub Jelinek <jakub@redhat.com>
12869 * testsuite/libgomp.fortran/pr71014.f90: New test.
12871 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
12873 PR middle-end/70895
12874 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
12875 firstprivate clauses.
12876 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
12878 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
12879 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12880 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
12881 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
12882 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
12883 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
12884 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
12885 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
12886 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
12887 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
12888 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
12889 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
12891 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
12894 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
12896 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12899 * testsuite/libgomp.c++/pr58706.C: New test.
12901 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
12903 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
12904 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
12905 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
12907 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
12908 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
12910 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
12912 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
12913 test, and don't hardcode -O0.
12915 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12917 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
12919 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12921 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
12924 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
12926 PR middle-end/71734
12927 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
12928 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
12930 2016-07-01 Jakub Jelinek <jakub@redhat.com>
12933 * testsuite/libgomp.fortran/associate3.f90: New test.
12935 2016-06-17 Jakub Jelinek <jakub@redhat.com>
12937 * testsuite/libgomp.c++/target-21.C: New test.
12939 2016-06-16 Jakub Jelinek <jakub@redhat.com>
12941 * testsuite/libgomp.c++/target-20.C: New test.
12943 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12944 Cesar Philippidis <cesar@codesourcery.com>
12946 PR middle-end/71373
12947 * libgomp.oacc-c/nested-function-1.c: New file.
12948 * libgomp.oacc-c/nested-function-2.c: Likewise.
12949 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12950 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12951 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12953 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12956 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
12957 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
12958 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
12960 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
12962 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
12963 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
12965 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
12968 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
12970 2016-05-26 Jakub Jelinek <jakub@redhat.com>
12972 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
12973 instead of invalid schedule(static, 0).
12974 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
12976 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
12978 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
12979 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
12980 parameter, use to set async stream around call to gomp_unmap_vars,
12981 call gomp_unmap_vars() with 'do_copyfrom' set to true.
12982 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
12983 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
12984 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
12985 (event_add): Add int parameter, initialize 'val' field when
12986 adding new ptx_event struct.
12987 (nvptx_evec): Adjust event_add() call arguments.
12988 (nvptx_host2dev): Likewise.
12989 (nvptx_dev2host): Likewise.
12990 (nvptx_wait_async): Likewise.
12991 (nvptx_wait_all_async): Likewise.
12992 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
12993 pass to event_add() call.
12994 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
12996 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
12997 call openacc.register_async_cleanup_func() hook.
12998 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
12999 * target.c (gomp_copy_from_async): Delete function.
13000 (gomp_map_vars): Remove async_refcount.
13001 (gomp_unmap_vars): Likewise.
13002 (gomp_load_image_to_device): Likewise.
13003 (omp_target_associate_ptr): Likewise.
13004 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13005 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13006 (gomp_copy_from_async): Remove.
13008 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13010 * target.c (gomp_device_copy): New function.
13011 (gomp_copy_host2dev): Likewise.
13012 (gomp_copy_dev2host): Likewise.
13013 (gomp_free_device_memory): Likewise.
13014 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13015 (gomp_map_pointer): Likewise.
13016 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13017 NULL value from alloc_func plugin hook.
13018 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13019 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13020 (gomp_unmap_vars): Likewise.
13021 (gomp_update): Adjust to call gomp_copy_dev2host and
13022 gomp_copy_host2dev functions.
13023 (gomp_unload_image_from_device): Handle false value from
13024 unload_image_func plugin hook.
13025 (gomp_init_device): Handle false value from init_device_func
13027 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13028 (omp_target_free): Adjust to call gomp_free_device_memory.
13029 (omp_target_memcpy): Handle return values from host2dev_func,
13030 dev2host_func, and dev2dev_func plugin hooks.
13031 (omp_target_memcpy_rect_worker): Likewise.
13032 (gomp_target_fini): Handle false value from fini_device_func
13034 * libgomp.h (struct gomp_device_descr): Adjust return type of
13035 init_device_func, fini_device_func, unload_image_func, free_func,
13036 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13037 * oacc-init.c (acc_shutdown_1): Handle false value from
13038 fini_device_func plugin hook.
13039 * oacc-host.c (host_init_device): Change return type to bool.
13040 (host_fini_device): Likewise.
13041 (host_unload_image): Likewise.
13042 (host_free): Likewise.
13043 (host_dev2host): Likewise.
13044 (host_host2dev): Likewise.
13045 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13046 (acc_memcpy_to_device): Likewise.
13047 (acc_memcpy_from_device): Likewise.
13048 (delete_copyout): Add libfnname parameter, handle free_func
13049 hook fatal error case.
13050 (acc_delete): Adjust delete_copyout call.
13051 (acc_copyout): Likewise.
13052 (update_dev_host): Move gomp_mutex_unlock to after
13053 host2dev/dev2host hook calls.
13055 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13056 to 'hsa_error_msg', for clarity.
13057 (hsa_fatal): Likewise.
13058 (hsa_error): New function.
13059 (init_hsa_context): Change return type to bool, adjust to return
13061 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13063 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13064 return false on error.
13065 (get_agent_info): Adjust to return NULL on error.
13066 (destroy_hsa_program): Change return type to bool, adjust to
13067 return false on error.
13068 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13069 (destroy_module): Change return type to bool, adjust to
13070 return false on error.
13071 (GOMP_OFFLOAD_unload_image): Likewise.
13072 (GOMP_OFFLOAD_fini_device): Likewise.
13073 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13074 (GOMP_OFFLOAD_free): Change to return false when called.
13075 (GOMP_OFFLOAD_dev2host): Likewise.
13076 (GOMP_OFFLOAD_host2dev): Likewise.
13077 (GOMP_OFFLOAD_dev2dev): Likewise.
13079 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13080 (CUDA_CALL): Likewise.
13081 (CUDA_CALL_ASSERT): Likewise.
13082 (map_init): Change return type to bool, use CUDA_CALL* macros.
13083 (map_fini): Likewise.
13084 (init_streams_for_device): Change return type to bool, adjust
13086 (fini_streams_for_device): Change return type to bool, adjust
13088 (select_stream_for_async): Release stream_lock before calls to
13089 GOMP_PLUGIN_fatal, adjust call to map_init.
13090 (nvptx_init): Use CUDA_CALL* macros.
13091 (nvptx_attach_host_thread_to_device): Change return type to bool,
13092 use CUDA_CALL* macros.
13093 (nvptx_open_device): Use CUDA_CALL* macros.
13094 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13096 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13097 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13098 (nvptx_exec): Use CUDA_CALL* macros.
13099 (nvptx_alloc): Use CUDA_CALL* macros.
13100 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13101 (nvptx_host2dev): Likewise.
13102 (nvptx_dev2host): Likewise.
13103 (nvptx_wait): Use CUDA_CALL* macros.
13104 (nvptx_wait_async): Likewise.
13105 (nvptx_wait_all): Likewise.
13106 (nvptx_wait_all_async): Likewise.
13107 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13108 use CUDA_CALL* macros, adjust call to map_fini.
13109 (GOMP_OFFLOAD_init_device): Change return type to bool,
13110 adjust code accordingly.
13111 (GOMP_OFFLOAD_fini_device): Likewise.
13112 (GOMP_OFFLOAD_load_image): Adjust calls to
13113 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13114 use CUDA_CALL* macros.
13115 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13117 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13118 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13119 handle error return.
13120 (GOMP_OFFLOAD_dev2host): Likewise.
13121 (GOMP_OFFLOAD_host2dev): Likewise.
13122 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13123 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13125 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13127 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13128 (acc_free): Likewise.
13129 (acc_memcpy_to_device): Likewise.
13130 (acc_memcpy_from_device): Likewise.
13131 (acc_deviceptr): Likewise.
13132 (acc_hostptr): Likewise.
13133 (acc_is_present): Likewise.
13134 (acc_map_data): Likewise.
13135 (acc_unmap_data): Likewise.
13136 (present_create_copy): Likewise.
13137 (delete_copyout): Likewise.
13138 (update_dev_host): Likewise.
13139 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13140 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13141 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13142 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13143 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13144 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13145 it only runs on nvptx targets.
13146 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13147 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13148 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13149 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13150 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13151 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13152 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13153 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13154 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13155 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13156 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13157 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13158 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13159 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13160 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13161 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13162 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13163 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13164 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13165 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13166 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13167 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13168 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13170 2016-05-23 Martin Jambor <mjambor@suse.cz>
13172 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13174 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13176 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13177 to gomp_init_targets_once.
13178 (acc_set_device_type): Remove !cached_base_dev condition on call to
13179 gomp_init_targets_once, move call to before acc_device_lock acquire,
13181 (acc_get_device_num): Remove !cached_base_dev condition on call to
13182 gomp_init_targets_once.
13183 (acc_set_device_num): Likewise.
13185 2016-05-16 Martin Jambor <mjambor@suse.cz>
13187 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13189 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13191 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13192 expected partitioning.
13194 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13196 PR middle-end/70626
13197 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13198 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13199 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13201 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13203 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13206 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13208 PR middle-end/70680
13209 * testsuite/libgomp.c/pr70680-1.c: New test.
13210 * testsuite/libgomp.c/pr70680-2.c: New test.
13212 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13214 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13215 pass parameter variables to subroutines.
13217 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13219 PR middle-end/70643
13220 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13222 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13225 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13226 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13228 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13230 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13231 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13232 GOACC_declare prototype.
13234 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13235 Merge this file, and...
13236 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13237 ... this file, and...
13238 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13239 ... this file, and...
13240 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13241 ... this file, and...
13242 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13243 ... this file, and...
13244 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13245 ... this file, and...
13246 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13247 ... this file, and...
13248 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13249 ... this file, and...
13250 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13251 ... this file, and...
13252 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13253 ... this file, and...
13254 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13255 ... this file, and...
13256 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13257 ... this file, and...
13258 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13259 ... this file into...
13260 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13263 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13264 Make failure observable.
13266 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13268 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13270 * target.c (gomp_target_fallback_firstprivate,
13271 gomp_target_unshare_firstprivate): Removed.
13272 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13273 before waiting for dependencies.
13274 (gomp_target_task_fn): Don't copy firstprivate vars here.
13275 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13276 firstprivate_copies here.
13277 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13278 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13279 explicit/implicit firstprivate.
13281 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13285 PR tree-optimization/70373
13286 PR middle-end/70533
13287 PR middle-end/70534
13288 PR middle-end/70535
13289 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13291 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13293 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13295 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13297 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13299 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13301 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13303 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13305 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13307 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13308 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13309 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13310 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13312 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13314 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13316 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13318 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13320 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13321 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13322 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13323 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13324 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13325 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13327 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13328 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13329 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13330 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13331 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13332 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13333 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13334 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13335 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13336 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13337 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13338 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13339 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13340 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13341 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13343 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13344 James Norris <jnorris@codesourcery.com>
13345 Nathan Sidwell <nathan@codesourcery.com>
13346 Julian Brown <julian@codesourcery.com>
13347 Cesar Philippidis <cesar@codesourcery.com>
13348 Chung-Lin Tang <cltang@codesourcery.com>
13349 Tom de Vries <tom@codesourcery.com>
13351 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13352 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13353 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13354 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13355 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13356 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13357 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13358 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13359 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13361 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13363 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13365 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13366 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13367 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13368 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13370 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13372 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13373 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13374 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13375 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13376 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13377 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13378 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13379 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13380 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13381 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13383 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13384 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13385 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13387 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13389 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13391 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13393 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13395 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13396 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13397 ... this new file. Update.
13398 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13399 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13400 ... this new file. Update.
13401 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13402 file. Incorporate...
13403 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13405 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13407 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13409 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13411 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13413 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13414 set-torture-options.
13416 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13418 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13420 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13421 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13422 -fno-builtin-acc_on_device instead of -O0.
13423 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13425 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13426 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13428 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13429 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13430 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13431 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13432 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13433 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13434 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13435 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13436 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13437 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13438 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13439 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13440 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13441 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13442 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13443 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13444 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13445 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13447 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13449 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13452 2016-03-24 Martin Liska <mliska@suse.cz>
13454 * plugin/plugin-hsa.c (packet_store_release): New function
13455 that is taken from the HSA runtime manual.
13456 (GOMP_OFFLOAD_run): Use the function.
13458 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13461 * testsuite/libgomp.c++/pr70376.C: New test.
13463 2016-03-23 Tom de Vries <tom@codesourcery.com>
13465 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13466 initialization of lresult and lvresult.
13467 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13469 2016-03-23 James Norris <jnorris@codesourcery.com>
13470 Daichi Fukuoka <dc-fukuoka@sgi.com>
13473 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13474 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13475 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13476 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13478 2016-03-23 Martin Liska <mliska@suse.cz>
13481 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13482 argument just in case a dispatched kernel uses that argument.
13484 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13486 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13487 -ftree-parallelize-loops/-fopenacc changes.
13488 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13490 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13492 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13494 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13496 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13497 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13499 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13501 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13502 always_ld_library_path the path to libgcc_s.
13504 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13507 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13509 2016-03-09 Tom de Vries <tom@codesourcery.com>
13511 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13512 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13513 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13515 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13516 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13517 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13518 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13520 2016-03-07 Martin Jambor <mjambor@suse.cz>
13522 * testsuite/lib/libgomp.exp
13523 (check_effective_target_hsa_offloading_selected_nocache): New.
13524 (check_effective_target_hsa_offloading_selected): Likewise.
13525 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13526 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13527 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13528 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13529 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13530 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13531 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13532 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13533 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13534 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13535 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13536 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13537 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13538 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13539 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13540 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13541 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13543 2016-03-07 Martin Jambor <mjambor@suse.cz>
13545 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13546 non-shared memory accelerators.
13547 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13548 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13549 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13550 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13551 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13552 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13553 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13554 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13555 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13557 2016-03-07 Martin Jambor <mjambor@suse.cz>
13559 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13562 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13565 * testsuite/libgomp.c++/pr69555-1.C: New test.
13566 * testsuite/libgomp.c++/pr69555-2.C: New test.
13568 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13569 Martin Jambor <mjambor@suse.cz>
13571 * testsuite/lib/libgomp.exp
13572 (check_effective_target_offload_device_shared_as): New proc.
13573 * testsuite/libgomp.c++/declare_target-1.C: New test.
13575 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13578 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13580 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13582 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13583 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13585 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13586 -ftree-parallelize-loops/-fopenacc changes.
13587 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13588 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13590 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13592 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13594 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13596 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13598 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13600 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13602 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13603 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13605 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13606 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13608 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13609 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13612 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13614 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13616 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13619 * testsuite/libgomp.c/pr69805.c: New test.
13621 2016-02-16 Tom de Vries <tom@codesourcery.com>
13624 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13626 2016-02-09 Tom de Vries <tom@codesourcery.com>
13628 PR tree-optimization/69599
13629 * testsuite/libgomp.c/omp-nested-3.c: New test.
13630 * testsuite/libgomp.c/pr46032-2.c: New test.
13631 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13632 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13634 2016-02-09 Tom de Vries <tom@codesourcery.com>
13637 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13639 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13641 * testsuite/libgomp.c/target-31.c: Fix testcase.
13643 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13645 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13647 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13648 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13649 reduction and map clauses.
13650 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13652 2016-02-02 James Norris <jnorris@codesourcery.com>
13654 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13656 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13658 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13659 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13661 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13664 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13666 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13667 (hsa_kmt_lib): Set variables.
13668 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13669 always_ld_library_path.
13670 * Makefile.in: Regenerate.
13671 * configure: Likewise.
13672 * testsuite/Makefile.in: Likewise.
13674 * plugin/configfrag.ac (offload_additional_options)
13675 (offload_additional_lib_paths): Don't amend for hsa offloading.
13676 * configure: Regenerate.
13678 * plugin/configfrag.ac: Don't configure for offloading target if
13679 we don't build the corresponding plugin.
13680 * configure: Regenerate.
13682 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13684 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13685 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13687 2016-01-26 Tom de Vries <tom@codesourcery.com>
13689 PR tree-optimization/69110
13690 * testsuite/libgomp.c/pr69110.c: New test.
13692 2016-01-25 Richard Biener <rguenther@suse.de>
13695 * testsuite/libgomp.c++/pr69393.C: New testcase.
13697 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13699 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13700 function wasn't mapped to the device with non-shared memory.
13702 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13704 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13706 2016-01-19 Martin Jambor <mjambor@suse.cz>
13707 Martin Liska <mliska@suse.cz>
13709 * plugin/Makefrag.am: Add HSA plugin requirements.
13710 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13711 (HSA_RUNTIME_LIB): Likewise.
13712 (HSA_RUNTIME_CPPFLAGS): Likewise.
13713 (HSA_RUNTIME_INCLUDE): New substitution.
13714 (HSA_RUNTIME_LIB): Likewise.
13715 (HSA_RUNTIME_LDFLAGS): Likewise.
13716 (hsa-runtime): New configure option.
13717 (hsa-runtime-include): Likewise.
13718 (hsa-runtime-lib): Likewise.
13719 (PLUGIN_HSA): New substitution variable.
13720 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13722 (PLUGIN_HSA_CPPFLAGS): Likewise.
13723 (PLUGIN_HSA_LDFLAGS): Likewise.
13724 (PLUGIN_HSA_LIBS): Likewise.
13725 Check that we have access to HSA run-time.
13726 * libgomp-plugin.h (offload_target_type): New element
13727 OFFLOAD_TARGET_TYPE_HSA.
13728 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13730 (bool gomp_create_target_task): Updated.
13731 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13732 new field can_run_func.
13733 * libgomp_g.h (GOMP_target_ext): Update prototype.
13734 * oacc-host.c (host_run): Added a new parameter args.
13735 * target.c (calculate_firstprivate_requirements): New function.
13736 (copy_firstprivate_data): Likewise.
13737 (gomp_target_fallback_firstprivate): Use them.
13738 (gomp_target_unshare_firstprivate): New function.
13739 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13741 (GOMP_target): Do host fallback for all shared memory devices. Do not
13742 pass any args to plugins.
13743 (GOMP_target_ext): Introduce device-specific argument parameter args.
13744 Allow host fallback if device shares memory. Do not remap data if
13745 device has shared memory.
13746 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13747 like host fallback for mappings.
13748 (GOMP_target_data): Treat shared memory devices like host fallback.
13749 (GOMP_target_data_ext): Likewise.
13750 (GOMP_target_update): Likewise.
13751 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13752 gomp_create_target_task.
13753 (GOMP_target_enter_exit_data): Likewise.
13754 (omp_target_alloc): Treat shared memory devices like host fallback.
13755 (omp_target_free): Likewise.
13756 (omp_target_is_present): Likewise.
13757 (omp_target_memcpy): Likewise.
13758 (omp_target_memcpy_rect): Likewise.
13759 (omp_target_associate_ptr): Likewise.
13760 (gomp_load_plugin_for_device): Also load can_run.
13761 * task.c (GOMP_PLUGIN_target_task_completion): Free
13762 firstprivate_copies.
13763 (gomp_create_target_task): Accept new argument args and store it to
13765 * plugin/plugin-hsa.c: New file.
13767 2016-01-18 Tom de Vries <tom@codesourcery.com>
13769 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
13770 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
13771 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
13772 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
13773 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
13774 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
13775 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
13776 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
13777 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
13778 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
13779 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
13781 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
13783 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
13784 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
13785 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
13786 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
13787 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
13788 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
13789 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
13790 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
13792 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
13794 2016-01-15 Jakub Jelinek <jakub@redhat.com>
13796 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
13798 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
13800 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
13802 2016-01-12 James Norris <jnorris@codesourcery.com>
13804 * libgomp.texi: Updates for OpenACC.
13806 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
13808 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
13810 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13813 * testsuite/libgomp.fortran/pr66680.f90: New test.
13815 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13817 PR middle-end/68960
13818 * testsuite/libgomp.c/pr68960.c: New test.
13820 2016-01-06 Nathan Sidwell <nathan@acm.org>
13822 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
13823 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
13825 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13827 Update copyright years.
13829 * libgomp.texi: Bump @copying's copyright year.
13831 2015-12-31 Nathan Sidwell <nathan@acm.org>
13833 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
13834 dg-additional-options syntax.
13835 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13836 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13837 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13838 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13839 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13840 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13841 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13842 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13843 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13844 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13845 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13846 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13847 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13848 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13849 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13850 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13851 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13852 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13854 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
13856 * libgomp.h (REFCOUNT_LINK): Define.
13857 (struct splay_tree_key_s): Add link_key.
13858 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
13859 Replace target address of the pointer with target address of newly
13860 mapped object in the splay tree. Set link pointer on target to the
13861 device address of the mapped object.
13862 (gomp_unmap_vars): Restore target address of the pointer in the splay
13863 tree for REFCOUNT_LINK objects after unmapping.
13864 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
13865 declare target link" objects.
13866 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
13867 "omp declare target link" objects, which were mapped for the image.
13868 (gomp_exit_data): Restore target address of the pointer in the splay
13869 tree for REFCOUNT_LINK objects after unmapping.
13870 * testsuite/libgomp.c/target-link-1.c: New file.
13872 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
13874 * libgomp.h (gomp_device_state): New enum.
13875 (struct gomp_device_descr): Replace is_initialized with state.
13876 (gomp_fini_device): Remove declaration.
13877 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
13878 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
13879 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
13880 (acc_set_device_type): Use state instead of is_initialized.
13881 (acc_set_device_num): Likewise.
13882 * target.c (resolve_device): Use state instead of is_initialized.
13883 Do not initialize finalized device.
13884 (gomp_map_vars): Do nothing if device is finalized.
13885 (gomp_unmap_vars): Likewise.
13886 (gomp_update): Likewise.
13887 (GOMP_offload_register_ver): Use state instead of is_initialized.
13888 (GOMP_offload_unregister_ver): Likewise.
13889 (gomp_init_device): Likewise.
13890 (gomp_unload_device): Likewise.
13891 (gomp_fini_device): Remove.
13892 (gomp_get_target_fn_addr): Do nothing if device is finalized.
13893 (GOMP_target): Go to host fallback if device is finalized.
13894 (GOMP_target_ext): Likewise.
13895 (gomp_exit_data): Do nothing if device is finalized.
13896 (gomp_target_task_fn): Go to host fallback if device is finalized.
13897 (gomp_target_fini): New static function.
13898 (gomp_target_init): Use state instead of is_initialized.
13899 Call gomp_target_fini at exit.
13901 2015-12-09 Tom de Vries <tom@codesourcery.com>
13903 PR tree-optimization/68716
13904 * testsuite/libgomp.c/omp-nested-2.c: New test.
13906 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
13908 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
13909 target openacc_nvidia_accel_selected.
13910 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
13911 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
13912 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
13913 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
13915 2015-12-01 Julian Brown <julian@codesourcery.com>
13916 James Norris <James_Norris@mentor.com>
13918 * oacc-parallel.c (GOACC_host_data): New function.
13919 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
13920 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
13921 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
13922 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
13923 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
13924 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
13925 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
13927 2015-11-30 James Norris <jnorris@codesourcery.com>
13928 Cesar Philippidis <cesar@codesourcery.com>
13931 * libgomp.oacc-fortran/routine-5.f90: New test.
13932 * libgomp.oacc-fortran/routine-7.f90: New test.
13933 * libgomp.oacc-fortran/routine-9.f90: New test.
13935 2015-11-30 Tom de Vries <tom@codesourcery.com>
13937 PR tree-optimization/46032
13938 * testsuite/libgomp.c/pr46032.c: New test.
13940 2015-11-27 Jakub Jelinek <jakub@redhat.com>
13943 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
13944 (gomp_create_target_task): Call it before freeing
13945 GOMP_TARGET_TASK_DATA tasks.
13948 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
13949 in between case label and OpenMP standalone directives.
13950 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
13952 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
13954 * configure: Regenerate.
13956 2015-11-26 Jakub Jelinek <jakub@redhat.com>
13958 * testsuite/libgomp.c/target-35.c: New test.
13960 2015-11-22 James Norris <jnorris@codesourcery.com>
13961 Cesar Philippidis <cesar@codesourcery.com>
13963 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
13964 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
13965 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
13966 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
13967 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
13969 2015-11-20 Jakub Jelinek <jakub@redhat.com>
13971 PR middle-end/68221
13972 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
13973 * testsuite/libgomp.c/reduction-12.c: Likewise.
13974 * testsuite/libgomp.c++/reduction-11.C: Likewise.
13975 * testsuite/libgomp.c++/reduction-12.C: Likewise.
13977 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
13979 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
13980 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
13981 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
13982 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
13983 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
13985 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13986 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13988 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
13990 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
13991 worker & gang cases.
13992 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13994 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
13996 * config/nvptx/priority_queue.c: New file.
13998 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14000 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14003 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14004 Aldy Hernandez <aldyh@redhat.com>
14005 Ilya Verbin <ilya.verbin@intel.com>
14007 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14008 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14009 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14010 iterators or IV by chunk size.
14011 * parallel.c (gomp_resolve_num_threads): Don't assume that
14012 if thr->ts.team is non-NULL, then pool must be non-NULL.
14013 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14014 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14015 GOMP_PLUGIN_target_task_completion.
14016 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14017 * Makefile.in: Regenerate.
14018 * libgomp.h: Shuffle prototypes and forward definitions around so
14019 priority queues can be defined.
14020 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14021 (enum gomp_target_task_state): New enum.
14022 (struct gomp_target_task): Add state, tgt, task and team fields.
14023 (gomp_create_target_task): Change return type to bool, add
14025 (gomp_target_task_fn): Change return type to bool.
14026 (struct gomp_device_descr): Add async_run_func.
14027 (struct gomp_task): Remove children, next_child, prev_child,
14028 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14030 (struct gomp_taskgroup): Remove children.
14031 Add taskgroup_queue.
14032 (struct gomp_team): Change task_queue type to a priority queue.
14033 (splay_compare): Define inline.
14034 (priority_queue_offset): New.
14035 (priority_node_to_task): New.
14036 (task_to_priority_node): New.
14037 * oacc-mem.c: Do not include splay-tree.h.
14038 * priority_queue.c: New file.
14039 * priority_queue.h: New file.
14040 * splay-tree.c: Do not include splay-tree.h.
14041 (splay_tree_foreach_internal): New.
14042 (splay_tree_foreach): New.
14043 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14044 (splay_tree_callback): Define typedef.
14045 * target.c (splay_compare): Move to libgomp.h.
14046 (GOMP_target): Don't adjust *thr in any way around running offloaded
14048 (GOMP_target_ext): Likewise. Handle target nowait.
14049 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14050 return value from gomp_create_target_task, if false, fallthrough
14051 as if no dependencies exist.
14052 (gomp_target_task_fn): Change return type to bool, return true
14053 if the task should have another part scheduled later. Handle
14055 (gomp_load_plugin_for_device): Initialize async_run.
14056 * task.c (gomp_init_task): Initialize children_queue.
14057 (gomp_clear_parent_in_list): New.
14058 (gomp_clear_parent_in_tree): New.
14059 (gomp_clear_parent): Handle priorities.
14060 (GOMP_task): Likewise.
14061 (priority_queue_move_task_first,
14062 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14064 (gomp_create_target_task): Use priority queues. Change return type
14065 to bool, add state argument, return false if for async
14066 {{enter,exit} data,update} constructs no dependencies need to be
14067 waited for, handle target nowait. Set task->fn to NULL instead of
14068 gomp_target_task_fn.
14069 (verify_children_queue): Remove.
14070 (priority_list_upgrade_task): New.
14071 (priority_queue_upgrade_task): New.
14072 (verify_task_queue): Remove.
14073 (priority_list_downgrade_task): New.
14074 (priority_queue_downgrade_task): New.
14075 (gomp_task_run_pre): Use priority queues.
14076 Abstract code out to priority_queue_downgrade_task.
14077 (gomp_task_run_post_handle_dependers): Use priority queues.
14078 (gomp_task_run_post_remove_parent): Likewise.
14079 (gomp_task_run_post_remove_taskgroup): Likewise.
14080 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14082 (GOMP_taskwait): Likewise.
14083 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14084 priority-queue_upgrade_task.
14085 (GOMP_taskgroup_start): Use priority queues.
14086 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14087 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14089 * taskloop.c (GOMP_taskloop): Handle priorities.
14090 * team.c (gomp_new_team): Call priority_queue_init.
14091 (free_team): Call priority_queue_free.
14092 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14093 team created for target nowait in implicit parallel region.
14094 (gomp_team_start): For nested check, test thr->ts.level instead of
14095 thr->ts.team != NULL.
14096 * testsuite/libgomp.c/doacross-3.c: New test.
14097 * testsuite/libgomp.c/ordered-5.c: New test.
14098 * testsuite/libgomp.c/priority.c: New test.
14099 * testsuite/libgomp.c/target-31.c: New test.
14100 * testsuite/libgomp.c/target-32.c: New test.
14101 * testsuite/libgomp.c/target-33.c: New test.
14102 * testsuite/libgomp.c/target-34.c: New test.
14104 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14106 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14108 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14109 loop is sequential.
14111 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14113 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14114 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14116 2015-11-12 James Norris <jnorris@codesourcery.com>
14117 Joseph Myers <joseph@codesourcery.com>
14119 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14120 * oacc-parallel.c (GOACC_declare): New function.
14121 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14122 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14123 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14124 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14125 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14127 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14129 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14131 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14133 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14134 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14136 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14138 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14139 inadvertent commit.
14141 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14143 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14144 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14145 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14146 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14147 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14149 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14151 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14152 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14154 2015-11-05 Jakub Jelinek <jakub@redhat.com>
14155 Ilya Verbin <ilya.verbin@intel.com>
14157 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14158 GOMP_loop_nonmonotonic_dynamic_start,
14159 GOMP_loop_nonmonotonic_guided_next,
14160 GOMP_loop_nonmonotonic_guided_start,
14161 GOMP_loop_ull_nonmonotonic_dynamic_next,
14162 GOMP_loop_ull_nonmonotonic_dynamic_start,
14163 GOMP_loop_ull_nonmonotonic_guided_next,
14164 GOMP_loop_ull_nonmonotonic_guided_start,
14165 GOMP_parallel_loop_nonmonotonic_dynamic,
14166 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14167 (GOMP_target_41): Renamed to ...
14168 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14170 (GOMP_target_data_41): Renamed to ...
14171 (GOMP_target_data_ext): ... this.
14172 (GOMP_target_update_41): Renamed to ...
14173 (GOMP_target_update_ext): ... this.
14174 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14175 GOMP_target_data_ext and GOMP_target_update_ext instead of
14176 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14177 Export GOMP_loop_nonmonotonic_dynamic_next,
14178 GOMP_loop_nonmonotonic_dynamic_start,
14179 GOMP_loop_nonmonotonic_guided_next,
14180 GOMP_loop_nonmonotonic_guided_start,
14181 GOMP_loop_ull_nonmonotonic_dynamic_next,
14182 GOMP_loop_ull_nonmonotonic_dynamic_start,
14183 GOMP_loop_ull_nonmonotonic_guided_next,
14184 GOMP_loop_ull_nonmonotonic_guided_start,
14185 GOMP_parallel_loop_nonmonotonic_dynamic and
14186 GOMP_parallel_loop_nonmonotonic_guided.
14187 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14188 GOMP_parallel_loop_nonmonotonic_guided,
14189 GOMP_loop_nonmonotonic_dynamic_start,
14190 GOMP_loop_nonmonotonic_guided_start,
14191 GOMP_loop_nonmonotonic_dynamic_next,
14192 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14193 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14194 GOMP_loop_ull_nonmonotonic_guided_start,
14195 GOMP_loop_ull_nonmonotonic_dynamic_next,
14196 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14197 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14199 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14200 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14201 Use gomp_map_val function.
14202 (gomp_target_fallback_firstprivate): New static function.
14203 (GOMP_target_41): Renamed to ...
14204 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14205 arguments. Move firstprivate fallback handling into a new
14207 (GOMP_target_data_41): Renamed to ...
14208 (GOMP_target_data_ext): ... this.
14209 (GOMP_target_update_41): Renamed to ...
14210 (GOMP_target_update_ext): ... this.
14211 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14212 gomp_map_0len_lookup instead of gomp_map_lookup.
14213 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14215 * testsuite/libgomp.c/target-28.c: Likewise.
14216 * testsuite/libgomp.c/monotonic-1.c: New test.
14217 * testsuite/libgomp.c/monotonic-2.c: New test.
14218 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14219 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14220 * testsuite/libgomp.c/pr66199-5.c: New test.
14221 * testsuite/libgomp.c/pr66199-6.c: New test.
14222 * testsuite/libgomp.c/pr66199-7.c: New test.
14223 * testsuite/libgomp.c/pr66199-8.c: New test.
14224 * testsuite/libgomp.c/pr66199-9.c: New test.
14225 * testsuite/libgomp.c/reduction-11.c: New test.
14226 * testsuite/libgomp.c/reduction-12.c: New test.
14227 * testsuite/libgomp.c/reduction-13.c: New test.
14228 * testsuite/libgomp.c/reduction-14.c: New test.
14229 * testsuite/libgomp.c/reduction-15.c: New test.
14230 * testsuite/libgomp.c/target-12.c (main): Adjust for
14231 omp_target_is_present change for one-past-last element.
14232 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14233 the same var is both mapped and privatized.
14234 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14235 handling of zero-length array sections.
14236 * testsuite/libgomp.c/target-28.c: New test.
14237 * testsuite/libgomp.c/target-29.c: New test.
14238 * testsuite/libgomp.c/target-30.c: New test.
14239 * testsuite/libgomp.c/target-teams-1.c: New test.
14240 * testsuite/libgomp.c++/member-6.C: New test.
14241 * testsuite/libgomp.c++/member-7.C: New test.
14242 * testsuite/libgomp.c++/monotonic-1.C: New test.
14243 * testsuite/libgomp.c++/monotonic-2.C: New test.
14244 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14245 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14246 * testsuite/libgomp.c++/pr66199-3.C: New test.
14247 * testsuite/libgomp.c++/pr66199-4.C: New test.
14248 * testsuite/libgomp.c++/pr66199-5.C: New test.
14249 * testsuite/libgomp.c++/pr66199-6.C: New test.
14250 * testsuite/libgomp.c++/pr66199-7.C: New test.
14251 * testsuite/libgomp.c++/pr66199-8.C: New test.
14252 * testsuite/libgomp.c++/pr66199-9.C: New test.
14253 * testsuite/libgomp.c++/reduction-11.C: New test.
14254 * testsuite/libgomp.c++/reduction-12.C: New test.
14255 * testsuite/libgomp.c++/target-13.C: New test.
14256 * testsuite/libgomp.c++/target-14.C: New test.
14257 * testsuite/libgomp.c++/target-15.C: New test.
14258 * testsuite/libgomp.c++/target-16.C: New test.
14259 * testsuite/libgomp.c++/target-17.C: New test.
14260 * testsuite/libgomp.c++/target-18.C: New test.
14261 * testsuite/libgomp.c++/target-19.C: New test.
14263 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14265 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14266 and reduction copy.
14267 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14268 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14269 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14270 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14271 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14272 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14273 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14274 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14275 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14276 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14277 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14278 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14279 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14280 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14282 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14284 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14285 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14286 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14287 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14288 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14289 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14290 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14291 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14293 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14295 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14296 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14297 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14298 * oacc-host.c (host_openacc_exec): Likewise.
14299 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14301 2015-11-03 Julian Brown <julian@codesourcery.com>
14302 Thomas Schwinge <thomas@codesourcery.com>
14304 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14305 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14306 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14308 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14309 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14311 2015-11-03 James Norris <jnorris@codesourcery.com>
14313 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14315 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14317 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14318 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14319 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14320 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14321 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14323 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14325 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14327 (enum acc_async_t): Reformat.
14328 (acc_on_device): Declare compatible with builtin and provide C++
14330 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14332 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14333 Cesar Philippidis <cesar@codesourcery.com>
14335 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14336 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14337 ... this. Add a description of the test at the top of the file.
14338 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14339 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14340 ... this. Add a description of the test at the top of the file.
14342 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14344 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14345 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14346 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14347 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14348 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14349 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14351 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14353 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14356 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14359 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14361 2015-10-27 James Norris <jnorris@codesourcery.com>
14363 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14364 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14366 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14368 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14369 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14371 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14372 acc_device_nvidia usage.
14373 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14374 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14375 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14377 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14378 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14381 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14385 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14386 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14388 2015-10-23 Tom de Vries <tom@codesourcery.com>
14391 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14393 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14395 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14397 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14399 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14400 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14402 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14403 to 0 when mapnum is 0.
14405 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14407 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14408 Cast to int from int32_t.
14410 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14411 Aldy Hernandez <aldyh@redhat.com>
14412 Ilya Verbin <ilya.verbin@intel.com>
14414 * config/linux/affinity.c (omp_get_place_num_procs,
14415 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14416 * config/linux/doacross.h: New file.
14417 * config/posix/affinity.c (omp_get_place_num_procs,
14418 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14419 * config/posix/doacross.h: New file.
14420 * env.c: Include gomp-constants.h.
14421 (struct gomp_task_icv): Rename run_sched_modifier to
14422 run_sched_chunk_size.
14423 (gomp_max_task_priority_var): New variable.
14424 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14425 (handle_omp_display_env): Change _OPENMP value from 201307 to
14426 201511. Print OMP_MAX_TASK_PRIORITY.
14427 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14428 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14429 chunk_size and run_sched_modifier to run_sched_chunk_size.
14430 (omp_get_max_task_priority, omp_get_initial_device,
14431 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14432 omp_get_partition_place_nums): New functions.
14433 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14434 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14436 (omp_get_num_places_, omp_get_place_num_procs_,
14437 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14438 omp_get_place_proc_ids_8_, omp_get_place_num_,
14439 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14440 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14441 omp_get_max_task_priority_): New functions.
14442 * libgomp_g.h (GOMP_loop_doacross_static_start,
14443 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14444 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14445 GOMP_loop_ull_doacross_dynamic_start,
14446 GOMP_loop_ull_doacross_guided_start,
14447 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14448 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14449 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14450 GOMP_target_data_41, GOMP_target_update_41,
14451 GOMP_target_enter_exit_data): New prototypes.
14452 (GOMP_task): Add prototype argument.
14453 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14454 (struct gomp_doacross_work_share): New type.
14455 (struct gomp_work_share): Add doacross field.
14456 (struct gomp_task_icv): Rename run_sched_modifier to
14457 run_sched_chunk_size.
14458 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14459 GOMP_TASK_UNDEFERRED. Add comments.
14460 (struct gomp_task_depend_entry): Add comments.
14461 (struct gomp_task): Likewise.
14462 (struct gomp_taskgroup): Likewise.
14463 (struct gomp_target_task): New type.
14464 (struct gomp_team): Add comment.
14465 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14466 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14467 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14468 (struct target_var_desc): New type.
14469 (struct target_mem_desc): Adjust comment. Use struct
14470 target_var_desc instead of splay_tree_key for list.
14471 (REFCOUNT_INFINITY): Define.
14472 (struct splay_tree_key_s): Remove copy_from field.
14473 (struct gomp_device_descr): Add dev2dev_func field.
14474 (enum gomp_map_vars_kind): New enum.
14475 (gomp_map_vars): Add one argument.
14476 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14477 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14478 omp_get_place_num_procs, omp_get_place_num_procs_,
14479 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14480 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14481 omp_get_place_num_, omp_get_partition_num_places,
14482 omp_get_partition_num_places_, omp_get_partition_place_nums,
14483 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14484 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14485 omp_target_free, omp_target_is_present, omp_target_memcpy,
14486 omp_target_memcpy_rect, omp_target_associate_ptr and
14487 omp_target_disassociate_ptr.
14488 (GOMP_4.0.2): Renamed to ...
14489 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14490 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14491 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14492 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14493 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14494 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14495 GOMP_loop_ull_doacross_guided_start,
14496 GOMP_loop_ull_doacross_runtime_start,
14497 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14498 GOMP_doacross_ull_wait.
14499 * libgomp.texi: Document omp_get_max_task_priority.
14500 Rename modifier argument to chunk_size for omp_set_schedule and
14501 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14502 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14503 to run_sched_chunk_size renaming.
14504 (GOMP_loop_ordered_runtime_start): Likewise.
14505 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14506 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14507 GOMP_parallel_loop_runtime_start): New functions.
14508 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14509 to run_sched_chunk_size renaming.
14510 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14511 GOMP_loop_doacross_guided_start): New functions or aliases.
14512 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14513 run_sched_modifier to run_sched_chunk_size renaming.
14514 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14515 (gomp_loop_ull_doacross_static_start,
14516 gomp_loop_ull_doacross_dynamic_start,
14517 gomp_loop_ull_doacross_guided_start,
14518 GOMP_loop_ull_doacross_runtime_start): New functions.
14519 (GOMP_loop_ull_doacross_static_start,
14520 GOMP_loop_ull_doacross_dynamic_start,
14521 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14522 * oacc-mem.c (acc_map_data, present_create_copy,
14523 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14525 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14526 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14527 instead of false to gomp_map_vars.
14528 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14529 * omp.h.in (omp_lock_hint_t): New type.
14530 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14531 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14532 omp_get_place_num, omp_get_partition_num_places,
14533 omp_get_partition_place_nums, omp_get_initial_device,
14534 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14535 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14536 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14538 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14539 (omp_lock_hint_none, omp_lock_hint_uncontended,
14540 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14541 omp_lock_hint_speculative): New parameters.
14542 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14543 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14544 omp_get_place_num, omp_get_partition_num_places,
14545 omp_get_partition_place_nums, omp_get_initial_device,
14546 omp_get_max_task_priority): New interfaces.
14547 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14549 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14550 (omp_lock_hint_none, omp_lock_hint_uncontended,
14551 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14552 omp_lock_hint_speculative): New parameters.
14553 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14554 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14555 omp_get_place_num, omp_get_partition_num_places,
14556 omp_get_partition_place_nums, omp_get_initial_device,
14557 omp_get_max_task_priority): New functions and subroutines.
14558 * ordered.c: Include stdarg.h and string.h.
14559 (MAX_COLLAPSED_BITS): Define.
14560 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14561 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14562 GOMP_doacross_ull_wait): New functions.
14563 * target.c: Include errno.h.
14564 (resolve_device): If device is not initialized, call
14565 gomp_init_device on it.
14566 (gomp_map_lookup): New function.
14567 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14568 Don't bump refcount if REFCOUNT_INFINITY. Handle
14569 GOMP_MAP_ALWAYS_TO_P.
14570 (get_kind): Rename is_openacc argument to short_mapkind.
14571 (gomp_map_pointer): Use gomp_map_lookup.
14572 (gomp_map_fields_existing): New function.
14573 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14574 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14575 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14576 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14577 Adjust for tgt->list changed type and copy_from living in there.
14578 (gomp_copy_from_async): Adjust for tgt->list changed type and
14579 copy_from living in there.
14580 (gomp_unmap_vars): Likewise.
14581 (gomp_update): Likewise. Rename is_openacc argument to
14582 short_mapkind. Don't fail if object is not mapped.
14583 (gomp_load_image_to_device): Initialize refcount to
14585 (gomp_target_fallback): New function.
14586 (gomp_get_target_fn_addr): Likewise.
14587 (GOMP_target): Adjust gomp_map_vars caller, use
14588 gomp_get_target_fn_addr and gomp_target_fallback.
14589 (GOMP_target_41): New function.
14590 (gomp_target_data_fallback): New function.
14591 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14592 (GOMP_target_data_41): New function.
14593 (GOMP_target_update): Adjust gomp_update caller.
14594 (GOMP_target_update_41): New function.
14595 (gomp_exit_data, GOMP_target_enter_exit_data,
14596 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14597 omp_target_is_present, omp_target_memcpy,
14598 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14599 omp_target_associate_ptr, omp_target_disassociate_ptr,
14600 gomp_load_plugin_for_device): New functions.
14601 * task.c: Include gomp-constants.h. Include taskloop.c
14602 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14603 (gomp_task_handle_depend): New function.
14604 (GOMP_task): Use it. Add priority argument. Use
14605 gomp-constant.h constants instead of hardcoded numbers.
14606 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14607 (gomp_create_target_task): New function.
14608 (verify_children_queue, verify_taskgroup_queue,
14609 verify_task_queue): New functions.
14610 (gomp_task_run_pre): Call verify_*_queue functions.
14611 If an upcoming tied task is about to leave the sibling or
14612 taskgroup queues in an invalid state, adjust appropriately.
14613 Remove taskgroup argument. Add comments.
14614 (gomp_task_run_post_handle_dependers): Add comments.
14615 (gomp_task_run_post_remove_parent): Likewise.
14616 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14617 (GOMP_taskwait): Likewise. Add comments.
14618 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14619 problem such that the first non parent_depends_on task does not
14620 end up at the end of the children queue.
14621 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14622 GOMP_TASK_UNDEFERRED.
14623 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14624 * taskloop.c: New file.
14625 * testsuite/lib/libgomp.exp
14626 (check_effective_target_offload_device_nonshared_as): New proc.
14627 * testsuite/libgomp.c/affinity-2.c: New test.
14628 * testsuite/libgomp.c/doacross-1.c: New test.
14629 * testsuite/libgomp.c/doacross-2.c: New test.
14630 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14631 Add map clause to target.
14632 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14633 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14634 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14635 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14636 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14638 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14639 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14640 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14641 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14642 not defined. Use those where needed.
14643 * testsuite/libgomp.c/for-4.c: New test.
14644 * testsuite/libgomp.c/for-5.c: New test.
14645 * testsuite/libgomp.c/for-6.c: New test.
14646 * testsuite/libgomp.c/linear-1.c: New test.
14647 * testsuite/libgomp.c/ordered-4.c: New test.
14648 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14649 only allowed on the loop iterator.
14650 * testsuite/libgomp.c/pr66199-3.c: New test.
14651 * testsuite/libgomp.c/pr66199-4.c: New test.
14652 * testsuite/libgomp.c/reduction-7.c: New test.
14653 * testsuite/libgomp.c/reduction-8.c: New test.
14654 * testsuite/libgomp.c/reduction-9.c: New test.
14655 * testsuite/libgomp.c/reduction-10.c: New test.
14656 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14658 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14659 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14660 * testsuite/libgomp.c/target-11.c: New test.
14661 * testsuite/libgomp.c/target-12.c: New test.
14662 * testsuite/libgomp.c/target-13.c: New test.
14663 * testsuite/libgomp.c/target-14.c: New test.
14664 * testsuite/libgomp.c/target-15.c: New test.
14665 * testsuite/libgomp.c/target-16.c: New test.
14666 * testsuite/libgomp.c/target-17.c: New test.
14667 * testsuite/libgomp.c/target-18.c: New test.
14668 * testsuite/libgomp.c/target-19.c: New test.
14669 * testsuite/libgomp.c/target-20.c: New test.
14670 * testsuite/libgomp.c/target-21.c: New test.
14671 * testsuite/libgomp.c/target-22.c: New test.
14672 * testsuite/libgomp.c/target-23.c: New test.
14673 * testsuite/libgomp.c/target-24.c: New test.
14674 * testsuite/libgomp.c/target-25.c: New test.
14675 * testsuite/libgomp.c/target-26.c: New test.
14676 * testsuite/libgomp.c/target-27.c: New test.
14677 * testsuite/libgomp.c/taskloop-1.c: New test.
14678 * testsuite/libgomp.c/taskloop-2.c: New test.
14679 * testsuite/libgomp.c/taskloop-3.c: New test.
14680 * testsuite/libgomp.c/taskloop-4.c: New test.
14681 * testsuite/libgomp.c++/ctor-13.C: New test.
14682 * testsuite/libgomp.c++/doacross-1.C: New test.
14683 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14684 Replace offload_device with offload_device_nonshared_as.
14685 * testsuite/libgomp.c++/for-12.C: New test.
14686 * testsuite/libgomp.c++/for-13.C: New test.
14687 * testsuite/libgomp.c++/for-14.C: New test.
14688 * testsuite/libgomp.c++/linear-1.C: New test.
14689 * testsuite/libgomp.c++/member-1.C: New test.
14690 * testsuite/libgomp.c++/member-2.C: New test.
14691 * testsuite/libgomp.c++/member-3.C: New test.
14692 * testsuite/libgomp.c++/member-4.C: New test.
14693 * testsuite/libgomp.c++/member-5.C: New test.
14694 * testsuite/libgomp.c++/ordered-1.C: New test.
14695 * testsuite/libgomp.c++/reduction-5.C: New test.
14696 * testsuite/libgomp.c++/reduction-6.C: New test.
14697 * testsuite/libgomp.c++/reduction-7.C: New test.
14698 * testsuite/libgomp.c++/reduction-8.C: New test.
14699 * testsuite/libgomp.c++/reduction-9.C: New test.
14700 * testsuite/libgomp.c++/reduction-10.C: New test.
14701 * testsuite/libgomp.c++/reference-1.C: New test.
14702 * testsuite/libgomp.c++/simd14.C: New test.
14703 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14704 * testsuite/libgomp.c++/target-5.C: New test.
14705 * testsuite/libgomp.c++/target-6.C: New test.
14706 * testsuite/libgomp.c++/target-7.C: New test.
14707 * testsuite/libgomp.c++/target-8.C: New test.
14708 * testsuite/libgomp.c++/target-9.C: New test.
14709 * testsuite/libgomp.c++/target-10.C: New test.
14710 * testsuite/libgomp.c++/target-11.C: New test.
14711 * testsuite/libgomp.c++/target-12.C: New test.
14712 * testsuite/libgomp.c++/taskloop-1.C: New test.
14713 * testsuite/libgomp.c++/taskloop-2.C: New test.
14714 * testsuite/libgomp.c++/taskloop-3.C: New test.
14715 * testsuite/libgomp.c++/taskloop-4.C: New test.
14716 * testsuite/libgomp.c++/taskloop-5.C: New test.
14717 * testsuite/libgomp.c++/taskloop-6.C: New test.
14718 * testsuite/libgomp.c++/taskloop-7.C: New test.
14719 * testsuite/libgomp.c++/taskloop-8.C: New test.
14720 * testsuite/libgomp.c++/taskloop-9.C: New test.
14721 * testsuite/libgomp.fortran/affinity1.f90: New test.
14722 * testsuite/libgomp.fortran/affinity2.f90: New test.
14724 2015-10-13 Tom de Vries <tom@codesourcery.com>
14726 PR tree-optimization/67476
14727 * testsuite/libgomp.c/autopar-3.c: New test.
14728 * testsuite/libgomp.c/autopar-4.c: New test.
14729 * testsuite/libgomp.c/autopar-5.c: New test.
14730 * testsuite/libgomp.c/autopar-6.c: New test.
14731 * testsuite/libgomp.c/autopar-7.c: New test.
14732 * testsuite/libgomp.c/autopar-8.c: New test.
14734 2015-10-12 James Norris <jnorris@codesourcery.com>
14736 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14739 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14741 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14742 using load_gcc_lib.
14744 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14746 * oacc-ptx.h: Remove file, moving its content into...
14747 * config/nvptx/fortran.c: ... here...
14748 * config/nvptx/oacc-init.c: ..., here...
14749 * config/nvptx/oacc-parallel.c: ..., and here.
14750 * config/nvptx/openacc.f90: New file.
14751 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14752 (link_ptx): Don't link in predefined bits of PTX code.
14754 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14755 Bernd Schmidt <bernds@codesourcery.com>
14757 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14758 (struct targ_ptx_obj): New.
14759 (nvptx_tdata): Move earlier, change data format.
14760 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
14762 (GOMP_OFFLOAD_load_image): Adjust.
14764 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14766 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
14767 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14768 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
14769 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
14770 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
14771 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
14772 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
14773 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
14774 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
14775 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
14776 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
14777 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
14778 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
14779 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
14780 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
14781 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
14782 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14783 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
14784 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
14785 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
14786 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
14787 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
14788 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
14789 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
14790 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
14791 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
14792 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
14793 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
14794 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
14795 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
14796 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
14797 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
14798 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
14799 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
14800 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
14801 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
14802 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
14803 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
14804 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
14805 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
14806 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
14807 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
14808 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
14809 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
14810 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
14811 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
14812 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
14813 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
14814 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
14815 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
14816 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
14817 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
14818 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
14819 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
14820 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
14821 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
14822 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
14823 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
14824 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
14825 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
14826 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
14827 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
14828 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
14830 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14832 * oacc-init.c (acc_on_device): Force optimization level.
14834 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14836 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
14837 (cuda_errlist): Delete.
14838 (cuda_error): Reimplement.
14840 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14842 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
14844 * libgomp.map (GOACC_parallel_keyed): New.
14845 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
14847 (GOACC_parallel_keyed): New interface. Lose geometry arguments
14848 and take keyed varargs list. Adjust call to exec_func.
14849 (GOACC_parallel): Force host fallback.
14850 * libgomp_g.h (GOACC_parallel): Remove.
14851 (GOACC_parallel_keyed): Declare.
14852 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
14853 (struct targ_gn_descriptor): Replace name field with launch field.
14854 (nvptx_exec): Lose separate geometry args, take array. Process
14855 dynamic dimensions and adjust.
14856 (struct nvptx_tdata): Replace fn_names field with fn_descs.
14857 (GOMP_OFFLOAD_load_image): Adjust for change in function table
14859 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
14861 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
14864 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14867 * oacc-int.h (goacc_host_init): Add declaration.
14868 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
14869 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
14871 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14872 Sebastian Pop <s.pop@samsung.com>
14874 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
14876 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
14877 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
14878 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
14879 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
14880 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
14882 2015-09-03 Jakub Jelinek <jakub@redhat.com>
14884 * configure.tgt: Add missing ;; in between nvptx and rtems
14887 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14889 * config/posix/pool.h (gomp_adjust_thread_attr): New.
14890 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
14891 (gomp_thread_pool_reservoir): Add priority member.
14892 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
14894 (parse_thread_pools): Likewise.
14895 * team.c (gomp_team_start): Call configuration provided
14896 gomp_adjust_thread_attr(). Destroy thread attributes if
14898 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
14900 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14902 * config/posix/pool.h: New.
14903 * config/rtems/pool.h: Likewise.
14904 * config/rtems/proc.c: Likewise.
14905 * libgomp.h (gomp_thread_destructor): Declare.
14906 * team.c: Include configuration provided "pool.h".
14907 (gomp_get_thread_pool): Define in configuration.
14908 (gomp_team_end): Call configuration defined
14909 gomp_release_thread_pool().
14911 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14913 * config/rtems/bar.c: New.
14914 * config/rtems/bar.h: Likewise.
14915 * config/rtems/mutex.c: Likewise.
14916 * config/rtems/mutex.h: Likewise.
14917 * config/rtems/sem.c: Likewise.
14918 * config/rtems/sem.h: Likewise.
14919 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
14920 <sys/lock.h> header file.
14921 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
14922 supported by Newlib.
14923 * configure: Regenerate.
14925 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
14927 * team.c (gomp_new_thread_pool): Delete and move content to ...
14928 (gomp_get_thread_pool): ... new function. Allocate and
14929 initialize thread pool on demand.
14930 (get_last_team): Use gomp_get_thread_pool().
14931 (gomp_team_start): Delete thread pool initialization.
14933 2015-09-03 Tom de Vries <tom@codesourcery.com>
14935 PR tree-optimization/65637
14936 * testsuite/libgomp.c/autopar-2.c: New test.
14938 2015-08-29 Tom de Vries <tom@codesourcery.com>
14940 PR tree-optimization/46193
14941 * testsuite/libgomp.c/pr46193.c: New test.
14943 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
14946 * libgomp.map: Add 4.0.2 version.
14947 * target.c (offload_image_descr): Add version field.
14948 (gomp_load_image_to_device): Add version argument. Adjust plugin
14949 call. Improve load mismatch diagnostic.
14950 (gomp_unload_image_from_device): Add version argument. Adjust plugin
14952 (GOMP_offload_regster): Make stub function, move bulk to ...
14953 (GOMP_offload_register_ver): ... here. Process version argument.
14954 (GOMP_offload_unregister): Make stub function, move bulk to ...
14955 (GOMP_offload_unregister_ver): ... here. Process version argument.
14956 (gomp_init_device): Process version field.
14957 (gomp_unload_device): Process version field.
14958 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
14959 macros. Check plugin version.
14960 * libgomp.h (gomp_device_descr): Add version function field. Adjust
14961 loader and unloader types.
14962 * oacc-host.c: Include gomp-constants.h.
14963 (host_version): New.
14964 (host_load_image, host_unload_image): Adjust.
14965 (host_dispatch): Add host_version.
14966 * plugin/plugin-nvptx.c: Include gomp-constants.h.
14967 (GOMP_OFFLOAD_version): New.
14968 (GOMP_OFFLOAD_load_image): Add version arg and check it.
14969 (GOMP_OFFLOAD_unload_image): Likewise.
14970 * plugin/plugin-host.c: Include gomp-constants.h.
14971 (GOMP_OFFLOAD_version): New.
14972 (GOMP_OFFLOAD_load_image): Add version arg.
14973 (GOMP_OFFLOAD_unload_image): Likewise.
14975 2015-08-24 Tom de Vries <tom@codesourcery.com>
14977 PR tree-optimization/65468
14978 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
14980 2015-08-24 Tom de Vries <tom@codesourcery.com>
14982 PR tree-optimization/65468
14983 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
14985 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
14989 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
14990 (gomp_iter_guided_next): Idem.
14991 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
14992 (gomp_iter_ull_guided_next): Idem.
14993 * config/linux/wait.h (do_spin): Idem.
14995 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
14997 * libgomp-plugin.h (enum offload_target_type): Remove
14998 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
14999 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15000 * openacc.h (enum acc_device_t): Likewise.
15001 * openacc_lib.h: Likewise.
15002 * oacc-init.c (name_of_acc_device_t): Don't handle it.
15003 (acc_on_device): Just use __builtin_acc_on_device.
15004 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15005 of acc_on_device builtin.
15006 * plugin/plugin-host.h: Remove file.
15007 * plugin/plugin-host.c: Likewise, but salvage some content into...
15008 * oacc-host.c: ... this file.
15009 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15010 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15011 * Makefile.in: Regenerate.
15012 * configure: Likewise.
15013 * testsuite/lib/libgomp.exp
15014 (check_effective_target_openacc_host_nonshm_selected): Remove.
15015 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15016 ACC_DEVICE_TYPE=host_nonshm.
15017 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15018 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15019 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15020 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15021 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15022 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15024 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15025 Jakub Jelinek <jakub@redhat.com>
15027 * config/nvptx/affinity.c: New file.
15028 * config/nvptx/alloc.c: Likewise.
15029 * config/nvptx/bar.c: Likewise.
15030 * config/nvptx/barrier.c: Likewise.
15031 * config/nvptx/critical.c: Likewise.
15032 * config/nvptx/env.c: Likewise.
15033 * config/nvptx/error.c: Likewise.
15034 * config/nvptx/fortran.c: Likewise.
15035 * config/nvptx/iter.c: Likewise.
15036 * config/nvptx/iter_ull.c: Likewise.
15037 * config/nvptx/libgomp-plugin.c: Likewise.
15038 * config/nvptx/lock.c: Likewise.
15039 * config/nvptx/loop.c: Likewise.
15040 * config/nvptx/loop_ull.c: Likewise.
15041 * config/nvptx/mutex.c: Likewise.
15042 * config/nvptx/oacc-async.c: Likewise.
15043 * config/nvptx/oacc-cuda.c: Likewise.
15044 * config/nvptx/oacc-host.c: Likewise.
15045 * config/nvptx/oacc-init.c: Likewise.
15046 * config/nvptx/oacc-mem.c: Likewise.
15047 * config/nvptx/oacc-parallel.c: Likewise.
15048 * config/nvptx/oacc-plugin.c: Likewise.
15049 * config/nvptx/omp-lock.h: Likewise.
15050 * config/nvptx/ordered.c: Likewise.
15051 * config/nvptx/parallel.c: Likewise.
15052 * config/nvptx/proc.c: Likewise.
15053 * config/nvptx/ptrlock.c: Likewise.
15054 * config/nvptx/sections.c: Likewise.
15055 * config/nvptx/sem.c: Likewise.
15056 * config/nvptx/single.c: Likewise.
15057 * config/nvptx/splay-tree.c: Likewise.
15058 * config/nvptx/target.c: Likewise.
15059 * config/nvptx/task.c: Likewise.
15060 * config/nvptx/team.c: Likewise.
15061 * config/nvptx/time.c: Likewise.
15062 * config/nvptx/work.c: Likewise.
15063 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15064 * configure: Regenerate.
15065 * configure.tgt (config_path): Set to "nvptx" for target
15068 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15070 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15072 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
15074 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15075 (cuda_errlist): Constify.
15076 (errmsg): Move into ...
15077 (cuda_error): ... here. Make smaller.
15078 (_XSTR, _STR): Delete.
15079 (cuda_synames): Delete.
15080 (verify_device_library): Delete.
15081 (nvptx_init): Don't call it.
15083 2015-07-28 Tom de Vries <tom@codesourcery.com>
15085 * testsuite/libgomp.c/uns-outer-4.c: New test.
15087 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15089 * testsuite/libgomp.c/pr66714.c: New test.
15091 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15094 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15095 (fib_ref): New function.
15096 (fib): Correct corner cases in the recursion.
15097 (main): Replace the non-simd loop with fib_ref call.
15098 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15100 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15101 for the last array element value. Replace the non-simd loop with
15102 fib_ref call. Remove redundant b_ref array. Remove the comparison
15103 of the last array element with according Fibonacci sequence element.
15104 (fib): Correct corner cases in the recursion.
15106 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15108 * target.c (gomp_offload_image_to_device): Rename to ...
15109 (gomp_load_image_to_device): ... here.
15110 (GOMP_offload_register): Adjust call.
15111 (gomp_init_device): Likewise.
15112 (gomp_unload_image_from_device): New. Broken out of ...
15113 (GOMP_offload_unregister): ... here. Call it.
15114 (gomp_unload_device): New.
15115 * libgomp.h (gomp_unload_device): Declare.
15116 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15119 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15121 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15123 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15125 (goacc_waits): Move !num_waits handling to ...
15126 (GOACC_wait): ... here, the only caller that might have zero waits.
15128 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15129 (struct ptx_image_data): Move earlier, add fns field.
15130 (struct ptx_device): Add images and image_lock fields.
15131 (ptx_images, ptx_image_lock): Delete.
15132 (nvptx_open_device): Initialize images and image_lock fields.
15133 (nvptx_close_device): Destroy image_lock.
15134 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15135 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15138 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15140 * target.c (GOMP_offload_register): Use int for device type arg.
15141 (GOMP_offload_unregister): Likewise.
15143 * target.c (struct_offload_image_descr): Constify host_table.
15144 (gomp_offload_image_to_device): Likewise.
15145 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15147 * libgomp.h (gomp_device_descr): Constify target data arguments.
15148 * target.c (struct offload_image_descr): Constify target_data.
15149 (gomp_offload_image_to_device): Likewise.
15150 (GOMP_offload_register): Likewise.
15151 (GOMP_offload_unregister): Likewise.
15152 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15153 GOMP_OFFLOAD_unload_image): Constify target data.
15154 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15155 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15157 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15159 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15160 Workaround driver library const error.
15161 (struct nvptx_tdata, nvptx_tdata_t): New.
15162 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15165 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15167 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15168 of EPS parameter from integer to real.
15169 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15170 type of EPS parameter from integer to real.
15172 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15174 * team.c (get_last_team): New.
15175 (gomp_new_team): Recycle last non-nested team if possible.
15176 (gomp_team_end): Move team work share list free lock destruction
15178 (free_team): ... here.
15180 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15182 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15183 and ref from int to double. Replaced their comparison with
15184 an inequality of their difference and EPS.
15185 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15186 comparison of pri and a reference number with an inequality of their
15187 difference and EPS.
15188 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15189 the comparison of sum and sum_ref with an inequality of their
15190 difference and EPS.
15191 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15192 the comparison of pri and a reference number with an inequality of
15193 their difference and EPS.
15195 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15197 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15198 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15199 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15200 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15201 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15202 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15203 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15204 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15205 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15206 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15207 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15208 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15209 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15211 (vec_mult): Likewise. Add #pragma omp taskwait.
15212 (main): Adjust caller.
15213 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15214 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15215 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15216 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15217 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15218 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15219 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15220 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15221 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15222 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15223 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15224 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15225 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15226 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15227 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15228 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15229 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15230 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15231 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15232 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15233 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15234 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15235 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15236 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15237 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15238 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15239 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15240 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15241 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15242 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15243 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15244 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15245 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15246 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15247 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15248 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15249 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15250 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15251 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15252 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15253 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15254 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15255 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15256 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15257 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15258 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15259 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15260 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15261 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15262 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15263 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15264 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15265 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15266 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15267 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15268 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15269 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15270 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15271 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15272 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15273 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15274 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15275 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15276 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15277 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15278 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15279 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15280 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15281 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15282 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15283 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15284 (vec_mult): Add !$omp taskwait.
15285 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15286 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15287 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15288 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15289 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15290 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15291 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15292 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15293 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15294 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15295 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15296 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15297 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15298 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15299 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15300 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15301 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15302 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15303 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15304 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15305 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15306 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15307 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15308 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15309 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15310 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15311 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15312 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15313 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15314 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15315 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15316 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15317 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15318 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15319 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15320 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15321 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15322 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15323 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15324 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15325 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15326 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15327 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15328 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15329 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15330 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15331 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15332 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15333 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15334 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15335 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15336 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15337 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15338 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15339 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15340 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15341 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15342 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15343 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15344 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15345 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15346 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15347 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15348 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15349 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15350 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15351 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15353 2015-07-10 Tom de Vries <tom@codesourcery.com>
15355 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15356 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15358 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15361 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15362 in a 64-bit configuration.
15363 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15364 offloading testing if no such device is available.
15365 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15366 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15368 2015-07-08 Tom de Vries <tom@codesourcery.com>
15370 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15372 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15374 2015-07-07 Tom de Vries <tom@codesourcery.com>
15376 PR tree-optimization/66642
15377 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15378 iteration count case.
15379 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15380 function, factor out of ...
15381 (main): ... here. Test low iteration count case.
15383 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15385 * libgomp.h (gomp_thread_pool): Comment last_team field.
15387 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15389 * testsuite/libgomp.c++/pr66702-1.C: Require
15390 vect_simd_clones effective target.
15391 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15393 2015-06-30 Tom de Vries <tom@codesourcery.com>
15395 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15396 already set. Use DEFAULT_CFLAGS in dg-runtest.
15397 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15400 2015-06-30 Tom de Vries <tom@codesourcery.com>
15402 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15403 already set. Use DEFAULT_CFLAGS in dg-runtest.
15404 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15405 * testsuite/libgomp.c++/pr64824.C: Same.
15406 * testsuite/libgomp.c++/pr64868.C: Same.
15407 * testsuite/libgomp.c++/pr66199-1.C: Same.
15408 * testsuite/libgomp.c++/pr66199-2.C: Same.
15409 * testsuite/libgomp.c++/target-2.C: Same.
15410 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15411 -std=<standard> option.
15412 * testsuite/libgomp.c++/udr-11.C: Same.
15413 * testsuite/libgomp.c++/udr-12.C: Same.
15414 * testsuite/libgomp.c++/udr-13.C: Same.
15415 * testsuite/libgomp.c++/udr-14.C: Same.
15416 * testsuite/libgomp.c++/udr-15.C: Same.
15417 * testsuite/libgomp.c++/udr-16.C: Same.
15418 * testsuite/libgomp.c++/udr-17.C: Same.
15419 * testsuite/libgomp.c++/udr-18.C: Same.
15420 * testsuite/libgomp.c++/udr-19.C: Same.
15421 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15422 * testsuite/libgomp.c++/simd-1.C: Same.
15423 * testsuite/libgomp.c++/simd-2.C: Same.
15424 * testsuite/libgomp.c++/simd-3.C: Same.
15425 * testsuite/libgomp.c++/simd-4.C: Same.
15426 * testsuite/libgomp.c++/simd-5.C: Same.
15427 * testsuite/libgomp.c++/simd-6.C: Same.
15428 * testsuite/libgomp.c++/simd-7.C: Same.
15429 * testsuite/libgomp.c++/simd-8.C: Same.
15430 * testsuite/libgomp.c++/simd-9.C: Same.
15431 * testsuite/libgomp.c++/simd10.C: Same.
15432 * testsuite/libgomp.c++/simd11.C: Same.
15433 * testsuite/libgomp.c++/simd12.C: Same.
15434 * testsuite/libgomp.c++/simd13.C: Same.
15436 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15438 PR middle-end/66702
15439 * testsuite/libgomp.c++/pr66702-1.C: New test.
15440 * testsuite/libgomp.c++/pr66702-2.C: New test.
15442 2015-06-30 Tom de Vries <tom@codesourcery.com>
15444 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15445 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15446 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15447 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15449 2015-06-30 Tom de Vries <tom@codesourcery.com>
15451 PR tree-optimization/66652
15452 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15453 using restrict pointers.
15454 (main): Add arguments to calls to f.
15455 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15457 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15459 * configure.ac: Fix check for header <sys/sysctl.h>.
15460 * configure: Regenerate.
15461 * config.h.in: Likewise.
15463 2015-06-23 Tom de Vries <tom@codesourcery.com>
15465 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15467 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15469 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15471 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15475 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15476 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15478 2015-06-15 Tom de Vries <tom@codesourcery.com>
15480 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15481 dg-additional-options for any remaining options.
15482 * testsuite/libgomp.c/atomic-2.c: Same.
15483 * testsuite/libgomp.c/atomic-4.c: Same.
15484 * testsuite/libgomp.c/atomic-5.c: Same.
15485 * testsuite/libgomp.c/atomic-6.c: Same.
15486 * testsuite/libgomp.c/autopar-1.c: Same.
15487 * testsuite/libgomp.c/copyin-1.c: Same.
15488 * testsuite/libgomp.c/copyin-2.c: Same.
15489 * testsuite/libgomp.c/copyin-3.c: Same.
15490 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15491 * testsuite/libgomp.c/nestedfn-5.c: Same.
15492 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15493 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15494 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15495 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15496 * testsuite/libgomp.c/pr32362-1.c: Same.
15497 * testsuite/libgomp.c/pr32362-2.c: Same.
15498 * testsuite/libgomp.c/pr32362-3.c: Same.
15499 * testsuite/libgomp.c/pr39591-1.c: Same.
15500 * testsuite/libgomp.c/pr39591-2.c: Same.
15501 * testsuite/libgomp.c/pr39591-3.c: Same.
15502 * testsuite/libgomp.c/pr58392.c: Same.
15503 * testsuite/libgomp.c/pr58756.c: Same.
15504 * testsuite/libgomp.c/simd-1.c: Same.
15505 * testsuite/libgomp.c/simd-10.c: Same.
15506 * testsuite/libgomp.c/simd-11.c: Same.
15507 * testsuite/libgomp.c/simd-12.c: Same.
15508 * testsuite/libgomp.c/simd-13.c: Same.
15509 * testsuite/libgomp.c/simd-14.c: Same.
15510 * testsuite/libgomp.c/simd-15.c: Same.
15511 * testsuite/libgomp.c/simd-2.c: Same.
15512 * testsuite/libgomp.c/simd-3.c: Same.
15513 * testsuite/libgomp.c/simd-4.c: Same.
15514 * testsuite/libgomp.c/simd-5.c: Same.
15515 * testsuite/libgomp.c/simd-6.c: Same.
15516 * testsuite/libgomp.c/simd-7.c: Same.
15517 * testsuite/libgomp.c/simd-8.c: Same.
15518 * testsuite/libgomp.c/simd-9.c: Same.
15520 2015-06-15 Tom de Vries <tom@codesourcery.com>
15522 * testsuite/libgomp.c/pr35625.c: Fix typo.
15524 2015-06-15 Tom de Vries <tom@codesourcery.com>
15526 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15528 * testsuite/libgomp.c/atomic-3.c: Same.
15529 * testsuite/libgomp.c/debug-1.c: Same.
15530 * testsuite/libgomp.c/nqueens-1.c: Same.
15531 * testsuite/libgomp.c/pr26171.c: Same.
15532 * testsuite/libgomp.c/pr48591.c: Same.
15533 * testsuite/libgomp.c/pr64824.c: Same.
15534 * testsuite/libgomp.c/pr64868.c: Same.
15535 * testsuite/libgomp.c/pr66133.c: Same.
15536 * testsuite/libgomp.c/pr66199-1.c: Same.
15537 * testsuite/libgomp.c/pr66199-2.c: Same.
15538 * testsuite/libgomp.c/target-8.c: Same.
15540 2015-06-15 Tom de Vries <tom@codesourcery.com>
15542 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15544 * testsuite/libgomp.c/for-1.c: Same.
15545 * testsuite/libgomp.c/for-2.c: Same.
15546 * testsuite/libgomp.c/for-3.c: Same.
15547 * testsuite/libgomp.c/pr35625.c: Same.
15548 * testsuite/libgomp.c/pr39154.c: Same.
15549 * testsuite/libgomp.c/simd-16.c: Same.
15550 * testsuite/libgomp.c/simd-17.c: Same.
15552 2015-06-13 Tom de Vries <tom@codesourcery.com>
15554 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15556 2015-06-13 Tom de Vries <tom@codesourcery.com>
15558 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15559 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15560 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15562 (main): Use N instead of hardcoded constants.
15564 2015-06-05 Tom de Vries <tom@codesourcery.com>
15566 merge from gomp4 branch:
15567 2015-05-28 Tom de Vries <tom@codesourcery.com>
15569 PR tree-optimization/65443
15570 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15571 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15572 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15574 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15576 * testsuite/libgomp.graphite/bounds.c: Adjust for
15577 cleanup-tree-dump removal.
15578 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15579 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15580 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15581 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15582 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15583 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15584 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15585 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15586 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15587 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15589 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15591 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15592 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15593 (futex_wake) [!__x86_64__]: Ditto.
15595 2015-05-28 Julian Brown <julian@codesourcery.com>
15597 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15598 function comment. Only call gomp_fatal if new argument is true.
15599 (acc_dev_num_out_of_range): New function.
15600 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15601 acc_dev_num_out_of_range as appropriate.
15602 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15603 (acc_get_device_num, acc_set_device_num): Update calls to
15605 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15608 2015-05-28 Julian Brown <julian@codesourcery.com>
15611 * oacc-init.c (plugin/plugin-host.h): Include.
15612 (acc_on_device): Check whether we're in an offloaded region for
15614 plugin. Don't use __builtin_acc_on_device.
15615 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15616 nonshm_exec flag in thread-local data.
15617 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15618 data for host_nonshm plugin.
15619 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15620 for host_nonshm plugin.
15621 * plugin/plugin-host.h: New.
15623 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15625 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15627 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15629 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15631 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15632 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15635 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15637 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15639 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15641 * target.c (gomp_map_pointer): New function abstracting out
15642 GOMP_MAP_POINTER handling.
15643 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15644 gomp_map_pointer().
15646 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15648 PR middle-end/66199
15649 * testsuite/libgomp.c/pr66199-1.c: New test.
15650 * testsuite/libgomp.c/pr66199-2.c: New test.
15651 * testsuite/libgomp.c++/pr66199-1.C: New test.
15652 * testsuite/libgomp.c++/pr66199-2.C: New test.
15653 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15654 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15656 2015-05-19 Julian Brown <julian@codesourcery.com>
15658 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15661 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15663 PR middle-end/66133
15664 * testsuite/libgomp.c/pr66133.c: New test.
15666 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15668 * Makefile.in: Regenerated with automake-1.11.6.
15669 * aclocal.m4: Likewise.
15670 * config.h.in: Likewise.
15671 * configure: Likewise.
15672 * testsuite/Makefile.in: Likewise.
15674 2015-05-08 Jason Merrill <jason@redhat.com>
15676 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15679 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15681 2015-05-06 Julian Brown <julian@codesourcery.com>
15683 * oacc-init.c (acc_device_lock): Add explanatory comment.
15684 (resolve_device): Add comment about locking requirement.
15685 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15686 gomp_init_device and gomp_fini_device calls.
15687 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15688 (acc_get_device_num, acc_set_device_num): Add locking around
15689 resolve_device and gomp_init_device calls.
15691 2015-05-06 Julian Brown <julian@codesourcery.com>
15693 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15694 goacc_thread_lock on error paths.
15695 * oacc-mem.c (lookup_host): Remove locking from function. Note
15696 locking requirement for caller in function comment.
15697 (lookup_dev): Likewise.
15698 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15699 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15700 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15703 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15707 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15708 don't expect "0x" prefix for "%p" format specifier, don't expect
15709 "(nil)" for NULL pointer.
15710 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15711 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15712 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15713 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15714 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15715 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15716 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15717 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15718 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15719 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15720 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15721 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15722 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15723 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15724 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15725 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15726 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15727 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15728 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15729 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15730 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15731 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15732 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15733 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15734 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15735 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15736 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15737 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15738 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15739 accurately specify what we're looking for.
15740 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15741 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15742 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15743 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15744 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15746 2015-04-30 James Norris <jnorris@codesourcery.com>
15749 * testsuite/lib/libgomp.exp
15750 (check_effective_target_openacc_host_selected)
15751 (check_effective_target_openacc_host_nonshm_selected): New
15753 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15755 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15756 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15757 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15758 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15759 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15760 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15761 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15762 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15763 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15764 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15765 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15766 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15767 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15768 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15769 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15770 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15771 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15772 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15773 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15774 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15775 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15776 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15777 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15778 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15779 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15780 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15781 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15782 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15783 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15784 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15785 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15786 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15787 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15788 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15789 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15790 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15791 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15792 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15793 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15794 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15795 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15796 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15797 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15799 2015-04-08 Julian Brown <julian@codesourcery.com>
15801 * libgomp.h (target_mem_desc: Remove mem_map field.
15802 (acc_dispatch_t): Remove open_device_func, close_device_func,
15803 get_device_num_func, set_device_num_func, target_data members.
15804 Change create_thread_data_func argument to device number instead of
15806 * oacc-async.c (assert.h): Include.
15807 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
15808 (acc_wait_all, acc_wait_all_async): Use current host thread's
15809 active device, not base_dev.
15810 * oacc-cuda.c (acc_get_current_cuda_device)
15811 (acc_get_current_cuda_context, acc_get_cuda_stream)
15812 (acc_set_cuda_stream): Likewise.
15813 * oacc-host.c (host_dispatch): Don't set open_device_func,
15814 close_device_func, get_device_num_func or set_device_num_func.
15815 * oacc-init.c (base_dev, init_key): Remove.
15816 (cached_base_dev): New.
15817 (name_of_acc_device_t): New.
15818 (acc_init_1): Initialise default-numbered device, not zeroth.
15819 (acc_shutdown_1): Close all devices of a given type.
15820 (goacc_destroy_thread): Don't use base_dev.
15821 (lazy_open, lazy_init, lazy_init_and_open): Remove.
15822 (goacc_attach_host_thread_to_device): New.
15823 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
15824 (acc_get_num_devices): Don't use base_dev.
15825 (acc_set_device_type): Reimplement.
15826 (acc_get_device_type): Don't use base_dev.
15827 (acc_get_device_num): Tweak logic.
15828 (acc_set_device_num): Likewise.
15829 (acc_on_device): Use acc_get_device_type.
15830 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
15831 (goacc_lazy_initialize): Reimplement with acc_init and
15832 goacc_attach_host_thread_to_device.
15833 * oacc-int.h (goacc_thread): Add base_dev field.
15834 (base_dev): Remove extern declaration.
15835 (goacc_attach_host_thread_to_device): Add prototype.
15836 * oacc-mem.c (acc_malloc): Use current thread's device instead of
15838 (acc_free): Likewise.
15839 (acc_memcpy_to_device): Likewise.
15840 (acc_memcpy_from_device): Likewise.
15841 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
15842 goacc_lazy_initialize (throughout).
15843 (GOACC_parallel): Use tgt_offset to locate target functions.
15844 * target.c (gomp_map_vars): Don't set tgt->mem_map.
15845 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
15846 (gomp_load_plugin_for_device): Remove open_device, close_device,
15847 get_device_num, set_device_num openacc hook initialisation. Don't set
15848 openacc.target_data.
15849 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
15850 (GOMP_OFFLOAD_openacc_close_device)
15851 (GOMP_OFFLOAD_openacc_get_device_num)
15852 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
15853 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
15855 * plugin/plugin-nvptx.c (ptx_inited): Remove.
15856 (instantiated_devices, ptx_dev_lock): New.
15857 (struct ptx_image_data): New.
15858 (ptx_devices, ptx_images, ptx_image_lock): New.
15859 (fini_streams_for_device): Reorder cuStreamDestroy call.
15860 (nvptx_get_num_devices): Remove forward declaration.
15861 (nvptx_init): Change return type to bool.
15862 (nvptx_fini): Remove.
15863 (nvptx_attach_host_thread_to_device): New.
15864 (nvptx_open_device): Return struct ptx_device* instead of void*.
15865 (nvptx_close_device): Change argument type to struct ptx_device*,
15866 return type to void.
15867 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
15868 (kernel_target_data, kernel_host_table): Remove static globals.
15869 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
15870 (GOMP_OFFLOAD_init_device): Reimplement.
15871 (GOMP_OFFLOAD_fini_device): Likewise.
15872 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
15873 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
15874 (GOMP_OFFLOAD_host2dev): Use ORD argument.
15875 (GOMP_OFFLOAD_openacc_open_device)
15876 (GOMP_OFFLOAD_openacc_close_device)
15877 (GOMP_OFFLOAD_openacc_set_device_num)
15878 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
15879 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
15883 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
15885 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15887 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
15888 * libgomp.h (struct gomp_memory_mapping): Remove.
15889 (struct target_mem_desc): Change type of mem_map from
15890 gomp_memory_mapping * to splay_tree_s *.
15891 (struct gomp_device_descr): Remove register_image_func, get_table_func.
15892 Add load_image_func, unload_image_func.
15893 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
15894 Remove offload_regions_registered.
15895 (gomp_init_tables): Remove.
15896 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15898 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
15899 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
15900 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
15901 offload_regions_registered.
15902 Initialize load_image_func, unload_image_func, mem_map.root.
15903 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
15904 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
15905 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
15906 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
15907 gomp_memory_mapping *. Use dev's lock and splay_tree.
15908 (lookup_dev): Use dev's lock.
15909 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
15910 (acc_is_present): Likewise.
15911 (acc_map_data): Likewise.
15912 (acc_unmap_data): Likewise. Use dev's lock.
15913 (present_create_copy): Likewise.
15914 (delete_copyout): Pass dev to lookup_host instead of mem_map.
15915 (update_dev_host): Likewise.
15916 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
15917 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
15918 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
15919 (GOMP_OFFLOAD_get_table): Remove
15920 (GOMP_OFFLOAD_load_image): New function.
15921 (GOMP_OFFLOAD_unload_image): New function.
15922 * target.c (register_lock): New mutex for offload image registration.
15923 (num_devices): Do not guard with PLUGIN_SUPPORT.
15924 (gomp_realloc_unlock): New static function.
15925 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
15927 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
15928 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
15929 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
15931 (gomp_unmap_vars): Likewise.
15932 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
15933 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
15934 (gomp_offload_image_to_device): New static function.
15935 (GOMP_offload_register): Add mutex lock.
15936 Call gomp_offload_image_to_device for all initialized devices.
15937 Replace gomp_realloc with gomp_realloc_unlock.
15938 (GOMP_offload_unregister): New function.
15939 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
15940 get_table_func from the plugin with calls to init_device_func and
15941 gomp_offload_image_to_device.
15942 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
15944 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
15945 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
15946 (GOMP_target_data): Do not call gomp_init_tables.
15947 (GOMP_target_update): Likewise. Remove argument from gomp_update.
15948 (gomp_load_plugin_for_device): Replace register_image and get_table
15949 with load_image and unload_image in DLSYM ().
15950 (gomp_register_images_for_device): Remove function.
15951 (gomp_target_init): Do not initialize current_device.mem_map.*,
15952 current_device.offload_regions_registered.
15953 Remove call to gomp_register_images_for_device.
15954 Do not free offload_images and num_offload_images.
15956 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15959 * testsuite/libgomp.fortran/pr65597.f90: New test.
15961 2015-03-27 Tom de Vries <tom@codesourcery.com>
15964 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
15965 (init, check): New function.
15966 (foo): Change return type to void.
15967 (main): Call init and check.
15969 2015-03-27 Tom de Vries <tom@codesourcery.com>
15972 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
15973 (foo): Use M for non-inner loops to scale down test-case.
15975 2015-03-25 Kai Tietz <ktietz@redhat.com>
15978 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
15979 (GOACC_data_start): Likewise.
15980 * target.c (gomp_map_vars): Likewise.
15982 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
15984 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
15987 2015-03-19 Jakub Jelinek <jakub@redhat.com>
15989 * testsuite/libgomp.c/target-10.c: New test.
15990 * testsuite/libgomp.c++/target-4.C: New test.
15992 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
15994 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
15995 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
15997 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
15999 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16000 * configure.ac (*-*-rtems*): Assume Pthread is supported.
16001 (pthread.h): Check for this header file.
16002 * configure: Regenerate.
16004 2015-02-25 Tom de Vries <tom@codesourcery.com>
16006 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16007 (check_reduction_op, check_reduction_macro, max, min):
16009 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16011 (main): Use new functions.
16013 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
16015 * target.c (gomp_load_plugin_for_device): Use const char * instead of
16016 char * for variables holding dlerror return values.
16017 (DLSYM_OPT): Ditto.
16019 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16021 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16023 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16024 Cesar Philippidis <cesar@codesourcery.com>
16026 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16027 GOACC_ctaid, and GOACC_nctaid routines.
16029 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16032 * testsuite/libgomp.c/atomic-18.c: New test.
16033 * testsuite/libgomp.c++/atomic-16.C: New test.
16035 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16039 * testsuite/libgomp.c/pr64824.c: New test.
16040 * testsuite/libgomp.c/pr64868.c: New test.
16041 * testsuite/libgomp.c++/pr64824.C: New test.
16042 * testsuite/libgomp.c++/pr64868.C: New test.
16044 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16047 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16048 Link with -lpthread.
16049 * config/aix/plugin-suffix.h: Delete.
16051 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
16054 * configure.tgt (*-*-aix*): Use config_path "aix posix".
16055 (*-*-darwin*): Use config_path "bsd darwin posix".
16056 (*-*-hpux*): Use config_path "hpux posix".
16057 * target.c: Add include of plugin-suffix.h and use
16058 SONAME_SUFFIX macro.
16059 * config/aix/plugin-suffix.h: New file.
16060 * config/darwin/plugin-suffix.h: New file.
16061 * config/hpux/plugin-suffix.h: New file.
16062 * config/posix/plugin-suffix.h: New file.
16064 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16066 PR middle-end/64734
16067 * libgomp.c/pr64734.c: New test.
16069 2015-01-23 Tom de Vries <tom@codesourcery.com>
16072 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16074 2015-01-23 Tom de Vries <tom@codesourcery.com>
16077 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16080 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16083 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16084 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16085 formal parameter. Update all users.
16086 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16087 Document unused formal parameter.
16089 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16091 * oacc-parallel.c: Don't include <alloca.h>.
16092 (GOACC_parallel): Use gomp_alloca instead of alloca.
16094 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16096 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16098 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16099 James Norris <jnorris@codesourcery.com>
16100 Tom de Vries <tom@codesourcery.com>
16101 Julian Brown <julian@codesourcery.com>
16102 Cesar Philippidis <cesar@codesourcery.com>
16103 Nathan Sidwell <nathan@codesourcery.com>
16104 Tobias Burnus <burnus@net-b.de>
16106 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16107 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16108 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16109 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16110 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16111 Include $(top_srcdir)/plugin/Makefrag.am.
16112 (nodist_libsubinclude_HEADERS): Add openacc.h.
16113 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16114 openacc.f90, openacc.mod, openacc_kinds.mod.
16115 (omp_lib.mod): Generalize into...
16116 (%.mod): ... this new rule.
16117 (openacc_kinds.mod, openacc.mod): New rules.
16118 * plugin/configfrag.ac: New file.
16119 * configure.ac: Move plugin/offloading support into it. Include
16120 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16121 * plugin/Makefrag.am: New file.
16122 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16123 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16125 (libgomp-test-support.exp): New rule.
16126 (all-local): Depend on it.
16127 * Makefile.in: Regenerate.
16128 * testsuite/Makefile.in: Regenerate.
16129 * config.h.in: Likewise.
16130 * configure: Likewise.
16131 * configure.tgt: Harden shell syntax.
16132 * env.c: Include "oacc-int.h".
16133 (parse_acc_device_type): New function.
16134 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16136 (initialize_env): Initialize those. Call
16137 goacc_runtime_initialize.
16138 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16139 (gomp_fatal): Call gomp_vfatal.
16140 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16141 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16142 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16143 (splay_tree_node, splay_tree, splay_tree_key)
16144 (struct target_mem_desc, struct splay_tree_key_s)
16145 (struct gomp_memory_mapping, struct acc_dispatch_t)
16146 (struct gomp_device_descr, gomp_acc_insert_pointer)
16147 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16148 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16149 (gomp_free_memmap, gomp_fini_device): New declarations.
16150 (gomp_vdebug, gomp_debug): New macros.
16151 Include "splay-tree.h".
16152 * libgomp.map (OACC_2.0): New symbol version. Use for
16153 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16154 acc_set_device_type_h_, acc_get_device_type,
16155 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16156 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16157 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16158 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16159 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16160 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16161 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16162 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16163 acc_copyin_array_h_, acc_present_or_copyin,
16164 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16165 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16166 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16167 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16168 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16169 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16170 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16171 acc_update_device, acc_update_device_32_h_,
16172 acc_update_device_64_h_, acc_update_device_array_h_,
16173 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16174 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16175 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16176 acc_is_present_64_h_, acc_is_present_array_h_,
16177 acc_memcpy_to_device, acc_memcpy_from_device,
16178 acc_get_current_cuda_device, acc_get_current_cuda_context,
16179 acc_get_cuda_stream, acc_set_cuda_stream.
16180 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16181 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16182 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16183 GOACC_get_num_threads.
16184 (GOMP_PLUGIN_1.0): New symbol version. Use for
16185 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16186 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16187 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16188 GOMP_PLUGIN_acc_thread.
16189 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16190 environment variable.
16191 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16192 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16193 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16194 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16195 (splay_tree_remove): New declarations.
16196 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16197 (splay_tree_remove, splay_tree_lookup): Move into...
16198 * splay-tree.c: ... this new file.
16199 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16200 (splay_tree_node, splay_tree, splay_tree_key)
16201 (struct target_mem_desc, struct splay_tree_key_s)
16202 (struct gomp_device_descr): Don't declare.
16203 (num_devices_openmp): New variable.
16204 (gomp_get_num_devices ): Use it.
16205 (gomp_init_targets_once): New function.
16206 (gomp_get_num_devices ): Use it.
16207 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16208 (gomp_fini_device, gomp_register_image_for_device): New functions.
16209 (gomp_map_vars): Add devaddrs parameter.
16210 (gomp_update): Add mm parameter.
16211 (gomp_init_device): Move most of it into...
16212 (gomp_init_tables): ... this new function.
16213 (gomp_register_images_for_device): Remove function.
16214 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16215 Make them hidden instead of static.
16216 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16217 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16218 (GOMP_target_end_data, GOMP_target_update)
16219 (gomp_load_plugin_for_device, gomp_target_init): Update for
16221 * oacc-async.c: New file.
16222 * oacc-cuda.c: Likewise.
16223 * oacc-host.c: Likewise.
16224 * oacc-init.c: Likewise.
16225 * oacc-int.h: Likewise.
16226 * oacc-mem.c: Likewise.
16227 * oacc-parallel.c: Likewise.
16228 * oacc-plugin.c: Likewise.
16229 * oacc-plugin.h: Likewise.
16230 * oacc-ptx.h: Likewise.
16231 * openacc.f90: Likewise.
16232 * openacc.h: Likewise.
16233 * openacc_lib.h: Likewise.
16234 * plugin/plugin-host.c: Likewise.
16235 * plugin/plugin-nvptx.c: Likewise.
16236 * libgomp-plugin.c: Likewise.
16237 * libgomp-plugin.h: Likewise.
16238 * libgomp_target.h: Remove file after merging content into the
16239 former file. Update all users.
16240 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16241 (offload_targets_s, offload_targets_s_openacc): New variables.
16242 (check_effective_target_openacc_nvidia_accel_present)
16243 (check_effective_target_openacc_nvidia_accel_selected): New
16245 (libgomp_init): Update for OpenACC changes.
16246 * testsuite/libgomp-test-support.exp.in: New file.
16247 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16248 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16249 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16250 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16251 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16252 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16253 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16254 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16255 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16256 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16257 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16258 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16259 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16260 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16261 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16262 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16263 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16264 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16265 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16266 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16267 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16268 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16269 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16270 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16271 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16272 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16273 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16274 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16275 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16276 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16277 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16278 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16279 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16280 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16281 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16282 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16283 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16284 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16285 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16286 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16287 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16288 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16289 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16290 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16291 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16292 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16293 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16294 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16295 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16296 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16297 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16298 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16299 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16300 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16301 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16302 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16303 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16304 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16305 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16306 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16307 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16308 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16309 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16310 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16311 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16312 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16313 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16314 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16315 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16316 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16317 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16318 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16319 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16320 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16321 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16322 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16323 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16324 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16325 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16326 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16327 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16328 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16329 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16330 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16331 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16332 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16333 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16334 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16335 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16336 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16337 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16338 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16339 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16340 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16341 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16342 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16343 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16344 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16345 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16346 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16347 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16348 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16349 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16350 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16351 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16352 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16353 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16354 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16355 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16356 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16357 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16358 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16359 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16360 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16361 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16362 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16363 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16364 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16365 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16366 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16367 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16368 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16369 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16370 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16371 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16372 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16373 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16374 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16375 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16376 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16377 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16378 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16379 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16380 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16381 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16382 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16383 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16384 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16385 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16386 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16388 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16389 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16390 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16391 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16392 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16393 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16394 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16395 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16396 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16397 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16398 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16399 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16400 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16401 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16402 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16403 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16404 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16405 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16406 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16407 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16408 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16409 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16410 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16411 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16412 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16413 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16414 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16415 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16416 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16417 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16418 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16419 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16420 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16421 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16422 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16423 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16424 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16425 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16426 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16427 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16428 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16429 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16430 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16431 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16432 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16433 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16434 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16435 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16436 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16437 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16438 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16439 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16440 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16441 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16442 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16443 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16444 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16445 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16446 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16447 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16449 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16450 Julian Brown <julian@codesourcery.com>
16451 David Malcolm <dmalcolm@redhat.com>
16453 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16454 to "GNU Offloading and Multi Processing Runtime Library". Change
16456 * configure: Regenerate.
16457 * libgomp.texi: Update.
16459 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16461 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16463 * configure: Regenerate.
16465 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16466 "intelmic" in $offload_targets.
16468 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16470 Update copyright years.
16472 * libgomp.texi: Bump @copying's copyright year.
16474 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16476 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16477 Move load of target-supports.exp earlier.
16479 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16481 * testsuite/libgomp.c/target-9.c: New test.
16483 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16485 * config.h.in: Regenerate.
16486 * configure: Regenerate.
16487 * configure.ac: Add GCC_CHECK_EMUTLS.
16488 * libgomp.h: Add check for USE_EMUTLS: this case
16489 is equal to HAVE_TLS.
16490 * team.c: Likewise.
16492 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16494 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16496 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16497 Ilya Verbin <ilya.verbin@intel.com>
16499 * testsuite/libgomp.c/target-critical-1.c: New test.
16501 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16503 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16504 to dg-options unless expensive testing is on.
16505 (TESTITERS): Define to N if not defined.
16506 (main): Use TESTITERS instead of N.
16507 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16508 dg-additional-options depending on whether expensive testing is on.
16509 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16510 Decrease N to 100000 and CHUNKSZ to 10000.
16512 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16515 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16516 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16518 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16520 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16522 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16525 * configure: Regenerated.
16527 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16529 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16530 vect_simd_clones effective target.
16531 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16533 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16535 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16536 of 32 as block_size.
16537 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16538 instead of 32 as block_size.
16540 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16541 Ilya Verbin <ilya.verbin@intel.com>
16543 * Makefile.in: Regenerate.
16544 * configure: Regenerate.
16545 * configure.ac: Set up offload_additional_options,
16546 offload_additional_lib_paths and offload_targets.
16547 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16548 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16549 * testsuite/Makefile.in: Regenerate.
16550 * testsuite/lib/libgomp.exp (libgomp_init): Append
16551 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16552 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16553 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16555 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16556 Ilya Verbin <ilya.verbin@intel.com>
16557 Kirill Yukhin <kirill.yukhin@intel.com>
16558 Ilya Tocar <ilya.tocar@intel.com>
16560 * testsuite/lib/libgomp.exp
16561 (check_effective_target_offload_device): New.
16562 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16563 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16564 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16565 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16566 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16567 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16568 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16569 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16570 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16571 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16572 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16573 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16574 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16575 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16576 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16577 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16578 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16579 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16580 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16581 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16582 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16583 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16584 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16585 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16586 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16587 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16588 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16589 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16590 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16591 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16592 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16593 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16594 * testsuite/libgomp.c/target-7.c: Fix test.
16595 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16596 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16597 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16598 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16599 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16600 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16601 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16602 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16603 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16604 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16605 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16606 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16607 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16608 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16609 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16610 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16611 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16612 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16613 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16614 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16615 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16616 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16617 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16618 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16619 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16620 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16621 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16622 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16623 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16624 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16625 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16627 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16628 Ilya Verbin <ilya.verbin@intel.com>
16629 Thomas Schwinge <thomas@codesourcery.com>
16630 Andrey Turetskiy <andrey.turetskiy@intel.com>
16632 * libgomp.map (GOMP_4.0.1): New symbol version.
16633 Add GOMP_offload_register.
16634 * libgomp_target.h: New file.
16635 * splay-tree.h: New file.
16636 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16637 (gomp_target_init): New forward declaration.
16638 (gomp_is_initialized): New static variable.
16639 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16640 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16642 (offload_images, num_offload_images, devices, num_devices): New static
16644 (splay_compare): New static function.
16645 (struct gomp_device_descr): New structure.
16646 (gomp_get_num_devices): Call gomp_target_init.
16647 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16648 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16649 (GOMP_offload_register): New function.
16650 (GOMP_target): Arrange for host callback to be performed in a separate
16651 initial thread and contention group, inheriting ICVs from
16652 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16653 Add device initialization and lookup for target function in splay tree.
16654 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16655 (GOMP_target_end_data): Call gomp_unmap_vars.
16656 (GOMP_target_update): Add device initialization and call gomp_update.
16657 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16658 (gomp_target_init): New static functions.
16660 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16661 Thomas Schwinge <thomas@codesourcery.com>
16662 Ilya Verbin <ilya.verbin@intel.com>
16663 Andrey Turetskiy <andrey.turetskiy@intel.com>
16665 * config.h.in: Regenerate.
16666 * configure: Regenerate.
16667 * configure.ac: Check for libdl, required for plugin support.
16668 (PLUGIN_SUPPORT): Define if plugins are supported.
16669 (enable_offload_targets): Support Intel MIC targets.
16670 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16672 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16675 * configure: Regenerate.
16677 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16679 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16681 2014-10-06 Marek Polacek <polacek@redhat.com>
16683 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16684 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16685 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16686 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16688 2014-10-06 Marek Polacek <polacek@redhat.com>
16690 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16691 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16692 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16693 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16694 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16695 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16696 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16697 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16698 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16699 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16700 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16701 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16702 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16703 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16704 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16705 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16706 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16707 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16710 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16713 * testsuite/libgomp.c/pr61200.c: New test.
16715 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16718 * testsuite/libgomp.c++/pr63248.C: New test.
16720 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16722 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16723 is not zero, but taskgroup->children is NULL and there are
16724 any task->children, schedule those instead of waiting.
16725 * testsuite/libgomp.c/depend-6.c: New test.
16726 * testsuite/libgomp.c/depend-7.c: New test.
16727 * testsuite/libgomp.c/depend-8.c: New test.
16728 * testsuite/libgomp.c/depend-9.c: New test.
16729 * testsuite/libgomp.c/depend-10.c: New test.
16731 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16733 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16734 (struct gomp_taskwait): New type.
16735 (struct gomp_task): Add taskwait and parent_depends_on, remove
16736 in_taskwait and taskwait_sem fields.
16737 (gomp_finish_task): Don't destroy taskwait_sem.
16738 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16739 taskwait and parent_depends_on.
16740 (GOMP_task): For if (0) tasks with depend clause that depend on
16741 earlier tasks don't defer them, instead call
16742 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16743 Initialize redundant_out field, for redundant out entries just
16744 move them at the end of linked list instead of removing them
16745 completely, and set redundant_out flag instead of redundant.
16746 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16748 (gomp_task_run_post_handle_dependers): If parent is in
16749 gomp_task_maybe_wait_for_dependencies and newly runnable task
16750 is not parent_depends_on, queue it in parent->children linked
16751 list after all runnable tasks with parent_depends_on set.
16752 Adjust for addition of taskwait indirection.
16753 (gomp_task_run_post_remove_parent): If parent is in
16754 gomp_task_maybe_wait_for_dependencies and task to be removed
16755 is parent_depends_on, decrement n_depend and if needed awake
16756 parent. Adjust for addition of taskwait indirection.
16757 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16758 (gomp_task_maybe_wait_for_dependencies): New function.
16759 * testsuite/libgomp.c/depend-5.c: New test.
16761 2014-07-13 Tobias Burnus <burnus@net-b.de>
16763 * testsuite/libgomp.fortran/pr34020.f90: Make compile
16764 with TS 18508/Fortran 2015.
16766 2014-07-06 Marek Polacek <polacek@redhat.com>
16769 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
16771 2014-07-03 Jakub Jelinek <jakub@redhat.com>
16773 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
16774 matches regex $lang_source_re, add $lang_include_flags to options.
16775 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
16776 * testsuite/libgomp.c++/c++.exp: Likewise.
16777 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
16778 and lang_include_flags instead of adding -fintrinsic-modules-path= to
16780 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
16782 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
16784 * testsuite/libgomp.fortran/fortran.exp: Explain
16785 gfortran-dg-runtest usage.
16787 2014-06-25 Jakub Jelinek <jakub@redhat.com>
16789 * testsuite/libgomp.fortran/simd5.f90: New test.
16790 * testsuite/libgomp.fortran/simd6.f90: New test.
16791 * testsuite/libgomp.fortran/simd7.f90: New test.
16793 2014-06-24 Jakub Jelinek <jakub@redhat.com>
16795 * testsuite/libgomp.c/for-2.c: Define SC to static for
16796 #pragma omp for simd testing.
16797 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
16798 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
16800 * testsuite/libgomp.c/simd-14.c: New test.
16801 * testsuite/libgomp.c/simd-15.c: New test.
16802 * testsuite/libgomp.c/simd-16.c: New test.
16803 * testsuite/libgomp.c/simd-17.c: New test.
16804 * testsuite/libgomp.c++/for-10.C: Define SC to static for
16805 #pragma omp for simd testing.
16806 * testsuite/libgomp.c++/simd10.C: New test.
16807 * testsuite/libgomp.c++/simd11.C: New test.
16808 * testsuite/libgomp.c++/simd12.C: New test.
16809 * testsuite/libgomp.c++/simd13.C: New test.
16811 * testsuite/libgomp.fortran/aligned1.f03: New test.
16812 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
16813 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
16814 tasks with !$omp parallel !$omp single.
16815 * testsuite/libgomp.fortran/target8.f90: New test.
16816 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
16817 not to use trim in the combiner, instead call elemental function.
16818 (fn): New elemental function.
16819 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
16821 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
16823 * testsuite/libgomp.fortran/udr12.f90: New test.
16824 * testsuite/libgomp.fortran/udr13.f90: New test.
16825 * testsuite/libgomp.fortran/udr14.f90: New test.
16826 * testsuite/libgomp.fortran/udr15.f90: New test.
16828 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16830 * omp_lib.f90.in (openmp_version): Set to 201307.
16831 * omp_lib.h.in (openmp_version): Likewise.
16832 * testsuite/libgomp.c/target-8.c: New test.
16833 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
16834 and inbranch clauses.
16835 * testsuite/libgomp.fortran/depend-3.f90: New test.
16836 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
16838 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
16839 * testsuite/libgomp.fortran/target1.f90: New test.
16840 * testsuite/libgomp.fortran/target2.f90: New test.
16841 * testsuite/libgomp.fortran/target3.f90: New test.
16842 * testsuite/libgomp.fortran/target4.f90: New test.
16843 * testsuite/libgomp.fortran/target5.f90: New test.
16844 * testsuite/libgomp.fortran/target6.f90: New test.
16845 * testsuite/libgomp.fortran/target7.f90: New test.
16847 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16850 * testsuite/libgomp.fortran/allocatable9.f90: New test.
16851 * testsuite/libgomp.fortran/allocatable10.f90: New test.
16852 * testsuite/libgomp.fortran/allocatable11.f90: New test.
16853 * testsuite/libgomp.fortran/allocatable12.f90: New test.
16854 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
16855 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
16856 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
16857 * testsuite/libgomp.fortran/associate1.f90: New test.
16858 * testsuite/libgomp.fortran/associate2.f90: New test.
16859 * testsuite/libgomp.fortran/procptr1.f90: New test.
16861 2014-06-06 Jakub Jelinek <jakub@redhat.com>
16863 * testsuite/libgomp.fortran/simd1.f90: New test.
16864 * testsuite/libgomp.fortran/udr1.f90: New test.
16865 * testsuite/libgomp.fortran/udr2.f90: New test.
16866 * testsuite/libgomp.fortran/udr3.f90: New test.
16867 * testsuite/libgomp.fortran/udr4.f90: New test.
16868 * testsuite/libgomp.fortran/udr5.f90: New test.
16869 * testsuite/libgomp.fortran/udr6.f90: New test.
16870 * testsuite/libgomp.fortran/udr7.f90: New test.
16871 * testsuite/libgomp.fortran/udr8.f90: New test.
16872 * testsuite/libgomp.fortran/udr9.f90: New test.
16873 * testsuite/libgomp.fortran/udr10.f90: New test.
16874 * testsuite/libgomp.fortran/udr11.f90: New test.
16876 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
16878 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
16879 vect_simd_clones effective target.
16880 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
16882 2014-05-21 Jakub Jelinek <jakub@redhat.com>
16884 PR middle-end/61252
16885 * testsuite/libgomp.c++/simd-9.C: New test.
16887 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
16889 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
16890 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
16891 texts according to their @menu entry positions.
16893 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16895 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
16896 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
16897 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
16898 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
16899 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
16900 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
16901 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
16902 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
16903 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
16904 * testsuite/libgomp.fortran/depend-1.f90: New test.
16905 * testsuite/libgomp.fortran/depend-2.f90: New test.
16906 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
16907 * testsuite/libgomp.fortran/simd1.f90: New test.
16908 * testsuite/libgomp.fortran/simd2.f90: New test.
16909 * testsuite/libgomp.fortran/simd3.f90: New test.
16910 * testsuite/libgomp.fortran/simd4.f90: New test.
16911 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
16913 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16915 * testsuite/libgomp.c/simd-10.c: New test.
16916 * testsuite/libgomp.c/simd-11.c: New test.
16917 * testsuite/libgomp.c/simd-12.c: New test.
16918 * testsuite/libgomp.c/simd-13.c: New test.
16920 2014-04-24 Jakub Jelinek <jakub@redhat.com>
16922 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
16923 atomic type clauses in any order and optional comma in between.
16924 * testsuite/libgomp.c++/atomic-15.C: Likewise.
16925 * testsuite/libgomp.c/atomic-17.c: Likewise.
16927 * testsuite/libgomp.c/simd-7.c: New test.
16928 * testsuite/libgomp.c/simd-8.c: New test.
16929 * testsuite/libgomp.c/simd-9.c: New test.
16930 * testsuite/libgomp.c/loop-16.c: New test.
16932 2014-04-02 Richard Henderson <rth@redhat.com>
16934 * config/linux/futex.h (futex_wait): Get error value from errno.
16935 (futex_wake): Likewise.
16937 2014-03-25 Jakub Jelinek <jakub@redhat.com>
16940 * testsuite/libgomp.c++/udr-11.C: New test.
16941 * testsuite/libgomp.c++/udr-12.C: New test.
16942 * testsuite/libgomp.c++/udr-13.C: New test.
16943 * testsuite/libgomp.c++/udr-14.C: New test.
16944 * testsuite/libgomp.c++/udr-15.C: New test.
16945 * testsuite/libgomp.c++/udr-16.C: New test.
16946 * testsuite/libgomp.c++/udr-17.C: New test.
16947 * testsuite/libgomp.c++/udr-18.C: New test.
16948 * testsuite/libgomp.c++/udr-19.C: New test.
16950 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16952 Update copyright years
16954 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16956 * hashtab.h: Use the standard form for the copyright notice.
16958 2014-01-02 Tobias Burnus <burnus@net-b.de>
16960 * libgomp.texi: Bump @copying's copyright year.
16962 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
16964 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
16965 alloca () with __builtin_alloca ().
16966 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
16967 * testsuite/libgomp.c/lock-3.c: Likewise.
16968 * testsuite/libgomp.c/pr48591.c: Likewise.
16970 2013-12-17 Jakub Jelinek <jakub@redhat.com>
16973 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
16976 2013-12-16 Jakub Jelinek <jakub@redhat.com>
16979 * testsuite/libgomp.c/pr58756.c: New test.
16981 2013-12-12 Jakub Jelinek <jakub@redhat.com>
16984 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
16987 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
16989 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
16991 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
16992 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
16993 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
16994 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
16997 * libgomp_g.h: Include <stddef.h> for size_t.
16999 * libgomp.spec.in: Update comment about libgomp's dependencies.
17000 * configure.ac: Likewise.
17001 * configure: Regenerate.
17003 2013-10-16 Tobias Burnus <burnus@net-b.de>
17005 * libgomp.texi: (Runtime Library Routines): Update references for
17006 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17007 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17008 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17009 (Environment Variables): Update references for OpenMP 4.0. Add
17010 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17011 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17014 2013-10-14 Jakub Jelinek <jakub@redhat.com>
17016 * env.c (parse_bind_var): Initialize value to avoid
17017 (false positive) warning.
17019 2013-10-12 Jakub Jelinek <jakub@redhat.com>
17022 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17024 (gomp_init_num_threads): Move i variable declaration into
17025 #ifdef CPU_ALLOC_SIZE block.
17026 * config/linux/affinity.c (gomp_affinity_init_level): Test
17027 gomp_places_list_len == 0 rather than gomp_places_list == 0
17028 when checking for topology reading error.
17029 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17030 * env.c (parse_affinity): Add ignore argument, if true, don't populate
17031 gomp_places_list, only parse env var and always return false.
17032 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
17033 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17034 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17035 and either of these variables were parsed correctly into a places
17038 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17039 Jakub Jelinek <jakub@redhat.com>
17041 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17042 of 5 loopfn matches.
17043 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17044 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17045 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17046 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17047 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17048 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17049 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17050 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17052 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17054 * Makefile.am (omp_lib.mod): Streamline rule.
17055 * Makefile.in: Regenerate.
17057 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17060 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17061 * testsuite/libgomp.fortran/lib1.f90: Likewise.
17062 * testsuite/libgomp.fortran/lib2.f: Likewise.
17063 * testsuite/libgomp.fortran/lib3.f: Likewise.
17065 * configure.ac: Typo fix.
17066 * configure: Regenerate.
17068 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17069 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17071 * omp.h.in: Don't touch the user's namespace.
17073 2013-10-11 Jakub Jelinek <jakub@redhat.com>
17074 Tobias Burnus <burnus@net-b.de>
17075 Richard Henderson <rth@redhat.com>
17077 * target.c: New file.
17078 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17079 * Makefile.in: Regenerated.
17080 * libgomp_g.h (GOMP_task): Add depend argument.
17081 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17082 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17083 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17084 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17085 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17086 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17087 GOMP_taskgroup_start, GOMP_taskgroup_end,
17088 GOMP_parallel_sections): New prototypes.
17089 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17090 (omp_is_initial_device_): New function.
17091 (ULP, STR1, STR2, ialias_redirect): Removed.
17092 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17093 omp_set_default_device_8_, omp_get_default_device_,
17094 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17096 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17097 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17098 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17100 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17101 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17102 omp_set_default_device, omp_set_default_device_,
17103 omp_set_default_device_8_, omp_get_default_device,
17104 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17105 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17106 omp_get_team_num_): Export @@OMP_4.0.
17107 * team.c (struct gomp_thread_start_data): Add place field.
17108 (gomp_thread_start): Clear thr->thread_pool and
17109 thr->task before returning. Use gomp_team_barrier_wait_final
17110 instead of gomp_team_barrier_wait. Initialize thr->place.
17111 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17112 team_cancelled and task_queued_count fields.
17113 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17114 before calling pthread_exit.
17115 (gomp_free_thread): No longer static. Use
17116 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17117 (gomp_team_start): Add flags argument. Set
17118 thr->thread_pool->threads_busy to nthreads immediately after creating
17119 new pool. Use gomp_managed_threads_lock instead of
17120 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17121 (gomp_team_end): Use gomp_managed_threads_lock instead of
17122 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17123 of gomp_team_barrier_wait. If team->team_cancelled, call
17124 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17125 rather than thr->ts.work_share.
17126 (initialize_team): Don't call gomp_sem_init here.
17127 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17129 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17130 * env.c (gomp_global_icv): Add default_device_var, target_data and
17131 bind_var initializers.
17132 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17133 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17134 gomp_places_list_len): New variables.
17135 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17136 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17138 (gomp_cancel_var): New global variable.
17139 (parse_int): New function.
17140 (handle_omp_display_env): New function.
17141 (initialize_env): Use it. Initialize default_device_var.
17142 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17143 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17144 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17145 been successfully parsed (and call gomp_init_affinity in that case).
17146 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17147 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17148 omp_get_team_num, omp_is_initial_device): New functions.
17149 * libgomp.h: Include stdlib.h.
17150 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17152 (struct target_mem_desc): Forward declare.
17153 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17154 and thread_limit_var fields.
17155 (gomp_get_num_devices): New prototype.
17156 (gomp_cancel_var): New extern decl.
17157 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17158 team_cancelled and task_queued_count fields. Add comments about
17159 task_{,queued_,running_}count.
17160 (gomp_cancel_kind): New enum.
17161 (gomp_work_share_end_cancel): New prototype.
17162 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17163 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17165 (struct gomp_taskgroup): New type.
17166 (struct gomp_task_depend_entry,
17167 struct gomp_dependers_vec): New types.
17168 (gomp_finish_task): Free depend_hash if non-NULL.
17169 (struct gomp_team_state): Add place_partition_off
17170 and place_partition_len fields.
17171 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17172 gomp_places_list_len): New extern decls.
17173 (struct gomp_thread): Add place field.
17174 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17175 (gomp_init_thread_affinity): Add place argument.
17176 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17177 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17178 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17179 gomp_affinity_init_level, gomp_affinity_print_place): New
17181 (gomp_team_start): Add flags argument.
17182 (gomp_thread_limit_var, gomp_remaining_threads_count,
17183 gomp_remaining_threads_lock): Remove.
17184 (gomp_managed_threads_lock): New variable.
17185 (struct gomp_thread_pool): Add threads_busy field.
17186 (gomp_free_thread): New prototype.
17187 * task.c: Include hashtab.h.
17188 (hash_entry_type): New typedef.
17189 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17190 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17191 copy_ctors_done and taskgroup fields.
17192 (GOMP_task): Add depend argument, handle depend clauses. If
17193 gomp_team_barrier_cancelled or if it's taskgroup has been
17194 cancelled, don't queue or start new tasks. Set copy_ctors_done
17195 field if needed. Initialize taskgroup field. If copy_ctors_done
17196 and already cancelled, don't discard the task. If taskgroup is
17197 non-NULL, enqueue the task into taskgroup queue. Increment
17198 num_children field in taskgroup. Increment task_queued_count.
17199 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17200 gomp_task_run_post_remove_taskgroup): New inline functions.
17201 (gomp_task_run_post_handle_depend_hash,
17202 gomp_task_run_post_handle_dependers,
17203 gomp_task_run_post_handle_depend): New functions.
17204 (GOMP_taskwait): Use them. If more than one new tasks
17205 have been queued, wake other threads if needed.
17206 (gomp_barrier_handle_tasks): Likewise. If
17207 gomp_team_barrier_cancelled, don't start any new tasks, just free
17209 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17211 (omp_proc_bind_kind, omp_proc_bind_false,
17212 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17213 omp_proc_bind_spread): New params.
17214 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17215 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17216 omp_get_team_num, omp_is_initial_device): New interfaces.
17217 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17218 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17219 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17220 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17221 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17222 useless use omp_lib_kinds.
17223 * omp.h.in (omp_proc_bind_t): New typedef.
17224 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17225 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17226 omp_get_team_num, omp_is_initial_device): New prototypes.
17227 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17228 through to gomp_team_start.
17229 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17230 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17231 Adjust gomp_parallel_loop_start callers.
17232 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17233 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17234 GOMP_loop_end_cancel): New functions.
17235 (GOMP_parallel_end): Add ialias_redirect.
17236 * hashtab.h: New file.
17237 * libgomp.texi (Environment Variables): Minor cleanup,
17238 update section refs to OpenMP 4.0rc2.
17239 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17240 environment variables.
17241 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17242 team->work_shares_to_free to thr->ts.work_share before calling
17244 (gomp_work_share_end_cancel): New function.
17245 * config/linux/proc.c: Include errno.h.
17246 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17247 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17248 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17249 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17250 gomp_cpuset_size is sizeof (cpu_set_t).
17251 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17252 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17253 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17254 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17255 contain any logical CPUs.
17256 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17257 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17258 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17259 pthread_getaffinity_np. Check gomp_places_list instead of
17260 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17261 * config/linux/bar.c (gomp_barrier_wait_end,
17262 gomp_barrier_wait_last): Use BAR_* defines.
17263 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17264 from state where needed. Set work_share_cancelled to 0 on last
17266 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17267 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17269 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17270 Add cpusetsize argument.
17271 (gomp_cpuset_size, gomp_cpusetp): Declare.
17272 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17273 (affinity_counter): Remove.
17274 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17275 if CPU_ALLOC_SIZE isn't defined.
17276 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17277 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17278 bind current thread to the first place.
17279 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17280 pthread_setaffinity_np to gomp_places_list[place].
17281 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17282 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17283 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17284 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17285 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17286 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17287 (gomp_barrier_t): Add awaited_final field.
17288 (gomp_barrier_init): Initialize awaited_final field.
17289 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17290 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17292 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17294 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17295 gomp_team_barrier_cancelled): New inline functions.
17296 (gomp_barrier_last_thread,
17297 gomp_team_barrier_set_task_pending,
17298 gomp_team_barrier_clear_task_pending,
17299 gomp_team_barrier_set_waiting_for_tasks,
17300 gomp_team_barrier_waiting_for_tasks,
17301 gomp_team_barrier_done): Use BAR_* defines.
17302 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17303 (gomp_barrier_wait_end): Use BAR_* defines.
17304 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17305 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17307 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17308 gomp_team_barrier_cancel): New functions.
17309 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17311 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17312 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17313 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17314 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17315 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17316 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17317 (gomp_barrier_t): Add cancellable field.
17318 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17319 gomp_team_barrier_cancel): New prototypes.
17320 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17321 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17322 gomp_team_barrier_cancelled): New inline functions.
17323 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17324 gomp_team_barrier_set_task_pending,
17325 gomp_team_barrier_clear_task_pending,
17326 gomp_team_barrier_set_waiting_for_tasks,
17327 gomp_team_barrier_waiting_for_tasks,
17328 gomp_team_barrier_done): Use BAR_* defines.
17329 * barrier.c (GOMP_barrier_cancel): New function.
17330 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17331 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17332 omp_proc_bind_spread): New params.
17333 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17334 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17335 omp_get_team_num, omp_is_initial_device): New externals.
17336 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17338 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17339 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17340 infinity. If not nested, just return minimum of max_num_threads
17341 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17342 to the returned value. Otherwise, don't update atomically
17343 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17344 (GOMP_parallel_end): Adjust for thread_limit now being in
17345 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17346 infinity. Adjust threads_busy in the pool rather than
17347 gomp_remaining_threads_count. Remember team->nthreads and call
17348 gomp_team_end before adjusting threads_busy, if not nested
17349 afterwards, just set it to 1 non-atomically. Add ialias.
17350 (GOMP_parallel_start): Adjust gomp_team_start caller.
17351 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17352 * testsuite/libgomp.c/affinity-1.c: New test.
17353 * testsuite/libgomp.c/atomic-15.c: New test.
17354 * testsuite/libgomp.c/atomic-16.c: New test.
17355 * testsuite/libgomp.c/atomic-17.c: New test.
17356 * testsuite/libgomp.c/cancel-for-1.c: New test.
17357 * testsuite/libgomp.c/cancel-for-2.c: New test.
17358 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17359 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17360 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17361 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17362 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17363 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17364 * testsuite/libgomp.c/depend-1.c: New test.
17365 * testsuite/libgomp.c/depend-2.c: New test.
17366 * testsuite/libgomp.c/depend-3.c: New test.
17367 * testsuite/libgomp.c/depend-4.c: New test.
17368 * testsuite/libgomp.c/for-1.c: New test.
17369 * testsuite/libgomp.c/for-1.h: New file.
17370 * testsuite/libgomp.c/for-2.c: New test.
17371 * testsuite/libgomp.c/for-2.h: New file.
17372 * testsuite/libgomp.c/for-3.c: New test.
17373 * testsuite/libgomp.c/pr58392.c: New test.
17374 * testsuite/libgomp.c/simd-1.c: New test.
17375 * testsuite/libgomp.c/simd-2.c: New test.
17376 * testsuite/libgomp.c/simd-3.c: New test.
17377 * testsuite/libgomp.c/simd-4.c: New test.
17378 * testsuite/libgomp.c/simd-5.c: New test.
17379 * testsuite/libgomp.c/simd-6.c: New test.
17380 * testsuite/libgomp.c/target-1.c: New test.
17381 * testsuite/libgomp.c/target-2.c: New test.
17382 * testsuite/libgomp.c/target-3.c: New test.
17383 * testsuite/libgomp.c/target-4.c: New test.
17384 * testsuite/libgomp.c/target-5.c: New test.
17385 * testsuite/libgomp.c/target-6.c: New test.
17386 * testsuite/libgomp.c/target-7.c: New test.
17387 * testsuite/libgomp.c/taskgroup-1.c: New test.
17388 * testsuite/libgomp.c/thread-limit-1.c: New test.
17389 * testsuite/libgomp.c/thread-limit-2.c: New test.
17390 * testsuite/libgomp.c/thread-limit-3.c: New test.
17391 * testsuite/libgomp.c/udr-1.c: New test.
17392 * testsuite/libgomp.c/udr-2.c: New test.
17393 * testsuite/libgomp.c/udr-3.c: New test.
17394 * testsuite/libgomp.c++/affinity-1.C: New test.
17395 * testsuite/libgomp.c++/atomic-10.C: New test.
17396 * testsuite/libgomp.c++/atomic-11.C: New test.
17397 * testsuite/libgomp.c++/atomic-12.C: New test.
17398 * testsuite/libgomp.c++/atomic-13.C: New test.
17399 * testsuite/libgomp.c++/atomic-14.C: New test.
17400 * testsuite/libgomp.c++/atomic-15.C: New test.
17401 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17402 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17403 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17404 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17405 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17406 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17407 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17408 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17409 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17410 * testsuite/libgomp.c++/cancel-test.h: New file.
17411 * testsuite/libgomp.c++/for-9.C: New test.
17412 * testsuite/libgomp.c++/for-10.C: New test.
17413 * testsuite/libgomp.c++/for-11.C: New test.
17414 * testsuite/libgomp.c++/simd-1.C: New test.
17415 * testsuite/libgomp.c++/simd-2.C: New test.
17416 * testsuite/libgomp.c++/simd-3.C: New test.
17417 * testsuite/libgomp.c++/simd-4.C: New test.
17418 * testsuite/libgomp.c++/simd-5.C: New test.
17419 * testsuite/libgomp.c++/simd-6.C: New test.
17420 * testsuite/libgomp.c++/simd-7.C: New test.
17421 * testsuite/libgomp.c++/simd-8.C: New test.
17422 * testsuite/libgomp.c++/target-1.C: New test.
17423 * testsuite/libgomp.c++/target-2.C: New test.
17424 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17425 * testsuite/libgomp.c++/target-3.C: New test.
17426 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17427 * testsuite/libgomp.c++/udr-1.C: New test.
17428 * testsuite/libgomp.c++/udr-2.C: New test.
17429 * testsuite/libgomp.c++/udr-3.C: New test.
17430 * testsuite/libgomp.c++/udr-4.C: New test.
17431 * testsuite/libgomp.c++/udr-5.C: New test.
17432 * testsuite/libgomp.c++/udr-6.C: New test.
17433 * testsuite/libgomp.c++/udr-7.C: New test.
17434 * testsuite/libgomp.c++/udr-8.C: New test.
17435 * testsuite/libgomp.c++/udr-9.C: New test.
17437 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17440 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17443 2013-09-20 Alan Modra <amodra@gmail.com>
17445 * configure: Regenerate.
17447 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17449 * testsuite/libgomp.c/sections-2.c: New test.
17451 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17453 * testsuite/libgomp.fortran/strassen.f90:
17454 Add dg-skip-if aarch64_tiny.
17456 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17457 Cesar Philippidis <cesar@codesourcery.com>
17459 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17460 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17461 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17462 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17463 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17464 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17465 Use dg-runtest rather than gfortran-dg-runtest.
17467 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17469 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17470 Linux-based x86 systems to cover all GNU systems.
17471 * testsuite/libgomp.c/lock-3.c: Likewise.
17472 * testsuite/libgomp.c/pr48591.c: Likewise.
17474 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17476 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17477 GNU/Hurd, as done for Linux-based systems.
17479 * config/posix/ptrlock.h: Fix comment.
17481 2013-05-27 Tobias Burnus <burnus@net-b.de>
17484 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17485 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17486 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17487 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17488 omp_destroy_nest_lock): Correct arguments to match the one in
17490 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17491 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17492 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17493 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17495 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17497 * testsuite/libgomp.c/loop-13.c: New test.
17498 * testsuite/libgomp.c/loop-14.c: New test.
17499 * testsuite/libgomp.c/loop-15.c: New test.
17500 * testsuite/libgomp.c++/loop-13.C: New test.
17501 * testsuite/libgomp.c++/loop-14.C: New test.
17502 * testsuite/libgomp.c++/loop-15.C: New test.
17504 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17506 PR middle-end/56217
17507 * testsuite/libgomp.c++/pr56217.C: New test.
17509 2013-02-01 Alan Modra <amodra@gmail.com>
17511 * task.c (GOMP_task, GOMP_taskwait): Comment.
17513 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17514 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17517 * config/linux/wait.h (do_spin): Use atomic load for addr.
17518 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17519 for intptr and ptrlock.
17520 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17523 2013-01-22 Alan Modra <amodra@gmail.com>
17527 * task.c (GOMP_task): Revert 2011-12-09 change.
17528 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17529 barrier to read task->children..
17530 (gomp_barrier_handle_tasks): ..and matching atomic store with
17531 release barrier here when setting parent->children to NULL.
17533 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17534 Tobias Burnus <burnus@net-b.de>
17537 * testsuite/libgomp.fortran/fortran.exp: Use
17538 -fintrinsic-modules-path= instead of
17539 -fintrinsic-modules-path.
17541 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17543 Update copyright years.
17545 2012-12-19 Tobias Burnus <burnus@net-b.de>
17547 * testsuite/libgomp.fortran/fortran.exp: Set
17548 -fintrinsic-modules-path.
17550 2012-12-19 Tobias Burnus <burnus@net-b.de>
17552 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17553 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17555 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17558 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17559 if pool had any threads_used.
17561 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17563 * testsuite/libgomp.c++/pr24455.C: Use
17564 -Wl,-undefined,dynamic_lookup on darwin.
17566 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17568 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17570 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17572 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17574 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17575 Jim MacArthur <jim.macarthur@arm.com>
17576 Marcus Shawcroft <marcus.shawcroft@arm.com>
17577 Nigel Stephens <nigel.stephens@arm.com>
17578 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17579 Richard Earnshaw <rearnsha@arm.com>
17580 Sofiane Naci <sofiane.naci@arm.com>
17581 Stephen Thomas <stephen.thomas@arm.com>
17582 Tejas Belagod <tejas.belagod@arm.com>
17583 Yufeng Zhang <yufeng.zhang@arm.com>
17585 * configure.tgt: Add AArch64.
17587 2012-10-04 Jason Merrill <jason@redhat.com>
17589 * testsuite/libgomp.c++/tls-init1.C: New.
17591 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17593 * configure: Regenerated.
17595 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17597 * config/linux/mips/futex.h (sys_futex0): Change to static
17598 function with noinline, nomips16 attributes under MIPS16. Adjust
17599 asm statement to place 'li v0,SYS_futex' immediately before
17602 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17604 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17605 conflict with index.html on case-insensitive file systems.
17607 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17609 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17610 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17612 2012-07-02 Richard Guenther <rguenther@suse.de>
17613 Michael Matz <matz@suse.de>
17614 Tobias Grosser <tobias@grosser.es>
17615 Sebastian Pop <sebpop@gmail.com>
17617 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17618 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17619 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17620 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17622 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17624 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17626 2012-06-22 Richard Guenther <rguenther@suse.de>
17628 Merge from graphite branch
17629 2012-01-13 Tobias Grosser <tobias@grosser.es>
17631 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17632 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17634 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17636 PR middle-end/53580
17637 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17638 use GOMP_barrier () call instead.
17639 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17640 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17641 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17642 call GOMP_barrier instead.
17643 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17645 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17648 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17649 argument to memset call.
17651 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17653 * configure: Regenerated.
17655 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17657 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17659 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17662 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17664 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17666 PR middle-end/52547
17667 * testsuite/libgomp.c/pr52547.c: New test.
17669 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17671 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17673 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17675 * configure.tgt (mips-sgi-irix6*): Remove.
17677 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17679 * configure.tgt (alpha*-dec-osf*): Remove.
17681 * config/osf/sem.h: Remove.
17682 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17684 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17686 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17688 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17691 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17692 Remove ENABLE_SYMVERS_SOL2.
17693 * configure: Regenerate.
17694 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17695 (PREPROCESS): New variable.
17696 (libgomp.ver): New target.
17697 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17698 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17699 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17701 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17702 * Makefile.in: Regenerate.
17704 2012-02-14 Walter Lee <walt@tilera.com>
17706 * configure.tgt: Handle tilegx and tilepro.
17707 * config/linux/tile/futex.h: New file.
17709 2012-02-08 Richard Guenther <rguenther@suse.de>
17711 PR tree-optimization/46886
17712 * testsuite/libgomp.c/pr46886.c: New testcase.
17714 2012-01-25 Matthias Klose <doko@ubuntu.com>
17716 * config/linux/arm: Remove empty directory.
17717 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17719 2011-12-09 Alan Modra <amodra@gmail.com>
17722 * task.c (GOMP_taskwait): Don't access task->children outside of
17723 task_lock mutex region.
17724 (GOMP_task): Likewise.
17726 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17729 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17731 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17732 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17733 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17734 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17735 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17737 2011-12-02 Alan Modra <amodra@gmail.com>
17739 * config/linux/affinity.c: Use atomic rather than sync builtin.
17740 * config/linux/lock.c: Likewise.
17741 * config/linux/ptrlock.h: Likewise.
17742 * config/linux/ptrlock.c: Likewise.
17743 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17744 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17745 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17746 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17747 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17748 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17749 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17750 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17751 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17752 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17754 2011-11-30 Alan Modra <amodra@gmail.com>
17757 * config/linux/bar.h: Use atomic rather than sync builtins.
17758 * config/linux/bar.c: Likewise. Add missing acquire
17759 synchronisation on generation field.
17760 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
17763 2011-11-30 Alan Modra <amodra@gmail.com>
17765 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
17766 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
17767 * config/linux/mutex.h: Use atomic rather than sync builtins.
17768 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
17769 * config/linux/omp-lock.h: Comment fix.
17770 * config/linux/arm/mutex.h: Delete.
17771 * config/linux/powerpc/mutex.h: Delete.
17772 * config/linux/ia64/mutex.h: Delete.
17773 * config/linux/mips/mutex.h: Delete.
17775 2011-11-30 Alan Modra <amodra@gmail.com>
17778 * config/linux/sem.h: Rewrite.
17779 * config/linux/sem.c: Rewrite.
17781 2011-11-28 Richard Henderson <rth@redhat.com>
17783 * libgomp.h (enum memmodel): New.
17785 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
17787 * configure: Regenerate.
17789 2011-10-10 Matthias Klose <doko@ubuntu.com>
17791 * config/posix95: Remove empty directory.
17793 2011-08-26 Jakub Jelinek <jakub@redhat.com>
17795 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
17797 2011-08-19 Jakub Jelinek <jakub@redhat.com>
17800 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
17801 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
17803 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17805 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
17807 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17810 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
17812 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
17814 * config/linux/proc.h: New.
17815 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
17816 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
17817 (gomp_init_num_threads): Update call to cpuset_popcount.
17818 (get_num_procs): Ditto.
17819 * config/linux/affinity.c (gomp_init_affinity): Call
17820 gomp_cpuset_popcount.
17822 2011-08-02 Jakub Jelinek <jakub@redhat.com>
17826 * omp.h.in (omp_in_final): New prototype.
17827 * omp_lib.f90.in (omp_in_final): New interface.
17828 (omp_integer_kind, omp_logical_kind): Remove
17829 and replace all its uses in the module with 4.
17830 (openmp_version): Change to 201107.
17831 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
17832 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
17833 kind for the parameters.
17834 (omp_in_final): New external.
17835 (openmp_version): Change to 201107.
17836 * task.c (omp_in_final): New function.
17837 (gomp_init_task): Initialize final_task.
17838 (GOMP_task): Remove unused attribute from flags. Handle final
17840 (GOMP_taskyield): New function.
17841 (omp_in_final): Return true if if (false) or final (true) task
17842 or descendant of final (true).
17843 * fortran.c (omp_in_final_): New function.
17844 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
17845 (GOMP_3.0): Export GOMP_taskyield.
17846 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
17848 (parse_unsigned_long_list): New function.
17849 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
17850 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
17851 even if parse_affinity returned false.
17852 * config/linux/affinity.c (gomp_init_affinity): Handle
17853 gomp_cpu_affinity_len == 0.
17854 * libgomp_g.h (GOMP_taskyield): New prototype.
17855 * libgomp.h (struct gomp_task): Add final_task field.
17856 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
17857 * team.c (gomp_team_start): Override new task's nthreads_var icv
17858 if list form OMP_NUM_THREADS has been used and it has value for
17859 the new nesting level.
17861 * testsuite/libgomp.c/atomic-11.c: New test.
17862 * testsuite/libgomp.c/atomic-12.c: New test.
17863 * testsuite/libgomp.c/atomic-13.c: New test.
17864 * testsuite/libgomp.c/atomic-14.c: New test.
17865 * testsuite/libgomp.c/reduction-6.c: New test.
17866 * testsuite/libgomp.c/task-5.c: New test.
17867 * testsuite/libgomp.c++/atomic-2.C: New test.
17868 * testsuite/libgomp.c++/atomic-3.C: New test.
17869 * testsuite/libgomp.c++/atomic-4.C: New test.
17870 * testsuite/libgomp.c++/atomic-5.C: New test.
17871 * testsuite/libgomp.c++/atomic-6.C: New test.
17872 * testsuite/libgomp.c++/atomic-7.C: New test.
17873 * testsuite/libgomp.c++/atomic-8.C: New test.
17874 * testsuite/libgomp.c++/atomic-9.C: New test.
17875 * testsuite/libgomp.c++/task-8.C: New test.
17876 * testsuite/libgomp.c++/reduction-4.C: New test.
17877 * testsuite/libgomp.fortran/allocatable7.f90: New test.
17878 * testsuite/libgomp.fortran/allocatable8.f90: New test.
17879 * testsuite/libgomp.fortran/crayptr3.f90: New test.
17880 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
17881 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
17882 * testsuite/libgomp.fortran/pointer1.f90: New test.
17883 * testsuite/libgomp.fortran/pointer2.f90: New test.
17884 * testsuite/libgomp.fortran/task4.f90: New test.
17886 2011-08-02 Tobias Burnus <burnus@net-b.de>
17888 * libgomp.texi: Update OpenMP spec references to 3.1.
17889 (omp_in_final,OMP_PROC_BIND): New sections.
17890 (OMP_NUM_THREADS): Document that the value can be now a list.
17891 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
17893 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
17895 * config/linux/x86/futex.h: Check __x86_64__ instead of
17898 2011-07-29 Jakub Jelinek <jakub@redhat.com>
17900 PR middle-end/49897
17901 PR middle-end/49898
17902 * testsuite/libgomp.c/pr49897-1.c: New test.
17903 * testsuite/libgomp.c/pr49897-2.c: New test.
17904 * testsuite/libgomp.c/pr49898-1.c: New test.
17905 * testsuite/libgomp.c/pr49898-2.c: New test.
17907 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
17909 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
17910 for ia32 instead of ilp32.
17912 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
17913 * testsuite/libgomp.c/atomic-6.c: Likewise.
17915 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
17917 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
17918 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
17920 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17923 * config/osf/sem.h: New file.
17924 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
17926 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17929 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
17932 2011-07-15 Jakub Jelinek <jakub@redhat.com>
17934 * config/linux/wait.h (do_spin): New inline, largely copied
17935 from do_wait, just don't do futex_wait here, instead return true if
17937 (do_wait): Implement using do_spin.
17938 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
17940 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17941 __sync_bool_compare_and_swap, pass the oldval to
17942 gomp_mutex_lock_slow.
17943 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
17944 If all mutex contenders are just spinning and not sleeping, don't
17945 change state to 2 unnecessarily. Optimize the loop when state has
17946 already become 2 to use just one atomic operation per loop instead
17948 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
17950 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
17951 __sync_bool_compare_and_swap, pass the oldval to
17952 gomp_mutex_lock_slow.
17954 2011-06-22 Jakub Jelinek <jakub@redhat.com>
17957 * iter.c (gomp_iter_static_next): For chunk size 0
17958 only use n ceil/ nthreads size for the first
17959 n % nthreads threads in the team instead of
17960 all threads except for the last few ones which
17961 get less work or none at all.
17962 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
17963 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
17964 chunk argument, set run_sched_modifier to 0 for static
17965 resp. 1 for other kinds. If chunk argument is 0
17966 and not static, set value to 1.
17968 2011-05-19 Jakub Jelinek <jakub@redhat.com>
17971 * testsuite/libgomp.c++/pr49043.C: New test.
17974 * testsuite/libgomp.c++/pr48869.C: New test.
17976 2011-05-06 Jakub Jelinek <jakub@redhat.com>
17979 * fortran.c: Include limits.h.
17981 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
17983 (omp_set_num_threads_8_, omp_set_schedule_8_,
17984 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
17985 omp_get_team_size_8_): Use TO_INT macro.
17986 * testsuite/libgomp.fortran/pr48894.f90: New test.
17988 2011-04-13 Jakub Jelinek <jakub@redhat.com>
17990 PR middle-end/48591
17991 * testsuite/libgomp.c/pr48591.c: New test.
17993 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17996 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
17997 * configure: Regenerate.
17999 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18002 * testsuite/libgomp.fortran/task3.f90: New test.
18004 2011-02-24 Tobias Burnus <burnus@net-b.de>
18006 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18008 2011-02-23 Jakub Jelinek <jakub@redhat.com>
18011 * libgomp.texi (omp_get_wtime): Don't say time in the past
18012 must be Unix Epoch.
18014 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18017 * testsuite/libgomp.fortran/fortran.exp: Check for both
18018 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
18019 but $blddir != "", still append ${blddir}/${lang_library_path}
18020 to ld_library_path.
18022 2011-02-16 Tobias Burnus <burnus@net-b.de>
18025 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18026 of libquadmath.a before adding its libpath to ldflags.
18028 2011-02-14 Jakub Jelinek <jakub@redhat.com>
18031 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18032 to FUTEX_WAIT futex syscall.
18033 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18035 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18037 * configure: Regenerate.
18039 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
18042 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18044 2011-01-16 Gerald Pfeifer
18046 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18048 2010-12-14 Jakub Jelinek <jakub@redhat.com>
18051 * libgomp.fortran/allocatable6.f90: New test.
18053 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18055 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18056 * configure: Regenerate.
18058 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
18062 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18063 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18064 * aclocal.m4: Regenerate.
18065 * configure: Regenerate.
18066 * Makefile.in: Regenerate.
18067 * testsuite/Makefile.in: Regenerate.
18069 2010-12-02 Jakub Jelinek <jakub@redhat.com>
18072 * libgomp.fortran/pr46753.f90: New test.
18075 * env.c (initialize_env): Default to spin count 300000
18076 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18080 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18081 at the end if sync builtins aren't supported.
18083 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18085 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18087 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18089 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18091 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18093 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18095 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18096 Tobias Burnus <burnus@net-b.de>
18100 * configure: Regenerate.
18102 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18104 * config/linux/futex.h: New.
18105 * config/linux/arm/mutex.h: New.
18106 * configure.tgt (arm*-*-linux*): Add config path.
18108 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18110 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18112 2010-09-23 Tobias Burnus <burnus@net-b.de>
18114 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18115 Change Fortran datatype to LOGICAL.
18116 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18117 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18119 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18121 * configure: Regenerate.
18123 2010-07-26 Jakub Jelinek <jakub@redhat.com>
18125 * libgomp.texi: Add function keyword to a couple of Fortran
18126 interfaces, use integer instead of int for Fortran.
18128 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
18130 * libgomp.texi: Fix spelling and pasto problems throughout.
18131 Adjust prototypes to match code.
18133 2010-07-24 Tobias Burnus <burnus@net-b.de>
18135 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18136 silence -fwhole-file warning.
18138 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18140 * configure.tgt (*-*-solaris2.[56]*): Removed.
18142 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18144 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18145 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18146 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18147 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18148 targetting solaris2*.
18149 * configure: Regenerate.
18150 * config.h.in: Regenerate.
18152 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18153 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18154 Add libgomp_version_dep.
18155 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18157 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18158 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18159 * Makefile.in: Regenerate.
18161 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18162 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18163 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18164 to common block, protected by
18165 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18167 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18169 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18171 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18174 * configure: Regenerate.
18176 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18179 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18180 * configure: Regenerate.
18181 * Makefile.in: Regenerate.
18182 * testsuite/Makefile.in: Regenerate.
18184 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18187 * testsuite/libgomp.c/pr43893.c: New test.
18188 * testsuite/libgomp.c++/pr43893.C: New test.
18190 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18192 PR middle-end/43570
18193 * testsuite/libgomp.fortran/vla8.f90: New test.
18195 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18198 * config/linux/affinity.c (gomp_init_affinity): Decrease
18199 gomp_available_cpus if affinity mask confines the process to fewer
18201 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18202 non-NULL, just return gomp_available_cpus.
18205 * sections.c (gomp_sections_init): Initialize ws->mode.
18207 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18209 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18210 not unused bar variable.
18211 * configure: Regenerate.
18213 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18215 * Makefile.in: Regenerate.
18216 * aclocal.m4: Regenerate.
18217 * testsuite/Makefile.in: Regenerate.
18219 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18222 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18223 (initialize_env): Adjust callers.
18224 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18225 when the argument is 0.
18227 * testsuite/libgomp.c/pr42942.c: New test.
18229 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18231 PR middle-end/42644
18232 PR middle-end/42130
18233 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18234 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18236 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18238 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18239 * testsuite/libgomp.c++/task-6.C: Likewise.
18241 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18243 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18245 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18247 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18248 * configure: Regenerate.
18250 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18253 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18255 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18257 * configure.ac: Test for executability of GFORTRAN.
18258 * configure: Regenerate.
18260 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18262 * configure: Regenerate.
18264 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18267 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18269 2010-01-03 Richard Guenther <rguenther@suse.de>
18271 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18273 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18275 * testsuite/libgomp.graphite/pr4118.c: New.
18277 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18279 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18280 for darwin, protect the test with require-effective-target tls_runtime.
18281 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18283 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18286 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18287 link spec %s substitutions for static libraries.
18289 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18292 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18294 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18296 * Makefile.in: Regenerate.
18297 * configure: Regenerate.
18298 * testsuite/Makefile.in: Regenerate.
18300 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18302 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18303 settings for LC_ALL and LANG.
18305 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18308 * testsuite/libgomp.fortran/pr42162.f90: New test.
18310 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18312 PR middle-end/42029
18313 * testsuite/libgomp.c/pr42029.c: New test.
18315 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18317 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18318 *s. Accept ld version without text in ()s.
18319 * configure: Regenerated.
18321 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18323 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18325 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18328 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18329 or a hyphen (happens with fortran language disabled).
18330 * configure: Regenerate.
18332 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18334 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18335 use sed script portable to Solaris /bin/sed for extracting ld
18337 * configure: Regenerate.
18339 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18341 * testsuite/libgomp.graphite/bounds.c: New test.
18343 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18345 * Makefile.am (libgomp_la_LINK): New.
18346 * Makefile.in: Regenerate.
18348 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18350 * configure.ac (AC_PREREQ): Bump to 2.64.
18352 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18354 * Makefile.am (install-html, install-pdf): Remove.
18355 * Makefile.in: Regenerate.
18357 * Makefile.in: Regenerate.
18358 * aclocal.m4: Regenerate.
18359 * config.h.in: Regenerate.
18360 * configure: Regenerate.
18361 * testsuite/Makefile.in: Regenerate.
18363 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18365 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18366 * Makefile.in: Regenerate.
18368 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18370 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18371 * Makefile.in: Regenerate.
18373 2009-08-19 Tobias Burnus <burnus@net-b.de>
18376 omp_lib.h.in: Fix -std=f95 errors.
18378 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18380 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18381 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18382 * testsuite/libgomp.graphite/graphite.exp: New.
18384 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18386 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18389 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18391 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18392 needed memory barrier semantics.
18393 * config/linux/mips/mutex.h: New file.
18395 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18397 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18399 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18401 * configure: Regenerate.
18403 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18408 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18409 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18410 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18412 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18414 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18415 options when choosing a multilib.
18417 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18419 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18420 ld_library_path. Use add_path. Add just find_libgcc_s to
18421 ld_library_path, not every libgcc multilib directory.
18422 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18423 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18424 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18426 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18428 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18430 * Makefile.am (LTLDFLAGS): Define.
18432 * Makefile.in: Regenerate.
18434 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18437 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18438 libgfortranbegin, check existence of libgfortran.a instead of
18439 libgfortranbegin.a.
18441 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18444 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18445 (gomp_free_pool_helper): Likewise.
18447 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18448 Jakub Jelinek <jakub@redhat.com>
18451 * testsuite/libgomp.fortran/workshare2.f90: New test.
18453 2009-04-09 Nick Clifton <nickc@redhat.com>
18455 * iter.c: Change copyright header to refer to version 3 of the
18456 GNU General Public License with version 3.1 of the GCC Runtime
18457 Library Exception and to point readers at the COPYING3 and
18458 COPYING3.RUNTIME files and the FSF's license web page.
18459 * alloc.c: Likewise.
18460 * barrier.c: Likewise.
18461 * config/bsd/proc.c: Likewise.
18462 * config/linux/affinity.c: Likewise.
18463 * config/linux/alpha/futex.h: Likewise.
18464 * config/linux/bar.c: Likewise.
18465 * config/linux/bar.h: Likewise.
18466 * config/linux/ia64/futex.h: Likewise.
18467 * config/linux/ia64/mutex.h: Likewise.
18468 * config/linux/lock.c: Likewise.
18469 * config/linux/mips/futex.h: Likewise.
18470 * config/linux/mutex.c: Likewise.
18471 * config/linux/mutex.h: Likewise.
18472 * config/linux/powerpc/futex.h: Likewise.
18473 * config/linux/proc.c: Likewise.
18474 * config/linux/ptrlock.c: Likewise.
18475 * config/linux/ptrlock.h: Likewise.
18476 * config/linux/s390/futex.h: Likewise.
18477 * config/linux/sem.c: Likewise.
18478 * config/linux/sem.h: Likewise.
18479 * config/linux/sparc/futex.h: Likewise.
18480 * config/linux/wait.h: Likewise.
18481 * config/linux/x86/futex.h: Likewise.
18482 * config/mingw32/proc.c: Likewise.
18483 * config/mingw32/time.c: Likewise.
18484 * config/posix/affinity.c: Likewise.
18485 * config/posix/bar.c: Likewise.
18486 * config/posix/bar.h: Likewise.
18487 * config/posix/lock.c: Likewise.
18488 * config/posix/mutex.h: Likewise.
18489 * config/posix/proc.c: Likewise.
18490 * config/posix/ptrlock.h: Likewise.
18491 * config/posix/sem.c: Likewise.
18492 * config/posix/sem.h: Likewise.
18493 * config/posix/time.c: Likewise.
18494 * config/posix95/lock.c: Likewise.
18495 * critical.c: Likewise.
18497 * error.c: Likewise.
18498 * fortran.c: Likewise.
18499 * iter_ull.c: Likewise.
18500 * libgomp.h: Likewise.
18501 * libgomp_f.h.in: Likewise.
18502 * libgomp_g.h: Likewise.
18503 * loop.c: Likewise.
18504 * loop_ull.c: Likewise.
18505 * omp.h.in: Likewise.
18506 * omp_lib.f90.in: Likewise.
18507 * omp_lib.h.in: Likewise.
18508 * ordered.c: Likewise.
18509 * parallel.c: Likewise.
18510 * sections.c: Likewise.
18511 * single.c: Likewise.
18512 * task.c: Likewise.
18513 * team.c: Likewise.
18514 * work.c: Likewise.
18516 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18518 * testsuite/config/default.exp: Change copyright header to refer to
18519 version 3 of the GNU General Public License and to point readers
18520 at the COPYING3 file and the FSF's license web page.
18522 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18524 PR middle-end/39573
18525 * libgomp.c++/pr39573.C: New test.
18527 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18530 * testsuite/libgomp.c/pr39591-1.c: New test.
18531 * testsuite/libgomp.c/pr39591-2.c: New test.
18532 * testsuite/libgomp.c/pr39591-3.c: New test.
18534 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18536 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18537 * testsuite/libgomp.c/atomic-6.c: Ditto.
18539 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18542 * testsuite/libgomp.c/loop-12.c: New test.
18543 * testsuite/libgomp.c/loop-11.c: New test.
18544 * testsuite/libgomp.c++/loop-11.C: New test.
18545 * testsuite/libgomp.c++/loop-12.C: New test.
18546 * testsuite/libgomp.c++/for-8.C: New test.
18548 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18550 * configure: Regenerate.
18552 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18554 PR middle-end/39154
18555 * testsuite/libgomp.c/pr39154.c: New test.
18557 2009-01-30 Ian Lance Taylor <iant@google.com>
18559 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18560 libgomp_ld_is_gold. Get gold version number.
18561 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18562 * configure: Rebuild.
18564 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18566 * testsuite/lib/libgomp.exp: Add -B option for targets that
18567 use libgfortran.a%s in their specs.
18569 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18572 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18573 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18574 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18575 * configure: Regenerated.
18576 * config.h.in: Likewise.
18578 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18581 * testsuite/libgomp.c/pr38650.c: New test.
18582 * testsuite/libgomp.c++/pr38650.C: New test.
18584 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18586 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18588 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18590 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18592 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18594 * configure: Regenerate.
18596 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18598 PR middle-end/36802
18599 * testsuite/libgomp.c/pr36802-1.c: New test.
18600 * testsuite/libgomp.c/pr36802-2.c: New test.
18601 * testsuite/libgomp.c/pr36802-3.c: New test.
18603 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18606 * config/linux/powerpc/mutex.h: New.
18608 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18611 * testsuite/libgomp.c++/for-7.C: New test.
18614 * testsuite/libgomp.c++/for-6.C: New test.
18616 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18619 * testsuite/lib/libgomp.exp: Include new timeout library files.
18620 (libgomp_target_compile): Set timeout value from new proc.
18622 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18625 * config/linux/ia64/mutex.h: New.
18627 2008-11-04 Tobias Burnus <burnus@net-b.de>
18630 * libgomp.texi (Runtime library routines, environment variables):
18631 Update for OpenMP version 3.0.
18633 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18634 Steve Ellcey <sje@cup.hp.com>
18636 * configure: Regenerate for new libtool.
18637 * Makefile.in: Ditto.
18638 * testsuite/Makefile.in: Ditto.
18640 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18641 Andreas Tobler <a.tobler@schweiz.org>
18643 * config/bsd/proc.c: New file.
18644 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18645 * configure.ac: Check for header <sys/sysctl.h>
18646 * configure: Regenerate.
18647 * config.h.in: Likewise.
18649 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18651 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18653 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18655 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18656 * Makefile.in: Regenerated.
18657 * testsuite/Makefile.in: Regenerated.
18659 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18661 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18662 depend on blddir if blddir exists.
18663 (libgomp_target_compile): Likewise.
18664 * testsuite/libgomp.c++/c++.exp: Likewise.
18665 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18667 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18669 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18670 Do not list GPL as Invariant Section.
18672 2008-07-28 Ilie Garbacea <ilie@mips.com>
18673 Chao-ying Fu <fu@mips.com>
18675 * configure.tgt: Enable futex for MIPS.
18676 * config/linux/mips/futex.h: New file.
18678 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18680 * team.c (gomp_team_end): Free team immediately if it has
18683 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18685 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18686 * testsuite/libgomp.fortran/fortran.exp: Same.
18687 * testsuite/libgomp.c/c.exp: Same.
18688 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18689 directory to library path first.
18691 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18693 * env.c (parse_stacksize): Add cast to avoid warning.
18694 (parse_spincount): Likewise.
18696 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18698 * testsuite/libgomp.c/loop-10.c: New test.
18699 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18700 * libgomp.c++/loop-6.C (main): Likewise.
18703 * testsuite/libgomp.c/debug-1.c: New test.
18705 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18707 * testsuite/libgomp.c/nqueens-1.c: New test.
18710 * testsuite/libgomp.c++/task-7.C: New function.
18712 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18714 * configure: Regenerate.
18716 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18718 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18719 mutex when HAVE_SYNC_BUILTINS isn't defined.
18721 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18723 * libgomp.texi (omp_test_lock): Fix typo.
18725 2008-06-12 Tobias Burnus <burnus@net-b.de>
18727 * omp_lib.f90.in: Add "implicit none".
18729 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18731 PR middle-end/36506
18732 * testsuite/libgomp.c/reduction-5.c: New test.
18734 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18736 * libgomp.h (struct gomp_task): Add in_tied_task field.
18737 * task.c (gomp_init_task): Initialize it.
18738 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18739 unconditionally. Don't call gomp_team_barrier_wake if
18740 current task is implicit or if(0) from implicit and number of
18741 running tasks is equal to nthreads - 1.
18744 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18745 omp_get_team_size_8): Fix pastos.
18748 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18749 * configure: Regenerated.
18750 * config.h.in: Regenerated.
18751 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18754 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18757 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18758 (GOMP_loop_ull_dynamic_start): Likewise.
18759 (GOMP_loop_ull_guided_start): Likewise.
18760 (GOMP_loop_ull_ordered_static_start): Likewise.
18761 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
18762 (GOMP_loop_ull_ordered_guided_start): Likewise.
18764 2008-06-06 Jakub Jelinek <jakub@redhat.com>
18765 Richard Henderson <rth@redhat.com>
18766 Ulrich Drepper <drepper@redhat.com>
18767 Jakob Blomer <jakob.blomer@ira.uka.de>
18769 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
18770 Substitute also OMP_*LOCK_25*.
18771 * configure: Regenerated.
18772 * config.h.in: Regenerated.
18773 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
18774 ptrlock.c and task.c.
18775 * Makefile.in: Regenerated.
18776 * testsuite/Makefile.in: Regenerated.
18777 * task.c: New file.
18778 * loop_ull.c: New file.
18779 * iter_ull.c: New file.
18780 * libgomp.h: Include ptrlock.h.
18781 (enum gomp_task_kind): New type.
18782 (struct gomp_team): Add task_lock, task_queue, task_count,
18783 task_running_count, single_count fields. Add
18784 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
18785 Remove work_share_lock, generation_mask,
18786 oldest_live_gen, num_live_gen and init_work_shares fields, add
18787 work work_share_list_alloc, work_share_list_free and work_share_chunk
18788 fields. Change work_shares from pointer to pointers into an array.
18789 Change ordered_release field into gomp_sem_t ** from flexible array
18790 member. Add implicit_task and initial_work_shares fields.
18791 Move close to the end of the struct.
18792 (struct gomp_team_state): Add single_count, last_work_share,
18793 active_level and level fields, remove work_share_generation.
18794 (gomp_barrier_handle_tasks): New prototype.
18795 (gomp_finish_task): New inline function.
18796 (struct gomp_work_share): Move chunk_size, end, incr into
18797 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
18798 next_ll fields. Reshuffle fields. Add next_alloc,
18799 next_ws, next_free and inline_ordered_team_ids fields, change
18800 ordered_team_ids into pointer from flexible array member.
18801 Add mode field. Put lock and next into a different cache line
18802 from most of the write-once fields.
18803 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
18804 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
18805 gomp_iter_ull_guided_next): New prototypes.
18806 (gomp_new_icv): New prototype.
18807 (struct gomp_thread): Add thread_pool and task fields.
18808 (struct gomp_thread_pool): New type.
18809 (gomp_new_team): New prototype.
18810 (gomp_team_start): Change type of last argument.
18811 (gomp_new_work_share): Removed.
18812 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
18813 (gomp_work_share_init_done): New static inline.
18814 (gomp_throttled_spin_count_var, gomp_available_cpus,
18815 gomp_managed_threads): New extern decls.
18816 (gomp_init_task): New prototype.
18817 (gomp_spin_count_var): New extern var decl.
18818 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
18819 or no alias support, or if not PIC.
18820 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
18821 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
18822 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
18823 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
18824 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
18825 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
18826 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
18827 gomp_test_nest_lock_25): New prototypes.
18828 (omp_lock_symver, strong_alias): Define.
18829 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
18831 (gomp_end_task): New.
18832 (struct gomp_task_icv, gomp_global_icv): New.
18833 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
18834 (struct gomp_task): New.
18835 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18836 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18838 (gomp_schedule_type): Reorder enum to match
18840 * team.c (struct gomp_thread_start_data): Add thread_pool and task
18842 (gomp_thread_start): Add gomp_team_barrier_wait call.
18843 For non-nested case remove clearing of docked thread thr fields.
18844 Use pool fields instead of global gomp_* variables. Use
18845 gomp_barrier_wait_last when needed. Initialize ts.active_level.
18846 Create tasks for each member thread.
18847 (free_team): Only destroy team barrier, task_lock here and free it.
18848 (gomp_free_thread): Free last_team if non-NULL.
18849 (gomp_team_end): Call gomp_team_barrier_wait instead of
18850 gomp_barrier_wait. For nested case call one extra
18851 gomp_barrier_wait. Move here some destruction from free_team.
18852 Call free_team on pool->last_team if any, rather than freeing
18853 current team. Destroy work_share_list_free_lock ifndef
18854 HAVE_SYNC_BUILTINS.
18855 (gomp_new_icv): New function.
18856 (gomp_threads, gomp_threads_size, gomp_threads_used,
18857 gomp_threads_dock): Removed.
18858 (gomp_thread_destructor): New variable.
18859 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
18861 (gomp_team_start): Create new pool if current thread doesn't have
18862 one. Use pool fields instead of global gomp_* variables.
18863 Initialize thread_pool field for new threads. Clear single_count.
18864 Change last argument from ws to team, don't create
18865 new team, set ts.work_share to &team->work_shares[0] and clear
18866 ts.last_work_share. Don't clear ts.work_share_generation.
18867 If number of threads changed, adjust atomically gomp_managed_threads.
18868 Use gomp_init_task instead of gomp_new_task,
18869 set thr->task to the corresponding implicit_task array entry.
18870 Create tasks for each member thread. Initialize ts.level.
18871 (initialize_team): Call pthread_key_create on
18872 gomp_thread_destructor.
18873 (team_destructor): New function.
18874 (new_team): Removed.
18875 (gomp_new_team): New function.
18876 (free_team): Free gomp_work_share blocks chained through next_alloc,
18877 instead of freeing work_shares and destroying work_share_lock.
18878 (gomp_team_end): Call gomp_fini_work_share. If number of threads
18879 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
18880 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
18881 of gomp_barrier_wait.
18882 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
18883 instead of gomp_barrier_wait. Call gomp_work_share_init_done
18884 if gomp_work_share_start returned true. Don't unlock ws->lock.
18885 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
18886 of gomp_barrier_wait.
18887 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
18888 gomp_work_share_init_done if gomp_work_share_start returned true.
18889 Don't unlock ws->lock.
18890 * work.c: Include stddef.h.
18891 (free_work_share): Use work_share_list_free_lock instead
18892 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
18893 Call gomp_fini_work_share and then either free ws if orphaned, or
18894 put it into work_share_list_free list of the current team.
18895 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
18897 (gomp_work_share_start, gomp_work_share_end,
18898 gomp_work_share_end_nowait): Rewritten.
18899 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
18900 (openmp_version): Set to 200805.
18901 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18902 omp_sched_guided, omp_sched_auto): New parameters.
18903 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18904 omp_set_max_active_levels, omp_get_max_active_levels,
18905 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18906 omp_get_active_level): New interfaces.
18907 * omp_lib.h.in (openmp_version): Set to 200805.
18908 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
18909 omp_sched_guided, omp_sched_auto): New parameters.
18910 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18911 omp_set_max_active_levels, omp_get_max_active_levels,
18912 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18913 omp_get_active_level): New externals.
18914 * loop.c: Include limits.h.
18915 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
18917 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
18918 Likewise. Use gomp_icv.
18919 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
18920 ts.static_trip here.
18921 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
18922 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
18923 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
18924 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
18925 don't unlock ws->lock, otherwise lock it.
18926 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
18927 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
18928 (gomp_parallel_loop_start): Call gomp_new_team instead of
18929 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
18930 Adjust gomp_team_start caller. Pass 0 as second argument to
18931 gomp_resolve_num_threads.
18932 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
18933 If adding ws->chunk_size nthreads + 1 times after end won't
18934 overflow, set ws->mode to 1.
18935 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
18936 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
18937 GOMP_loop_ull_ordered_static_start,
18938 GOMP_loop_ull_ordered_dynamic_start,
18939 GOMP_loop_ull_ordered_guided_start,
18940 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
18941 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
18942 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
18943 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
18944 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
18946 * libgomp.map: Export lock routines also @@OMP_2.0.
18947 (GOMP_loop_ordered_dynamic_first,
18948 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
18949 GOMP_loop_ordered_static_first): Remove.
18950 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
18951 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
18952 GOMP_loop_ull_ordered_dynamic_next,
18953 GOMP_loop_ull_ordered_dynamic_start,
18954 GOMP_loop_ull_ordered_guided_next,
18955 GOMP_loop_ull_ordered_guided_start,
18956 GOMP_loop_ull_ordered_runtime_next,
18957 GOMP_loop_ull_ordered_runtime_start,
18958 GOMP_loop_ull_ordered_static_next,
18959 GOMP_loop_ull_ordered_static_start,
18960 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
18961 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
18962 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
18963 (omp_set_schedule, omp_get_schedule,
18964 omp_get_thread_limit, omp_set_max_active_levels,
18965 omp_get_max_active_levels, omp_get_level,
18966 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
18967 omp_set_schedule_, omp_set_schedule_8_,
18968 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
18969 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
18970 omp_get_max_active_levels_, omp_get_level_,
18971 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
18972 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
18973 New exports @@OMP_3.0.
18974 * omp.h.in (omp_sched_t): New type.
18975 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
18976 omp_set_max_active_levels, omp_get_max_active_levels,
18977 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
18978 omp_get_active_level): New prototypes.
18979 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
18980 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
18981 gomp_thread_limit_var, gomp_remaining_threads_count,
18982 gomp_remaining_threads_lock): New variables.
18983 (parse_spincount): New function.
18984 (initialize_env): Call gomp_init_num_threads unconditionally.
18985 Initialize gomp_available_cpus. Call parse_spincount,
18986 initialize gomp_{,throttled_}spin_count_var
18987 depending on presence and value of OMP_WAIT_POLICY and
18988 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
18989 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
18990 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
18991 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
18992 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
18993 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
18994 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
18995 (gomp_global_icv): New.
18996 (parse_schedule): Use it. Parse "auto".
18997 (omp_set_num_threads): Use gomp_icv.
18998 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19000 (omp_get_max_threads): Move from parallel.c.
19001 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19002 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19004 (parse_stacksize, parse_wait_policy): New functions.
19005 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19006 both wrappers for compatibility and new locks.
19007 (omp_set_schedule, omp_get_schedule,
19008 omp_get_thread_limit, omp_set_max_active_levels,
19009 omp_get_max_active_levels, omp_get_level,
19010 omp_get_ancestor_thread_num, omp_get_team_size,
19011 omp_get_active_level): New ialias_redirect.
19012 (omp_set_schedule_, omp_set_schedule_8_,
19013 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19014 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19015 omp_get_max_active_levels_, omp_get_level_,
19016 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19017 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19019 * parallel.c: Include limits.h.
19020 (gomp_resolve_num_threads): Add count argument. Rewritten.
19021 (GOMP_parallel_start): Call gomp_new_team and pass that as last
19022 argument to gomp_team_start. Pass 0 as second argument to
19023 gomp_resolve_num_threads.
19024 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19025 if gomp_thread_limit_var != ULONG_MAX.
19026 (omp_in_parallel): Implement using ts.active_level.
19027 (omp_get_max_threads): Move to env.c.
19028 (omp_get_level, omp_get_ancestor_thread_num,
19029 omp_get_team_size, omp_get_active_level): New functions,
19031 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19032 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
19033 gomp_iter_dynamic_next instead of the _locked variant and don't take
19034 lock around it, otherwise acquire it before calling
19035 gomp_iter_dynamic_next_locked.
19036 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19037 gomp_iter_dynamic_next instead of the _locked variant and don't take
19039 (GOMP_parallel_sections_start): Call gomp_new_team instead of
19040 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
19041 Adjust gomp_team_start caller. Pass count as second argument to
19042 gomp_resolve_num_threads, don't adjust num_threads after the call.
19044 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19045 ws->chunk_size by incr.
19046 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
19048 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19050 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19051 (omp_check_defines): Check even the compat defines.
19052 * config/linux/ptrlock.c: New file.
19053 * config/linux/ptrlock.h: New file.
19054 * config/linux/wait.h: New file.
19055 * config/posix/ptrlock.c: New file.
19056 * config/posix/ptrlock.h: New file.
19057 * config/linux/bar.h (gomp_team_barrier_wait,
19058 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19059 (gomp_team_barrier_set_task_pending,
19060 gomp_team_barrier_clear_task_pending,
19061 gomp_team_barrier_set_waiting_for_tasks,
19062 gomp_team_barrier_waiting_for_tasks,
19063 gomp_team_barrier_done): New inlines.
19064 (gomp_barrier_t): Rewritten.
19065 (gomp_barrier_state_t): New typedef.
19066 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19067 gomp_barrier_wait_start): Rewritten.
19068 (gomp_barrier_wait_end): Change second argument to
19069 gomp_barrier_state_t.
19070 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19072 * config/linux/bar.c: Include wait.h instead of libgomp.h and
19074 (gomp_barrier_wait_end): Rewritten.
19075 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19076 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19077 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19078 (gomp_barrier_state_t): New typedef.
19079 (gomp_team_barrier_wait,
19080 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19081 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19082 into the return value. Return gomp_barrier_state_t.
19083 (gomp_team_barrier_set_task_pending,
19084 gomp_team_barrier_clear_task_pending,
19085 gomp_team_barrier_set_waiting_for_tasks,
19086 gomp_team_barrier_waiting_for_tasks,
19087 gomp_team_barrier_done): New inlines.
19088 (gomp_barrier_wait_end): Change second argument to
19089 gomp_barrier_state_t.
19090 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19092 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19093 (gomp_barrier_wait_end): Change second argument to
19094 gomp_barrier_state_t.
19095 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19096 gomp_team_barrier_wake): New functions.
19097 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19099 (gomp_futex_wake, gomp_futex_wait): New variables.
19100 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19101 * config/linux/lock.c: Rewrite to make locks task owned,
19102 for backwards compatibility provide the old entrypoints
19103 if symbol versioning. Include wait.h instead of libgomp.h and
19105 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19106 * config/posix95/lock.c: Rewrite to make locks task owned,
19107 for backwards compatibility provide the old entrypoints
19108 if symbol versioning.
19109 * config/posix/lock.c: Rewrite to make locks task owned,
19110 for backwards compatibility provide the old entrypoints
19111 if symbol versioning.
19112 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19113 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19114 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19115 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19116 (sys_futex0): Return error code.
19117 (futex_wake, futex_wait): If ENOSYS was returned, clear
19118 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19119 (cpu_relax, atomic_write_barrier): New static inlines.
19120 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
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/x86/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/s390/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/ia64/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/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19140 (sys_futex0): Return error code.
19141 (futex_wake, futex_wait): If ENOSYS was returned, clear
19142 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19143 (cpu_relax, atomic_write_barrier): New static inlines.
19144 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19146 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19147 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19148 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19150 (omp_nest_lock_t): Change owner into void *, add lock field.
19151 * config/posix95/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
19155 (omp_nest_lock_t): Likewise. Change owner to void *.
19156 * config/posix/omp-lock.h: Include semaphore.h.
19157 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19158 (omp_lock_t): Use sem_t instead of mutex if semaphores
19160 (omp_nest_lock_t): Likewise. Add owner field.
19162 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19164 * testsuite/libgomp.c/collapse-1.c: New test.
19165 * testsuite/libgomp.c/collapse-2.c: New test.
19166 * testsuite/libgomp.c/collapse-3.c: New test.
19167 * testsuite/libgomp.c/icv-1.c: New test.
19168 * testsuite/libgomp.c/icv-2.c: New test.
19169 * testsuite/libgomp.c/lib-2.c: New test.
19170 * testsuite/libgomp.c/lock-1.c: New test.
19171 * testsuite/libgomp.c/lock-2.c: New test.
19172 * testsuite/libgomp.c/lock-3.c: New test.
19173 * testsuite/libgomp.c/loop-4.c: New test.
19174 * testsuite/libgomp.c/loop-5.c: New test.
19175 * testsuite/libgomp.c/loop-6.c: New test.
19176 * testsuite/libgomp.c/loop-7.c: New test.
19177 * testsuite/libgomp.c/loop-8.c: New test.
19178 * testsuite/libgomp.c/loop-9.c: New test.
19179 * testsuite/libgomp.c/nested-3.c: New test.
19180 * testsuite/libgomp.c/nestedfn-6.c: New test.
19181 * testsuite/libgomp.c/sort-1.c: New test.
19182 * testsuite/libgomp.c/task-1.c: New test.
19183 * testsuite/libgomp.c/task-2.c: New test.
19184 * testsuite/libgomp.c/task-3.c: New test.
19185 * testsuite/libgomp.c/task-4.c: New test.
19186 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19187 to C++ testsuite default compiler options.
19188 * testsuite/libgomp.c++/collapse-1.C: New test.
19189 * testsuite/libgomp.c++/collapse-2.C: New test.
19190 * testsuite/libgomp.c++/ctor-10.C: New test.
19191 * testsuite/libgomp.c++/for-1.C: New test.
19192 * testsuite/libgomp.c++/for-2.C: New test.
19193 * testsuite/libgomp.c++/for-3.C: New test.
19194 * testsuite/libgomp.c++/for-4.C: New test.
19195 * testsuite/libgomp.c++/for-5.C: New test.
19196 * testsuite/libgomp.c++/loop-8.C: New test.
19197 * testsuite/libgomp.c++/loop-9.C: New test.
19198 * testsuite/libgomp.c++/loop-10.C: New test.
19199 * testsuite/libgomp.c++/task-1.C: New test.
19200 * testsuite/libgomp.c++/task-2.C: New test.
19201 * testsuite/libgomp.c++/task-3.C: New test.
19202 * testsuite/libgomp.c++/task-4.C: New test.
19203 * testsuite/libgomp.c++/task-5.C: New test.
19204 * testsuite/libgomp.c++/task-6.C: New test.
19205 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19206 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19207 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19208 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19209 * testsuite/libgomp.fortran/collapse1.f90: New test.
19210 * testsuite/libgomp.fortran/collapse2.f90: New test.
19211 * testsuite/libgomp.fortran/collapse3.f90: New test.
19212 * testsuite/libgomp.fortran/collapse4.f90: New test.
19213 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19214 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19215 * testsuite/libgomp.fortran/lib4.f90: New test.
19216 * testsuite/libgomp.fortran/lock-1.f90: New test.
19217 * testsuite/libgomp.fortran/lock-2.f90: New test.
19218 * testsuite/libgomp.fortran/nested1.f90: New test.
19219 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19220 * testsuite/libgomp.fortran/strassen.f90: New test.
19221 * testsuite/libgomp.fortran/tabs1.f90: New test.
19222 * testsuite/libgomp.fortran/tabs2.f: New test.
19223 * testsuite/libgomp.fortran/task1.f90: New test.
19224 * testsuite/libgomp.fortran/task2.f90: New test.
19225 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19226 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19227 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19228 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19229 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19231 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19234 * testsuite/libgomp.c++/ctor-11.C: New test.
19235 * testsuite/libgomp.c++/ctor-12.C: New test.
19237 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19239 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19241 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19243 PR middle-end/36106
19244 * testsuite/libgomp.c/atomic-5.c: New test.
19245 * testsuite/libgomp.c/atomic-6.c: New test.
19246 * testsuite/libgomp.c/autopar-1.c: New test.
19248 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19250 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19251 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19252 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19253 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19254 * configure: Regenerate.
19255 * Makefile.in, testsuite/Makefile.in: Likewise.
19257 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19260 * aclocal.m4: Regenerate.
19261 * configure: Regenerate.
19263 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19265 PR middle-end/35611
19266 * testsuite/libgomp.c/atomic-4.c: New test.
19269 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19270 (gomp_iter_guided_next): Likewise.
19271 * testsuite/libgomp.c/pr35625.c: New test.
19273 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19275 * aclocal.m4: Regenerate.
19276 * configure: Likewise.
19277 * Makefile.in: Likewise.
19278 * testsuite/Makefile.in: Likewise.
19280 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19282 PR middle-end/35185
19283 * testsuite/libgomp.c++/pr35185.C: New test.
19285 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19287 PR middle-end/35549
19288 * testsuite/libgomp.c/pr35549.c: New test.
19290 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19292 * testsuite/libgomp.c/atomic-3.c: New test.
19294 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19297 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19298 .F08 file suffixes.
19300 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19303 * configure.ac: Add ACX_HEADER_STRING.
19304 * env.c: Include strings.h.
19305 * aclocal.m4: Regenerate.
19306 * config.h.in: Regenerate.
19307 * configure: Regenerate.
19308 * Makefile.in: Regenerate.
19309 * testsuite/Makefile.in: Regenerate.
19311 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19313 PR middle-end/35196
19314 * testsuite/libgomp.c/pr35196.c: New test.
19316 PR middle-end/35130
19317 * testsuite/libgomp.fortran/pr35130.f90: New test.
19318 * testsuite/libgomp.c/pr35130.c: New test.
19320 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19322 PR middle-end/33880
19323 * testsuite/libgomp.c/pr33880.c: New test.
19324 * testsuite/libgomp.fortran/pr33880.f90: New test.
19326 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19328 * configure: Regenerate.
19330 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19332 * configure.ac: Move futex checking into ../config/futex.m4.
19333 * configure: Rebuilt.
19334 * aclocal.m4: Rebuilt.
19335 * Makefile.in: Rebuilt.
19337 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19338 2007-10-15 ../config/tls.m4 change.
19340 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19343 * testsuite/libgomp.c/pr34513.c: New test.
19344 * testsuite/libgomp.c++/pr34513.C: New test.
19346 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19349 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19351 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19353 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19355 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19357 * testsuite/libgomp.c/private-1.c: New test.
19359 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19360 Paolo Bonzini <bonzini@gnu.org>
19362 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19363 instead of 'VPATH ='.
19364 * Makefile.in: Regenerate.
19366 2007-11-23 Matthias Klose <doko@ubuntu.com>
19368 * configure.ac: Adjust makeinfo version check.
19369 * configure: Regenerate.
19371 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19374 * testsuite/libgomp.fortran/pr34020.f90: New test.
19376 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19379 * testsuite/libgomp.c++/atomic-1.C: New test.
19381 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19384 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19385 Make x and y integers rather than (implicit) reals. Add private (j)
19386 clause to the last omp parallel.
19388 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19390 * configure: Regenerate following changes to ../config/tls.m4.
19392 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19394 * testsuite/libgomp.fortran/stack.f90: New test.
19396 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19398 * config/mingw32/proc.c: New file.
19400 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19402 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19403 (main): Use __get_cpuid to get i386 target fetaures.
19404 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19405 (main): Use __get_cpuid to get x86_64 target fetaures.
19407 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19410 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19411 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19413 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19416 * testsuite/libgomp.fortran/pr32550.f90: New test.
19417 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19419 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19421 * aclocal.m4: Regenerated.
19423 2007-07-05 Tobias Burnus <burnus@net-b.de>
19426 * testsuite/libgomp.fortran/pr32359.f90: New.
19428 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19431 * sections.c (GOMP_parallel_sections_start): Only decrease
19432 number of threads to COUNT if dyn_var is true.
19433 * testsuite/libgomp.c/pr32468.c: New test.
19435 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19438 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19440 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19442 PR middle-end/32362
19443 * testsuite/libgomp.c/pr32362-1.c: New test.
19444 * testsuite/libgomp.c/pr32362-2.c: New test.
19445 * testsuite/libgomp.c/pr32362-3.c: New test.
19447 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19449 * team.c (gomp_team_start): Fix setting up thread_attr
19452 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19454 * configure: Regenerate.
19456 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19458 * Makefile.in: Regenerate.
19459 * configure: Regenerate.
19460 * aclocal.m4: Regenerate.
19461 * testsuite/Makefile.in: Regenerate.
19463 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19465 * config/linux/proc.c: New file.
19468 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19470 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19472 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19474 2007-04-16 Matthias Klose <doko@debian.org>
19476 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19477 flags if not building with -m64.
19478 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19479 flag for i?86-*-* targets, if current target matches -m64.
19481 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19483 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19484 * Makefile.in: Regenerate.
19486 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19489 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19491 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19493 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19495 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19497 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19498 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19499 (parse_affinity): New function.
19500 (initialize_env): Call it and gomp_init_affinity.
19501 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19502 create new pthread_attr_t and call gomp_init_thread_affinity
19503 on it for each thread before passing the attribute to pthread_create.
19504 * config/linux/affinity.c: New file.
19505 * config/posix/affinity.c: New file.
19506 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19507 * configure: Rebuilt.
19508 * config.h.in: Rebuilt.
19509 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19510 * Makefile.in: Rebuilt.
19512 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19514 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19516 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19517 and use it if found.
19519 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19521 * testsuite/config/default.exp: New file.
19522 * testsuite/lib/libgomp.exp: New file.
19523 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19524 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19525 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19526 (libgomp_load): Remove.
19527 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19528 always_ld_library_path, not ld_library_path. Set additional_flags
19529 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19530 (target_compile): Do not call libgomp_init. Append lang_library_path
19531 and lang_link_flags to options.
19532 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19533 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19535 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19536 always_ld_library_path. Set LD_LIBRARY_PATH here.
19537 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19538 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19539 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19541 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19542 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19543 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19544 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19545 * testsuite/libgomp.c/atomic-10.c: Ditto.
19547 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19549 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19550 dg-final cleanup-modules line.
19551 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19552 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19553 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19554 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19555 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19556 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19557 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19559 2007-03-18 Andreas Schwab <schwab@suse.de>
19561 * acinclude.m4: Adjust regular expression for ld version
19563 * configure: Regenerate.
19565 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19567 * Makefile.am: Add install-pdf target as copied from
19568 automake v1.10 rules.
19569 * Makefile.in: Regenerate
19571 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19574 * configure: Regenerate.
19577 * testsuite/libgomp.c++/pr30703.C: New test.
19579 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19582 2006-07-05 Eric Christopher <echristo@apple.com>
19583 * configure.ac: Depend addition of -pthread on host OS.
19584 * configure: Regenerate.
19586 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19588 * libgomp.texi: Fix spacing after abbreviations.
19590 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19593 * configure.ac: Add check for makeinfo
19594 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19595 if an appropriate version of makeinfo is found.
19596 * aclocal.m4: Regenerated.
19597 * configure: Regenerated.
19598 * Makefile.in: Regenerated.
19599 * testsuite/Makefile.in: Regenerated.
19601 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19604 * libgomp.texi: More about implementation-dependent settings.
19606 2007-01-26 Tobias Burnus <burnus@net-b.de>
19608 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19610 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19612 PR middle-end/30494
19613 * testsuite/libgomp.c/pr30494.c: New test.
19615 2007-01-15 Tom Tromey <tromey@redhat.com>
19617 * configure: Rebuilt.
19618 * configure.ac: Fixed comment.
19620 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19622 * libgomp.texi: Document implementation specific default values of
19623 environment variables.
19625 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19628 * libgomp.texi: New file.
19629 * configure.ac: Add --enable-generated-files-in-srcdir option.
19630 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19632 * Makefile.in: Regenerated.
19633 * config.h.in: Regenerated.
19634 * testsuite/Makefile.in: Regenerated.
19637 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19640 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19642 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19644 * configure: Regenerate.
19646 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19649 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19650 start if there shouldn't be any loop iterations.
19651 (gomp_loop_ordered_static_start): Remove start == end test.
19652 * testsuite/libgomp.c/pr29947-1.c: New test.
19653 * testsuite/libgomp.c/pr29947-2.c: New test.
19655 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19657 * configure.tgt: Force initial-exec TLS model on Linux only.
19659 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19661 * configure: Regenerated.
19663 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19665 * env.c (parse_schedule): Reject out of range values.
19666 (parse_unsigned_long): Reject out of range, negative or zero values.
19668 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19671 * testsuite/libgomp.fortran/pr29629.f90: New test.
19673 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19676 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19677 * config/posix95: New directory.
19678 * config/posix95/omp-lock.h: New file.
19679 * config/posix95/lock.c: Likewise.
19681 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19683 * aclocal.m4: Regenerate.
19684 * configure: Regenerate.
19686 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19688 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19691 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19693 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19695 * configure: Regenerate.
19696 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19698 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19700 PR middle-end/25261
19701 PR middle-end/28790
19702 * testsuite/libgomp.c/nestedfn-4.c: New test.
19703 * testsuite/libgomp.c/nestedfn-5.c: New test.
19704 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19707 * testsuite/libgomp.fortran/condinc1.f: New test.
19708 * testsuite/libgomp.fortran/condinc2.f: New test.
19709 * testsuite/libgomp.fortran/condinc3.f90: New test.
19710 * testsuite/libgomp.fortran/condinc4.f90: New test.
19711 * testsuite/libgomp.fortran/condinc1.inc: New file.
19713 2006-09-18 Tom Tromey <tromey@redhat.com>
19715 * configure: Rebuilt.
19717 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19720 PR preprocessor/14634
19721 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19723 * configure: Regenerate.
19725 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19727 * testsuite/libgomp.fortran/reduction3.f90: Change
19728 -2147483648 to -huge(i)-1 to avoid overflow.
19729 * testsuite/libgomp.fortran/reduction4.f90: Change
19730 Z'ffffffff' to not(0) to avoid overflow.
19732 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19735 * Makefile.am (libsubincludedir): New.
19736 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19737 * Makefile.in: Regenerate.
19739 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19742 * env.c: Include ctype.h.
19743 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19744 leading and/or trailing whitespace and compare strings case
19747 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19750 * testsuite/libgomp.fortran/pr28390.f: New test.
19752 2006-07-05 Eric Christopher <echristo@apple.com>
19754 * configure.ac: Depend addition of -pthread on host OS.
19755 * configure: Regenerate.
19757 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19759 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19760 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
19763 2006-06-20 Jakub Jelinek <jakub@redhat.com>
19767 * configure.ac: If neither --enable-linux-futex nor
19768 --disable-linux-futex is passed, determine the default by checking
19769 for compiling and/or running against NPTL. With --enable-linux-futex,
19770 check if SYS_gettid and SYS_futex are defined.
19771 * configure: Rebuilt.
19773 2006-06-14 Richard Henderson <rth@redhat.com>
19776 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
19777 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
19779 2006-06-09 Richard Henderson <rth@redhat.com>
19781 * env.c (gomp_nthreads_var): Change to unsigned long.
19782 (gomp_run_sched_chunk): Likewise.
19783 (parse_unsigned_long): Rename from parse_num_threads and generalize.
19784 (initialize_env): Initialize gomp_thread_attr.
19785 * libgomp.h (gomp_nthreads_var): Update decl.
19786 (gomp_run_sched_chunk): Likewise.
19787 (gomp_thread_attr): Declare.
19788 * team.c (gomp_thread_attr): Export.
19789 (initialize_team): Don't initialize it.
19791 2006-06-09 Jakub Jelinek <jakub@redhat.com>
19794 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
19795 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
19797 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19799 * config/mingw32/time.c: New file.
19800 * configure.tgt: Use it.
19802 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
19804 * Makefile.am: Add install-html target. Add install-html to .PHONY
19805 * Makefile.in: Regenerate.
19807 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19810 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
19811 * testsuite/libgomp.c/critical-1.c: Likewise.
19812 * testsuite/libgomp.c/loop-1.c: Likewise.
19813 * testsuite/libgomp.c/loop-2.c: Likewise.
19814 * testsuite/libgomp.c/single-1.c: Likewise.
19815 * testsuite/libgomp.c/ordered-1.c: Likewise.
19816 * testsuite/libgomp.c/ordered-2.c: Likewise.
19818 2006-05-15 Jakub Jelinek <jakub@redhat.com>
19820 PR middle-end/27416
19821 * libgomp.fortran/pr27416-1.f90: New test.
19823 2006-05-03 Jakub Jelinek <jakub@redhat.com>
19826 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
19827 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
19829 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19832 * testsuite/libgomp.c/pr26943-1.c: New test.
19833 * testsuite/libgomp.c/pr26943-2.c: New test.
19834 * testsuite/libgomp.c/pr26943-3.c: New test.
19835 * testsuite/libgomp.c/pr26943-4.c: New test.
19836 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
19837 * testsuite/libgomp.c++/pr26943.C: New test.
19839 2006-05-02 Jakub Jelinek <jakub@redhat.com>
19841 PR middle-end/27337
19842 * testsuite/libgomp.c++/pr27337.C: New test.
19844 2006-04-26 Jakub Jelinek <jakub@redhat.com>
19847 * testsuite/libgomp.c/pr26171.c: New test.
19849 2006-04-25 Richard Henderson <rth@redhat.com>
19852 * configure.ac: Use GCC_CHECK_TLS.
19853 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
19854 * Makefile.in, aclocal.m4, configure: Regenerate.
19856 2006-04-10 Matthias Klose <doko@debian.org>
19858 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
19859 directory names containing underscores.
19861 2006-03-21 Jakub Jelinek <jakub@redhat.com>
19864 * testsuite/libgomp.c++/pr26691.C: New test.
19866 2006-03-13 Jakub Jelinek <jakub@redhat.com>
19868 * testsuite/libgomp.fortran/retval2.f90: New test.
19870 2006-03-09 Diego Novillo <dnovillo@redhat.com>
19872 * testsuite/libgomp.c++: New directory.
19874 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
19876 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
19877 * config/posix/sem.c: Implement the above.
19879 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
19881 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
19882 define HAVE_BROKEN_POSIX_SEMAPHORES.
19883 * configure: Rebuilt.
19884 * config.h.in: Rebuilt.
19886 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19889 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
19890 for the other pthread check.
19891 * configure: Regenerate.
19892 * config.h.in: Regenerate.
19894 2006-02-15 Jakub Jelinek <jakub@redhat.com>
19898 * Makefile.am (fincludedir): New variable.
19899 (nodist_include_HEADERS): Remove Fortran files.
19900 (nodist_finclude_HEADERS): New variable.
19901 * Makefile.in: Regenerated.
19903 2006-02-13 Jakub Jelinek <jakub@redhat.com>
19905 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
19906 Remove tests for returning assumed character length arrays.
19908 2006-02-12 Roger Sayle <roger@eyesopen.com>
19909 John David Anglin <dave@hiauly1.hia.nrc.ca>
19912 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
19914 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
19916 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
19918 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19920 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
19921 part of LD_LIBRARY_PATH manually.
19923 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
19926 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
19929 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
19932 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
19933 * configure.ac (PERL): Don't set.
19934 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
19935 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
19936 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
19937 * omp.h.in: Wrap the new configure substitutions with @ characters.
19938 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
19939 * aclocal.m4, configure, Makefile.in: Regenerate.
19940 * mkomp_h.pl: Delete.
19942 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
19945 * configure.ac: Use GCC_HEADER_STDINT.
19946 * libgomp.h: Include gstdint.h.
19947 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
19948 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
19950 2006-01-24 Richard Henderson <rth@redhat.com>
19953 * configure.ac: Add AM_MAINTAINER_MODE.
19954 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
19956 2006-01-24 Diego Novillo <dnovillo@redhat.com>
19958 * Makefile.in: Regenerate.
19959 * testsuite/Makefile.in: Regenerate.
19960 * aclocal.m4: Regenerate.
19962 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
19964 * config/posix/proc.c: Conditional include of sys/loadavg.h for
19966 * configure.ac: Add check for loadavg.h.
19967 (link_gomp): Adjust comment.
19968 * configure: Regenerate.
19969 * config.h.in: Regenerate.
19971 2006-01-21 Steve Ellcey <sje@cup.hp.com>
19974 * configure.ac: Remove check for alloca.h.
19975 * configure: Regenerate.
19976 * config.h.in: Regenerate.
19977 * libgomp.h: define gomp_alloca to be __builtin_alloca.
19978 * team.c: Remove use of alloca.h.
19979 Call gomp_alloca instead of alloca.
19981 2006-01-20 Steve Ellcey <sje@cup.hp.com>
19984 * team.c: Add include of alloca.h.
19985 * configure.ac: Add check for alloca.h.
19986 * configure: Regenerate.
19987 * config.h.in: Regenerate.
19989 2006-01-17 Jakub Jelinek <jakub@redhat.com>
19992 * testsuite/libgomp.fortran/pr25219.f90: New test.
19994 2005-12-05 Uros Bizjak <uros@kss-loka.si>
19996 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
19997 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
19998 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
19999 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20000 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20001 testsuite/libgomp.fortran/threadprivate1.f90,
20002 testsuite/libgomp.fortran/threadprivate2.f90,
20003 testsuite/libgomp.fortran/threadprivate3.f90,
20004 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20005 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20006 testsuite/libgomp.fortran/omp_parse3.f90: Change required
20007 effective-target to TLS runtime.
20009 * testsuite/libgomp.fortran/pr25162.f: Require
20010 effective-target TLS runtime.
20012 2005-12-01 Jakub Jelinek <jakub@redhat.com>
20014 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20015 * testsuite/libgomp.c/nestedfn-3.c: New test.
20017 2005-11-30 Jakub Jelinek <jakub@redhat.com>
20020 * testsuite/libgomp.fortran/pr25162.f: New test.
20022 2005-11-28 Jakub Jelinek <jakub@redhat.com>
20024 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20025 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20027 2005-11-25 Jakub Jelinek <jakub@redhat.com>
20029 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20030 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20031 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20032 single.c, team.c, work.c, config/linux/alpha/futex.h,
20033 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20034 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20035 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20036 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20037 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20038 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20039 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20042 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20044 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20045 to nodist_noinst_HEADERS.
20046 * Makefile.in: Rebuilt.
20048 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20049 add integer count field.
20050 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20051 omp_nest_lock_t type change.
20052 (omp_init_nest_lock): Likewise. Initialize count to 0.
20053 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20055 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20057 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20058 Increment count if successful and return the new nesting level.
20059 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20060 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20061 * testsuite/libgomp.c/lib-1.c: New test.
20062 * testsuite/libgomp.fortran/lib1.f90: New test.
20063 * testsuite/libgomp.fortran/lib2.f: New test.
20064 * testsuite/libgomp.fortran/lib3.f: New test.
20066 2005-11-17 Richard Henderson <rth@redhat.com>
20069 * Makefile.am (nodist_toolexeclib_HEADERS): New.
20070 * configure.ac (link_gomp): New. Substitute it.
20071 (AC_CONFIG_FILES): Add libgomp.spec.
20072 * libgomp.spec.in: New file.
20073 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20074 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20076 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20078 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20079 reduction(-:var) behaving the same as reduction(+:var).
20080 * testsuite/libgomp.c/reduction-4.c: New test.
20082 2005-11-15 Uros Bizjak <uros@kss-loka.si>
20084 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20085 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20086 testsuite/libgomp.c/copyin-3.c,
20087 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20088 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20089 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20090 testsuite/libgomp.c++/pr24455.C,
20091 testsuite/libgomp.fortran/threadprivate1.f90,
20092 testsuite/libgomp.fortran/threadprivate2.f90,
20093 testsuite/libgomp.fortran/threadprivate3.f90,
20094 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20095 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20096 testsuite/libgomp.fortran/omp_parse3.f90: Require
20097 effective-target TLS.
20099 2005-11-14 Diego Novillo <dnovillo@redhat.com>
20103 2005-11-13 Jakub Jelinek <jakub@redhat.com>
20106 * team.c (initialize_team): Pass NULL rather than free as
20107 pthread_key_create destructor. Initialize thread specific data
20108 pointer in initial thread to a static local variable rather than
20111 2005-11-11 Uros Bizjak <uros@kss-loka.si>
20113 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20114 its location to ld_library_path.
20116 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20118 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20120 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20122 * testsuite/libgomp.c: Rename from libgomp.dg.
20124 2005-11-09 Diego Novillo <dnovillo@redhat.com>
20126 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20127 threadprivate variable 'i'.
20129 2005-11-09 Jakub Jelinek <jakub@redhat.com>
20131 * config/linux/s390/futex.h: New file.
20132 * configure.tgt: Use it.
20134 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20135 before the parallel.
20137 2005-11-08 Jakub Jelinek <jakub@redhat.com>
20140 * testsuite/libgomp.c++/master-1.C: New test.
20142 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20144 * testsuite/libgomp.dg/copyin-3.c: New test.
20146 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20148 * testsuite/libgomp.fortran/retval1.f90: New test.
20149 * testsuite/libgomp.fortran/vla7.f90: New test.
20151 2005-11-06 Jakub Jelinek <jakub@redhat.com>
20153 * testsuite/libgomp.fortran/vla2.f90: New test.
20154 * testsuite/libgomp.fortran/vla3.f90: New test.
20155 * testsuite/libgomp.fortran/vla4.f90: New test.
20156 * testsuite/libgomp.fortran/vla5.f90: New test.
20157 * testsuite/libgomp.fortran/vla6.f90: New test.
20159 2005-11-01 Jakub Jelinek <jakub@redhat.com>
20161 * config/linux/sparc/futex.h: New file.
20162 * configure.tgt: Use it.
20163 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20165 * critical.c: Include stdlib.h.
20166 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20167 ignoring return value.
20168 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20169 LIBGOMP_CHECK_SYNC_BUILTINS check.
20170 * configure: Rebuilt.
20172 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20174 * testsuite/libgomp.fortran/vla1.f90: New test.
20176 2005-10-31 Richard Henderson <rth@redhat.com>
20178 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20179 setting 's' in different threads.
20181 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20183 * libgomp.h (attribute_hidden, ialias): Define.
20184 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20185 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20186 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20187 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20188 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20189 omp_test_lock, omp_test_nest_lock): Likewise.
20190 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20191 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20192 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20193 omp_test_lock, omp_test_nest_lock): Likewise.
20194 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20195 omp_get_dynamic, omp_get_nested): Likewise.
20196 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20197 omp_get_thread_num, omp_in_parallel): Likewise.
20198 * fortran.c (ialias_redirect): Define.
20199 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20200 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20201 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20202 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20203 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20204 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20205 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20206 omp_get_wtime): Add ialias_redirect.
20208 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20210 * fortran.c: Include stdlib.h.
20212 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20214 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20215 * Makefile.in: Regenerated.
20217 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20219 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20220 * libgomp_f.h.in (omp_check_defines): New function.
20221 * env.c: Include libgomp_f.h.
20222 (initialize_env): Call omp_check_defines.
20224 * testsuite/libgomp.dg/copyin-2.c: New test.
20225 * testsuite/libgomp.c++/copyin-2.C: New test.
20226 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20228 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20229 * testsuite/libgomp.fortran/sharing2.f90: New test.
20231 * testsuite/libgomp.dg/copyin-1.c: New test.
20232 * testsuite/libgomp.c++/copyin-1.C: New test.
20234 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20236 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20238 * testsuite/libgomp.fortran/workshare1.f90: New test.
20240 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20242 * libgomp.fortran/sharing1.f90: New test.
20244 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20247 * testsuite/libgomp.c++/loop-7.C: New test.
20249 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20251 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20252 * testsuite/libgomp.fortran/reduction6.f90: New test.
20253 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20255 2005-10-23 Richard Henderson <rth@redhat.com>
20257 * testsuite/libgomp.c++/ctor-1.C: New.
20258 * testsuite/libgomp.c++/ctor-2.C: New.
20259 * testsuite/libgomp.c++/ctor-3.C: New.
20260 * testsuite/libgomp.c++/ctor-4.C: New.
20261 * testsuite/libgomp.c++/ctor-5.C: New.
20262 * testsuite/libgomp.c++/ctor-6.C: New.
20263 * testsuite/libgomp.c++/ctor-7.C: New.
20264 * testsuite/libgomp.c++/ctor-8.C: New.
20265 * testsuite/libgomp.c++/ctor-9.C: New.
20267 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20270 * testsuite/libgomp.c++/pr24455-1.C: New test.
20271 * testsuite/libgomp.c++/pr24455.C: New test.
20272 * testsuite/libgomp.dg/pr24455-1.c: New test.
20273 * testsuite/libgomp.dg/pr24455.c: New test.
20275 2005-10-20 Richard Henderson <rth@redhat.com>
20277 * testsuite/libgomp.c++/loop-6.C: New.
20278 * testsuite/libgomp.dg/loop-3.c: New.
20280 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20282 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20283 explicitly private.
20284 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20287 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20289 * testsuite/libgomp.fortran/jacobi.f: New test.
20291 2005-10-19 Richard Henderson <rth@redhat.com>
20293 * configure.tgt (i?86-linux): Default to with_arch instead of
20294 CFLAGS. Add -mtune to match target_cpu.
20295 (x86_64-linux): Tune to i686.
20297 * fortran.c (omp_test_nest_lock_): Fix typo.
20299 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20301 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20302 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20303 * testsuite/libgomp.dg/ordered-3.c: New test.
20305 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20306 Remove volatile keyword.
20308 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20309 in COMMON block to avoid warnings on 64-bit targets.
20311 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20313 * testsuite/libgomp.dg/shared-3.c: New test.
20315 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20317 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20318 * testsuite/libgomp.fortran/reduction5.f90: New test.
20320 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20322 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20324 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20325 flush loop now that __sync_synchronize has proper memory barrier.
20326 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20327 Add -ffixed-form to dg-options.
20329 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20331 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20332 from subdirectories.
20333 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20334 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20335 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20336 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20337 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20338 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20339 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20340 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20341 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20342 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20343 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20344 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20345 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20346 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20347 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20348 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20349 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20350 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20351 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20352 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20353 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20354 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20355 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20356 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20357 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20359 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20361 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20362 lang_library_path exists. Use find instead of glob to gather tests.
20363 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20365 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20367 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20368 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20369 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20370 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20371 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20372 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20373 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20374 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20375 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20376 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20377 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20378 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20379 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20381 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20383 * testsuite/libgomp.dg/vla-1.c: New test.
20385 * testsuite/libgomp.fortran/reference2.f90: New test.
20387 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20388 declaration of omp_get_thread_num.
20389 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20392 * testsuite/libgomp.fortran/reduction1.f90: New test.
20393 * testsuite/libgomp.fortran/reduction2.f90: New test.
20394 * testsuite/libgomp.fortran/reduction3.f90: New test.
20395 * testsuite/libgomp.fortran/reduction4.f90: New test.
20397 2005-10-13 Richard Henderson <rth@redhat.com>
20399 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20400 * Makefile.in: Regenerate.
20401 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20402 * libgomp.h: Include bar.h.
20403 (struct gomp_barrier): Remove.
20404 (struct gomp_team): Add barrier. Replace master_barrier with
20405 master_release. Replace threads with ordered_release.
20406 (struct gomp_thread): Replace barrier with release.
20407 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20408 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20409 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20410 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20411 (GOMP_single_copy_end): Likewise.
20412 * team.c (gomp_threads_dock): New.
20413 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20414 (gomp_thread_start): Use gomp_barrier_wait.
20415 (new_team, free_team): Update for gomp_team changes.
20416 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20417 (gomp_team_end): Use gomp_barrier_wait.
20418 (initialize_team): Update for gomp_thread changes.
20419 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20420 (gomp_work_share_end_nowait): Use atomic ops when available.
20421 * config/linux/bar.c, config/linux/bar.h: New files.
20422 * config/posix/bar.c, config/posix/bar.h: New files.
20424 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20426 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20427 * testsuite/libgomp.dg/single-2.c: New test.
20429 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20430 lang_link_flags): Unset, so that they aren't inherited from previously
20433 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20435 2005-10-12 Richard Henderson <rth@redhat.com>
20437 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20438 (libgomp_init): Use lang_test_file, lang_library_path, and
20439 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20441 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20442 (lang_test_file, lang_link_flags): New.
20443 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20445 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20446 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20447 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20448 testsuite/libgomp.c++/parallel-1.C,
20449 testsuite/libgomp.c++/reduction-1.C,
20450 testsuite/libgomp.c++/reduction-2.C,
20451 testsuite/libgomp.c++/reduction-3.C,
20452 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20453 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20454 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20455 New files, largely cribbed from the C testsuite.
20457 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20459 * testsuite/libgomp.fortran/character1.f90: New test.
20460 * testsuite/libgomp.fortran/character2.f90: New test.
20462 * testsuite/libgomp.dg/nested-1.c: New test.
20463 * testsuite/libgomp.dg/nested-2.c: New test.
20464 * testsuite/libgomp.fortran/do1.f90: New test.
20465 * testsuite/libgomp.fortran/do2.f90: New test.
20467 * testsuite/libgomp.fortran/reference1.f90: New test.
20469 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20471 * testsuite/libgomp.dg/reduction-1.c: New test.
20472 * testsuite/libgomp.dg/reduction-2.c: New test.
20473 * testsuite/libgomp.dg/reduction-3.c: New test.
20475 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20477 * testsuite/libgomp.dg/atomic-1.c: New test.
20478 * testsuite/libgomp.dg/atomic-2.c: New test.
20480 2005-10-09 Richard Henderson <rth@redhat.com>
20482 * critical.c (atomic_lock): New.
20483 (initialize_critical): Initialize it.
20484 (GOMP_atomic_start, GOMP_atomic_end): New.
20485 * libgomp.map: Export them.
20486 * libgomp_g.h: Declare them.
20488 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20490 2005-10-02 Richard Henderson <rth@redhat.com>
20492 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20493 to XCFLAGS instead of CFLAGS.
20495 2005-09-30 Richard Henderson <rth@redhat.com>
20497 * configure.ac: Determine whether -pthread or -lpthread is needed.
20498 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20499 * Makefile.in, configure: Rebuild.
20501 2005-09-28 Richard Henderson <rth@redhat.com>
20503 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20504 * testsuite/libgomp.dg/omp-single-3.c: New test.
20506 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20508 * testsuite/libgomp.dg/omp-single-2.c: New test.
20509 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20511 2005-09-27 Richard Henderson <rth@redhat.com>
20513 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20514 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20516 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20518 * testsuite/libgomp.dg/omp-loop03.c: New test.
20520 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20522 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20524 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20526 * testsuite/libgomp.dg/omp-single-1.c: New test.
20527 * testsuite/libgomp.dg/shared-1.c: Return 0.
20528 Add prototype for abort.
20529 * testsuite/libgomp.dg/shared-2.c: Likewise.
20531 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20533 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20536 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20538 * testsuite/libgomp.dg/shared-1.c: New test.
20539 * testsuite/libgomp.dg/shared-2.c: New test.
20541 2005-09-24 Richard Henderson <rth@redhat.com>
20543 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20545 2005-09-24 Richard Henderson <rth@redhat.com>
20547 * iter.c (gomp_iter_static_next): Round up when computing number
20548 of iterations. Don't bother distributing a remainder equally.
20550 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20551 Don't call srand. Zero b before testing.
20554 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20556 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20557 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20559 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20561 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20562 without !$omp end do, followed immediately by subroutine end.
20564 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20566 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20568 2005-09-22 Richard Henderson <rth@redhat.com>
20570 * critical.c (GOMP_critical_name_start): Change argument to void**.
20571 Reuse the pointer space if the mutex fits.
20572 (GOMP_critical_name_end): Likewise.
20573 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20574 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20575 (GOMP_critical_name_end): Likewise.
20576 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20577 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20579 2005-09-20 Richard Henderson <rth@redhat.com>
20581 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20582 (create_lock_lock): New.
20583 (initialize_critical): Initialize it.
20584 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20585 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20587 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20589 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20591 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20593 * testsuite/libgomp.dg/omp-loop01.c: New test.
20594 * testsuite/libgomp.dg/omp-loop02.c: New test.
20596 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20598 * configure.ac (AC_PROG_FC): Add.
20599 (USE_FORTRAN): New automake conditional.
20600 * configure: Rebuilt.
20601 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20602 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20603 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20604 Add rules to build them.
20605 * Makefile.in: Rebuilt.
20606 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20607 OMP_NEST_LOCK_KIND.
20608 * libgomp.map: Add Fortran wrappers.
20609 * libgomp_f.h.in: New file.
20610 * omp_lib.h.in: New file.
20611 * omp_lib.f90.in: New file.
20612 * fortran.c: New file.
20613 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20614 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20615 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20616 libgfortran has been built.
20617 * testsuite/libgomp.fortran/fortran.exp: New file.
20618 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20619 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20620 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20621 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20622 * testsuite/libgomp.fortran/omp_hello.f: New test.
20623 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20624 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20625 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20626 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20627 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20628 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20629 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20630 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20632 2005-08-30 Richard Henderson <rth@redhat.com>
20634 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20635 function for when aliases are not usable.
20636 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20637 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20638 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20639 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20640 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20641 GOMP_loop_ordered_guided_next): Likewise.
20642 * ordered.c (GOMP_ordered_start): Likewise.
20644 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20646 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20647 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20648 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20649 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20650 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20651 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20652 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20653 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20654 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20656 2005-07-07 Eric Christopher <echristo@redhat.com>
20657 Diego Novillo <dnovillo@redhat.com>
20659 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20660 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20662 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20663 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20664 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20665 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20666 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20667 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20668 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20670 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20672 * TOPLEVEL.patch: Remove.
20674 2005-05-16 Richard Henderson <rth@redhat.com>
20676 * configure.ac: Test for clock_gettime.
20677 * config.h.in, configure: Rebuild.
20678 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20679 (omp_get_wtime): Use clock_gettime if available.
20680 (omp_get_wtick): Use clock_getres if available.
20682 2005-05-11 Richard Henderson <rth@redhat.com>
20684 * config/linux/ia64/futex.h: New file.
20685 * configure.tgt: Use it.
20687 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20689 2005-05-07 Richard Henderson <rth@redhat.com>
20691 * config/linux/powerpc/futex.h: New file.
20692 * configure.tgt: Use it.
20694 * config/linux/i486/futex.h: Merge ...
20695 * config/linux/x86_64/futex.h: ... into ...
20696 * config/linux/x86/futex.h: ... here.
20697 * configure.tgt: Update to match.
20699 2005-05-06 Richard Henderson <rth@redhat.com>
20701 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20702 * config/linux/i486/futex.h: Likewise.
20703 * config/linux/x86_64/futex.h: Likewise.
20705 * config/linux/lock.c: New file.
20706 * config/linux/omp-lock.h: New file.
20708 * critical.c, env.h: Don't include omp.h
20709 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20710 * config/posix/time.c: Likewise.
20711 * config/posix/omp-lock.h: New file.
20712 * libgomp.h: Include omp-lock.h and omp.h.
20713 * Makefile.am (nodist_include_HEADERS): New.
20715 * configure.ac (PERL): New.
20716 * mkomp_h.pl: New file.
20717 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20719 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20721 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20722 build directory. Re-add -march=i486 hack.
20724 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20725 (libgomp_link_flags): Remove.
20726 (libgomp_initialized): Remove.
20727 (libgomp_init): Don't protect from reinitialization. Copy code
20728 from libstdc++ for getting the multilib set correctly.
20730 2005-05-05 Richard Henderson <rth@redhat.com>
20732 * config/linux/alpha/futex.h: New file.
20733 * configure.tgt (alpha*-*-linux*): Use it.
20735 * config/posix/mutex.c: New file.
20736 * config/posix/sem.c: Use libgomp.h.
20738 * configure.tgt (x86_64-linux): Also test CC for -m32.
20739 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20741 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20744 * Makefile.am (SUBDIRS): New.
20745 (libgomp_la_LDFLAGS): Add -lpthread.
20746 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20747 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20749 * libgomp_g.h: New file.
20750 * libgomp.h: Split out all public declarations to libgomp_g.h.
20751 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20752 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20753 * config/linux/sem.h: Likewise.
20754 * config/posix/sem.h: Likewise.
20756 * Makefile.am (AM_LDFLAGS): New.
20757 (libgomp_version_script): Split out from ...
20758 (libgomp_la_LDFLAGS): ... here.
20759 (libgomp_version_info): New.
20760 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
20761 (LIBGOMP_ENABLE): New.
20762 (LIBGOMP_CHECK_LINKER_FEATURES): New.
20763 (LIBGOMP_ENABLE_SYMVERS): New.
20764 * configure.ac (AC_INIT): Version 1.0.
20765 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
20766 (enable-linux-futex): Likewise. Rename from enable-futex.
20767 (libtool_VERSION): New.
20768 (LIBGOMP_ENABLE_SYMVERS): Use it.
20769 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
20770 * Makefile.in, aclocal.m4, configure: Rebuild.
20772 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
20773 (gomp_mutex_unlock_slow): Fix typo.
20774 * config/linux/sem.c: Similarly.
20775 (gomp_sem_post_slow): Fix typo.
20776 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
20777 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
20778 [__PIC__] (sys_futex0): Don't use tmp output in asm.
20780 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
20781 (libgomp_la_LDFLAGS): Add top_srcdir to path.
20782 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
20783 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
20784 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
20785 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
20786 LDFLAGS. Pull enable_futex check to top-level.
20787 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
20788 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
20790 First attempt at real configury.
20791 * Makefile, config.h: Remove file.
20792 * Makefile.am, Makefile.in: New file.
20793 * acinclude.m4 aclocal.m4: New file.
20794 * configure.ac, configure.tgt, configure: New file.
20796 * config/posix/lock.c: Rename from sys-lock.c.
20797 * config/posix/mutex.h: Rename from sys-mutex.h.
20798 * config/posix/sem.c: Rename from sys-sem.c.
20799 * config/posix/sem.h: Rename from sys-sem.h.
20800 * config/posix/proc.c: Rename from sys-proc.c.
20801 * config/posix/time.c: Rename from sys-proc.c.
20803 * config/linux/mutex.c: New file.
20804 * config/linux/mutex.h: New file.
20805 * config/linux/sem.c: New file.
20806 * config/linux/sem.h: New file.
20807 * config/linux/i486/futex.h: New file.
20808 * config/linux/x86_64/futex.h: New file.
20810 2005-05-04 Richard Henderson <rth@redhat.com>
20812 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
20813 * libgomp.h: Declare them.
20814 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
20815 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
20817 2005-05-04 Richard Henderson <rth@redhat.com>
20819 * libgomp-1 code drop
20821 2005-05-04 Richard Henderson <rth@redhat.com>
20823 * iter.c (gomp_iter_static_next): Return tri-state on 0.
20824 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
20825 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
20826 (gomp_iter_static_next): Update.
20827 (gomp_ordered_static_next): Update.
20828 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
20829 (gomp_loop_ordered_static_start): Likewise. Exit early for a
20830 totally empty range.
20831 (gomp_loop_ordered_static_next): Refine test for calling
20832 gomp_ordered_static_next.
20833 * testsuite/ordered-1.c: Add case for more threads than iterations.
20835 * iter.c (gomp_iter_runtime_next_locked): Remove.
20836 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
20837 gomp_loop_guided_start, gomp_loop_ordered_static_start,
20838 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
20839 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
20840 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
20841 gomp_loop_ordered_guided_next): Downcase name, make static, add
20842 an external alias with the old name.
20843 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
20844 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
20845 switch and call one of the above static functions.
20846 * libgomp.h: Update.
20848 * work.c (gomp_work_share_start): Lock the mutex for !first too.
20849 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
20850 GOMP_loop_guided_start, GOMP_loop_runtime_start,
20851 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20852 GOMP_loop_ordered_guided_start): Update to match.
20853 * sections.c (GOMP_sections_start): Likewise.
20854 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
20856 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20857 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
20858 Use bounds check instead of modulus.
20859 (gomp_ordered_sync): Split out of GOMP_ordered_start.
20860 (gomp_ordered_last): Don't sync with ordered_owner here.
20861 (gomp_ordered_next): Likewise.
20862 (gomp_ordered_static_loop_next): Likewise.
20863 * loop.c, libgomp.h: Update to match.
20865 * libgomp.h (GOMP_barrier): Declare.
20867 * testsuite/barrier-1.c: New file.
20868 * testsuite/critical-1.c: New file.
20869 * testsuite/ordered-2.c: New file.
20870 * testsuite/ordered-1.c: New file.
20871 * testsuite/sections-1.c: New file.
20872 * testsuite/single-1.c: New file.
20873 * testsuite/Makefile (TESTS): Add them.
20875 2005-05-04 Richard Henderson <rth@redhat.com>
20877 * libgomp.h (struct gomp_work_share): Add ordered_owner.
20878 * loop.c (GOMP_loop_static_start): If not the startup thread,
20879 acquire the mutex to wait for initialization complete.
20880 (GOMP_loop_ordered_static_start): Likewise.
20881 (GOMP_loop_ordered_runtime_start): Likewise.
20882 (GOMP_loop_ordered_static_first): Remove.
20883 (GOMP_loop_ordered_dynamic_first): Remove.
20884 (GOMP_loop_ordered_guided_first): Remove.
20885 (GOMP_loop_ordered_runtime_first): Remove.
20886 * ordered.c (gomp_ordered_loop_first): Post to own release when
20887 we're the first thread.
20888 (gomp_ordered_loop_last): Wait on release if not owner.
20889 (gomp_ordered_loop_next): Likewise.
20890 (gomp_ordered_static_loop_init): New.
20891 (gomp_ordered_static_loop_next): Use ordered_owner.
20892 (GOMP_ordered_start): Likewise.
20893 * work.c (gomp_new_work_share): Initialize ordered_owner.
20895 2005-05-03 Richard Henderson <rth@redhat.com>
20897 * Makefile (OPT): New.
20900 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
20901 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
20902 * libgomp.h, libgomp.map, NOTES: Update to match.
20904 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
20905 Add initialized and thr members.
20906 (gomp_thread_start): Pause when initially spawned to wait for
20907 the whole team to be created.
20908 (gomp_team_start): Release team members at the end.
20910 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
20911 (f_foo_1): Use GOMP_loop_end.
20912 (f_foo_2): Use GOMP_loop_end_nowait.
20914 * testsuite/loop-2.c: New file.
20915 * testsuite/Makefile (TESTS): Add it.
20917 2005-05-03 Richard Henderson <rth@redhat.com>
20919 * iter.c (gomp_iter_static_next): Fix overflow check typo.
20920 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
20921 * team.c (new_team): Initialize oldest_live_gen to 1 if no
20922 initial work_share.
20924 * testsuite/Makefile: New file.
20925 * testsuite/loop-1.c: New file.
20927 2005-05-03 Richard Henderson <rth@redhat.com>
20929 Initial implementation and checkin.
20931 Copyright (C) 2005-2024 Free Software Foundation, Inc.
20933 Copying and distribution of this file, with or without modification,
20934 are permitted in any medium without royalty provided the copyright
20935 notice and this notice are preserved.