1 2024-04-08 Thomas Schwinge <tschwinge@baylibre.com>
3 * plugin/plugin-gcn.c (init_hsa_context): Add and handle
4 'bool probe' parameter. Adjust all users; errors during device
6 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Aside from
7 'CUDA_ERROR_NO_DEVICE', errors during device probing are fatal.
9 2024-04-05 Thomas Schwinge <tschwinge@baylibre.com>
11 * testsuite/libgomp.c/reverse-offload-sm30.c: Set 'GCC_COLORS' to the empty string.
13 2024-04-05 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.c++/pr114572.C: New test.
18 2024-04-04 Tobias Burnus <tburnus@baylibre.com>
20 * libgomp.texi (TR12): Honor post-TR12 directive name change; add
21 item about curly braces/BLOCK permitted in canonical loop nests.
23 2024-04-02 Jakub Jelinek <jakub@redhat.com>
25 * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
27 (omp_target_associate_ptr): Fix duplicated words; either either ->
29 (omp_init_allocator): Fix duplicated words; be be -> be.
30 (omp_realloc): Fix duplicated words; is is -> is.
31 (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
32 * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
35 2024-03-25 Richard Biener <rguenther@suse.de>
37 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1036.
39 (isa_hsa_name): Handle gfx1036.
41 (max_isa_vgprs): Likewise.
43 2024-03-22 Kwok Cheung Yeung <kcyeung@baylibre.com>
45 * config/accel/target-indirect.c: Include string.h and hashtab.h.
46 Remove include of splay-tree.h. Update comments.
47 (splay_tree_prefix, splay_tree_c): Delete.
48 (struct indirect_map_t): New.
49 (hash_entry_type, htab_alloc, htab_free, htab_hash, htab_eq): New.
50 (GOMP_INDIRECT_ADD_MAP): Remove volatile qualifier.
51 (USE_SPLAY_TREE_LOOKUP): Rename to...
52 (USE_HASHTAB_LOOKUP): ..this.
53 (indirect_map, indirect_array): Delete.
55 (build_indirect_map): Remove locking. Build indirect map using
57 (GOMP_target_map_indirect_ptr): Use indirect_htab to lookup target
59 (GOMP_target_map_indirect_ptr): Remove volatile qualifier.
60 * config/gcn/team.c (gomp_gcn_enter_kernel): Call build_indirect_map
61 from first thread of first team only.
62 * config/nvptx/team.c (gomp_nvptx_main): Likewise.
63 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c (main):
64 Add missing break statements.
65 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: Remove
68 2024-03-22 Andrew Stubbs <ams@baylibre.com>
70 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): GFX1103.
72 (isa_hsa_name): Handle gfx1103.
74 (max_isa_vgprs): Likewise.
76 2024-03-14 Thomas Schwinge <tschwinge@baylibre.com>
78 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: Fix 'char'
79 initialization, copy, check.
81 2024-03-13 Tobias Burnus <tburnus@baylibre.com>
84 * testsuite/libgomp.fortran/declare-target-indirect-4.f90: New test.
86 2024-03-12 Tobias Burnus <tburnus@baylibre.com>
88 * libgomp.texi (Device Memory Routines): Swap item order to match
89 the order of the '@node's of the '@subsection's.
91 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
93 * plugin/plugin-gcn.c (GOMP_OFFLOAD_can_run): Don't consider
94 'GCN_SUPPRESS_HOST_FALLBACK' anymore (assume always-'true').
95 (init_hsa_context): Adjust 'GCN_SUPPRESS_HOST_FALLBACK' error
98 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
100 * plugin/plugin-nvptx.c (nvptx_get_num_devices):
101 'cuDeviceGetCount' failure is fatal.
103 2024-03-08 Thomas Schwinge <tschwinge@baylibre.com>
105 * plugin/plugin-gcn.c (init_hsa_runtime_functions): Fatal error
107 * plugin/plugin-nvptx.c (init_cuda_lib): Likewise.
109 2024-03-06 John David Anglin <danglin@gcc.gnu.org>
112 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
114 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
116 * testsuite/libgomp.c/omp-loop03.c: Likewise.
118 2024-03-04 Jakub Jelinek <jakub@redhat.com>
121 * target.c (gomp_target_rev): Change host_fn type and corresponding
122 cast from void (*)() to void (*) (void *).
124 2024-03-01 Jakub Jelinek <jakub@redhat.com>
125 Tobias Burnus <tburnus@baylibre.com>
128 * testsuite/libgomp.c++/target-lambda-3.C: Moved from
129 gcc/testsuite/g++.dg/gomp/ and fixed is-mapped handling.
130 * testsuite/libgomp.c++/target-lambda-1.C: Modify to also
131 also work without offloading.
132 * testsuite/libgomp.c++/firstprivate-1.C: New test.
133 * testsuite/libgomp.c++/firstprivate-2.C: New test.
134 * testsuite/libgomp.c++/private-1.C: New test.
135 * testsuite/libgomp.c++/private-2.C: New test.
136 * testsuite/libgomp.c++/target-lambda-4.C: New test.
137 * testsuite/libgomp.c++/use_device_ptr-1.C: New test.
139 2024-02-27 Tobias Burnus <tburnus@baylibre.com>
141 * libgomp.texi (OpenACC Runtime Library Routines): Document new 3.3
142 routines that simply map to their C counterpart.
143 * openacc.f90 (openacc): Add them.
144 * openacc_lib.h: Likewise.
145 * testsuite/libgomp.oacc-fortran/acc_host_device_ptr.f90: New test.
146 * testsuite/libgomp.oacc-fortran/acc-memcpy.f90: New test.
147 * testsuite/libgomp.oacc-fortran/acc-memcpy-2.f90: New test.
148 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Crossref to f90 test.
149 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
150 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
152 2024-02-21 Tobias Burnus <tburnus@baylibre.com>
154 * libgomp.texi (OpenMP Context Selectors): Add 'nvptx64' as additional
155 'arch' value for nvptx.
157 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
159 * libgomp.texi (OpenMP 5.1): Mark indirect call support as fully
162 2024-02-15 Kwok Cheung Yeung <kcyeung@baylibre.com>
164 * testsuite/libgomp.fortran/declare-target-indirect-1.f90: New.
165 * testsuite/libgomp.fortran/declare-target-indirect-2.f90: New.
166 * testsuite/libgomp.fortran/declare-target-indirect-3.f90: New.
168 2024-02-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
171 * testsuite/libgomp.c/alloc-pinned-1.c [!__linux__] (CHECK_SIZE):
173 * testsuite/libgomp.c/alloc-pinned-2.c [!__linux__] (CHECK_SIZE):
176 2024-02-11 John David Anglin <danglin@gcc.gnu.org>
179 * configure.tgt (hppa*-*-linux*): Define config_path.
181 2024-02-01 John David Anglin <danglin@gcc.gnu.org>
183 * testsuite/libgomp.c++/loop-3.C: Set num_threads to 50
185 * testsuite/libgomp.c/omp-loop03.c: Likewise.
187 2024-01-29 Tobias Burnus <tburnus@baylibre.com>
189 * testsuite/libgomp.c/declare-variant-4.h: Use gfx1100/gfx1030
190 function not gfx90a for gfx1100/gfx1030 context selector.
192 2024-01-26 Richard Biener <rguenther@suse.de>
194 * plugin/plugin-gcn.c (suitable_hsa_agent_p): Filter out
195 agents with unsupported ISA.
197 2024-01-26 Richard Biener <rguenther@suse.de>
199 * plugin/plugin-gcn.c
200 (EF_AMDGPU_MACH::EF_AMDGPU_MACH_UNSUPPORTED): Add.
201 (isa_code): Return that instead of -1.
202 (GOMP_OFFLOAD_init_device): Adjust.
204 2024-01-26 Tobias Burnus <tburnus@baylibre.com>
206 * testsuite/libgomp.c/declare-variant-4.h: Add variant functions
207 for gfx1030 and gfx1100.
208 * testsuite/libgomp.c/declare-variant-4-gfx1030.c: New test.
209 * testsuite/libgomp.c/declare-variant-4-gfx1100.c: New test.
211 2024-01-26 Andrew Stubbs <ams@baylibre.com>
213 * config/gcn/time.c (RTC_TICKS): Configure RDNA3.
214 (omp_get_wtime): Add RDNA3-compatible variant.
215 * plugin/plugin-gcn.c (max_isa_vgprs): Tune for gfx1030 and gfx1100.
217 2024-01-24 Tobias Burnus <tburnus@baylibre.com>
218 Sandra Loosemore <sandra@codesourcery.com>
220 * libgomp.texi (Runtime Library Routines): Document
221 omp_pause_resource, omp_pause_resource_all and
222 omp_target_memcpy{,_rect}{,_async}.
224 2024-01-22 Tobias Burnus <tburnus@baylibre.com>
226 * testsuite/libgomp.c/declare-variant-4-fiji.c: Xfail as fiji
227 support is no longer enabled by default.
228 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
230 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
232 * testsuite/libgomp.fortran/alloc-comp-3.f90: Increase
233 timeout by 2 on hppa*-*-*.
235 2024-01-20 John David Anglin <danglin@gcc.gnu.org>
237 * testsuite/libgomp.c/simd-math-1.c: Don't run on
240 2024-01-17 Jakub Jelinek <jakub@redhat.com>
243 * testsuite/libgomp.c/bitint-1.c: New test.
245 2024-01-11 Julian Brown <julian@codesourcery.com>
247 * libgomp.texi: C/C++ lvalues are supported now for map/to/from.
248 * testsuite/libgomp.c-c++-common/ind-base-4.c: New test.
249 * testsuite/libgomp.c-c++-common/unary-ptr-1.c: New test.
251 2024-01-10 Jakub Jelinek <jakub@redhat.com>
254 * configure.ac (FLOCK): Use $libgomp_abs_srcdir/testsuite/flock
255 instead of \$(abs_top_srcdir)/testsuite/flock.
256 * configure: Regenerated.
258 2024-01-09 Julian Brown <julian@codesourcery.com>
260 * testsuite/libgomp.c++/baseptrs-4.C: Remove commented-out cases that
262 * testsuite/libgomp.c++/baseptrs-6.C: New test.
263 * testsuite/libgomp.c++/ind-base-1.C: New test.
264 * testsuite/libgomp.c++/ind-base-2.C: New test.
265 * testsuite/libgomp.c++/lvalue-tofrom-1.C: New test.
266 * testsuite/libgomp.c++/lvalue-tofrom-2.C: New test.
267 * testsuite/libgomp.c++/map-comma-1.C: New test.
268 * testsuite/libgomp.c++/map-rvalue-ref-1.C: New test.
269 * testsuite/libgomp.c++/struct-ref-1.C: New test.
270 * testsuite/libgomp.c-c++-common/array-field-1.c: New test.
271 * testsuite/libgomp.c-c++-common/array-of-struct-1.c: New test.
272 * testsuite/libgomp.c-c++-common/array-of-struct-2.c: New test.
274 2024-01-09 Jakub Jelinek <jakub@redhat.com>
277 * configure.ac (FLOCK): Use \$(abs_top_srcdir)/testsuite/flock
278 rather than $srcdir/testsuite/flock.
279 * configure: Regenerated.
281 2024-01-08 Thomas Schwinge <thomas@codesourcery.com>
283 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
284 'EF_AMDGPU_MACH_AMDGCN_GFX1100'.
286 2024-01-08 Julian Brown <julian@codesourcery.com>
288 * plugin/plugin-gcn.c (hsa_runtime_fn_info): Add
289 hsa_amd_memory_lock_fn, hsa_amd_memory_unlock_fn,
290 hsa_amd_memory_async_copy_rect_fn function pointers.
291 (init_hsa_runtime_functions): Add above functions, with
293 (GOMP_OFFLOAD_memcpy2d, GOMP_OFFLOAD_memcpy3d): New functions.
295 2024-01-08 Tobias Burnus <tobias@codesourcery.com>
297 * plugin/plugin-gcn.c (gcn_gfx1100_s): New const string.
298 (gcn_isa_name_len): Fix length.
299 (isa_hsa_name, isa_code, max_isa_vgprs): Handle gfx1100.
301 2024-01-06 Tobias Burnus <tobias@codesourcery.com>
303 * libgomp.texi (OpenMP Technical Report 12): Fix a typo.
304 (Device Memory Routines): Fix OpenMP 5.1 spec refs; add
305 omp_target_is_accessible.
306 (Environment Display Routine): Uncomment and add
307 omp_display_env description.
308 (OMP_DISPLAY_ENV): Update wording, add 'see also'.
310 2024-01-06 Mark Wielaard <mark@klomp.org>
312 * configure: Regenerate.
314 2024-01-03 Jakub Jelinek <jakub@redhat.com>
316 * libgomp.texi: Bump @copying's copyright year.
318 2023-12-21 Julian Brown <julian@codesourcery.com>
320 * testsuite/libgomp.fortran/target-enter-data-6.f90: Remove XFAIL.
322 2023-12-20 Julian Brown <julian@codesourcery.com>
324 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d): Adjust parameters to
325 avoid out-of-bounds array checks in CUDA runtime.
326 (GOMP_OFFLOAD_memcpy3d): Likewise.
327 * testsuite/libgomp.c-c++-common/memcpyxd-bias-1.c: New test.
329 2023-12-18 Jakub Jelinek <jakub@redhat.com>
331 * testsuite/libgomp.c/declare-variant-1.c: Restrict the test to x86,
332 drop because of that unneeded target selector from other directives
333 and remove the aarch64 specific ones.
335 2023-12-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
337 * testsuite/libgomp.c/declare-variant-1.c: Fixed test.
338 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
340 2023-12-15 Thomas Schwinge <thomas@codesourcery.com>
342 * testsuite/libgomp.fortran/map-subarray-5.f90: Restrict
343 'dg-output's to 'target offload_device_nonshared_as'.
345 2023-12-15 Julian Brown <julian@codesourcery.com>
347 * oacc-mem.c (find_group_last, goacc_enter_data_internal,
348 goacc_exit_data_internal, GOACC_enter_exit_data): Add
349 GOMP_MAP_STRUCT_UNORD support.
350 * target.c (gomp_map_vars_internal): Add GOMP_MAP_STRUCT_UNORD support.
351 Detect incorrect use of variable indexing of arrays of structs.
352 (GOMP_target_enter_exit_data, gomp_target_task_fn): Add
353 GOMP_MAP_STRUCT_UNORD support.
354 * testsuite/libgomp.c-c++-common/map-arrayofstruct-1.c: New test.
355 * testsuite/libgomp.c-c++-common/map-arrayofstruct-2.c: New test.
356 * testsuite/libgomp.c-c++-common/map-arrayofstruct-3.c: New test.
357 * testsuite/libgomp.fortran/map-subarray-5.f90: New test.
359 2023-12-13 Julian Brown <julian@codesourcery.com>
361 * testsuite/libgomp.fortran/map-subarray.f90: New test.
362 * testsuite/libgomp.fortran/map-subarray-2.f90: New test.
363 * testsuite/libgomp.fortran/map-subarray-3.f90: New test.
364 * testsuite/libgomp.fortran/map-subarray-4.f90: New test.
365 * testsuite/libgomp.fortran/map-subarray-6.f90: New test.
366 * testsuite/libgomp.fortran/map-subarray-7.f90: New test.
367 * testsuite/libgomp.fortran/map-subarray-8.f90: New test.
368 * testsuite/libgomp.fortran/map-subcomponents.f90: New test.
369 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Adjust for
370 descriptor-mapping changes. Remove XFAIL.
372 2023-12-13 Julian Brown <julian@codesourcery.com>
374 * target.c (gomp_map_pointer): Modify zero-length array section
376 (gomp_attach_pointer): Likewise.
377 (gomp_map_fields_existing): Use gomp_map_0len_lookup.
378 (gomp_attach_pointer): Allow attaching null pointers (or Fortran
379 "unassociated" pointers).
380 (gomp_map_vars_internal): Handle zero-sized struct members. Add
381 diagnostic for unmapped struct pointer members.
382 * testsuite/libgomp.c-c++-common/baseptrs-1.c: New test.
383 * testsuite/libgomp.c-c++-common/baseptrs-2.c: New test.
384 * testsuite/libgomp.c-c++-common/baseptrs-6.c: New test.
385 * testsuite/libgomp.c-c++-common/baseptrs-7.c: New test.
386 * testsuite/libgomp.c-c++-common/ptr-attach-2.c: New test.
387 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Fix missing
389 * testsuite/libgomp.c-c++-common/target-implicit-map-5.c: New test.
390 * testsuite/libgomp.c-c++-common/target-map-zlas-1.c: New test.
391 * testsuite/libgomp.c++/class-array-1.C: New test.
392 * testsuite/libgomp.c++/baseptrs-3.C: New test.
393 * testsuite/libgomp.c++/baseptrs-4.C: New test.
394 * testsuite/libgomp.c++/baseptrs-5.C: New test.
395 * testsuite/libgomp.c++/baseptrs-8.C: New test.
396 * testsuite/libgomp.c++/baseptrs-9.C: New test.
397 * testsuite/libgomp.c++/ref-mapping-1.C: New test.
398 * testsuite/libgomp.c++/target-48.C: New test.
399 * testsuite/libgomp.c++/target-49.C: New test.
400 * testsuite/libgomp.c++/target-exit-data-reftoptr-1.C: New test.
401 * testsuite/libgomp.c++/target-lambda-1.C: Update for OpenMP 5.2
403 * testsuite/libgomp.c++/target-this-3.C: Likewise.
404 * testsuite/libgomp.c++/target-this-4.C: Likewise.
405 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Add temporary XFAIL.
406 * testsuite/libgomp.fortran/target-enter-data-6.f90: Likewise.
408 2023-12-13 Thomas Schwinge <thomas@codesourcery.com>
410 * config/linux/allocator.c (linux_memspace_alloc): Fix 'size_t'
411 vs. '%ld' format string mismatch.
413 2023-12-13 Andrew Stubbs <ams@codesourcery.com>
414 Thomas Schwinge <thomas@codesourcery.com>
416 * allocator.c (MEMSPACE_ALLOC): Add PIN.
417 (MEMSPACE_CALLOC): Add PIN.
418 (MEMSPACE_REALLOC): Add PIN.
419 (MEMSPACE_FREE): Add PIN.
420 (MEMSPACE_VALIDATE): Add PIN.
421 (omp_init_allocator): Use MEMSPACE_VALIDATE to check pinning.
422 (omp_aligned_alloc): Add pinning to all MEMSPACE_* calls.
423 (omp_aligned_calloc): Likewise.
424 (omp_realloc): Likewise.
425 (omp_free): Likewise.
426 * config/linux/allocator.c: New file.
427 * config/nvptx/allocator.c (MEMSPACE_ALLOC): Add PIN.
428 (MEMSPACE_CALLOC): Add PIN.
429 (MEMSPACE_REALLOC): Add PIN.
430 (MEMSPACE_FREE): Add PIN.
431 (MEMSPACE_VALIDATE): Add PIN.
432 * config/gcn/allocator.c (MEMSPACE_ALLOC): Add PIN.
433 (MEMSPACE_CALLOC): Add PIN.
434 (MEMSPACE_REALLOC): Add PIN.
435 (MEMSPACE_FREE): Add PIN.
436 * libgomp.texi: Switch pinned trait to supported.
437 (MEMSPACE_VALIDATE): Add PIN.
438 * testsuite/libgomp.c/alloc-pinned-1.c: New test.
439 * testsuite/libgomp.c/alloc-pinned-2.c: New test.
440 * testsuite/libgomp.c/alloc-pinned-3.c: New test.
441 * testsuite/libgomp.c/alloc-pinned-4.c: New test.
443 2023-12-11 Lipeng Zhu <lipeng.zhu@intel.com>
445 * testsuite/libgomp.fortran/rwlock_1.f90: New file.
446 * testsuite/libgomp.fortran/rwlock_2.f90: New file.
447 * testsuite/libgomp.fortran/rwlock_3.f90: New file.
449 2023-12-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
451 * testsuite/libgomp.c/declare-variant-1.c: Adapt test for aarch64.
452 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
454 2023-12-11 Tobias Burnus <tobias@codesourcery.com>
456 * libgomp_g.h (GOMP_add_alloc, GOMP_is_alloc): Add.
458 2023-12-08 Tobias Burnus <tobias@codesourcery.com>
460 * allocator.c (struct fort_alloc_splay_tree_key_s,
461 fort_alloc_splay_compare, GOMP_add_alloc, GOMP_is_alloc): New.
462 * libgomp.h: Define splay_tree_static for 'reverse' splay tree.
463 * libgomp.map (GOMP_5.1.2): New; add GOMP_add_alloc and
464 GOMP_is_alloc; move GOMP_target_map_indirect_ptr from ...
465 (GOMP_5.1.1): ... here.
466 * libgomp.texi (Impl. Status, Memory management): Update for
467 allocators/allocate directives.
468 * splay-tree.c: Handle splay_tree_static define to declare all
470 (splay_tree_lookup_node): New.
471 * splay-tree.h: Handle splay_tree_decl_only define.
472 (splay_tree_lookup_node): New prototype.
473 * target.c: Define splay_tree_static for 'reverse'.
474 * testsuite/libgomp.fortran/allocators-1.f90: New test.
475 * testsuite/libgomp.fortran/allocators-2.f90: New test.
476 * testsuite/libgomp.fortran/allocators-3.f90: New test.
477 * testsuite/libgomp.fortran/allocators-4.f90: New test.
478 * testsuite/libgomp.fortran/allocators-5.f90: New test.
480 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
482 * config/gcn/libgomp-gcn.h (TEAM_ARENA_START): Move to here.
483 (TEAM_ARENA_FREE): Likewise.
484 (TEAM_ARENA_END): Likewise.
485 (GCN_LOWLAT_HEAP): New.
486 * config/gcn/team.c (LITTLEENDIAN_CPU): New, and import hsa.h.
487 (__gcn_lowlat_init): New prototype.
488 (gomp_gcn_enter_kernel): Initialize the low-latency heap.
489 * libgomp.h (TEAM_ARENA_START): Move to libgomp.h.
490 (TEAM_ARENA_FREE): Likewise.
491 (TEAM_ARENA_END): Likewise.
492 * plugin/plugin-gcn.c (lowlat_size): New variable.
493 (print_kernel_dispatch): Label the group_segment_size purpose.
494 (init_environment_variables): Read GOMP_GCN_LOWLAT_POOL.
495 (create_kernel_dispatch): Pass low-latency head allocation to kernel.
496 (run_kernel): Use shadow; don't assume values.
497 * testsuite/libgomp.c/omp_alloc-traits.c: Enable for amdgcn.
498 * config/gcn/allocator.c: New file.
499 * libgomp.texi: Document low-latency implementation details.
501 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
503 * allocator.c (MEMSPACE_VALIDATE): New macro.
504 (omp_init_allocator): Use MEMSPACE_VALIDATE.
505 (omp_aligned_alloc): Use OMP_LOW_LAT_MEM_ALLOC_INVALID.
506 (omp_aligned_calloc): Likewise.
507 (omp_realloc): Likewise.
508 * config/nvptx/allocator.c (nvptx_memspace_validate): New function.
509 (MEMSPACE_VALIDATE): New macro.
510 (OMP_LOW_LAT_MEM_ALLOC_INVALID): New define.
511 * libgomp.texi: Document low-latency implementation details.
512 * testsuite/libgomp.c/omp_alloc-1.c (main): Add gnu_lowlat.
513 * testsuite/libgomp.c/omp_alloc-2.c (main): Add gnu_lowlat.
514 * testsuite/libgomp.c/omp_alloc-3.c (main): Add gnu_lowlat.
515 * testsuite/libgomp.c/omp_alloc-4.c (main): Add access trait.
516 * testsuite/libgomp.c/omp_alloc-5.c (main): Add gnu_lowlat.
517 * testsuite/libgomp.c/omp_alloc-6.c (main): Add access trait.
518 * testsuite/libgomp.c/omp_alloc-traits.c: New test.
520 2023-12-06 Andrew Stubbs <ams@codesourcery.com>
521 Kwok Cheung Yeung <kcy@codesourcery.com>
522 Thomas Schwinge <thomas@codesourcery.com>
524 * allocator.c (MEMSPACE_ALLOC): New macro.
525 (MEMSPACE_CALLOC): New macro.
526 (MEMSPACE_REALLOC): New macro.
527 (MEMSPACE_FREE): New macro.
528 (predefined_alloc_mapping): New array. Add _Static_assert to match.
529 (ARRAY_SIZE): New macro.
530 (omp_aligned_alloc): Use MEMSPACE_ALLOC.
531 Implement fall-backs for predefined allocators. Simplify existing
533 (omp_free): Use MEMSPACE_FREE.
534 (omp_calloc): Use MEMSPACE_CALLOC. Implement fall-backs for
535 predefined allocators. Simplify existing fall-backs.
536 (omp_realloc): Use MEMSPACE_REALLOC, MEMSPACE_ALLOC, and MEMSPACE_FREE.
537 Implement fall-backs for predefined allocators. Simplify existing
539 * config/nvptx/team.c (__nvptx_lowlat_pool): New asm variable.
540 (__nvptx_lowlat_init): New prototype.
541 (gomp_nvptx_main): Call __nvptx_lowlat_init.
542 * libgomp.texi: Update memory space table.
543 * plugin/plugin-nvptx.c (lowlat_pool_size): New variable.
544 (GOMP_OFFLOAD_init_device): Read the GOMP_NVPTX_LOWLAT_POOL envvar.
545 (GOMP_OFFLOAD_run): Apply lowlat_pool_size.
546 * basic-allocator.c: New file.
547 * config/nvptx/allocator.c: New file.
548 * testsuite/libgomp.c/omp_alloc-1.c: New test.
549 * testsuite/libgomp.c/omp_alloc-2.c: New test.
550 * testsuite/libgomp.c/omp_alloc-3.c: New test.
551 * testsuite/libgomp.c/omp_alloc-4.c: New test.
552 * testsuite/libgomp.c/omp_alloc-5.c: New test.
553 * testsuite/libgomp.c/omp_alloc-6.c: New test.
555 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
557 * testsuite/libgomp.c/declare-variant-4-fiji.c: Adjust.
558 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
559 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
560 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
561 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
562 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
563 * testsuite/libgomp.c/declare-variant-4.h: Likewise.
564 * testsuite/libgomp.c/declare-variant-4.c: New.
566 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
568 * testsuite/libgomp.c/declare-variant-3-sm30.c: Turn 'dg-do run'
570 * testsuite/libgomp.c/declare-variant-3.c: New.
571 * testsuite/libgomp.c/declare-variant-3.h: Extend.
573 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
575 * testsuite/libgomp.c/declare-variant-3-sm30.c: Restrict
576 'scan-offload-tree-dump' to 'only_for_offload_target nvptx-none'.
577 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
578 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
579 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
580 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
581 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
582 * testsuite/libgomp.c/declare-variant-4-fiji.c: Restrict
583 'scan-offload-tree-dump' to
584 'only_for_offload_target amdgcn-amdhsa'.
585 * testsuite/libgomp.c/declare-variant-4-gfx803.c: Likewise.
586 * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
587 * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
588 * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
589 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
591 2023-11-30 Thomas Schwinge <thomas@codesourcery.com>
593 * testsuite/libgomp.c/declare-variant-3-sm30.c:
594 'dg-additional-options -foffload=nvptx-none'.
595 * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
596 * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
597 * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
598 * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
599 * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
601 2023-11-29 Thomas Schwinge <thomas@codesourcery.com>
603 * testsuite/libgomp.c/target-simd-clone-1.c: Restrict
604 'scan-offload-ipa-dump's to
605 'only_for_offload_target amdgcn-amdhsa'.
606 * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
607 * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
609 2023-11-24 Tobias Burnus <tobias@codesourcery.com>
611 * libgomp.texi (5.2 Impl. Status): An argument to the destroy clause
614 2023-11-22 Thomas Schwinge <thomas@codesourcery.com>
616 * testsuite/libgomp.c/declare-variant-3.h (f30, f35, f53, f70)
617 (f75, f80, f): Add '__attribute__ ((noipa))'.
618 * testsuite/libgomp.c/declare-variant-4.h (gfx803, gfx900, gfx906)
619 (gfx908, gfx90a, f): Likewise.
621 2023-11-15 Andrew Stubbs <ams@codesourcery.com>
622 Andrew Jenner <andrew@codesourcery.com>
624 * plugin/plugin-gcn.c (max_isa_vgprs): New.
625 (run_kernel): CDNA2 devices have more VGPRs.
627 2023-11-10 Tobias Burnus <tobias@codesourcery.com>
629 * libgomp.texi (OpenMP Impl. Status): Update for OpenMP TR12;
630 renamed section from TR11.
632 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
634 * config/linux/target-indirect.c: Move to...
635 * target-indirect.c: ...here.
637 2023-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
639 * Makefile.am (libgomp_la_SOURCES): Add target-indirect.c.
640 * Makefile.in: Regenerate.
641 * libgomp-plugin.h (GOMP_INDIRECT_ADDR_MAP): New define.
642 (GOMP_OFFLOAD_load_image): Add extra argument.
643 * libgomp.h (struct indirect_splay_tree_key_s): New.
644 (indirect_splay_tree_node, indirect_splay_tree,
645 indirect_splay_tree_key): New.
646 (indirect_splay_compare): New.
647 * libgomp.map (GOMP_5.1.1): Add GOMP_target_map_indirect_ptr.
648 * libgomp.texi (OpenMP 5.1): Update documentation on indirect
649 calls in target region and on indirect clause.
650 (Other new OpenMP 5.2 features): Add entry for virtual function calls.
651 * libgomp_g.h (GOMP_target_map_indirect_ptr): Add prototype.
652 * oacc-host.c (host_load_image): Add extra argument.
653 * target.c (gomp_load_image_to_device): If the GOMP_VERSION is high
654 enough, read host indirect functions table and pass to
656 * config/accel/target-indirect.c: New.
657 * config/linux/target-indirect.c: New.
658 * config/gcn/team.c (build_indirect_map): Add prototype.
659 (gomp_gcn_enter_kernel): Initialize support for indirect
660 function calls on GCN target.
661 * config/nvptx/team.c (build_indirect_map): Add prototype.
662 (gomp_nvptx_main): Initialize support for indirect function
663 calls on NVPTX target.
664 * plugin/plugin-gcn.c (struct gcn_image_desc): Add field for
665 indirect functions count.
666 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
667 is high enough, build address translation table and copy it to target
669 * plugin/plugin-nvptx.c (nvptx_tdata): Add field for indirect
671 (GOMP_OFFLOAD_load_image): Add extra argument. If the GOMP_VERSION
672 is high enough, Build address translation table and copy it to target
674 * testsuite/libgomp.c-c++-common/declare-target-indirect-1.c: New.
675 * testsuite/libgomp.c-c++-common/declare-target-indirect-2.c: New.
676 * testsuite/libgomp.c++/declare-target-indirect-1.C: New.
678 2023-11-05 Jakub Jelinek <jakub@redhat.com>
680 * libgomp.texi (Enabling OpenMP): Adjust wording for attribute syntax
683 2023-10-31 Thomas Schwinge <thomas@codesourcery.com>
685 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Add OpenACC
686 'acc_map_data' variant.
688 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
690 * oacc-parallel.c (GOACC_data_start): Handle
691 'GOACC_FLAG_LOCAL_DEVICE'.
692 (GOACC_parallel_keyed): Simplify accordingly.
693 * testsuite/libgomp.oacc-fortran/self-1.f90: Adjust.
695 2023-10-25 Thomas Schwinge <thomas@codesourcery.com>
697 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Enhance.
698 * testsuite/libgomp.oacc-c-c++-common/self-1.c: Likewise.
699 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
700 * testsuite/libgomp.oacc-c-c++-common/if-self-1.c: New.
701 * testsuite/libgomp.oacc-fortran/self-1.f90: Likewise.
703 2023-10-25 Chung-Lin Tang <cltang@codesourcery.com>
705 * oacc-parallel.c (GOACC_parallel_keyed): Add code to handle
706 GOACC_FLAG_LOCAL_DEVICE case.
707 * testsuite/libgomp.oacc-c-c++-common/self-1.c: New test.
709 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
711 * Makefile.am: Handle Darwin rpaths.
712 * Makefile.in: Regenerate.
713 * configure: Regenerate.
714 * configure.ac: Handle Darwin rpaths
716 2023-10-20 Andrew Stubbs <ams@codesourcery.com>
718 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX1030): New.
719 (isa_hsa_name): Recognise gfx1030.
720 (isa_code): Likewise.
721 * team.c (defined): Remove s_endpgm.
723 2023-10-20 Tobias Burnus <tobias@codesourcery.com>
725 * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when
728 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
730 * libgomp.texi (Enabling OpenMP): Update for C/C++ attributes;
731 improve wording especially for Fortran; mention -fopenmp-simd.
732 (Enabling OpenACC): Minor cleanup; remove conditional compilation
735 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
737 * libgomp.texi (ACC_DEVICE_TYPE, ACC_DEVICE_NUM, ACC_PROFLIB):
738 Actually document what the function does.
739 (GCC_ACC_NOTIFY): Remove unused env var.
741 2023-10-15 Tobias Burnus <tobias@codesourcery.com>
743 * libgomp.texi: Replace most future tense by present tense.
745 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
747 * testsuite/libgomp.fortran/allocate-6.f90: Add missing
748 dg-additional-options "-fdump-tree-gimple"; fix scan.
750 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
752 * libgomp.texi: Fix some typos.
753 (Memory Management Routines): Document remaining 5.x routines.
754 (Memory allocation): Make clear when the section applies.
756 2023-10-14 Tobias Burnus <tobias@codesourcery.com>
758 * libgomp.texi (OpenMP Impl. Status): Mention that Fortran now
759 supports the allocate directive for stack variables.
760 * testsuite/libgomp.fortran/allocate-5.f90: New test.
761 * testsuite/libgomp.fortran/allocate-6.f90: New test.
762 * testsuite/libgomp.fortran/allocate-7.f90: New test.
763 * testsuite/libgomp.fortran/allocate-8.f90: New test.
765 2023-10-12 Tobias Burnus <tobias@codesourcery.com>
767 * libgomp.texi (OMP_DEFAULT_DEVICE): Update spec ref; add @ref to
769 (OMP_TARGET_OFFLOAD): Update spec ref; add @ref to OMP_DEFAULT_DEVICE;
770 clarify MANDATORY behavior.
772 2023-10-12 Zhang, Jun <jun.zhang@intel.com>
774 * env.c (initialize_env): Use do_adjust_default_spincount.
775 * config/linux/x86/spincount.h: New file.
777 2023-10-08 Tobias Burnus <tobias@codesourcery.com>
779 * testsuite/libgomp.fortran/strictly-structured-block-1.f90: New test.
781 2023-10-06 Tobias Burnus <tobias@codesourcery.com>
783 * libgomp.texi (Device Memory Routines): New.
785 2023-10-04 Tobias Burnus <tobias@codesourcery.com>
787 * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait
788 and that other target archs have no 'arch'/'isa' traits implemented.
790 2023-09-20 Tobias Burnus <tobias@codesourcery.com>
792 * libgomp.texi (OpenMP 5.1 Impl.): Mark 'omp allocate' as
793 implemented for C only.
794 * testsuite/libgomp.c/allocate-4.c: New test.
795 * testsuite/libgomp.c/allocate-5.c: New test.
796 * testsuite/libgomp.c/allocate-6.c: New test.
798 2023-09-20 Jakub Jelinek <jakub@redhat.com>
801 * libgomp.texi: Mark decl attribute was added to the C++ attribute
802 syntax as implemented.
804 2023-09-19 Jakub Jelinek <jakub@redhat.com>
807 * env.c (initialize_env): Don't dereference environ if it is NULL.
810 2023-09-18 Richard Biener <rguenther@suse.de>
812 PR tree-optimization/111294
813 * team.c (gomp_team_start): Assert alloca size to avoid false
814 positive alloc-size diagnostic.
816 2023-09-12 Thomas Schwinge <thomas@codesourcery.com>
817 Chung-Lin Tang <cltang@codesourcery.com>
821 * configure.ac: Revert earlier changes, instead
822 'AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)'.
823 * Makefile.in: Regenerate.
824 * configure: Likewise.
825 * testsuite/Makefile.in: Likewise.
826 * testsuite/lib/libgomp.exp (libgomp_init): Remove
827 "Fix up '-funconfigured-libstdc++-v3' in 'GXX_UNDER_TEST'" code.
828 If '--with-build-sysroot=[...]' was specified, use it for
830 * testsuite/libgomp-site-extra.exp.in (GCC_UNDER_TEST)
831 (GXX_UNDER_TEST, GFORTRAN_UNDER_TEST): Don't set.
832 (SYSROOT_CFLAGS_FOR_TARGET): Set.
833 * testsuite/libgomp.c++/c++.exp (lang_source_re)
834 (lang_include_flags): Set for build-tree testing.
835 * testsuite/libgomp.oacc-c++/c++.exp (lang_source_re)
836 (lang_include_flags): Likewise.
838 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
840 * libgomp.texi (Memory Management Routines): New; add documentation for
841 omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
842 omp_get_default_allocator.
843 (OMP_ALLOCATOR): Fix ICV var name; add see-also references.
845 2023-09-07 Tobias Burnus <tobias@codesourcery.com>
847 * target.c (gomp_unload_device): Remove tailing whitespace.
849 2023-09-04 Tobias Burnus <tobias@codesourcery.com>
850 Thomas Schwinge <thomas@codesourcery.com>
852 * testsuite/libgomp.c-c++-common/pr100059-1.c: New.
854 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
856 * libgomp.texi (OpenMP 5.0): Imperfectly-nested loops are done.
858 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
860 * testsuite/libgomp.fortran/imperfect-destructor.f90: New.
861 * testsuite/libgomp.fortran/imperfect1.f90: New.
862 * testsuite/libgomp.fortran/imperfect2.f90: New.
863 * testsuite/libgomp.fortran/imperfect3.f90: New.
864 * testsuite/libgomp.fortran/imperfect4.f90: New.
865 * testsuite/libgomp.fortran/target-imperfect1.f90: New.
866 * testsuite/libgomp.fortran/target-imperfect2.f90: New.
867 * testsuite/libgomp.fortran/target-imperfect3.f90: New.
868 * testsuite/libgomp.fortran/target-imperfect4.f90: New.
870 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
872 * testsuite/libgomp.c-c++-common/imperfect1.c: New.
873 * testsuite/libgomp.c-c++-common/imperfect2.c: New.
874 * testsuite/libgomp.c-c++-common/imperfect3.c: New.
875 * testsuite/libgomp.c-c++-common/imperfect4.c: New.
876 * testsuite/libgomp.c-c++-common/imperfect5.c: New.
877 * testsuite/libgomp.c-c++-common/imperfect6.c: New.
878 * testsuite/libgomp.c-c++-common/target-imperfect1.c: New.
879 * testsuite/libgomp.c-c++-common/target-imperfect2.c: New.
880 * testsuite/libgomp.c-c++-common/target-imperfect3.c: New.
881 * testsuite/libgomp.c-c++-common/target-imperfect4.c: New.
883 2023-08-25 Sandra Loosemore <sandra@codesourcery.com>
885 * testsuite/libgomp.c++/attrs-imperfect1.C: New test.
886 * testsuite/libgomp.c++/attrs-imperfect2.C: New test.
887 * testsuite/libgomp.c++/attrs-imperfect3.C: New test.
888 * testsuite/libgomp.c++/attrs-imperfect4.C: New test.
889 * testsuite/libgomp.c++/attrs-imperfect5.C: New test.
890 * testsuite/libgomp.c++/attrs-imperfect6.C: New test.
891 * testsuite/libgomp.c++/imperfect-class-1.C: New test.
892 * testsuite/libgomp.c++/imperfect-class-2.C: New test.
893 * testsuite/libgomp.c++/imperfect-class-3.C: New test.
894 * testsuite/libgomp.c++/imperfect-destructor.C: New test.
895 * testsuite/libgomp.c++/imperfect-template-1.C: New test.
896 * testsuite/libgomp.c++/imperfect-template-2.C: New test.
897 * testsuite/libgomp.c++/imperfect-template-3.C: New test.
899 2023-08-22 Francois-Xavier Coudert <fxcoudert@gmail.com>
901 * testsuite/lib/libgomp.exp: Add effective target.
902 * testsuite/libgomp.c/simd-math-1.c: Avoid calling nonstandard
905 2023-08-22 Tobias Burnus <tobias@codesourcery.com>
907 * libgomp.texi (OpenMP 5.2 status): Add depobj with
908 destroy-var argument as 'N'. Mark defaultmap with
909 'all' category as 'Y'.
911 2023-08-19 Tobias Burnus <tobias@codesourcery.com>
914 * testsuite/libgomp.c-c++-common/non-rect-loop-1.c: New test.
916 2023-08-17 Tobias Burnus <tobias@codesourcery.com>
919 * allocator.c (gomp_init_libnuma): Call numa_available; if
920 not available or not returning 0, disable libnuma usage.
922 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
924 * configure: Regenerate.
926 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
928 * configure: Regenerate.
930 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
932 * configure: Regenerate.
934 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
936 * configure: Regenerate.
938 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
940 * configure: Regenerate.
942 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
944 * configure: Regenerate.
946 2023-07-29 Tobias Burnus <tobias@codesourcery.com>
948 * target.c (omp_target_memcpy_rect_worker): Undo dim=1 change for
949 GOMP_OFFLOAD_CAP_SHARED_MEM.
950 (omp_target_memcpy_rect_copy): Likewise for lock condition.
951 (gomp_load_plugin_for_device): Use DLSYM_OPT not DLSYM for
953 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
954 GOMP_OFFLOAD_memcpy3d): Use memset 0 to nullify reserved and
955 unused src/dst fields for that mem type; remove '{src,dst}LOD = 0'.
957 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
959 * libgomp-plugin.h (GOMP_OFFLOAD_memcpy2d,
960 GOMP_OFFLOAD_memcpy3d): New prototypes.
961 * libgomp.h (struct gomp_device_descr): Add memcpy2d_func
963 * libgomp.texi (nvtpx): Document when cuMemcpy2D/cuMemcpy3D is used.
964 * oacc-host.c (memcpy2d_func, .memcpy3d_func): Init with NULL.
965 * plugin/cuda-lib.def (cuMemcpy2D, cuMemcpy2DUnaligned,
966 cuMemcpy3D): Invoke via CUDA_ONE_CALL.
967 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_memcpy2d,
968 GOMP_OFFLOAD_memcpy3d): New.
969 * target.c (omp_target_memcpy_rect_worker):
970 (omp_target_memcpy_rect_check, omp_target_memcpy_rect_copy):
971 Permit all device-to-device copyies; invoke new plugins for
972 2D and 3D copying when available.
973 (gomp_load_plugin_for_device): DLSYM the new plugin functions.
974 * testsuite/libgomp.c/target-12.c: Fix dimension bug.
975 * testsuite/libgomp.fortran/target-12.f90: Likewise.
976 * testsuite/libgomp.fortran/target-memcpy-rect-1.f90: New test.
978 2023-07-26 Tobias Burnus <tobias@codesourcery.com>
980 * libgomp.texi (OpenMP 5.2 features): Add 'all' for 'defaultmap' as 'N'.
981 (Tasking Routines): Document omp_in_explicit_task.
982 (Implementation-defined ICV Initialization): Use @ref not @code.
984 2023-07-20 Tobias Burnus <tobias@codesourcery.com>
986 * libgomp.texi (OpenMP Runtime Library Routines):
987 Split long list by adding sections and moving routines there.
988 (OMP_ALLOCATORS): Fix typo.
990 2023-07-19 Tobias Burnus <tobias@codesourcery.com>
993 * libgomp.texi (Impl. Status 5.0): Add link to new PR110735.
994 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: Enable
996 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: Remove
997 test file; tests are in non-rectangular-loop-1.f90.
998 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: Change
999 testcase to use a non-constant step to retain the 'sorry' test.
1000 * testsuite/libgomp.fortran/non-rectangular-loop-6.f90: New test.
1002 2023-07-17 Tobias Burnus <tobias@codesoucery.com>
1003 Chung-Lin Tang <cltang@codesourcery.com>
1005 * testsuite/libgomp.fortran/uses_allocators_1.f90: New test.
1006 * testsuite/libgomp.fortran/uses_allocators_2.f90: New test.
1008 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
1010 * libgomp.texi (OMP_ALLOCATOR): Document the default values for
1011 the traits. Add crossref to 'Memory allocation'.
1012 (Memory allocation): Refer to OMP_ALLOCATOR for the available
1013 traits and allocators/mem spaces; document the default value
1014 for the pool_size trait.
1016 2023-07-14 Tobias Burnus <tobias@codesourcery.com>
1018 * allocator.c (omp_init_allocator): Check whether symbol from
1019 dlopened libnuma is available before using libnuma for
1022 2023-07-13 David Edelsohn <dje.gcc@gmail.com>
1024 * testsuite/libgomp.c++/target-map-class-2.C: Require LTO.
1025 * testsuite/libgomp.c-c++-common/requires-4.c: Require LTO.
1026 * testsuite/libgomp.c-c++-common/requires-4a.c: Require LTO.
1028 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
1030 * libgomp.texi (OpenMP 5.0): Replace '... stub' by @ref to
1031 'Memory allocation' section which contains the full status.
1032 (TR11): Remove differently worded duplicated entry.
1034 2023-07-12 Tobias Burnus <tobias@codesourcery.com>
1036 * allocator.c: Add ifdef for LIBGOMP_USE_LIBNUMA.
1037 (enum gomp_numa_memkind_kind): Renamed from gomp_memkind_kind;
1038 add GOMP_MEMKIND_LIBNUMA.
1039 (struct gomp_libnuma_data, gomp_init_libnuma, gomp_get_libnuma): New.
1040 (omp_init_allocator): Handle partition=nearest with libnuma if avail.
1041 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
1042 numa_alloc_local (+ memset), numa_free, and numa_realloc calls as
1044 * config/linux/allocator.c (LIBGOMP_USE_LIBNUMA): Define
1045 * libgomp.texi: Fix a typo; use 'fi' instead of its ligature char.
1046 (Memory allocation): Renamed from 'Memory allocation with libmemkind';
1047 updated for libnuma usage.
1048 * testsuite/libgomp.c-c++-common/alloc-11.c: New test.
1049 * testsuite/libgomp.c-c++-common/alloc-12.c: New test.
1051 2023-07-11 Tobias Burnus <tobias@codesourcery.com>
1053 * allocator.c (omp_init_allocator): Use malloc for
1054 omp_high_bw_mem_space when the memkind lib is unavailable
1055 instead of returning omp_null_allocator.
1056 * libgomp.texi (OpenMP 5.0): Fix typo.
1057 (Memory allocation with libmemkind): Document implementation
1060 2023-06-22 Tobias Burnus <tobias@codesourcery.com>
1062 * libgomp.texi: Use @var for ICV vars.
1063 (OpenMP Environment Variables): Mention _ALL/_DEV/_DEV_<no> variants,
1064 document which ICV is set and which scope the ICV has; extend/cleanup
1066 (Implementation-defined ICV Initialization): New.
1067 (nvptx): Document the implementation-defined used per-warp stack size.
1069 2023-06-19 Thomas Schwinge <thomas@codesourcery.com>
1071 * testsuite/libgomp.c/target-51.c: Fix DejaGnu directive syntax
1074 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
1076 * testsuite/libgomp.c/target-51.c: Accept more error msg variants
1077 as expected dg-output.
1079 2023-06-19 Tobias Burnus <tobias@codesourcery.com>
1081 PR middle-end/110270
1082 * target.c (gomp_map_vars_internal): Copy host value instead of NULL
1083 for GOMP_MAP_ZERO_LEN_ARRAY_SECTION if not mapped.
1084 * libgomp.texi (OpenMP 5.2 Impl.): Mark as 'Y'.
1085 * testsuite/libgomp.c/target-19.c: Update expected value.
1086 * testsuite/libgomp.c++/target-18.C: Likewise.
1087 * testsuite/libgomp.c++/target-19.C: Likewise.
1088 * testsuite/libgomp.c-c++-common/requires-unified-addr-2.c: New test.
1089 * testsuite/libgomp.c-c++-common/target-implicit-map-3.c: New test.
1090 * testsuite/libgomp.c-c++-common/target-implicit-map-4.c: New test.
1092 2023-06-16 Tobias Burnus <tobias@codesourcery.com>
1094 * target.c (resolve_device): Call gomp_get_num_devices early to ensure
1095 gomp_init_targets_once was called before using default-device-var.
1096 * testsuite/libgomp.c/target-55.c: New test.
1097 * testsuite/libgomp.c/target-55a.c: New test.
1099 2023-06-15 Tobias Burnus <tobias@codesourcery.com>
1101 * env.c (gomp_def_allocator_envvar): New var.
1102 (parse_allocator): Handle OpenMP 5.1 syntax.
1104 (omp_display_env): Output gomp_def_allocator_envvar
1105 for an allocator with traits.
1106 * libgomp.texi (OMP_ALLOCATOR, OMP_AFFINITY_FORMAT,
1107 OMP_DISPLAY_AFFINITY): New.
1108 * testsuite/libgomp.c/allocator-1.c: New test.
1109 * testsuite/libgomp.c/allocator-2.c: New test.
1110 * testsuite/libgomp.c/allocator-3.c: New test.
1111 * testsuite/libgomp.c/allocator-4.c: New test.
1112 * testsuite/libgomp.c/allocator-5.c: New test.
1113 * testsuite/libgomp.c/allocator-6.c: New test.
1115 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1117 * target.c (resolve_device): Align a
1118 'OMP_TARGET_OFFLOAD=mandatory' diagnostic with others.
1119 * testsuite/libgomp.c/target-51.c: Adjust.
1121 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1123 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Don't
1125 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags):
1127 * testsuite/libgomp.c/simd-math-1.c: Remove
1128 '-foffload-options=-lm'.
1129 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90:
1131 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1134 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1136 * testsuite/libgomp.fortran/fortran-torture_execute_math.f90: New.
1137 * testsuite/libgomp.oacc-fortran/fortran-torture_execute_math.f90:
1140 2023-06-14 Thomas Schwinge <thomas@codesourcery.com>
1142 * testsuite/libgomp.c/target-51.c: Fix typo.
1144 2023-06-14 Tobias Burnus <tobias@codesourcery.com>
1146 * env.c (gomp_default_icv_values): Init default_device_var to
1147 an nonconforming value - INT_MIN.
1148 (initialize_env): After env-var parsing, set default_device_var to
1149 device 0 unless OMP_TARGET_OFFLOAD=mandatory.
1150 (omp_display_env): If default_device_var is INT_MIN, call
1151 gomp_init_targets_once.
1152 * icv-device.c (omp_get_default_device): Likewise.
1153 * libgomp.texi (OMP_DEFAULT_DEVICE): Update init description.
1154 (OpenMP 5.2 Impl. Status): Mark OMP_TARGET_OFFLOAD=mandatory as 'Y'.
1155 * target.c (resolve_device): Improve error message device-num < 0
1156 with 'mandatory' and no no-host devices available.
1157 (gomp_target_init): Set default-device-var if INT_MIN.
1158 * testsuite/libgomp.c/target-48.c: New test.
1159 * testsuite/libgomp.c/target-49.c: New test.
1160 * testsuite/libgomp.c/target-50.c: New test.
1161 * testsuite/libgomp.c/target-50a.c: New test.
1162 * testsuite/libgomp.c/target-51.c: New test.
1163 * testsuite/libgomp.c/target-52.c: New test.
1164 * testsuite/libgomp.c/target-53.c: New test.
1165 * testsuite/libgomp.c/target-54.c: New test.
1167 2023-06-13 Tobias Burnus <tobias@codesourcery.com>
1170 * testsuite/libgomp.c-c++-common/requires-unified-addr-1.c: New test.
1171 * testsuite/libgomp.fortran/requires-unified-addr-1.f90: New test.
1173 2023-06-12 Tobias Burnus <tobias@codesourcery.com>
1175 * target.c (gomp_to_device_kind_p, gomp_map_vars_internal): Replace
1176 GOMP_MAP_PRESENT_{FROM,TO,TOFROM,ACLLOC} by GOMP_MAP_FORCE_PRESENT.
1177 (gomp_map_vars_internal, gomp_update): Likewise; unify and improve
1179 * testsuite/libgomp.c-c++-common/target-present-2.c: Update for
1180 changed error message.
1181 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1182 * testsuite/libgomp.fortran/target-present-2.f90: Likewise.
1183 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
1184 * testsuite/libgomp.c-c++-common/target-present-1.c: Likewise and
1185 extend testcase to check that data is copied when needed.
1186 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1187 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1189 2023-06-07 Thomas Schwinge <thomas@codesourcery.com>
1190 Tobias Burnus <tobias@codesourcery.com>
1192 * testsuite/libgomp.c-c++-common/target-present-1.c: Run code
1193 also for non-offload_device targets; check that it runs
1194 successfully for those and for all until a checkpoint for all
1195 * testsuite/libgomp.c-c++-common/target-present-2.c: Likewise.
1196 * testsuite/libgomp.c-c++-common/target-present-3.c: Likewise.
1197 * testsuite/libgomp.fortran/target-present-1.f90: Likewise.
1198 * testsuite/libgomp.fortran/target-present-3.f90: Likewise.
1199 * testsuite/libgomp.fortran/target-present-2.f90: Likewise;
1200 add missing vars to map clause.
1202 2023-06-06 Tobias Burnus <tobias@codesourcery.com>
1204 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Regard
1205 unified_address requirement as supported.
1206 * libgomp.texi (OpenMP 5.0, AMD Radeon, nvptx): Remove
1207 'unified_address' from the not-supported requirements.
1209 2023-06-06 Kwok Cheung Yeung <kcy@codesourcery.com>
1210 Tobias Burnus <tobias@codesourcery.com>
1212 * libgomp.texi (OpenMP 5.1 Impl. status): Set 'present' support for
1213 defaultmap to 'Y', add 'Y' entry for 'present' on to/from/map clauses.
1214 * target.c (gomp_to_device_kind_p): Add map kinds with 'present'
1216 (gomp_map_vars_existing): Use new GOMP_MAP_FORCE_P macro.
1217 (gomp_map_vars_internal, gomp_update, gomp_target_rev):
1218 Emit runtime error if memory region not present.
1219 * testsuite/libgomp.c-c++-common/target-present-1.c: New test.
1220 * testsuite/libgomp.c-c++-common/target-present-2.c: New test.
1221 * testsuite/libgomp.c-c++-common/target-present-3.c: New test.
1222 * testsuite/libgomp.fortran/target-present-1.f90: New test.
1223 * testsuite/libgomp.fortran/target-present-2.f90: New test.
1224 * testsuite/libgomp.fortran/target-present-3.f90: New test.
1226 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1229 * testsuite/lib/libgomp.exp: 'flock' through stdout.
1230 * testsuite/flock: New.
1231 * configure.ac (FLOCK): Point to that if no 'flock' available, but
1233 * configure: Regenerate.
1235 2023-06-02 Thomas Schwinge <thomas@codesourcery.com>
1237 * configure.ac (PERL): Remove.
1238 * configure: Regenerate.
1239 * Makefile.in: Likewise.
1240 * testsuite/Makefile.in: Likewise.
1242 2023-06-01 Tobias Burnus <tobias@codesourcery.com>
1244 * libgomp.texi (OpenMP 5.2): Mark pure-directive handling as 'Y'.
1246 2023-05-26 Tobias Burnus <tobias@codesourcery.com>
1248 * testsuite/libgomp.fortran/allocate-4.f90: Update dg-error.
1250 2023-05-21 Tobias Burnus <tobias@codesourcery.com>
1253 * config/gcn/target.c (GOMP_teams4): Honor nteams-var ICV.
1254 * config/nvptx/target.c (GOMP_teams4): Likewise.
1255 * testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: New test.
1256 * testsuite/libgomp.c-c++-common/teams-nteams-icv-2.c: New test.
1257 * testsuite/libgomp.c-c++-common/teams-nteams-icv-3.c: New test.
1258 * testsuite/libgomp.c-c++-common/teams-nteams-icv-4.c: New test.
1260 2023-05-19 Jakub Jelinek <jakub@redhat.com>
1263 * configure.ac (link_gomp): Include also $DL_LIBS.
1264 * configure: Regenerated.
1266 2023-05-17 Tobias Burnus <tobias@codesourcery.com>
1268 * testsuite/libgomp.fortran/target-enter-data-3.f90: Uncomment
1270 * testsuite/libgomp.fortran/target-enter-data-4.f90: New test.
1271 * testsuite/libgomp.fortran/target-enter-data-5.f90: New test.
1272 * testsuite/libgomp.fortran/target-enter-data-6.f90: New test.
1273 * testsuite/libgomp.fortran/target-enter-data-7.f90: New test.
1275 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1278 * configure.ac: Look for 'flock'.
1279 * testsuite/Makefile.am (gcc_test_parallel_slots): Enable parallel testing.
1280 * testsuite/config/default.exp: Don't 'load_lib "standard.exp"' here...
1281 * testsuite/lib/libgomp.exp: ... but here, instead.
1282 (libgomp_load): Override for parallel testing.
1283 * testsuite/libgomp-site-extra.exp.in (FLOCK): Set.
1284 * configure: Regenerate.
1285 * Makefile.in: Regenerate.
1286 * testsuite/Makefile.in: Regenerate.
1288 2023-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1289 Thomas Schwinge <thomas@codesourcery.com>
1292 * testsuite/Makefile.am (PWD_COMMAND): New variable.
1293 (%/site.exp): New target.
1294 (check_p_numbers0, check_p_numbers1, check_p_numbers2)
1295 (check_p_numbers3, check_p_numbers4, check_p_numbers5)
1296 (check_p_numbers6, check_p_numbers, gcc_test_parallel_slots)
1298 (check_DEJAGNU_libgomp_targets): New variables.
1299 ($(check_DEJAGNU_libgomp_targets)): New target.
1300 ($(check_DEJAGNU_libgomp_targets)): New dependency.
1301 (check-DEJAGNU $(check_DEJAGNU_libgomp_targets)): New targets.
1302 * testsuite/Makefile.in: Regenerate.
1303 * testsuite/lib/libgomp.exp: For parallel testing,
1304 'load_file ../libgomp-test-support.exp'.
1306 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1309 * configure.ac: 'AC_SUBST(CXX)'.
1310 * configure: Regenerate.
1311 * Makefile.in: Likewise.
1312 * testsuite/Makefile.in: Likewise.
1313 * testsuite/libgomp-site-extra.exp.in (GXX_UNDER_TEST)
1314 (GFORTRAN_UNDER_TEST): Set.
1315 * testsuite/lib/libgomp.exp (libgomp_init): Adjust.
1316 * testsuite/libgomp.c++/c++.exp: Use 'GXX_UNDER_TEST'.
1317 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1318 * testsuite/libgomp.fortran/fortran.exp: Use
1319 'GFORTRAN_UNDER_TEST'.
1320 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1322 2023-05-15 Thomas Schwinge <thomas@codesourcery.com>
1325 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't
1327 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Specify compiler.
1328 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1329 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1330 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1332 * testsuite/libgomp.oacc-c++/c++.exp (ALWAYS_CFLAGS): Likewise.
1333 * testsuite/libgomp.oacc-c/c.exp (ALWAYS_CFLAGS): Likewise.
1334 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS):
1337 2023-05-12 Tobias Burnus <tobias@codesourcery.com>
1340 * testsuite/libgomp.c++/target-map-class-1.C: New test.
1341 * testsuite/libgomp.c++/target-map-class-2.C: New test.
1343 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1345 * testsuite/lib/libgomp.exp (libgomp_target_compile): Generalize
1346 'lang_library_path' into a list of 'lang_library_paths'.
1347 * testsuite/libgomp.c++/c++.exp: Adjust.
1348 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1349 * testsuite/libgomp.fortran/fortran.exp: Adjust. Use that for
1351 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1353 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1355 * testsuite/lib/libgomp.exp (libgomp_target_compile): Don't look
1356 at 'lang_test_file_found'.
1357 * testsuite/libgomp.c++/c++.exp: Don't set and use it, and instead
1358 'return' early if not able to test. Simplify 'ld_library_path' setup.
1359 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1360 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1361 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1363 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1365 * testsuite/libgomp.c++/c++.exp: Resolve 'lang_test_file_found'
1367 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1368 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1369 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1371 2023-05-12 Thomas Schwinge <thomas@codesourcery.com>
1373 * testsuite/libgomp.c++/c++.exp: Localize 'lang_[...]' etc.
1374 * testsuite/libgomp.c/c.exp: Likewise.
1375 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1376 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1377 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1378 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1379 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1381 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1383 * testsuite/libgomp.c++/c++.exp: Don't set 'lang_test_file'.
1384 * testsuite/libgomp.fortran/fortran.exp: Likewise.
1385 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1386 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1387 * testsuite/libgomp.c/c.exp: Unset 'lang_test_file_found' instead of
1389 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1390 * testsuite/libgomp.graphite/graphite.exp: Likewise.
1391 * testsuite/lib/libgomp.exp (libgomp_target_compile): Look for
1392 'lang_test_file_found' instead of 'lang_test_file'.
1394 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1396 * testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
1398 * testsuite/libgomp.c++/c++.exp: Likewise.
1399 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1401 2023-05-09 Thomas Schwinge <thomas@codesourcery.com>
1403 * testsuite/libgomp.c++/c++.exp (blddir): Don't set.
1404 * testsuite/libgomp.oacc-c++/c++.exp (blddir): Likewise.
1406 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1408 * testsuite/libgomp.c++/c++.exp: Use 'lang_include_flags' instead
1409 of 'libstdcxx_includes'.
1410 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1412 2023-05-08 Thomas Schwinge <thomas@codesourcery.com>
1414 * target.c (gomp_target_rev): Instead of 'dev_to_host_cpy',
1415 'host_to_dev_cpy', 'token', take a single 'goacc_asyncqueue'.
1416 * libgomp.h (gomp_target_rev): Adjust.
1417 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): Adjust.
1418 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): Adjust.
1419 * plugin/plugin-gcn.c (process_reverse_offload): Adjust.
1420 * plugin/plugin-nvptx.c (rev_off_dev_to_host_cpy)
1421 (rev_off_host_to_dev_cpy): Remove.
1422 (GOMP_OFFLOAD_run): Adjust.
1424 2023-05-04 Julian Brown <julian@codesourcery.com>
1427 * testsuite/libgomp.fortran/pr109622.f90: Move test...
1428 * testsuite/libgomp.oacc-fortran/pr109622.f90: ...to here. Ignore
1429 vector length warning.
1430 * testsuite/libgomp.fortran/pr109622-2.f90: Move test...
1431 * testsuite/libgomp.oacc-fortran/pr109622-2.f90: ...to here. Add
1432 missing copyin/copyout variable. Ignore vector length warnings.
1433 * testsuite/libgomp.fortran/pr109622-3.f90: Move test...
1434 * testsuite/libgomp.oacc-fortran/pr109622-3.f90: ...to here. Ignore
1435 vector length warnings.
1436 * testsuite/libgomp.oacc-fortran/pr109622-4.f90: New test.
1438 2023-04-28 Julian Brown <julian@codesourcery.com>
1441 * testsuite/libgomp.fortran/pr109622.f90: New test.
1442 * testsuite/libgomp.fortran/pr109622-2.f90: New test.
1443 * testsuite/libgomp.fortran/pr109622-3.f90: New test.
1445 2023-04-25 Tobias Burnus <tobias@codesourcery.com>
1447 * testsuite/libgomp.c-c++-common/scan-1.c: New test.
1448 * testsuite/libgomp.c/scan-23.c: New test.
1449 * testsuite/libgomp.fortran/scan-2.f90: New test.
1451 2023-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1453 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
1454 weak_undefined options.
1456 2023-03-24 Tobias Burnus <tobias@codesourcery.com>
1458 * libgomp.texi (Offload-Target Specifics): Grammar fix.
1460 2023-03-24 Thomas Schwinge <thomas@codesourcery.com>
1463 * target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
1466 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1469 * target.c (gomp_map_vars_internal): Allow for
1470 'param_kind == GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_TARGET'.
1471 * oacc-parallel.c (GOACC_parallel_keyed): Pass
1472 'GOMP_MAP_VARS_TARGET' to 'goacc_map_vars'.
1473 * plugin/plugin-gcn.c (alloc_by_agent, gcn_exec)
1474 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1476 (gomp_offload_free): Remove.
1477 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1478 (GOMP_OFFLOAD_openacc_async_exec): Adjust, simplify.
1479 (cuda_free_argmem): Remove.
1480 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1483 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1485 * target.c (gomp_copy_host2dev, gomp_map_vars_internal): Allow
1486 libgomp 'cbuf' buffering with OpenACC 'async' for 'ephemeral'
1489 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1491 * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for
1492 'GOMP_MAP_IF_PRESENT'.
1493 * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec)
1494 (GOMP_OFFLOAD_openacc_async_exec): Adjust.
1495 * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec)
1496 (GOMP_OFFLOAD_openacc_async_exec): Likewise.
1497 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async'
1499 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
1501 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1503 * oacc-async.c (goacc_wait): Remove 'acc_async_test' -> skip
1506 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1508 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify
1509 another aspect of OpenACC 'async' semantics.
1511 2023-03-10 Thomas Schwinge <thomas@codesourcery.com>
1513 * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
1515 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1516 Verify 'acc_ev_alloc', 'acc_ev_free'.
1518 2023-03-09 Hongyu Wang <hongyu.wang@intel.com>
1521 * env.c (wait_policy): Initialize to -1.
1522 (initialize_icvs): Initialize icvs->wait_policy to -1.
1523 * testsuite/libgomp.c-c++-common/pr109062.c: New test.
1525 2023-03-08 Tobias Burnus <tobias@codesourcery.com>
1527 * libgomp.texi (Offload-Target Specifics): Mention GCN_STACK_SIZE.
1529 2023-03-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1530 Paul-Antoine Arras <pa@codesourcery.com>
1532 * testsuite/libgomp.c/simd-math-1.c: New testcase.
1534 2023-03-01 Tobias Burnus <tobias@codesourcery.com>
1536 PR middle-end/108546
1537 * testsuite/libgomp.fortran/is_device_ptr-3.f90: New test.
1538 * testsuite/libgomp.fortran/use_device_ptr-optional-4.f90: New test.
1540 2023-02-22 Thomas Schwinge <thomas@codesourcery.com>
1542 * testsuite/libgomp.fortran/alloc-10.f90: Use
1543 '-Wno-complain-wrong-lang'.
1544 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
1545 * testsuite/libgomp.fortran/alloc-7.f90: Likewise.
1546 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
1547 * testsuite/libgomp.fortran/allocate-1.f90: Likewise.
1548 * testsuite/libgomp.fortran/depend-4.f90: Likewise.
1549 * testsuite/libgomp.fortran/depend-5.f90: Likewise.
1550 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
1551 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
1552 * testsuite/libgomp.fortran/depend-inoutset-1.f90: Likewise.
1553 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90:
1555 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90:
1557 * testsuite/libgomp.fortran/order-reproducible-1.f90: Likewise.
1558 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
1559 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1560 * testsuite/libgomp.fortran/task-detach-6.f90: Remove left-over
1563 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1565 * libgomp.texi: Fix typos - theads -> threads.
1567 2023-02-16 Jakub Jelinek <jakub@redhat.com>
1569 * testsuite/libgomp.fortran/target-nowait-array-section.f90: Fix
1570 comment typo and improve its wording.
1572 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1574 * target.c (gomp_target_rev): Dereference ptr
1575 to get device address.
1576 * testsuite/libgomp.fortran/reverse-offload-5.f90: Add test
1577 for unallocated allocatable.
1579 2023-02-15 Tobias Burnus <tobias@codesourcery.com>
1581 * target.c (gomp_map_vars_internal): Add 'i > 0' before doing a
1583 (GOMP_target_enter_exit_data): If the next map item is
1584 GOMP_MAP_ALWAYS_POINTER map it together with the current item.
1585 * testsuite/libgomp.fortran/target-enter-data-3.f90: New test.
1587 2023-02-09 Tobias Burnus <tobias@codesourcery.com>
1590 * testsuite/libgomp.fortran/non-rectangular-loop-1.f90: New test.
1591 * testsuite/libgomp.fortran/non-rectangular-loop-1a.f90: New test.
1592 * testsuite/libgomp.fortran/non-rectangular-loop-2.f90: New test.
1593 * testsuite/libgomp.fortran/non-rectangular-loop-3.f90: New test.
1594 * testsuite/libgomp.fortran/non-rectangular-loop-4.f90: New test.
1595 * testsuite/libgomp.fortran/non-rectangular-loop-5.f90: New test.
1597 2023-02-07 Thomas Schwinge <thomas@codesourcery.com>
1599 * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
1600 offloading compilation.
1602 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1604 * target.c (gomp_target_rev): Handle mapnum == 0 and avoid
1605 freeing not allocated memory.
1606 * testsuite/libgomp.fortran/reverse-offload-6.f90: New test.
1608 2023-02-03 Tobias Burnus <tobias@codesourcery.com>
1610 * libgomp.texi (5.0 Impl. Status, gcn specifics): Update for
1612 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Accept
1613 reverse-offload requirement.
1615 2023-02-02 Andrew Stubbs <ams@codesourcery.com>
1617 * config/gcn/libgomp-gcn.h (DEFAULT_GCN_STACK_SIZE): New define.
1618 (DEFAULT_TEAM_ARENA_SIZE): New define.
1619 (struct heap): Move to this file.
1620 (struct kernargs_abi): Likewise.
1621 * config/gcn/team.c (gomp_gcn_enter_kernel): Use team arena size from
1623 * libgomp.h: Include libgomp-gcn.h.
1624 (TEAM_ARENA_SIZE): Remove.
1625 (team_malloc): Update the error message.
1626 * plugin/plugin-gcn.c (struct kernargs): Move common content to
1627 struct kernargs_abi.
1628 (struct agent_info): Rename team arenas to ephemeral memories.
1629 (struct team_arena_list): Rename ....
1630 (struct ephemeral_memories_list): to this.
1631 (struct heap): Delete.
1632 (team_arena_size): New variable.
1633 (stack_size): New variable.
1634 (print_kernel_dispatch): Update debug messages.
1635 (init_environment_variables): Read GCN_TEAM_ARENA_SIZE.
1636 Read GCN_STACK_SIZE.
1637 (get_team_arena): Rename ...
1638 (configure_ephemeral_memories): ... to this, and set up stacks.
1639 (release_team_arena): Rename ...
1640 (release_ephemeral_memories): ... to this.
1641 (destroy_team_arenas): Rename ...
1642 (destroy_ephemeral_memories): ... to this.
1643 (create_kernel_dispatch): Add num_threads parameter.
1644 Adjust for kernargs_abi refactor and ephemeral memories.
1645 (release_kernel_dispatch): Adjust for ephemeral memories.
1646 (run_kernel): Pass thread-count to create_kernel_dispatch.
1647 (GOMP_OFFLOAD_init_device): Adjust for ephemeral memories.
1648 (GOMP_OFFLOAD_fini_device): Adjust for ephemeral memories.
1650 2023-02-02 Tobias Burnus <tobias@codesourcery.com>
1652 * libgomp.texi (OpenMP TR11): Fix item for 'strict' modifier.
1654 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1656 * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN
1657 usage, remove unused -fdump-tree-original.
1658 * testsuite/libgomp.fortran/allocate-4.f90: New.
1660 2023-02-01 Tobias Burnus <tobias@codesourcery.com>
1662 * libgomp.texi (5.0 Impl. Status): Update 'requires' and 'ancestor'.
1663 (GCN): Add item about 'omp requires'.
1664 (nvptx): Likewise; add item about reverse offload.
1666 2023-01-27 Tobias Burnus <tobias@codesourcery.com>
1669 * testsuite/libgomp.fortran/has_device_addr.f90: New test.
1671 2023-01-23 Tobias Burnus <tobias@codesourcery.com>
1673 * libgomp.texi (OpenMP 5.0): Set non-rectangular
1674 loop nest back to 'P' as Fortran support is incomplete.
1676 2023-01-19 Jakub Jelinek <jakub@redhat.com>
1678 PR middle-end/108459
1679 * testsuite/libgomp.c/pr108459.c: New test.
1681 2023-01-17 Martin Liska <mliska@suse.cz>
1683 * Makefile.in: Regenerate.
1684 * configure: Regenerate.
1686 2023-01-07 LIU Hao <lh_mouse@126.com>
1688 PR middle-end/108300
1689 * config/mingw32/proc.c: Define `WIN32_LEAN_AND_MEAN` before
1692 2023-01-05 Jakub Jelinek <jakub@redhat.com>
1695 * testsuite/libgomp.c++/pr108286.C: New test.
1697 2023-01-02 Jakub Jelinek <jakub@redhat.com>
1699 * libgomp.texi: Bump @copying's copyright year.
1701 2022-12-21 Chung-Lin Tang <cltang@codesourcery.com>
1704 * config/nvptx/bar.c (generation_to_barrier): Remove.
1705 (futex_wait,futex_wake,do_spin,do_wait): Remove.
1706 (GOMP_WAIT_H): Remove.
1707 (#include "../linux/bar.c"): Remove.
1708 (gomp_barrier_wait_end): New function.
1709 (gomp_barrier_wait): Likewise.
1710 (gomp_barrier_wait_last): Likewise.
1711 (gomp_team_barrier_wait_end): Likewise.
1712 (gomp_team_barrier_wait): Likewise.
1713 (gomp_team_barrier_wait_final): Likewise.
1714 (gomp_team_barrier_wait_cancel_end): Likewise.
1715 (gomp_team_barrier_wait_cancel): Likewise.
1716 (gomp_team_barrier_cancel): Likewise.
1717 * config/nvptx/bar.h (gomp_barrier_t): Remove waiters, lock fields.
1718 (gomp_barrier_init): Remove init of waiters, lock fields.
1719 (gomp_team_barrier_wake): Remove prototype, add new static inline
1722 2022-12-21 Jakub Jelinek <jakub@redhat.com>
1725 * testsuite/libgomp.c++/pr108180.C: New test.
1727 2022-12-16 Tobias Burnus <tobias@codesourcery.com>
1729 PR libfortran/108056
1730 * testsuite/libgomp.fortran/allocate-4.f90: Remove
1731 accidentally added file.
1733 2022-12-15 Tobias Burnus <tobias@codesourcery.com>
1735 PR libfortran/108056
1736 * testsuite/libgomp.fortran/allocate-4.f90: New file.
1738 2022-12-14 Julian Brown <julian@codesourcery.com>
1740 * testsuite/libgomp.fortran/combined-directive-splitting-1.f90: New
1743 2022-12-10 Tobias Burnus <tobias@codesourcery.com>
1745 * libgomp.h (struct target_mem_desc): Predeclare; move
1746 below after 'reverse_splay_tree_node' and add rev_array
1748 (struct reverse_splay_tree_key_s, reverse_splay_compare): New.
1749 (reverse_splay_tree_node, reverse_splay_tree,
1750 reverse_splay_tree_key): New typedef.
1751 (struct gomp_device_descr): Add mem_map_rev member.
1752 * oacc-host.c (host_dispatch): NULL init .mem_map_rev.
1753 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Claim
1754 support for GOMP_REQUIRES_REVERSE_OFFLOAD.
1755 * splay-tree.h (splay_tree_callback_stop): New typedef; like
1756 splay_tree_callback but returning int not void.
1757 (splay_tree_foreach_lazy): Define; like splay_tree_foreach but
1758 taking splay_tree_callback_stop as argument.
1759 * splay-tree.c (splay_tree_foreach_internal_lazy,
1760 splay_tree_foreach_lazy): New; but early exit if callback returns
1762 * target.c: Instatiate splay_tree_c with splay_tree_prefix 'reverse'.
1763 (gomp_map_lookup_rev): New.
1764 (gomp_load_image_to_device): Handle reverse-offload function
1766 (gomp_unload_image_from_device): Free devicep->mem_map_rev.
1767 (struct gomp_splay_tree_rev_lookup_data, gomp_splay_tree_rev_lookup,
1768 gomp_map_rev_lookup, struct cpy_data, gomp_map_cdata_lookup_int,
1769 gomp_map_cdata_lookup): New auxiliary structs and functions for
1771 (gomp_target_rev): Implement reverse offloading and its mapping.
1772 (gomp_target_init): Init current_device.mem_map_rev.root.
1773 * testsuite/libgomp.fortran/reverse-offload-2.f90: New test.
1774 * testsuite/libgomp.fortran/reverse-offload-3.f90: New test.
1775 * testsuite/libgomp.fortran/reverse-offload-4.f90: New test.
1776 * testsuite/libgomp.fortran/reverse-offload-5.f90: New test.
1777 * testsuite/libgomp.fortran/reverse-offload-5a.f90: New test without
1778 mapping of on-device allocated variables.
1780 2022-12-09 Tobias Burnus <tobias@codesourcery.com>
1782 * libgomp.texi (5.1 Impl. Status): Split allocate clause/directive
1783 item about 'align'; mark clause as 'Y' and directive as 'N'.
1784 * testsuite/libgomp.fortran/allocate-2.f90: New test.
1785 * testsuite/libgomp.fortran/allocate-3.f90: New test.
1787 2022-12-06 Marcel Vollweiler <marcel@codesourcery.com>
1789 * config/gcn/icv-device.c (omp_get_teams_thread_limit): Added to
1790 allow processing of device-specific values.
1791 (omp_set_teams_thread_limit): Likewise.
1793 * config/nvptx/icv-device.c (omp_get_teams_thread_limit): Likewise.
1794 (omp_set_teams_thread_limit): Likewise.
1796 * icv-device.c (omp_get_teams_thread_limit): Likewise.
1798 (omp_set_teams_thread_limit): Likewise.
1799 * icv.c (omp_set_teams_thread_limit): Removed.
1800 (omp_get_teams_thread_limit): Likewise.
1802 * libgomp.texi: Updated documentation for nvptx and gcn corresponding
1803 to the limitation of the number of teams.
1804 * plugin/plugin-gcn.c (limit_teams): New helper function that limits
1805 the number of teams by twice the number of compute units.
1806 (parse_target_attributes): Limit the number of teams on gcn offload
1808 * target.c (get_gomp_offload_icvs): Added teams_thread_limit_var
1810 (gomp_load_image_to_device): Added a size check for the ICVs struct
1812 (gomp_copy_back_icvs): New function that is used in GOMP_target_ext to
1813 copy back the ICV values from device to host.
1814 (GOMP_target_ext): Update the number of teams and threads in the kernel
1815 args also considering device-specific values.
1816 * testsuite/libgomp.c-c++-common/icv-4.c: Fixed an error in the reading
1817 of OMP_TEAMS_THREAD_LIMIT from the environment.
1818 * testsuite/libgomp.c-c++-common/icv-5.c: Extended.
1819 * testsuite/libgomp.c-c++-common/icv-6.c: Extended.
1820 * testsuite/libgomp.c-c++-common/icv-7.c: Extended.
1821 * testsuite/libgomp.c-c++-common/icv-9.c: New test.
1822 * testsuite/libgomp.fortran/icv-5.f90: New test.
1823 * testsuite/libgomp.fortran/icv-6.f90: New test.
1825 2022-12-06 Tobias Burnus <tobias@codesourcery.com>
1827 * libgomp.texi (OpenMP 5.2): Add missing 'the'.
1828 (TR11): Add missing '@tab N @tab'.
1830 2022-11-30 Tobias Burnus <tobias@codesourcery.com>
1832 * libgomp.texi (OpenMP Context Selectors): Add 'gfx803' to gcn's isa.
1834 2022-11-30 Paul-Antoine Arras <pa@codesourcery.com>
1836 * testsuite/libgomp.c/declare-variant-4-fiji.c: New test.
1837 * testsuite/libgomp.c/declare-variant-4-gfx803.c: New test.
1838 * testsuite/libgomp.c/declare-variant-4-gfx900.c: New test.
1839 * testsuite/libgomp.c/declare-variant-4-gfx906.c: New test.
1840 * testsuite/libgomp.c/declare-variant-4-gfx908.c: New test.
1841 * testsuite/libgomp.c/declare-variant-4-gfx90a.c: New test.
1842 * testsuite/libgomp.c/declare-variant-4.h: New header file.
1844 2022-11-28 Tobias Burnus <tobias@codesourcery.com>
1846 * libgomp.texi (OpenMP 5.2): Mark end-directive as Y.
1848 2022-11-25 Sandra Loosemore <sandra@codesourcery.com>
1850 * testsuite/lib/libgomp.exp: Load scanoffloadipa.exp library.
1851 * testsuite/libgomp.c/target-simd-clone-1.c: New.
1852 * testsuite/libgomp.c/target-simd-clone-2.c: New.
1853 * testsuite/libgomp.c/target-simd-clone-3.c: New.
1855 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1857 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Use unsigned int
1858 for 'i' to match 'fn_entries'; regard absent GOMP_REV_OFFLOAD_VAR
1859 as valid and the code having no reverse-offload code.
1860 * testsuite/libgomp.c-c++-common/reverse-offload-2.c: New test.
1862 2022-11-25 Tobias Burnus <tobias@codesourcery.com>
1864 * libgomp.texi (OpenMP Implementation Status): Add three 5.1 items
1865 and status for Technical Report (TR) 11.
1867 2022-11-21 Tobias Burnus <tobias@codesourcery.com>
1869 * config/gcn/libgomp-gcn.h (struct output):
1870 Remove 'msg_u64' from the union, change
1871 value_u64[2] to value_u64[6].
1872 * config/gcn/target.c (GOMP_target_ext): Update accordingly.
1873 * plugin/plugin-gcn.c (process_reverse_offload, console_output):
1876 2022-11-19 Tobias Burnus <tobias@codesourcery.com>
1878 * config/gcn/libgomp-gcn.h: New file; contains
1879 struct output, declared previously in plugin-gcn.c.
1880 * config/gcn/target.c: Include it.
1881 (GOMP_ADDITIONAL_ICVS): Declare as extern var.
1882 (GOMP_target_ext): Handle reverse offload.
1883 * plugin/plugin-gcn.c: Include libgomp-gcn.h.
1884 (struct kernargs): Replace struct def by the one
1885 from libgomp-gcn.h for output_data.
1886 (process_reverse_offload): New.
1887 (console_output): Call it.
1889 2022-11-16 Tobias Burnus <tobias@codesourcery.com>
1890 Andrew Stubbs <ams@codesourcery.com>
1892 * config/gcn/team.c (gomp_gcn_enter_kernel): Use
1893 __builtin_gcn_kernarg_ptr instead of asm ("s8").
1895 2022-11-14 Martin Liska <mliska@suse.cz>
1898 2022-11-14 Martin Liska <mliska@suse.cz>
1900 * doc/amd-radeon-gcn.rst: New file.
1901 * doc/conf.py: New file.
1902 * doc/copyright.rst: New file.
1903 * doc/cuda-streams-usage.rst: New file.
1904 * doc/enabling-openacc.rst: New file.
1905 * doc/enabling-openmp.rst: New file.
1906 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
1907 * doc/first-invocation-openacc-library-api.rst: New file.
1908 * doc/funding.rst: New file.
1909 * doc/general-public-license-3.rst: New file.
1910 * doc/gnu-free-documentation-license.rst: New file.
1911 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
1912 * doc/index.rst: New file.
1913 * doc/indices-and-tables.rst: New file.
1914 * doc/introduction.rst: New file.
1915 * doc/memory-allocation-with-libmemkind.rst: New file.
1916 * doc/nvptx.rst: New file.
1917 * doc/offload-target-specifics.rst: New file.
1918 * doc/openacc-environment-variables.rst: New file.
1919 * doc/openacc-environment-variables/accdevicenum.rst: New file.
1920 * doc/openacc-environment-variables/accdevicetype.rst: New file.
1921 * doc/openacc-environment-variables/accproflib.rst: New file.
1922 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
1923 * doc/openacc-introduction.rst: New file.
1924 * doc/openacc-library-and-environment-variables.rst: New file.
1925 * doc/openacc-library-interoperability.rst: New file.
1926 * doc/openacc-profiling-interface.rst: New file.
1927 * doc/openacc-runtime-library-routines.rst: New file.
1928 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
1929 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
1930 * doc/openacc-runtime-library-routines/accattach.rst: New file.
1931 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
1932 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
1933 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
1934 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
1935 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
1936 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
1937 * doc/openacc-runtime-library-routines/accfree.rst: New file.
1938 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
1939 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
1940 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
1941 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
1942 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
1943 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
1944 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
1945 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
1946 * doc/openacc-runtime-library-routines/accinit.rst: New file.
1947 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
1948 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
1949 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
1950 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
1951 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
1952 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
1953 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
1954 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
1955 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
1956 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
1957 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
1958 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
1959 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
1960 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
1961 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
1962 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
1963 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
1964 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
1965 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
1966 * doc/openacc-runtime-library-routines/accwait.rst: New file.
1967 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
1968 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
1969 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
1970 * doc/openmp-context-selectors.rst: New file.
1971 * doc/openmp-environment-variables.rst: New file.
1972 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
1973 * doc/openmp-environment-variables/gompdebug.rst: New file.
1974 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
1975 * doc/openmp-environment-variables/gompspincount.rst: New file.
1976 * doc/openmp-environment-variables/gompstacksize.rst: New file.
1977 * doc/openmp-environment-variables/ompcancellation.rst: New file.
1978 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
1979 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
1980 * doc/openmp-environment-variables/ompdynamic.rst: New file.
1981 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
1982 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
1983 * doc/openmp-environment-variables/ompnested.rst: New file.
1984 * doc/openmp-environment-variables/ompnumteams.rst: New file.
1985 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
1986 * doc/openmp-environment-variables/ompplaces.rst: New file.
1987 * doc/openmp-environment-variables/ompprocbind.rst: New file.
1988 * doc/openmp-environment-variables/ompschedule.rst: New file.
1989 * doc/openmp-environment-variables/ompstacksize.rst: New file.
1990 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
1991 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
1992 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
1993 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
1994 * doc/openmp-implementation-specifics.rst: New file.
1995 * doc/openmp-implementation-status.rst: New file.
1996 * doc/openmp-implementation-status/openmp-45.rst: New file.
1997 * doc/openmp-implementation-status/openmp-50.rst: New file.
1998 * doc/openmp-implementation-status/openmp-51.rst: New file.
1999 * doc/openmp-implementation-status/openmp-52.rst: New file.
2000 * doc/openmp-runtime-library-routines.rst: New file.
2001 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2002 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2003 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2004 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2005 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2006 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2007 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2008 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2009 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2010 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2011 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2012 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2013 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2014 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2015 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2016 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2017 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2018 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2019 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2020 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2021 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2022 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2023 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2024 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2025 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2026 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2027 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2028 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2029 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2030 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2031 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2032 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2033 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2034 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2035 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2036 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2037 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2038 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2039 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2040 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2041 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2042 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2043 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2044 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2045 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2046 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2047 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2048 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2049 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2050 * doc/reporting-bugs.rst: New file.
2051 * doc/the-libgomp-abi.rst: New file.
2052 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2053 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2054 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2055 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2057 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2058 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2059 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2060 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2061 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2062 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2063 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2064 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
2065 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
2066 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
2067 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
2069 2022-11-14 Martin Liska <mliska@suse.cz>
2072 2022-11-14 Martin Liska <mliska@suse.cz>
2074 * Makefile.in: Support Sphinx based documentation.
2076 2022-11-14 Martin Liska <mliska@suse.cz>
2079 2022-11-14 Martin Liska <mliska@suse.cz>
2081 * libgomp.texi: Removed.
2083 2022-11-14 Martin Liska <mliska@suse.cz>
2086 2022-11-14 Martin Liska <mliska@suse.cz>
2088 * Makefile.in: Support --with-sphinx-build.
2089 * configure.ac: Likewise..
2090 * configure: Regenerate.
2092 2022-11-14 Martin Liska <mliska@suse.cz>
2095 2022-11-09 Martin Liska <mliska@suse.cz>
2097 * Makefile.in: Build info pages conditionally.
2099 2022-11-14 Martin Liska <mliska@suse.cz>
2102 2022-11-14 Martin Liska <mliska@suse.cz>
2104 * doc/amd-radeon-gcn.rst:
2105 Add trailing newline.
2106 * doc/copyright.rst:
2107 Add trailing newline.
2108 * doc/cuda-streams-usage.rst:
2109 Add trailing newline.
2110 * doc/enabling-openacc.rst:
2111 Add trailing newline.
2112 * doc/enabling-openmp.rst:
2113 Add trailing newline.
2114 * doc/first-invocation-nvidia-cublas-library-api.rst:
2115 Add trailing newline.
2116 * doc/first-invocation-openacc-library-api.rst:
2117 Add trailing newline.
2119 Add trailing newline.
2120 * doc/general-public-license-3.rst:
2121 Add trailing newline.
2122 * doc/gnu-free-documentation-license.rst:
2123 Add trailing newline.
2124 * doc/implementation-status-and-implementation-defined-behavior.rst:
2125 Add trailing newline.
2127 Add trailing newline.
2128 * doc/indices-and-tables.rst:
2129 Add trailing newline.
2130 * doc/introduction.rst:
2131 Add trailing newline.
2132 * doc/memory-allocation-with-libmemkind.rst:
2133 Add trailing newline.
2135 Add trailing newline.
2136 * doc/offload-target-specifics.rst:
2137 Add trailing newline.
2138 * doc/openacc-environment-variables.rst:
2139 Add trailing newline.
2140 * doc/openacc-environment-variables/accdevicenum.rst:
2141 Add trailing newline.
2142 * doc/openacc-environment-variables/accdevicetype.rst:
2143 Add trailing newline.
2144 * doc/openacc-environment-variables/accproflib.rst:
2145 Add trailing newline.
2146 * doc/openacc-environment-variables/gccaccnotify.rst:
2147 Add trailing newline.
2148 * doc/openacc-introduction.rst:
2149 Add trailing newline.
2150 * doc/openacc-library-and-environment-variables.rst:
2151 Add trailing newline.
2152 * doc/openacc-library-interoperability.rst:
2153 Add trailing newline.
2154 * doc/openacc-profiling-interface.rst:
2155 Add trailing newline.
2156 * doc/openacc-runtime-library-routines.rst:
2157 Add trailing newline.
2158 * doc/openacc-runtime-library-routines/accasynctest.rst:
2159 Add trailing newline.
2160 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2161 Add trailing newline.
2162 * doc/openacc-runtime-library-routines/accattach.rst:
2163 Add trailing newline.
2164 * doc/openacc-runtime-library-routines/acccopyin.rst:
2165 Add trailing newline.
2166 * doc/openacc-runtime-library-routines/acccopyout.rst:
2167 Add trailing newline.
2168 * doc/openacc-runtime-library-routines/acccreate.rst:
2169 Add trailing newline.
2170 * doc/openacc-runtime-library-routines/accdelete.rst:
2171 Add trailing newline.
2172 * doc/openacc-runtime-library-routines/accdetach.rst:
2173 Add trailing newline.
2174 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2175 Add trailing newline.
2176 * doc/openacc-runtime-library-routines/accfree.rst:
2177 Add trailing newline.
2178 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2179 Add trailing newline.
2180 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2181 Add trailing newline.
2182 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2183 Add trailing newline.
2184 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2185 Add trailing newline.
2186 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2187 Add trailing newline.
2188 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2189 Add trailing newline.
2190 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2191 Add trailing newline.
2192 * doc/openacc-runtime-library-routines/acchostptr.rst:
2193 Add trailing newline.
2194 * doc/openacc-runtime-library-routines/accinit.rst:
2195 Add trailing newline.
2196 * doc/openacc-runtime-library-routines/accispresent.rst:
2197 Add trailing newline.
2198 * doc/openacc-runtime-library-routines/accmalloc.rst:
2199 Add trailing newline.
2200 * doc/openacc-runtime-library-routines/accmapdata.rst:
2201 Add trailing newline.
2202 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2203 Add trailing newline.
2204 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2205 Add trailing newline.
2206 * doc/openacc-runtime-library-routines/accondevice.rst:
2207 Add trailing newline.
2208 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2209 Add trailing newline.
2210 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2211 Add trailing newline.
2212 * doc/openacc-runtime-library-routines/accproflookup.rst:
2213 Add trailing newline.
2214 * doc/openacc-runtime-library-routines/accprofregister.rst:
2215 Add trailing newline.
2216 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2217 Add trailing newline.
2218 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2219 Add trailing newline.
2220 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2221 Add trailing newline.
2222 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2223 Add trailing newline.
2224 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2225 Add trailing newline.
2226 * doc/openacc-runtime-library-routines/accshutdown.rst:
2227 Add trailing newline.
2228 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2229 Add trailing newline.
2230 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2231 Add trailing newline.
2232 * doc/openacc-runtime-library-routines/accupdateself.rst:
2233 Add trailing newline.
2234 * doc/openacc-runtime-library-routines/accwait.rst:
2235 Add trailing newline.
2236 * doc/openacc-runtime-library-routines/accwaitall.rst:
2237 Add trailing newline.
2238 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2239 Add trailing newline.
2240 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2241 Add trailing newline.
2242 * doc/openmp-context-selectors.rst:
2243 Add trailing newline.
2244 * doc/openmp-environment-variables.rst:
2245 Add trailing newline.
2246 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2247 Add trailing newline.
2248 * doc/openmp-environment-variables/gompdebug.rst:
2249 Add trailing newline.
2250 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2251 Add trailing newline.
2252 * doc/openmp-environment-variables/gompspincount.rst:
2253 Add trailing newline.
2254 * doc/openmp-environment-variables/gompstacksize.rst:
2255 Add trailing newline.
2256 * doc/openmp-environment-variables/ompcancellation.rst:
2257 Add trailing newline.
2258 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2259 Add trailing newline.
2260 * doc/openmp-environment-variables/ompdisplayenv.rst:
2261 Add trailing newline.
2262 * doc/openmp-environment-variables/ompdynamic.rst:
2263 Add trailing newline.
2264 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2265 Add trailing newline.
2266 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2267 Add trailing newline.
2268 * doc/openmp-environment-variables/ompnested.rst:
2269 Add trailing newline.
2270 * doc/openmp-environment-variables/ompnumteams.rst:
2271 Add trailing newline.
2272 * doc/openmp-environment-variables/ompnumthreads.rst:
2273 Add trailing newline.
2274 * doc/openmp-environment-variables/ompplaces.rst:
2275 Add trailing newline.
2276 * doc/openmp-environment-variables/ompprocbind.rst:
2277 Add trailing newline.
2278 * doc/openmp-environment-variables/ompschedule.rst:
2279 Add trailing newline.
2280 * doc/openmp-environment-variables/ompstacksize.rst:
2281 Add trailing newline.
2282 * doc/openmp-environment-variables/omptargetoffload.rst:
2283 Add trailing newline.
2284 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2285 Add trailing newline.
2286 * doc/openmp-environment-variables/ompthreadlimit.rst:
2287 Add trailing newline.
2288 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2289 Add trailing newline.
2290 * doc/openmp-implementation-specifics.rst:
2291 Add trailing newline.
2292 * doc/openmp-implementation-status.rst:
2293 Add trailing newline.
2294 * doc/openmp-implementation-status/openmp-45.rst:
2295 Add trailing newline.
2296 * doc/openmp-implementation-status/openmp-50.rst:
2297 Add trailing newline.
2298 * doc/openmp-implementation-status/openmp-51.rst:
2299 Add trailing newline.
2300 * doc/openmp-implementation-status/openmp-52.rst:
2301 Add trailing newline.
2302 * doc/openmp-runtime-library-routines.rst:
2303 Add trailing newline.
2304 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2305 Add trailing newline.
2306 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2307 Add trailing newline.
2308 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2309 Add trailing newline.
2310 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2311 Add trailing newline.
2312 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2313 Add trailing newline.
2314 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2315 Add trailing newline.
2316 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2317 Add trailing newline.
2318 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2319 Add trailing newline.
2320 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2321 Add trailing newline.
2322 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2323 Add trailing newline.
2324 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2325 Add trailing newline.
2326 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2327 Add trailing newline.
2328 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2329 Add trailing newline.
2330 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2331 Add trailing newline.
2332 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2333 Add trailing newline.
2334 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2335 Add trailing newline.
2336 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2337 Add trailing newline.
2338 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2339 Add trailing newline.
2340 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2341 Add trailing newline.
2342 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2343 Add trailing newline.
2344 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2345 Add trailing newline.
2346 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2347 Add trailing newline.
2348 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2349 Add trailing newline.
2350 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2351 Add trailing newline.
2352 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2353 Add trailing newline.
2354 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2355 Add trailing newline.
2356 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2357 Add trailing newline.
2358 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2359 Add trailing newline.
2360 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2361 Add trailing newline.
2362 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2363 Add trailing newline.
2364 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2365 Add trailing newline.
2366 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2367 Add trailing newline.
2368 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2369 Add trailing newline.
2370 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2371 Add trailing newline.
2372 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2373 Add trailing newline.
2374 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2375 Add trailing newline.
2376 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2377 Add trailing newline.
2378 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2379 Add trailing newline.
2380 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2381 Add trailing newline.
2382 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2383 Add trailing newline.
2384 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2385 Add trailing newline.
2386 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2387 Add trailing newline.
2388 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2389 Add trailing newline.
2390 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2391 Add trailing newline.
2392 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2393 Add trailing newline.
2394 * doc/openmp-runtime-library-routines/omptestlock.rst:
2395 Add trailing newline.
2396 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2397 Add trailing newline.
2398 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2399 Add trailing newline.
2400 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2401 Add trailing newline.
2402 * doc/reporting-bugs.rst:
2403 Add trailing newline.
2404 * doc/the-libgomp-abi.rst:
2405 Add trailing newline.
2406 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2407 Add trailing newline.
2408 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2409 Add trailing newline.
2410 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2411 Add trailing newline.
2412 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2413 Add trailing newline.
2414 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2415 Add trailing newline.
2416 * doc/the-libgomp-abi/implementing-for-construct.rst:
2417 Add trailing newline.
2418 * doc/the-libgomp-abi/implementing-master-construct.rst:
2419 Add trailing newline.
2420 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2421 Add trailing newline.
2422 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2423 Add trailing newline.
2424 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2425 Add trailing newline.
2426 * doc/the-libgomp-abi/implementing-private-clause.rst:
2427 Add trailing newline.
2428 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2429 Add trailing newline.
2430 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2431 Add trailing newline.
2432 * doc/the-libgomp-abi/implementing-single-construct.rst:
2433 Add trailing newline.
2434 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2435 Add trailing newline.
2437 2022-11-14 Martin Liska <mliska@suse.cz>
2440 2022-11-09 Martin Liska <mliska@suse.cz>
2442 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2444 2022-11-14 Martin Liska <mliska@suse.cz>
2447 2022-11-14 Martin Liska <mliska@suse.cz>
2449 * doc/conf.py: Add newline at last line.
2451 2022-11-14 Martin Liska <mliska@suse.cz>
2454 2022-11-14 Martin Liska <mliska@suse.cz>
2457 * configure: Regenerate.
2458 * configure.ac: Always set sphinx-build.
2460 2022-11-13 Martin Liska <mliska@suse.cz>
2463 * configure: Regenerate.
2464 * configure.ac: Always set sphinx-build.
2466 2022-11-12 Jakub Jelinek <jakub@redhat.com>
2469 * env.c (parse_unsigned_long): Cast params[2] to uintptr_t rather than
2470 unsigned long. Change type of upper from unsigned to unsigned long.
2472 2022-11-10 Martin Liska <mliska@suse.cz>
2474 * doc/conf.py: Add newline at last line.
2476 2022-11-09 Martin Liska <mliska@suse.cz>
2478 * Makefile.in: Add missing HAS_SPHINX_BUILD.
2480 2022-11-09 Martin Liska <mliska@suse.cz>
2482 * doc/amd-radeon-gcn.rst:
2483 Add trailing newline.
2484 * doc/copyright.rst:
2485 Add trailing newline.
2486 * doc/cuda-streams-usage.rst:
2487 Add trailing newline.
2488 * doc/enabling-openacc.rst:
2489 Add trailing newline.
2490 * doc/enabling-openmp.rst:
2491 Add trailing newline.
2492 * doc/first-invocation-nvidia-cublas-library-api.rst:
2493 Add trailing newline.
2494 * doc/first-invocation-openacc-library-api.rst:
2495 Add trailing newline.
2497 Add trailing newline.
2498 * doc/general-public-license-3.rst:
2499 Add trailing newline.
2500 * doc/gnu-free-documentation-license.rst:
2501 Add trailing newline.
2502 * doc/implementation-status-and-implementation-defined-behavior.rst:
2503 Add trailing newline.
2505 Add trailing newline.
2506 * doc/indices-and-tables.rst:
2507 Add trailing newline.
2508 * doc/introduction.rst:
2509 Add trailing newline.
2510 * doc/memory-allocation-with-libmemkind.rst:
2511 Add trailing newline.
2513 Add trailing newline.
2514 * doc/offload-target-specifics.rst:
2515 Add trailing newline.
2516 * doc/openacc-environment-variables.rst:
2517 Add trailing newline.
2518 * doc/openacc-environment-variables/accdevicenum.rst:
2519 Add trailing newline.
2520 * doc/openacc-environment-variables/accdevicetype.rst:
2521 Add trailing newline.
2522 * doc/openacc-environment-variables/accproflib.rst:
2523 Add trailing newline.
2524 * doc/openacc-environment-variables/gccaccnotify.rst:
2525 Add trailing newline.
2526 * doc/openacc-introduction.rst:
2527 Add trailing newline.
2528 * doc/openacc-library-and-environment-variables.rst:
2529 Add trailing newline.
2530 * doc/openacc-library-interoperability.rst:
2531 Add trailing newline.
2532 * doc/openacc-profiling-interface.rst:
2533 Add trailing newline.
2534 * doc/openacc-runtime-library-routines.rst:
2535 Add trailing newline.
2536 * doc/openacc-runtime-library-routines/accasynctest.rst:
2537 Add trailing newline.
2538 * doc/openacc-runtime-library-routines/accasynctestall.rst:
2539 Add trailing newline.
2540 * doc/openacc-runtime-library-routines/accattach.rst:
2541 Add trailing newline.
2542 * doc/openacc-runtime-library-routines/acccopyin.rst:
2543 Add trailing newline.
2544 * doc/openacc-runtime-library-routines/acccopyout.rst:
2545 Add trailing newline.
2546 * doc/openacc-runtime-library-routines/acccreate.rst:
2547 Add trailing newline.
2548 * doc/openacc-runtime-library-routines/accdelete.rst:
2549 Add trailing newline.
2550 * doc/openacc-runtime-library-routines/accdetach.rst:
2551 Add trailing newline.
2552 * doc/openacc-runtime-library-routines/accdeviceptr.rst:
2553 Add trailing newline.
2554 * doc/openacc-runtime-library-routines/accfree.rst:
2555 Add trailing newline.
2556 * doc/openacc-runtime-library-routines/accgetcudastream.rst:
2557 Add trailing newline.
2558 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst:
2559 Add trailing newline.
2560 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst:
2561 Add trailing newline.
2562 * doc/openacc-runtime-library-routines/accgetdevicenum.rst:
2563 Add trailing newline.
2564 * doc/openacc-runtime-library-routines/accgetdevicetype.rst:
2565 Add trailing newline.
2566 * doc/openacc-runtime-library-routines/accgetnumdevices.rst:
2567 Add trailing newline.
2568 * doc/openacc-runtime-library-routines/accgetproperty.rst:
2569 Add trailing newline.
2570 * doc/openacc-runtime-library-routines/acchostptr.rst:
2571 Add trailing newline.
2572 * doc/openacc-runtime-library-routines/accinit.rst:
2573 Add trailing newline.
2574 * doc/openacc-runtime-library-routines/accispresent.rst:
2575 Add trailing newline.
2576 * doc/openacc-runtime-library-routines/accmalloc.rst:
2577 Add trailing newline.
2578 * doc/openacc-runtime-library-routines/accmapdata.rst:
2579 Add trailing newline.
2580 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst:
2581 Add trailing newline.
2582 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst:
2583 Add trailing newline.
2584 * doc/openacc-runtime-library-routines/accondevice.rst:
2585 Add trailing newline.
2586 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst:
2587 Add trailing newline.
2588 * doc/openacc-runtime-library-routines/accpresentorcreate.rst:
2589 Add trailing newline.
2590 * doc/openacc-runtime-library-routines/accproflookup.rst:
2591 Add trailing newline.
2592 * doc/openacc-runtime-library-routines/accprofregister.rst:
2593 Add trailing newline.
2594 * doc/openacc-runtime-library-routines/accprofunregister.rst:
2595 Add trailing newline.
2596 * doc/openacc-runtime-library-routines/accregisterlibrary.rst:
2597 Add trailing newline.
2598 * doc/openacc-runtime-library-routines/accsetcudastream.rst:
2599 Add trailing newline.
2600 * doc/openacc-runtime-library-routines/accsetdevicenum.rst:
2601 Add trailing newline.
2602 * doc/openacc-runtime-library-routines/accsetdevicetype.rst:
2603 Add trailing newline.
2604 * doc/openacc-runtime-library-routines/accshutdown.rst:
2605 Add trailing newline.
2606 * doc/openacc-runtime-library-routines/accunmapdata.rst:
2607 Add trailing newline.
2608 * doc/openacc-runtime-library-routines/accupdatedevice.rst:
2609 Add trailing newline.
2610 * doc/openacc-runtime-library-routines/accupdateself.rst:
2611 Add trailing newline.
2612 * doc/openacc-runtime-library-routines/accwait.rst:
2613 Add trailing newline.
2614 * doc/openacc-runtime-library-routines/accwaitall.rst:
2615 Add trailing newline.
2616 * doc/openacc-runtime-library-routines/accwaitallasync.rst:
2617 Add trailing newline.
2618 * doc/openacc-runtime-library-routines/accwaitasync.rst:
2619 Add trailing newline.
2620 * doc/openmp-context-selectors.rst:
2621 Add trailing newline.
2622 * doc/openmp-environment-variables.rst:
2623 Add trailing newline.
2624 * doc/openmp-environment-variables/gompcpuaffinity.rst:
2625 Add trailing newline.
2626 * doc/openmp-environment-variables/gompdebug.rst:
2627 Add trailing newline.
2628 * doc/openmp-environment-variables/gomprtemsthreadpools.rst:
2629 Add trailing newline.
2630 * doc/openmp-environment-variables/gompspincount.rst:
2631 Add trailing newline.
2632 * doc/openmp-environment-variables/gompstacksize.rst:
2633 Add trailing newline.
2634 * doc/openmp-environment-variables/ompcancellation.rst:
2635 Add trailing newline.
2636 * doc/openmp-environment-variables/ompdefaultdevice.rst:
2637 Add trailing newline.
2638 * doc/openmp-environment-variables/ompdisplayenv.rst:
2639 Add trailing newline.
2640 * doc/openmp-environment-variables/ompdynamic.rst:
2641 Add trailing newline.
2642 * doc/openmp-environment-variables/ompmaxactivelevels.rst:
2643 Add trailing newline.
2644 * doc/openmp-environment-variables/ompmaxtaskpriority.rst:
2645 Add trailing newline.
2646 * doc/openmp-environment-variables/ompnested.rst:
2647 Add trailing newline.
2648 * doc/openmp-environment-variables/ompnumteams.rst:
2649 Add trailing newline.
2650 * doc/openmp-environment-variables/ompnumthreads.rst:
2651 Add trailing newline.
2652 * doc/openmp-environment-variables/ompplaces.rst:
2653 Add trailing newline.
2654 * doc/openmp-environment-variables/ompprocbind.rst:
2655 Add trailing newline.
2656 * doc/openmp-environment-variables/ompschedule.rst:
2657 Add trailing newline.
2658 * doc/openmp-environment-variables/ompstacksize.rst:
2659 Add trailing newline.
2660 * doc/openmp-environment-variables/omptargetoffload.rst:
2661 Add trailing newline.
2662 * doc/openmp-environment-variables/ompteamsthreadlimit.rst:
2663 Add trailing newline.
2664 * doc/openmp-environment-variables/ompthreadlimit.rst:
2665 Add trailing newline.
2666 * doc/openmp-environment-variables/ompwaitpolicy.rst:
2667 Add trailing newline.
2668 * doc/openmp-implementation-specifics.rst:
2669 Add trailing newline.
2670 * doc/openmp-implementation-status.rst:
2671 Add trailing newline.
2672 * doc/openmp-implementation-status/openmp-45.rst:
2673 Add trailing newline.
2674 * doc/openmp-implementation-status/openmp-50.rst:
2675 Add trailing newline.
2676 * doc/openmp-implementation-status/openmp-51.rst:
2677 Add trailing newline.
2678 * doc/openmp-implementation-status/openmp-52.rst:
2679 Add trailing newline.
2680 * doc/openmp-runtime-library-routines.rst:
2681 Add trailing newline.
2682 * doc/openmp-runtime-library-routines/ompdestroylock.rst:
2683 Add trailing newline.
2684 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst:
2685 Add trailing newline.
2686 * doc/openmp-runtime-library-routines/ompfulfillevent.rst:
2687 Add trailing newline.
2688 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst:
2689 Add trailing newline.
2690 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst:
2691 Add trailing newline.
2692 * doc/openmp-runtime-library-routines/ompgetcancellation.rst:
2693 Add trailing newline.
2694 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst:
2695 Add trailing newline.
2696 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst:
2697 Add trailing newline.
2698 * doc/openmp-runtime-library-routines/ompgetdynamic.rst:
2699 Add trailing newline.
2700 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst:
2701 Add trailing newline.
2702 * doc/openmp-runtime-library-routines/ompgetlevel.rst:
2703 Add trailing newline.
2704 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst:
2705 Add trailing newline.
2706 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst:
2707 Add trailing newline.
2708 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst:
2709 Add trailing newline.
2710 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst:
2711 Add trailing newline.
2712 * doc/openmp-runtime-library-routines/ompgetnested.rst:
2713 Add trailing newline.
2714 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst:
2715 Add trailing newline.
2716 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst:
2717 Add trailing newline.
2718 * doc/openmp-runtime-library-routines/ompgetnumteams.rst:
2719 Add trailing newline.
2720 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst:
2721 Add trailing newline.
2722 * doc/openmp-runtime-library-routines/ompgetprocbind.rst:
2723 Add trailing newline.
2724 * doc/openmp-runtime-library-routines/ompgetschedule.rst:
2725 Add trailing newline.
2726 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst:
2727 Add trailing newline.
2728 * doc/openmp-runtime-library-routines/ompgetteamnum.rst:
2729 Add trailing newline.
2730 * doc/openmp-runtime-library-routines/ompgetteamsize.rst:
2731 Add trailing newline.
2732 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst:
2733 Add trailing newline.
2734 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst:
2735 Add trailing newline.
2736 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst:
2737 Add trailing newline.
2738 * doc/openmp-runtime-library-routines/ompgetwtick.rst:
2739 Add trailing newline.
2740 * doc/openmp-runtime-library-routines/ompgetwtime.rst:
2741 Add trailing newline.
2742 * doc/openmp-runtime-library-routines/ompinfinal.rst:
2743 Add trailing newline.
2744 * doc/openmp-runtime-library-routines/ompinitlock.rst:
2745 Add trailing newline.
2746 * doc/openmp-runtime-library-routines/ompinitnestlock.rst:
2747 Add trailing newline.
2748 * doc/openmp-runtime-library-routines/ompinparallel.rst:
2749 Add trailing newline.
2750 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst:
2751 Add trailing newline.
2752 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst:
2753 Add trailing newline.
2754 * doc/openmp-runtime-library-routines/ompsetdynamic.rst:
2755 Add trailing newline.
2756 * doc/openmp-runtime-library-routines/ompsetlock.rst:
2757 Add trailing newline.
2758 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst:
2759 Add trailing newline.
2760 * doc/openmp-runtime-library-routines/ompsetnested.rst:
2761 Add trailing newline.
2762 * doc/openmp-runtime-library-routines/ompsetnestlock.rst:
2763 Add trailing newline.
2764 * doc/openmp-runtime-library-routines/ompsetnumteams.rst:
2765 Add trailing newline.
2766 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst:
2767 Add trailing newline.
2768 * doc/openmp-runtime-library-routines/ompsetschedule.rst:
2769 Add trailing newline.
2770 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst:
2771 Add trailing newline.
2772 * doc/openmp-runtime-library-routines/omptestlock.rst:
2773 Add trailing newline.
2774 * doc/openmp-runtime-library-routines/omptestnestlock.rst:
2775 Add trailing newline.
2776 * doc/openmp-runtime-library-routines/ompunsetlock.rst:
2777 Add trailing newline.
2778 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst:
2779 Add trailing newline.
2780 * doc/reporting-bugs.rst:
2781 Add trailing newline.
2782 * doc/the-libgomp-abi.rst:
2783 Add trailing newline.
2784 * doc/the-libgomp-abi/implementing-atomic-construct.rst:
2785 Add trailing newline.
2786 * doc/the-libgomp-abi/implementing-barrier-construct.rst:
2787 Add trailing newline.
2788 * doc/the-libgomp-abi/implementing-critical-construct.rst:
2789 Add trailing newline.
2790 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2791 Add trailing newline.
2792 * doc/the-libgomp-abi/implementing-flush-construct.rst:
2793 Add trailing newline.
2794 * doc/the-libgomp-abi/implementing-for-construct.rst:
2795 Add trailing newline.
2796 * doc/the-libgomp-abi/implementing-master-construct.rst:
2797 Add trailing newline.
2798 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst:
2799 Add trailing newline.
2800 * doc/the-libgomp-abi/implementing-ordered-construct.rst:
2801 Add trailing newline.
2802 * doc/the-libgomp-abi/implementing-parallel-construct.rst:
2803 Add trailing newline.
2804 * doc/the-libgomp-abi/implementing-private-clause.rst:
2805 Add trailing newline.
2806 * doc/the-libgomp-abi/implementing-reduction-clause.rst:
2807 Add trailing newline.
2808 * doc/the-libgomp-abi/implementing-sections-construct.rst:
2809 Add trailing newline.
2810 * doc/the-libgomp-abi/implementing-single-construct.rst:
2811 Add trailing newline.
2812 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst:
2813 Add trailing newline.
2815 2022-11-09 Martin Liska <mliska@suse.cz>
2817 * Makefile.in: Build info pages conditionally.
2819 2022-11-09 Martin Liska <mliska@suse.cz>
2821 * Makefile.in: Support --with-sphinx-build.
2822 * configure.ac: Likewise..
2823 * configure: Regenerate.
2825 2022-11-09 Martin Liska <mliska@suse.cz>
2827 * libgomp.texi: Removed.
2829 2022-11-09 Martin Liska <mliska@suse.cz>
2831 * Makefile.in: Support Sphinx based documentation.
2833 2022-11-09 Martin Liska <mliska@suse.cz>
2835 * doc/amd-radeon-gcn.rst: New file.
2836 * doc/conf.py: New file.
2837 * doc/copyright.rst: New file.
2838 * doc/cuda-streams-usage.rst: New file.
2839 * doc/enabling-openacc.rst: New file.
2840 * doc/enabling-openmp.rst: New file.
2841 * doc/first-invocation-nvidia-cublas-library-api.rst: New file.
2842 * doc/first-invocation-openacc-library-api.rst: New file.
2843 * doc/funding.rst: New file.
2844 * doc/general-public-license-3.rst: New file.
2845 * doc/gnu-free-documentation-license.rst: New file.
2846 * doc/implementation-status-and-implementation-defined-behavior.rst: New file.
2847 * doc/index.rst: New file.
2848 * doc/indices-and-tables.rst: New file.
2849 * doc/introduction.rst: New file.
2850 * doc/memory-allocation-with-libmemkind.rst: New file.
2851 * doc/nvptx.rst: New file.
2852 * doc/offload-target-specifics.rst: New file.
2853 * doc/openacc-environment-variables.rst: New file.
2854 * doc/openacc-environment-variables/accdevicenum.rst: New file.
2855 * doc/openacc-environment-variables/accdevicetype.rst: New file.
2856 * doc/openacc-environment-variables/accproflib.rst: New file.
2857 * doc/openacc-environment-variables/gccaccnotify.rst: New file.
2858 * doc/openacc-introduction.rst: New file.
2859 * doc/openacc-library-and-environment-variables.rst: New file.
2860 * doc/openacc-library-interoperability.rst: New file.
2861 * doc/openacc-profiling-interface.rst: New file.
2862 * doc/openacc-runtime-library-routines.rst: New file.
2863 * doc/openacc-runtime-library-routines/accasynctest.rst: New file.
2864 * doc/openacc-runtime-library-routines/accasynctestall.rst: New file.
2865 * doc/openacc-runtime-library-routines/accattach.rst: New file.
2866 * doc/openacc-runtime-library-routines/acccopyin.rst: New file.
2867 * doc/openacc-runtime-library-routines/acccopyout.rst: New file.
2868 * doc/openacc-runtime-library-routines/acccreate.rst: New file.
2869 * doc/openacc-runtime-library-routines/accdelete.rst: New file.
2870 * doc/openacc-runtime-library-routines/accdetach.rst: New file.
2871 * doc/openacc-runtime-library-routines/accdeviceptr.rst: New file.
2872 * doc/openacc-runtime-library-routines/accfree.rst: New file.
2873 * doc/openacc-runtime-library-routines/accgetcudastream.rst: New file.
2874 * doc/openacc-runtime-library-routines/accgetcurrentcudacontext.rst: New file.
2875 * doc/openacc-runtime-library-routines/accgetcurrentcudadevice.rst: New file.
2876 * doc/openacc-runtime-library-routines/accgetdevicenum.rst: New file.
2877 * doc/openacc-runtime-library-routines/accgetdevicetype.rst: New file.
2878 * doc/openacc-runtime-library-routines/accgetnumdevices.rst: New file.
2879 * doc/openacc-runtime-library-routines/accgetproperty.rst: New file.
2880 * doc/openacc-runtime-library-routines/acchostptr.rst: New file.
2881 * doc/openacc-runtime-library-routines/accinit.rst: New file.
2882 * doc/openacc-runtime-library-routines/accispresent.rst: New file.
2883 * doc/openacc-runtime-library-routines/accmalloc.rst: New file.
2884 * doc/openacc-runtime-library-routines/accmapdata.rst: New file.
2885 * doc/openacc-runtime-library-routines/accmemcpyfromdevice.rst: New file.
2886 * doc/openacc-runtime-library-routines/accmemcpytodevice.rst: New file.
2887 * doc/openacc-runtime-library-routines/accondevice.rst: New file.
2888 * doc/openacc-runtime-library-routines/accpresentorcopyin.rst: New file.
2889 * doc/openacc-runtime-library-routines/accpresentorcreate.rst: New file.
2890 * doc/openacc-runtime-library-routines/accproflookup.rst: New file.
2891 * doc/openacc-runtime-library-routines/accprofregister.rst: New file.
2892 * doc/openacc-runtime-library-routines/accprofunregister.rst: New file.
2893 * doc/openacc-runtime-library-routines/accregisterlibrary.rst: New file.
2894 * doc/openacc-runtime-library-routines/accsetcudastream.rst: New file.
2895 * doc/openacc-runtime-library-routines/accsetdevicenum.rst: New file.
2896 * doc/openacc-runtime-library-routines/accsetdevicetype.rst: New file.
2897 * doc/openacc-runtime-library-routines/accshutdown.rst: New file.
2898 * doc/openacc-runtime-library-routines/accunmapdata.rst: New file.
2899 * doc/openacc-runtime-library-routines/accupdatedevice.rst: New file.
2900 * doc/openacc-runtime-library-routines/accupdateself.rst: New file.
2901 * doc/openacc-runtime-library-routines/accwait.rst: New file.
2902 * doc/openacc-runtime-library-routines/accwaitall.rst: New file.
2903 * doc/openacc-runtime-library-routines/accwaitallasync.rst: New file.
2904 * doc/openacc-runtime-library-routines/accwaitasync.rst: New file.
2905 * doc/openmp-context-selectors.rst: New file.
2906 * doc/openmp-environment-variables.rst: New file.
2907 * doc/openmp-environment-variables/gompcpuaffinity.rst: New file.
2908 * doc/openmp-environment-variables/gompdebug.rst: New file.
2909 * doc/openmp-environment-variables/gomprtemsthreadpools.rst: New file.
2910 * doc/openmp-environment-variables/gompspincount.rst: New file.
2911 * doc/openmp-environment-variables/gompstacksize.rst: New file.
2912 * doc/openmp-environment-variables/ompcancellation.rst: New file.
2913 * doc/openmp-environment-variables/ompdefaultdevice.rst: New file.
2914 * doc/openmp-environment-variables/ompdisplayenv.rst: New file.
2915 * doc/openmp-environment-variables/ompdynamic.rst: New file.
2916 * doc/openmp-environment-variables/ompmaxactivelevels.rst: New file.
2917 * doc/openmp-environment-variables/ompmaxtaskpriority.rst: New file.
2918 * doc/openmp-environment-variables/ompnested.rst: New file.
2919 * doc/openmp-environment-variables/ompnumteams.rst: New file.
2920 * doc/openmp-environment-variables/ompnumthreads.rst: New file.
2921 * doc/openmp-environment-variables/ompplaces.rst: New file.
2922 * doc/openmp-environment-variables/ompprocbind.rst: New file.
2923 * doc/openmp-environment-variables/ompschedule.rst: New file.
2924 * doc/openmp-environment-variables/ompstacksize.rst: New file.
2925 * doc/openmp-environment-variables/omptargetoffload.rst: New file.
2926 * doc/openmp-environment-variables/ompteamsthreadlimit.rst: New file.
2927 * doc/openmp-environment-variables/ompthreadlimit.rst: New file.
2928 * doc/openmp-environment-variables/ompwaitpolicy.rst: New file.
2929 * doc/openmp-implementation-specifics.rst: New file.
2930 * doc/openmp-implementation-status.rst: New file.
2931 * doc/openmp-implementation-status/openmp-45.rst: New file.
2932 * doc/openmp-implementation-status/openmp-50.rst: New file.
2933 * doc/openmp-implementation-status/openmp-51.rst: New file.
2934 * doc/openmp-implementation-status/openmp-52.rst: New file.
2935 * doc/openmp-runtime-library-routines.rst: New file.
2936 * doc/openmp-runtime-library-routines/ompdestroylock.rst: New file.
2937 * doc/openmp-runtime-library-routines/ompdestroynestlock.rst: New file.
2938 * doc/openmp-runtime-library-routines/ompfulfillevent.rst: New file.
2939 * doc/openmp-runtime-library-routines/ompgetactivelevel.rst: New file.
2940 * doc/openmp-runtime-library-routines/ompgetancestorthreadnum.rst: New file.
2941 * doc/openmp-runtime-library-routines/ompgetcancellation.rst: New file.
2942 * doc/openmp-runtime-library-routines/ompgetdefaultdevice.rst: New file.
2943 * doc/openmp-runtime-library-routines/ompgetdevicenum.rst: New file.
2944 * doc/openmp-runtime-library-routines/ompgetdynamic.rst: New file.
2945 * doc/openmp-runtime-library-routines/ompgetinitialdevice.rst: New file.
2946 * doc/openmp-runtime-library-routines/ompgetlevel.rst: New file.
2947 * doc/openmp-runtime-library-routines/ompgetmaxactivelevels.rst: New file.
2948 * doc/openmp-runtime-library-routines/ompgetmaxtaskpriority.rst: New file.
2949 * doc/openmp-runtime-library-routines/ompgetmaxteams.rst: New file.
2950 * doc/openmp-runtime-library-routines/ompgetmaxthreads.rst: New file.
2951 * doc/openmp-runtime-library-routines/ompgetnested.rst: New file.
2952 * doc/openmp-runtime-library-routines/ompgetnumdevices.rst: New file.
2953 * doc/openmp-runtime-library-routines/ompgetnumprocs.rst: New file.
2954 * doc/openmp-runtime-library-routines/ompgetnumteams.rst: New file.
2955 * doc/openmp-runtime-library-routines/ompgetnumthreads.rst: New file.
2956 * doc/openmp-runtime-library-routines/ompgetprocbind.rst: New file.
2957 * doc/openmp-runtime-library-routines/ompgetschedule.rst: New file.
2958 * doc/openmp-runtime-library-routines/ompgetsupportedactivelevels.rst: New file.
2959 * doc/openmp-runtime-library-routines/ompgetteamnum.rst: New file.
2960 * doc/openmp-runtime-library-routines/ompgetteamsize.rst: New file.
2961 * doc/openmp-runtime-library-routines/ompgetteamsthreadlimit.rst: New file.
2962 * doc/openmp-runtime-library-routines/ompgetthreadlimit.rst: New file.
2963 * doc/openmp-runtime-library-routines/ompgetthreadnum.rst: New file.
2964 * doc/openmp-runtime-library-routines/ompgetwtick.rst: New file.
2965 * doc/openmp-runtime-library-routines/ompgetwtime.rst: New file.
2966 * doc/openmp-runtime-library-routines/ompinfinal.rst: New file.
2967 * doc/openmp-runtime-library-routines/ompinitlock.rst: New file.
2968 * doc/openmp-runtime-library-routines/ompinitnestlock.rst: New file.
2969 * doc/openmp-runtime-library-routines/ompinparallel.rst: New file.
2970 * doc/openmp-runtime-library-routines/ompisinitialdevice.rst: New file.
2971 * doc/openmp-runtime-library-routines/ompsetdefaultdevice.rst: New file.
2972 * doc/openmp-runtime-library-routines/ompsetdynamic.rst: New file.
2973 * doc/openmp-runtime-library-routines/ompsetlock.rst: New file.
2974 * doc/openmp-runtime-library-routines/ompsetmaxactivelevels.rst: New file.
2975 * doc/openmp-runtime-library-routines/ompsetnested.rst: New file.
2976 * doc/openmp-runtime-library-routines/ompsetnestlock.rst: New file.
2977 * doc/openmp-runtime-library-routines/ompsetnumteams.rst: New file.
2978 * doc/openmp-runtime-library-routines/ompsetnumthreads.rst: New file.
2979 * doc/openmp-runtime-library-routines/ompsetschedule.rst: New file.
2980 * doc/openmp-runtime-library-routines/ompsetteamsthreadlimit.rst: New file.
2981 * doc/openmp-runtime-library-routines/omptestlock.rst: New file.
2982 * doc/openmp-runtime-library-routines/omptestnestlock.rst: New file.
2983 * doc/openmp-runtime-library-routines/ompunsetlock.rst: New file.
2984 * doc/openmp-runtime-library-routines/ompunsetnestlock.rst: New file.
2985 * doc/reporting-bugs.rst: New file.
2986 * doc/the-libgomp-abi.rst: New file.
2987 * doc/the-libgomp-abi/implementing-atomic-construct.rst: New file.
2988 * doc/the-libgomp-abi/implementing-barrier-construct.rst: New file.
2989 * doc/the-libgomp-abi/implementing-critical-construct.rst: New file.
2990 * doc/the-libgomp-abi/implementing-firstprivate-lastprivate-copyin-and-copyprivate-clauses.rst:
2992 * doc/the-libgomp-abi/implementing-flush-construct.rst: New file.
2993 * doc/the-libgomp-abi/implementing-for-construct.rst: New file.
2994 * doc/the-libgomp-abi/implementing-master-construct.rst: New file.
2995 * doc/the-libgomp-abi/implementing-openaccs-parallel-construct.rst: New file.
2996 * doc/the-libgomp-abi/implementing-ordered-construct.rst: New file.
2997 * doc/the-libgomp-abi/implementing-parallel-construct.rst: New file.
2998 * doc/the-libgomp-abi/implementing-private-clause.rst: New file.
2999 * doc/the-libgomp-abi/implementing-reduction-clause.rst: New file.
3000 * doc/the-libgomp-abi/implementing-sections-construct.rst: New file.
3001 * doc/the-libgomp-abi/implementing-single-construct.rst: New file.
3002 * doc/the-libgomp-abi/implementing-threadprivate-construct.rst: New file.
3004 2022-11-04 Thomas Schwinge <thomas@codesourcery.com>
3006 * libgomp-plugin.h (OFFLOAD_TARGET_TYPE_INTEL_MIC): Remove.
3007 * libgomp.texi (OpenMP Context Selectors): Remove Intel MIC
3009 * plugin/configfrag.ac <enable_offload_targets>
3010 [*-intelmic-* | *-intelmicemul-*]: Remove.
3011 * configure: Regenerate.
3012 * testsuite/lib/libgomp.exp (libgomp_init): Remove 'liboffloadmic'
3014 (offload_target_to_openacc_device_type)
3015 [$offload_target = *-intelmic*]: Remove.
3016 (check_effective_target_offload_device_intel_mic)
3017 (check_effective_target_offload_device_any_intel_mic): Remove.
3018 * testsuite/libgomp.c-c++-common/on_device_arch.h
3019 (device_arch_intel_mic, on_device_arch_intel_mic, any_device_arch)
3020 (any_device_arch_intel_mic): Remove.
3021 * testsuite/libgomp.c-c++-common/target-45.c: Remove
3022 'offload_device_any_intel_mic' XFAIL.
3023 * testsuite/libgomp.fortran/target10.f90: Likewise.
3025 2022-11-03 Tobias Burnus <tobias@codesourcery.com>
3027 * testsuite/libgomp.fortran/target-11.f90: New test.
3028 * testsuite/libgomp.fortran/target-13.f90: New test.
3030 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3034 * oacc-mem.c (goacc_enter_data_internal): Support
3035 OpenACC 'declare create' with Fortran allocatable arrays, part II.
3036 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3038 * testsuite/libgomp.oacc-fortran/pr106643-1.f90: New.
3040 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3043 * oacc-mem.c (goacc_enter_data_internal): Support
3044 OpenACC 'declare create' with Fortran allocatable arrays, part I.
3045 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-directive.f90:
3047 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-directive.f90:
3050 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3052 * testsuite/libgomp.oacc-fortran/declare-allocatable-array_descriptor-1-runtime.f90:
3055 2022-11-02 Thomas Schwinge <thomas@codesourcery.com>
3057 * testsuite/libgomp.oacc-fortran/declare-allocatable-1-runtime.f90:
3060 2022-11-02 Cesar Philippidis <cesar@codesourcery.com>
3061 Thomas Schwinge <thomas@codesourcery.com>
3063 * testsuite/libgomp.oacc-fortran/declare-allocatable-1.f90: New.
3065 2022-10-28 Julian Brown <julian@codesourcery.com>
3066 Thomas Schwinge <thomas@codesourcery.com>
3069 * testsuite/libgomp.oacc-fortran/declare-1.f90: Adjust scan output.
3070 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
3071 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3072 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3073 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
3075 2022-10-24 Thomas Schwinge <thomas@codesourcery.com>
3077 * plugin/plugin-nvptx.c (nvptx_open_device): Initialize
3078 'ptx_dev->rev_data'.
3080 2022-10-24 Tobias Burnus <tobias@codesourcery.com>
3082 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Remove
3083 'static' for this variable.
3084 * config/nvptx/libgomp-nvptx.h: New file.
3085 * config/nvptx/target.c: Include it.
3086 (GOMP_ADDITIONAL_ICVS): Declare extern var.
3087 (GOMP_REV_OFFLOAD_VAR): Declare var.
3088 (GOMP_target_ext): Handle reverse offload.
3089 * libgomp-plugin.h (GOMP_PLUGIN_target_rev): New prototype.
3090 * libgomp-plugin.c (GOMP_PLUGIN_target_rev): New, call ...
3091 * target.c (gomp_target_rev): ... this new stub function.
3092 * libgomp.h (gomp_target_rev): Declare.
3093 * libgomp.map (GOMP_PLUGIN_1.4): New; add GOMP_PLUGIN_target_rev.
3094 * plugin/cuda-lib.def (cuMemHostAlloc): Add.
3095 * plugin/plugin-nvptx.c: Include libgomp-nvptx.h.
3096 (struct ptx_device): Add rev_data member.
3097 (nvptx_open_device): Remove async_engines query, last used in
3098 r10-304-g1f4c5b9b; add unified-address assert check.
3099 (GOMP_OFFLOAD_get_num_devices): Claim unified address
3101 (GOMP_OFFLOAD_load_image): Free rev_fn_table if no
3102 offload functions exist. Make offload var available
3104 (rev_off_dev_to_host_cpy, rev_off_host_to_dev_cpy): New.
3105 (GOMP_OFFLOAD_run): Handle reverse offload.
3107 2022-10-21 Thomas Schwinge <thomas@codesourcery.com>
3109 PR tree-optimization/107195
3111 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Restore SESE
3114 2022-10-20 Tobias Burnus <tobias@codesourcery.com>
3116 * testsuite/lib/libgomp.exp (check_effective_target_offload_device_gcn):
3118 * testsuite/libgomp.c-c++-common/on_device_arch.h (device_arch_gcn,
3119 on_device_arch_gcn): New.
3120 * testsuite/libgomp.c-c++-common/requires-4a.c: New test; copied from
3121 requires-4.c but using heap-allocated memory.
3123 2022-10-20 Thomas Schwinge <thomas@codesourcery.com>
3126 * testsuite/libgomp.oacc-c-c++-common/private-big-1.c: New.
3128 2022-10-17 Thomas Schwinge <thomas@codesourcery.com>
3130 * testsuite/libgomp.c/reverse-offload-sm30.c: Fix nvptx-specific
3131 '-foffload-options' syntax.
3133 2022-10-13 Tobias Burnus <tobias@codesourcery.com>
3135 * testsuite/libgomp.fortran/task-7.f90: New test.
3136 * testsuite/libgomp.fortran/task-8.f90: New test.
3137 * testsuite/libgomp.fortran/task-in-explicit-1.f90: New test.
3138 * testsuite/libgomp.fortran/task-in-explicit-2.f90: New test.
3139 * testsuite/libgomp.fortran/task-in-explicit-3.f90: New test.
3140 * testsuite/libgomp.fortran/task-reduction-17.f90: New test.
3141 * testsuite/libgomp.fortran/task-reduction-18.f90: New test.
3143 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3145 * libgomp.texi (OpenMP 5.2): Fix up allocator -> allocate directive
3146 in deprecation bullet.
3148 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3150 * omp.h.in (omp_in_explicit_task): Declare.
3151 * omp_lib.h.in (omp_in_explicit_task): Likewise.
3152 * omp_lib.f90.in (omp_in_explicit_task): New interface.
3153 * libgomp.map (OMP_5.2): New symbol version, export
3154 omp_in_explicit_task and omp_in_explicit_task_.
3155 * task.c (omp_in_explicit_task): New function.
3156 * fortran.c (omp_in_explicit_task): Add ialias_redirect.
3157 (omp_in_explicit_task_): New function.
3158 * libgomp.texi (OpenMP 5.2): Mark omp_in_explicit_task as implemented.
3159 * testsuite/libgomp.c-c++-common/task-in-explicit-1.c: New test.
3160 * testsuite/libgomp.c-c++-common/task-in-explicit-2.c: New test.
3161 * testsuite/libgomp.c-c++-common/task-in-explicit-3.c: New test.
3163 2022-10-12 Jakub Jelinek <jakub@redhat.com>
3165 * task.c (gomp_create_artificial_team): Fix up handling of invocations
3166 from within explicit task.
3167 * target.c (GOMP_target_ext): Likewise.
3168 * testsuite/libgomp.c/task-7.c: New test.
3169 * testsuite/libgomp.c/task-8.c: New test.
3170 * testsuite/libgomp.c-c++-common/task-reduction-17.c: New test.
3171 * testsuite/libgomp.c-c++-common/task-reduction-18.c: New test.
3173 2022-10-12 Martin Liska <mliska@suse.cz>
3175 * configure: Regenerate.
3177 2022-10-11 Olivier Hainque <hainque@adacore.com>
3178 Olivier Hainque <hainque@adacore.com>
3180 * configure: Regenerate.
3182 2022-10-05 Tobias Burnus <tobias@codesourcery.com>
3184 * libgomp.texi (OpenMP 5.1 Impl. Status): Mark 'assume' as 'Y'.
3186 2022-10-04 Jakub Jelinek <jakub@redhat.com>
3188 * libgomp.texi (Support begin/end declare target syntax in C/C++):
3189 Mark as implemented.
3191 2022-09-30 Tobias Burnus <tobias@codesourcery.com>
3194 * testsuite/libgomp.fortran/is_device_ptr-2.f90: New test.
3196 2022-09-28 Tobias Burnus <tobias@codesourcery.com>
3198 * libgomp.texi (OpenMP 5.1): Mark 'assume' as implemented
3199 for C/C++. Remove duplicated 'begin declare target' entry.
3201 2022-09-24 Jakub Jelinek <jakub@redhat.com>
3204 * testsuite/libgomp.c-c++-common/pr106981.c: New test.
3206 2022-09-14 Julian Brown <julian@codesourcery.com>
3208 * testsuite/libgomp.oacc-c-c++-common/deep-copy-15.c: New test.
3209 * testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: New test.
3210 * testsuite/libgomp.oacc-c++/deep-copy-17.C: New test.
3211 * testsuite/libgomp.oacc-c-c++-common/deep-copy-arrayofstruct.c: Move
3212 test to here, make "run" test.
3214 2022-09-13 Jakub Jelinek <jakub@redhat.com>
3217 * env.c (get_icv_member_addr): Cast false to void * before assigning
3218 it to icv_addr[1], and comment the whole assignment out.
3220 2022-09-13 Tobias Burnus <tobias@codesourcery.com>
3222 * libgomp.texi (gcn): Move misplaced -march=sm_30 remark to ...
3225 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3227 * libgomp.texi (Offload-Target Specifics: nvptx): Document
3228 that reverse offload requires >= -march=sm_35.
3229 * testsuite/libgomp.c-c++-common/requires-4.c: Build for nvptx
3231 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3232 * testsuite/libgomp.c-c++-common/requires-6.c: Likewise.
3233 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: Likewise.
3234 * testsuite/libgomp.fortran/reverse-offload-1.f90: Likewise.
3235 * testsuite/libgomp.c/reverse-offload-sm30.c: New test.
3237 2022-09-12 Tobias Burnus <tobias@codesourcery.com>
3239 * libgomp.texi (OpenMP 5.1 Impl. Status): Add two new minor items.
3240 (OpenMP 5.2 Impl. Status): Improve omp/omx/ompx wording.
3242 2022-09-12 Jakub Jelinek <jakub@redhat.com>
3245 * testsuite/libgomp.c-c++-common/icv-6.c: Include string.h.
3246 (main): Avoid tests for which corresponding non-_ALL suffixed variable
3247 is in the environment, or for OMP_NUM_TEAMS on the device
3248 OMP_NUM_TEAMS_DEV_?.
3250 2022-09-10 Iain Sandoe <iain@sandoe.co.uk>
3252 * env.c (initialize_env): Include libiberty environ.h.
3254 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3256 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Read offload
3257 function address table '$offload_func_table' if rev_fn_table
3260 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3262 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read
3263 .offload_func_table to populate rev_fn_table when requested.
3265 2022-09-09 Tobias Burnus <tobias@codesourcery.com>
3267 * libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
3268 'uint64_t **rev_fn_table' argument.
3269 * oacc-host.c (host_load_image): Likewise.
3270 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
3272 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3273 * target.c (gomp_load_image_to_device): Update call but pass
3276 2022-09-09 Jakub Jelinek <jakub@redhat.com>
3279 * env.c (initialize_env) <case PARSE_BIND>: Use char ** instead of
3280 char * for dest[1] initialization from params[1]. Formatting fixes.
3282 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3285 * libgomp.texi (OpenMP 5.2): Add comment to ompx/omx entry.
3287 2022-09-08 Tobias Burnus <tobias@codesourcery.com>
3289 * libgomp.texi (OpenMP-Implementation Specifics): New; add libmemkind
3290 section; move OpenMP Context Selectors from ...
3291 (Offload-Target Specifics): ... here; add 'AMD Radeo (GCN)' and
3294 2022-09-08 Marcel Vollweiler <marcel@codesourcery.com>
3296 * config/gcn/icv-device.c (omp_get_default_device): Return device-
3298 (omp_get_max_teams): Added for GCN devices.
3299 (omp_set_num_teams): Likewise.
3301 * config/nvptx/icv-device.c (omp_get_default_device): Return device-
3303 (omp_get_max_teams): Added for NVPTX devices.
3304 (omp_set_num_teams): Likewise.
3306 * env.c (struct gomp_icv_list): New struct to store entries of initial
3308 (struct gomp_offload_icv_list): New struct to store entries of device-
3309 specific ICV values that are copied to the device and back.
3310 (struct gomp_default_icv_values): New struct to store default values of
3311 ICVs according to the OpenMP standard.
3312 (parse_schedule): Generalized for different variants of OMP_SCHEDULE.
3313 (print_env_var_error): Function that prints an error for invalid values
3315 (parse_unsigned_long_1): Removed getenv. Generalized.
3316 (parse_unsigned_long): Likewise.
3317 (parse_int_1): Likewise.
3318 (parse_int): Likewise.
3319 (parse_int_secure): Likewise.
3320 (parse_unsigned_long_list): Likewise.
3321 (parse_target_offload): Likewise.
3322 (parse_bind_var): Likewise.
3323 (parse_stacksize): Likewise.
3324 (parse_boolean): Likewise.
3325 (parse_wait_policy): Likewise.
3326 (parse_allocator): Likewise.
3327 (omp_display_env): Extended to output different variants of environment
3329 (print_schedule): New helper function for omp_display_env which prints
3330 the values of run_sched_var.
3331 (print_proc_bind): New helper function for omp_display_env which prints
3332 the values of proc_bind_var.
3333 (enum gomp_parse_type): Collection of types used for parsing environment
3335 (ENTRY): Preprocess string lengths of environment variables.
3336 (OMP_VAR_CNT): Preprocess table size.
3337 (OMP_HOST_VAR_CNT): Likewise.
3338 (INT_MAX_STR_LEN): Constant for the maximal number of digits of a device
3340 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3341 (gomp_set_icv_flag): Sets a flag for a particular ICV.
3342 (print_device_specific_icvs): New helper function for omp_display_env to
3343 print device specific ICV values.
3344 (get_device_num): New helper function for parse_device_specific.
3345 Extracts the device number from an environment variable name.
3346 (get_icv_member_addr): Gets the memory address for a particular member
3348 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3349 (initialize_icvs): New function to initialize a gomp_initial_icvs
3351 (add_initial_icv_to_list): Adds an ICV struct to gomp_initial_icv_list.
3352 (startswith): Checks if a string starts with a given prefix.
3353 (initialize_env): Extended to parse the new syntax of environment
3355 * icv-device.c (omp_get_max_teams): Added.
3357 (omp_set_num_teams): Likewise.
3358 * icv.c (omp_set_num_teams): Moved to icv-device.c.
3359 (omp_get_max_teams): Likewise.
3361 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Removed.
3362 (GOMP_ADDITIONAL_ICVS): New target-side struct that
3363 holds the designated ICVs of the target device.
3364 * libgomp.h (enum gomp_icvs): Collection of ICVs.
3365 (enum gomp_device_num): Definition of device numbers for _ALL, _DEV, and
3367 (enum gomp_env_suffix): Collection of possible suffixes of environment
3369 (struct gomp_initial_icvs): Contains all ICVs for which we need to store
3371 (struct gomp_default_icv):New struct to hold ICVs for which we need
3372 to store initial values.
3373 (struct gomp_icv_list): Definition of a linked list that is used for
3374 storing ICVs for the devices and also for _DEV, _ALL, and without
3376 (struct gomp_offload_icvs): New struct to hold ICVs that are copied to
3378 (struct gomp_offload_icv_list): Definition of a linked list that holds
3379 device-specific ICVs that are copied to devices.
3380 (gomp_get_initial_icv_item): Get a list item of gomp_initial_icv_list.
3381 (gomp_get_icv_flag): Returns if a flag for a particular ICV is set.
3382 * libgomp.texi: Updated.
3383 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Extended to read
3384 further ICVs from the offload image.
3385 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
3386 * target.c (gomp_get_offload_icv_item): Get a list item of
3387 gomp_offload_icv_list.
3388 (get_gomp_offload_icvs): New. Returns the ICV values
3389 depending on the device num and the variable hierarchy.
3390 (gomp_load_image_to_device): Extended to copy further ICVs to a device.
3391 * testsuite/libgomp.c-c++-common/icv-5.c: New test.
3392 * testsuite/libgomp.c-c++-common/icv-6.c: New test.
3393 * testsuite/libgomp.c-c++-common/icv-7.c: New test.
3394 * testsuite/libgomp.c-c++-common/icv-8.c: New test.
3395 * testsuite/libgomp.c-c++-common/omp-display-env-1.c: New test.
3396 * testsuite/libgomp.c-c++-common/omp-display-env-2.c: New test.
3398 2022-09-08 Jakub Jelinek <jakub@redhat.com>
3400 * libgomp.texi (OpenMP 5.2): Mention that omp_cur_iteration is now
3402 * testsuite/libgomp.c/doacross-4.c: New test.
3403 * testsuite/libgomp.c/doacross-5.c: New test.
3404 * testsuite/libgomp.c/doacross-6.c: New test.
3405 * testsuite/libgomp.c/doacross-7.c: New test.
3407 2022-09-05 Tobias Burnus <tobias@codesourcery.com>
3409 * libgomp.texi (OpenMP 5.2): Update doacross/omp_cur_iteration status.
3411 2022-08-26 Tobias Burnus <tobias@codesourcery.com>
3413 * libgomp.texi (OpenMP 5.0): Mark 'ancestor' as implemented but
3414 refer to 'requires'.
3415 * testsuite/libgomp.c-c++-common/reverse-offload-1-aux.c: New test.
3416 * testsuite/libgomp.c-c++-common/reverse-offload-1.c: New test.
3417 * testsuite/libgomp.fortran/reverse-offload-1-aux.f90: New test.
3418 * testsuite/libgomp.fortran/reverse-offload-1.f90: New test.
3420 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3422 PR middle-end/106548
3423 * testsuite/libgomp.c/linear-2.c: New test.
3425 2022-08-17 Tobias Burnus <tobias@codesourcery.com>
3427 * splay-tree.h: Fix splay_* macro unsetting if
3428 splay_tree_prefix is defined.
3430 2022-07-29 Tobias Burnus <tobias@codesourcery.com>
3432 * testsuite/libgomp.c-c++-common/pr106449-2.c: New test.
3434 2022-07-29 Jakub Jelinek <jakub@redhat.com>
3436 PR middle-end/106449
3437 * testsuite/libgomp.c-c++-common/pr106449.c: New test.
3439 2022-07-12 Tobias Burnus <tobias@codesourcery.com>
3441 * target.c (gomp_target_init): Added tailing '\n' to gomp_debug.
3443 2022-07-12 Thomas Schwinge <thomas@codesourcery.com>
3445 PR middle-end/101551
3446 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: XFAIL
3447 'offloading_enabled' diagnostics issue.
3449 2022-07-11 Thomas Schwinge <thomas@codesourcery.com>
3451 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Enhance
3452 '_Pragma' diagnostics verification.
3454 2022-07-10 Lewis Hyatt <lhyatt@gmail.com>
3456 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Adapt for
3457 improved warning locations.
3458 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Likewise.
3460 2022-07-08 Thomas Schwinge <thomas@codesourcery.com>
3462 * testsuite/libgomp.c-c++-common/requires-1.c: Add 'dg-note's.
3463 * testsuite/libgomp.c-c++-common/requires-2.c: Likewise.
3464 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3465 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3466 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3468 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3470 * target.c (GOMP_offload_register, GOMP_offload_unregister):
3471 Denote as legacy entry points.
3472 * testsuite/lib/libgomp.exp
3473 (check_effective_target_offload_target_any): New proc.
3474 * testsuite/libgomp.c-c++-common/requires-1.c: Enable for
3475 'offload_target_any'.
3476 * testsuite/libgomp.c-c++-common/requires-3.c: Likewise.
3477 * testsuite/libgomp.c-c++-common/requires-7.c: Likewise.
3478 * testsuite/libgomp.fortran/requires-1.f90: Likewise.
3480 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3482 * testsuite/libgomp.c-c++-common/requires-4.c: Enhance testing.
3483 * testsuite/libgomp.c-c++-common/requires-5.c: Likewise.
3485 2022-07-07 Thomas Schwinge <thomas@codesourcery.com>
3487 * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
3489 2022-07-06 Thomas Schwinge <thomas@codesourcery.com>
3491 * target.c (GOMP_offload_register_ver): Clarify 'target_data' ->
3493 (GOMP_offload_unregister_ver): Likewise. Fix up 'target_data'.
3495 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3496 Jakub Jelinek <jakub@redhat.com>
3498 * libgomp.texi (OpenMP 5.2): Mark linear-clause change as 'Y'.
3500 2022-07-04 Tobias Burnus <tobias@codesourcery.com>
3501 Chung-Lin Tang <cltang@codesourcery.com>
3502 Thomas Schwinge <thomas@codesourcery.com>
3504 * libgomp-plugin.h (GOMP_OFFLOAD_get_num_devices): Add
3505 omp_requires_mask arg.
3506 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_num_devices): Likewise;
3507 return -1 when device available but omp_requires_mask != 0.
3508 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_num_devices): Likewise.
3509 * oacc-host.c (host_get_num_devices, host_openacc_get_property):
3511 * oacc-init.c (resolve_device, acc_init_1, acc_shutdown_1,
3512 goacc_attach_host_thread_to_device, acc_get_num_devices,
3513 acc_set_device_num, get_property_any): Likewise.
3514 * target.c (omp_requires_mask): New global var.
3515 (gomp_requires_to_name): New.
3516 (GOMP_offload_register_ver): Handle passed omp_requires_mask.
3517 (gomp_target_init): Handle omp_requires_mask.
3518 * libgomp.texi (OpenMP 5.0): Update requires impl. status.
3519 (OpenMP 5.1): Add a missed item.
3520 (OpenMP 5.2): Mark linear-clause change as supported in C/C++.
3521 * testsuite/libgomp.c-c++-common/requires-1-aux.c: New test.
3522 * testsuite/libgomp.c-c++-common/requires-1.c: New test.
3523 * testsuite/libgomp.c-c++-common/requires-2-aux.c: New test.
3524 * testsuite/libgomp.c-c++-common/requires-2.c: New test.
3525 * testsuite/libgomp.c-c++-common/requires-3-aux.c: New test.
3526 * testsuite/libgomp.c-c++-common/requires-3.c: New test.
3527 * testsuite/libgomp.c-c++-common/requires-4-aux.c: New test.
3528 * testsuite/libgomp.c-c++-common/requires-4.c: New test.
3529 * testsuite/libgomp.c-c++-common/requires-5-aux.c: New test.
3530 * testsuite/libgomp.c-c++-common/requires-5.c: New test.
3531 * testsuite/libgomp.c-c++-common/requires-6.c: New test.
3532 * testsuite/libgomp.c-c++-common/requires-7-aux.c: New test.
3533 * testsuite/libgomp.c-c++-common/requires-7.c: New test.
3534 * testsuite/libgomp.fortran/requires-1-aux.f90: New test.
3535 * testsuite/libgomp.fortran/requires-1.f90: New test.
3537 2022-07-01 Tobias Burnus <tobias@codesourcery.com>
3539 * libgomp.texi (OpenMP 5.2): Mark target enter/exit data
3540 with fromto as implemented.
3542 2022-06-28 Martin Liska <mliska@suse.cz>
3544 * acinclude.m4: Fix typo in mold linker detection.
3545 * Makefile.in: Regenerate.
3546 * configure: Regenerate.
3548 2022-06-21 Jakub Jelinek <jakub@redhat.com>
3549 Paul Iannetta <piannetta@kalrayinc.com>
3552 * testsuite/libgomp.c/target-31.c: Add private (i) clause.
3554 2022-06-17 Martin Liska <mliska@suse.cz>
3556 * libgomp.texi: Add table header for new features of
3559 2022-06-15 Jakub Jelinek <jakub@redhat.com>
3561 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c (main): Initialize
3562 q to ddress of an automatic variable. Use -5 instead of -1 in
3563 omp_get_mapped_ptr call. Add test with omp_initial_device.
3564 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90 (main): Use -5 instead
3565 of -1 in omp_get_mapped_ptr call. Add test with omp_initial_device.
3566 Renumber stop arguments afterwards.
3568 2022-06-13 Jakub Jelinek <jakub@redhat.com>
3570 * omp.h.in (omp_initial_device, omp_invalid_device): New enumerators.
3571 * omp_lib.f90.in (omp_initial_device, omp_invalid_device): New
3573 * omp_lib.h.in (omp_initial_device, omp_invalid_device): Likewise.
3574 * target.c (resolve_device): Add remapped argument, handle
3575 GOMP_DEVICE_ICV only if remapped is true (and clear remapped),
3576 for negative values, treat GOMP_DEVICE_FALLBACK as fallback only
3577 if remapped, otherwise treat omp_initial_device that way. For
3578 omp_invalid_device, always emit gomp_fatal, even when
3579 OMP_TARGET_OFFLOAD isn't mandatory.
3580 (GOMP_target, GOMP_target_ext, GOMP_target_data, GOMP_target_data_ext,
3581 GOMP_target_update, GOMP_target_update_ext,
3582 GOMP_target_enter_exit_data): Pass true as remapped argument to
3584 (omp_target_alloc, omp_target_free, omp_target_is_present,
3585 omp_target_memcpy_check, omp_target_associate_ptr,
3586 omp_target_disassociate_ptr, omp_get_mapped_ptr,
3587 omp_target_is_accessible): Pass false as remapped argument to
3588 resolve_device. Treat omp_initial_device the same as
3589 gomp_get_num_devices (). Don't bypass resolve_device calls if
3590 device_num is negative.
3591 (omp_pause_resource): Treat omp_initial_device the same as
3592 gomp_get_num_devices (). Call resolve_device.
3593 * icv-device.c (omp_set_default_device): Always set to device_num
3594 even when it is negative.
3595 * libgomp.texi: Document that Conforming device numbers,
3596 omp_initial_device and omp_invalid_device is implemented.
3597 * testsuite/libgomp.c/target-41.c (main): Add test with
3599 * testsuite/libgomp.c/target-45.c: New test.
3600 * testsuite/libgomp.c/target-46.c: New test.
3601 * testsuite/libgomp.c/target-47.c: New test.
3602 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c (main): Add
3603 test with omp_initial_device. Use -5 instead of -1 for negative value
3605 * testsuite/libgomp.fortran/target-is-accessible-1.f90 (main):
3606 Likewise. Reorder stop numbers.
3608 2022-06-10 Jakub Jelinek <jakub@redhat.com>
3610 * allocator.c (gomp_init_memkind): Call dlopen with "libmemkind.so.0"
3611 rather than "libmemkind.so".
3613 2022-06-10 Thomas Schwinge <thomas@codesourcery.com>
3615 * plugin/Makefrag.am: Evaluate 'if PLUGIN_NVPTX_DYNAMIC' to true.
3616 * plugin/configfrag.ac (--with-cuda-driver)
3617 (--with-cuda-driver-include, --with-cuda-driver-lib)
3618 (CUDA_DRIVER_INCLUDE, CUDA_DRIVER_LIB, PLUGIN_NVPTX_CPPFLAGS)
3619 (PLUGIN_NVPTX_LDFLAGS, PLUGIN_NVPTX_LIBS, PLUGIN_NVPTX_DYNAMIC):
3621 * testsuite/libgomp-test-support.exp.in (cuda_driver_include)
3622 (cuda_driver_lib): Remove.
3623 * testsuite/lib/libgomp.exp (libgomp_init): Don't consider these.
3624 * Makefile.in: Regenerate.
3625 * configure: Likewise.
3626 * testsuite/Makefile.in: Likewise.
3628 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3630 * config/linux/allocator.c: Fix up #include directive.
3632 2022-06-09 Jakub Jelinek <jakub@redhat.com>
3634 * allocator.c: Include dlfcn.h if LIBGOMP_USE_MEMKIND is defined.
3635 (enum gomp_memkind_kind): New type.
3636 (struct omp_allocator_data): Add memkind field if LIBGOMP_USE_MEMKIND
3638 (struct gomp_memkind_data): New type.
3639 (memkind_data, memkind_data_once): New variables.
3640 (gomp_init_memkind, gomp_get_memkind): New functions.
3641 (omp_init_allocator): Initialize data.memkind, don't fail for
3642 omp_high_bw_mem_space if libmemkind supports it.
3643 (omp_aligned_alloc, omp_free, omp_aligned_calloc, omp_realloc): Add
3644 memkind support of LIBGOMP_USE_MEMKIND is defined.
3645 * config/linux/allocator.c: New file.
3647 2022-06-03 Tobias Burnus <tobias@codesourcery.com>
3649 * libgomp.texi (OpenMP 5.2): Mark scope w/ firstprivate/allocate as Y.
3650 * testsuite/libgomp.fortran/scope-2.f90: New test.
3652 2022-06-02 David Malcolm <dmalcolm@redhat.com>
3654 * testsuite/lib/libgomp.exp: Add load_gcc_lib of scansarif.exp.
3656 2022-05-31 Jakub Jelinek <jakub@redhat.com>
3658 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add testcase for
3659 scope construct with allocate clause.
3660 * testsuite/libgomp.c-c++-common/allocate-3.c (foo): Likewise.
3661 * testsuite/libgomp.c-c++-common/scope-2.c: New test.
3663 2022-05-28 Tobias Burnus <tobias@codesourcery.com>
3665 * libgomp.texi (OpenMP 5.2): Mark 'enter' clause as supported.
3666 * testsuite/libgomp.fortran/declare-target-1.f90: Extend to test
3667 explicit 'to' and 'enter' clause.
3668 * testsuite/libgomp.fortran/declare-target-2.f90: Update accordingly.
3670 2022-05-28 Jakub Jelinek <jakub@redhat.com>
3673 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Don't define for
3674 defined(HAVE__ALIGNED_MALLOC) case.
3675 * alloc.c (gomp_aligned_alloc): Move defined(HAVE__ALIGNED_MALLOC)
3676 handling as last option before fallback instead of first.
3677 (gomp_aligned_free): For defined(HAVE__ALIGNED_MALLOC) call
3680 2022-05-27 Jakub Jelinek <jakub@redhat.com>
3682 * testsuite/libgomp.c-c++-common/target-40.c: Modify some existing to
3684 * testsuite/libgomp.c/target-41.c: Likewise.
3686 2022-05-27 Tobias Burnus <tobias@codesourcery.com>
3688 * libgomp.texi (Other new OpenMP 5.1 features): Add
3689 'begin declare target'.
3690 (Other new OpenMP 5.2 features): New.
3692 2022-05-25 Jakub Jelinek <jakub@redhat.com>
3694 * task.c (gomp_task_run_post_handle_dependers): If empty_task
3695 is the last task taskwait depend depends on, wake it up.
3696 Similarly if it is the last child of a taskgroup, use atomic
3697 store instead of decrement and awak taskgroup wait if any.
3698 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-2.c: New test.
3700 2022-05-24 Andrew Stubbs <ams@codesourcery.com>
3702 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
3703 EF_AMDGPU_MACH_AMDGCN_GFX90a.
3704 (gcn_gfx90a_s): New.
3705 (isa_hsa_name): Support gfx90a.
3706 (isa_code): Likewise.
3708 2022-05-24 Tobias Burnus <tobias@codesourcery.com>
3711 * libgomp.texi (OpenMP 5.1): Set 'taskwait nowait' to 'Y'.
3712 * testsuite/libgomp.fortran/taskwait-depend-nowait-1.f90: New.
3714 2022-05-24 Jakub Jelinek <jakub@redhat.com>
3717 * libgomp_g.h (GOMP_taskwait_depend_nowait): Declare.
3718 * libgomp.map (GOMP_taskwait_depend_nowait): Export at GOMP_5.1.1.
3719 * task.c (empty_task): New function.
3720 (gomp_task_run_post_handle_depend_hash): Declare earlier.
3721 (gomp_task_run_post_handle_depend): Declare.
3722 (GOMP_task): Optimize fn == empty_task if there is nothing to wait
3724 (gomp_task_run_post_handle_dependers): Optimize task->fn == empty_task.
3725 (GOMP_taskwait_depend_nowait): New function.
3726 * testsuite/libgomp.c-c++-common/taskwait-depend-nowait-1.c: New test.
3728 2022-05-23 Tobias Burnus <tobias@codesourcery.com>
3731 * target.c (gomp_map_vars_internal, copy_firstprivate_data):
3732 Support attach for GOMP_MAP_FIRSTPRIVATE.
3733 * testsuite/libgomp.fortran/target-firstprivate-1.f90: New test.
3734 * testsuite/libgomp.fortran/target-firstprivate-2.f90: New test.
3735 * testsuite/libgomp.fortran/target-firstprivate-3.f90: New test.
3737 2022-05-20 Marcel Vollweiler <marcel@codesourcery.com>
3739 * libgomp.map: Added omp_target_memcpy_async and
3740 omp_target_memcpy_rect_async.
3741 * libgomp.texi: Both functions are now supported.
3742 * omp.h.in: Added omp_target_memcpy_async and
3743 omp_target_memcpy_rect_async.
3744 * omp_lib.f90.in: Added interfaces for both new functions.
3745 * omp_lib.h.in: Likewise.
3746 * target.c (ialias_redirect): Added for GOMP_task.
3747 (omp_target_memcpy): Restructured into check and copy part.
3748 (omp_target_memcpy_check): New helper function for omp_target_memcpy and
3749 omp_target_memcpy_async that checks requirements.
3750 (omp_target_memcpy_copy): New helper function for omp_target_memcpy and
3751 omp_target_memcpy_async that performs the memcpy.
3752 (omp_target_memcpy_async_helper): New helper function that is used in
3753 omp_target_memcpy_async for the asynchronous task.
3754 (omp_target_memcpy_async): Added.
3755 (omp_target_memcpy_rect): Restructured into check and copy part.
3756 (omp_target_memcpy_rect_check): New helper function for
3757 omp_target_memcpy_rect and omp_target_memcpy_rect_async that checks
3759 (omp_target_memcpy_rect_copy): New helper function for
3760 omp_target_memcpy_rect and omp_target_memcpy_rect_async that performs
3762 (omp_target_memcpy_rect_async_helper): New helper function that is used
3763 in omp_target_memcpy_rect_async for the asynchronous task.
3764 (omp_target_memcpy_rect_async): Added.
3765 * task.c (ialias): Added for GOMP_task.
3766 * testsuite/libgomp.c-c++-common/target-memcpy-async-1.c: New test.
3767 * testsuite/libgomp.c-c++-common/target-memcpy-async-2.c: New test.
3768 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-1.c: New test.
3769 * testsuite/libgomp.c-c++-common/target-memcpy-rect-async-2.c: New test.
3770 * testsuite/libgomp.fortran/target-memcpy-async-1.f90: New test.
3771 * testsuite/libgomp.fortran/target-memcpy-async-2.f90: New test.
3772 * testsuite/libgomp.fortran/target-memcpy-rect-async-1.f90: New test.
3773 * testsuite/libgomp.fortran/target-memcpy-rect-async-2.f90: New test.
3775 2022-05-18 Tobias Burnus <tobias@codesourcery.com>
3777 * libgomp.texi (OpenMP 5.1): Set 'inoutset' to Y.
3778 (OpenMP Context Selectors): Add missing comma.
3779 * testsuite/libgomp.fortran/depend-5.f90: Add inoutset test.
3780 * testsuite/libgomp.fortran/depend-6.f90: Likewise.
3781 * testsuite/libgomp.fortran/depend-7.f90: Likewise.
3782 * testsuite/libgomp.fortran/depend-inoutset-1.f90: New test.
3784 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3786 * libgomp.texi (OpenMP 5.1): Remove "Not inside target regions"
3787 comment for omp_display_env feature.
3789 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3791 * libgomp.texi (Offload-Target Specifics): New chapter; add section
3792 to document OpenMP context selectors.
3794 2022-05-17 Jakub Jelinek <jakub@redhat.com>
3796 * libgomp.h (struct gomp_task_depend_entry): Change is_in type
3797 from bool to unsigned char.
3798 * task.c (gomp_task_handle_depend): Handle GOMP_DEPEND_INOUTSET.
3799 Ignore dependencies where
3800 task->depend[i].is_in && task->depend[i].is_in == ent->is_in
3801 rather than just task->depend[i].is_in && ent->is_in. Remember
3802 whether GOMP_DEPEND_IN loop is needed and guard the loop with that
3804 (gomp_task_maybe_wait_for_dependencies): Handle GOMP_DEPEND_INOUTSET.
3805 Ignore dependencies where elem.is_in && elem.is_in == ent->is_in
3806 rather than just elem.is_in && ent->is_in.
3807 * testsuite/libgomp.c-c++-common/depend-1.c (test): Add task with
3808 inoutset depend-kind.
3809 * testsuite/libgomp.c-c++-common/depend-2.c (test): Likewise.
3810 * testsuite/libgomp.c-c++-common/depend-3.c (test): Likewise.
3811 * testsuite/libgomp.c-c++-common/depend-inoutset-1.c: New test.
3813 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3815 * libgomp.texi (OpenMP Implementation Status): Add 5.2 table.
3817 2022-05-17 Tobias Burnus <tobias@codesourcery.com>
3819 * libgomp.texi (OpenMP 5.1): Set omp_all_memory to 'Y'.
3820 * testsuite/libgomp.fortran/depend-5.f90: New test.
3821 * testsuite/libgomp.fortran/depend-6.f90: New test.
3822 * testsuite/libgomp.fortran/depend-7.f90: New test.
3824 2022-05-16 Marcel Vollweiler <marcel@codesourcery.com>
3826 * testsuite/libgomp.c++/target-has-device-addr-7.C: New test.
3827 * testsuite/libgomp.c++/target-has-device-addr-8.C: New test.
3828 * testsuite/libgomp.c++/target-has-device-addr-9.C: New test.
3830 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3832 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3834 2022-05-13 Tobias Burnus <tobias@codesourcery.com>
3836 * testsuite/libgomp.fortran/target-nowait-array-section.f90: New test.
3838 2022-05-13 Thomas Schwinge <thomas@codesourcery.com>
3840 * plugin/Makefrag.am (libgomp_plugin_nvptx_la_CPPFLAGS)
3841 [PLUGIN_NVPTX_DYNAMIC]: Don't append '$(PLUGIN_NVPTX_CPPFLAGS)'.
3842 (libgomp_plugin_nvptx_la_LDFLAGS) [PLUGIN_NVPTX_DYNAMIC]: Don't
3843 append '$(PLUGIN_NVPTX_LDFLAGS)'.
3844 * Makefile.in: Regenerate.
3846 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3848 * Makefile.am (libgomp_la_LIBADD): Initialize.
3849 * plugin/configfrag.ac (DL_LIBS): New.
3850 (PLUGIN_GCN_LIBS): Remove.
3851 (PLUGIN_NVPTX_LIBS): Don't set in the 'PLUGIN_NVPTX_DYNAMIC' case.
3852 * plugin/Makefrag.am (libgomp_la_LIBADD)
3853 (libgomp_plugin_gcn_la_LIBADD): Consider '$(DL_LIBS)'.
3854 (libgomp_plugin_nvptx_la_LIBADD) <PLUGIN_NVPTX_DYNAMIC>: Likewise.
3855 * Makefile.in: Regenerate.
3856 * config.h.in: Likewise.
3857 * configure: Likewise.
3858 * testsuite/Makefile.in: Likewise.
3860 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3862 * plugin/Makefrag.am: Handle 'PLUGIN_NVPTX_DYNAMIC'.
3863 * plugin/configfrag.ac (PLUGIN_NVPTX_DYNAMIC): Change
3864 'AC_DEFINE_UNQUOTED' into 'AM_CONDITIONAL'.
3865 * plugin/plugin-nvptx.c: Split 'PLUGIN_NVPTX_DYNAMIC' into
3866 'PLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' and
3867 'PLUGIN_NVPTX_LINK_LIBCUDA'.
3868 * Makefile.in: Regenerate.
3869 * config.h.in: Likewise.
3870 * configure: Likewise.
3872 2022-05-12 Thomas Schwinge <thomas@codesourcery.com>
3874 * plugin/configfrag.ac: Don't 'AC_SUBST' and 'AC_DEFINE_UNQUOTED'
3875 for 'PLUGIN_GCN', 'PLUGIN_NVPTX'.
3876 * Makefile.in: Regenerate.
3877 * config.h.in: Likewise.
3878 * configure: Likewise.
3879 * testsuite/Makefile.in: Likewise.
3881 2022-05-12 Jakub Jelinek <jakub@redhat.com>
3883 * libgomp.h (struct gomp_task): Add depend_all_memory member.
3884 * task.c (gomp_init_task): Initialize depend_all_memory.
3885 (gomp_task_handle_depend): Handle omp_all_memory.
3886 (gomp_task_run_post_handle_depend_hash): Clear
3887 parent->depend_all_memory if equal to current task.
3888 (gomp_task_maybe_wait_for_dependencies): Handle omp_all_memory.
3889 * testsuite/libgomp.c-c++-common/depend-1.c: New test.
3890 * testsuite/libgomp.c-c++-common/depend-2.c: New test.
3891 * testsuite/libgomp.c-c++-common/depend-3.c: New test.
3893 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3895 * plugin/configfrag.ac: Remove '--with-hsa-runtime',
3896 '--with-hsa-runtime-include', '--with-hsa-runtime-lib' processing.
3897 * Makefile.in: Regenerate.
3898 * configure: Likewise.
3899 * testsuite/Makefile.in: Likewise.
3901 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3903 * plugin/Makefrag.am (libgomp_plugin_gcn_la_CPPFLAGS): Don't
3904 consider 'PLUGIN_GCN_CPPFLAGS'.
3905 (libgomp_plugin_gcn_la_LDFLAGS): Don't consider
3906 'PLUGIN_GCN_LDFLAGS'.
3907 * plugin/configfrag.ac (PLUGIN_GCN_CPPFLAGS, PLUGIN_GCN_LDFLAGS):
3909 * Makefile.in: Regenerate.
3910 * configure: Likewise.
3911 * testsuite/Makefile.in: Likewise.
3913 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3915 * plugin/configfrag.ac (HSA_RUNTIME_CPPFLAGS)
3916 (HSA_RUNTIME_LDFLAGS): Remove.
3917 * configure: Regenerate.
3919 2022-05-11 Thomas Schwinge <thomas@codesourcery.com>
3921 * testsuite/lib/libgomp.exp (libgomp_init): Don't
3922 'append always_ld_library_path ":$hsa_runtime_lib"'.
3923 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib): Don't set.
3925 2022-05-10 Thomas Schwinge <thomas@codesourcery.com>
3927 * testsuite/libgomp.fortran/use_device_addr-5.f90: Fix up
3928 multi-device testing.
3930 2022-05-06 Marcel Vollweiler <marcel@codesourcery.com>
3932 * libgomp.map: Added omp_target_is_accessible.
3933 * libgomp.texi: Tagged omp_target_is_accessible as supported.
3934 * omp.h.in: Added omp_target_is_accessible.
3935 * omp_lib.f90.in: Added interface for omp_target_is_accessible.
3936 * omp_lib.h.in: Likewise.
3937 * target.c (omp_target_is_accessible): Added implementation of
3938 omp_target_is_accessible.
3939 * testsuite/libgomp.c-c++-common/target-is-accessible-1.c: New test.
3940 * testsuite/libgomp.fortran/target-is-accessible-1.f90: New test.
3942 2022-05-05 Sandra Loosemore <sandra@codesourcery.com>
3944 * libgomp.texi (OpenMP 5.0): Feature is now fully supported.
3946 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3948 * plugin/plugin-gcn.c (isa_matches_agent): Suggest -foffload-options.
3950 2022-05-04 Tobias Burnus <tobias@codesourcery.com>
3952 * testsuite/libgomp.fortran/use_device_addr-5.f90: New test.
3954 2022-05-03 Marcel Vollweiler <marcel@codesourcery.com>
3956 * libgomp.map: Added omp_get_mapped_ptr.
3957 * libgomp.texi: Tagged omp_get_mapped_ptr as supported.
3958 * omp.h.in: Added omp_get_mapped_ptr.
3959 * omp_lib.f90.in: Added interface for omp_get_mapped_ptr.
3960 * omp_lib.h.in: Likewise.
3961 * target.c (omp_get_mapped_ptr): Added implementation of
3963 * testsuite/libgomp.c-c++-common/get-mapped-ptr-1.c: New test.
3964 * testsuite/libgomp.c-c++-common/get-mapped-ptr-2.c: New test.
3965 * testsuite/libgomp.c-c++-common/get-mapped-ptr-3.c: New test.
3966 * testsuite/libgomp.c-c++-common/get-mapped-ptr-4.c: New test.
3967 * testsuite/libgomp.fortran/get-mapped-ptr-1.f90: New test.
3968 * testsuite/libgomp.fortran/get-mapped-ptr-2.f90: New test.
3969 * testsuite/libgomp.fortran/get-mapped-ptr-3.f90: New test.
3970 * testsuite/libgomp.fortran/get-mapped-ptr-4.f90: New test.
3972 2022-04-28 Thomas Schwinge <thomas@codesourcery.com>
3975 * testsuite/libgomp.oacc-fortran/print-1.f90: Add OpenACC
3976 privatization scanning. For GCN offloading compilation, raise
3977 '-mgang-private-size'.
3979 2022-04-26 Jakub Jelinek <jakub@redhat.com>
3982 * work.c (gomp_init_work_share): Don't mask of adjustment for
3983 dynamic long long realignment if struct gomp_work_share has smaller
3984 alignof than long long.
3985 * loop.c (GOMP_loop_start): Don't use inline_ordered_team_ids if
3986 struct gomp_work_share has smaller alignof than long long or if
3987 sizeof (struct gomp_work_share) is smaller than
3988 INLINE_ORDERED_TEAM_IDS_OFF.
3989 * loop_ull.c (GOMP_loop_ull_start): Likewise.
3990 * sections.c (GOMP_sections2_start): Likewise.
3992 2022-04-25 Jakub Jelinek <jakub@redhat.com>
3993 Thomas Schwinge <thomas@codesourcery.com>
3996 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Adjust.
3998 2022-04-13 Jakub Jelinek <jakub@redhat.com>
4000 * libgomp.texi: Fix a typo - mutexinouset -> mutexinoutset.
4002 2022-04-06 Thomas Schwinge <thomas@codesourcery.com>
4004 * plugin/cuda/cuda.h: Remove file.
4005 * plugin/plugin-nvptx.c [PLUGIN_NVPTX_DYNAMIC]: Include
4006 "cuda/cuda.h" instead of <cuda.h>.
4007 * plugin/configfrag.ac <PLUGIN_NVPTX_DYNAMIC>: Don't set
4008 'PLUGIN_NVPTX_CPPFLAGS'.
4009 * configure: Regenerate.
4011 2022-04-05 Chung-Lin Tang <cltang@codesourcery.com>
4013 * testsuite/libgomp.fortran/use_device_ptr-4.f90: New testcase.
4015 2022-04-04 Tom de Vries <tdevries@suse.de>
4017 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Use
4018 on_device_arch_nvptx instead of offload_target_nvptx.
4019 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4021 2022-04-01 Tom de Vries <tdevries@suse.de>
4023 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Define
4025 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4027 2022-04-01 Tom de Vries <tdevries@suse.de>
4029 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: Fix
4032 2022-03-29 Chenghua Xu <xuchenghua@loongson.cn>
4033 Lulu Cheng <chenglulu@loongson.cn>
4035 * configure.tgt: Add LoongArch triplet.
4037 2022-03-28 Tom de Vries <tdevries@suse.de>
4039 * plugin/configfrag.ac: Use /$(libexecdir:\$(exec_prefix)/%=%)/
4040 instead of /libexec/.
4041 * configure: Regenerate.
4043 2022-03-25 Tom de Vries <tdevries@suse.de>
4046 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Reduce
4048 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Same.
4049 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Same.
4051 2022-03-23 Tobias Burnus <tobias@codesourcery.com>
4053 PR middle-end/104285
4054 * testsuite/libgomp.c++/target-same-name-2-a.C: New test.
4055 * testsuite/libgomp.c++/target-same-name-2-b.C: New test.
4056 * testsuite/libgomp.c++/target-same-name-2.C: New test.
4057 * testsuite/libgomp.c-c++-common/target-same-name-1-a.c: New test.
4058 * testsuite/libgomp.c-c++-common/target-same-name-1-b.c: New test.
4059 * testsuite/libgomp.c-c++-common/target-same-name-1.c: New test.
4061 2022-03-22 Tom de Vries <tdevries@suse.de>
4065 * testsuite/libgomp.c/pr104783-2.c: New test.
4067 2022-03-18 Tobias Burnus <tobias@codesourcery.com>
4070 * testsuite/libgomp.fortran/associate4.f90: New test.
4072 2022-03-18 Tom de Vries <tdevries@suse.de>
4075 * testsuite/libgomp.c/pr104952-1.c: New test.
4076 * testsuite/libgomp.c/pr104952-2.c: New test.
4078 2022-03-18 Jakub Jelinek <jakub@redhat.com>
4080 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Move seen
4081 variable next to pl variable.
4083 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
4085 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4087 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4088 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4090 2022-03-17 Thomas Schwinge <thomas@codesourcery.com>
4093 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Enhance.
4094 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4096 2022-03-16 Marcel Vollweiler <marcel@codesourcery.com>
4098 * fortran.c (omp_set_num_teams_8_): Call omp_set_num_teams instead of
4099 omp_set_max_active_levels.
4100 * testsuite/libgomp.fortran/icv-8.f90: New test.
4102 2022-03-16 Thomas Schwinge <thomas@codesourcery.com>
4105 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Adjust.
4107 2022-03-13 Tobias Burnus <tobias@codesourcery.com>
4109 * libgomp.texi: Fix typo.
4111 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4113 PR middle-end/100280
4114 PR middle-end/104892
4115 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
4116 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise.
4117 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4119 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4121 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4122 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4123 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4126 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4128 PR middle-end/104892
4129 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Point
4131 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Likewise,
4132 enable '--param=openacc-kernels=decompose' and adjust.
4133 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
4135 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4136 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
4139 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4142 * testsuite/libgomp.oacc-c-c++-common/default-1.c: Enhance.
4143 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c: Likewise.
4144 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4145 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Likewise.
4147 2022-03-12 Thomas Schwinge <thomas@codesourcery.com>
4149 PR middle-end/100280
4150 PR middle-end/104086
4151 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4153 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4155 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: ... into
4157 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4160 2022-03-10 Hafiz Abid Qadeer <abidh@codesourcery.com>
4162 * testsuite/libgomp.fortran/allocate-1.f90: Remove pool_size
4163 trait. Test last index in w and v array. Remove redundant
4164 assignment to V(1). Move alignment checks at the end of
4167 2022-03-10 Tom de Vries <tdevries@suse.de>
4169 * testsuite/libgomp.c/pr104783.c: New test.
4171 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4174 PR middle-end/102330
4175 PR middle-end/104774
4176 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4178 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4180 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4182 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4184 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4186 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4188 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4190 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4192 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4194 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4196 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4198 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4200 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4202 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4204 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
4205 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4206 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4208 2022-03-10 Thomas Schwinge <thomas@codesourcery.com>
4211 * testsuite/libgomp.oacc-fortran/routine-1.f90: Enhance.
4212 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4213 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4214 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4216 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4219 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Fix
4220 expected diagnostics.
4222 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4224 PR middle-end/104784
4225 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4226 Test with '--param=openacc-kernels=decompose'.
4227 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4229 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4231 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4233 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4235 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4237 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4239 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4241 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4243 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4245 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4247 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4249 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4251 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4253 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4255 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4257 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4259 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4261 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4263 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4265 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4267 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4269 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4271 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4273 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4275 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4277 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4279 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4281 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4283 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4285 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4287 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4289 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4292 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
4295 Test '-fopt-info-omp-all'.
4296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
4298 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
4300 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
4302 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
4304 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
4306 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
4308 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
4310 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
4312 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
4314 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
4316 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
4318 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
4320 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
4322 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
4324 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
4326 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
4328 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
4330 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
4332 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
4334 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4336 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4338 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4340 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4342 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
4344 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
4346 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
4348 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
4350 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
4352 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
4354 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
4356 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
4358 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
4361 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4363 PR middle-end/100280
4364 PR middle-end/104132
4365 PR middle-end/104133
4366 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4369 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4371 PR middle-end/100280
4372 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4373 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4376 2022-03-04 Thomas Schwinge <thomas@codesourcery.com>
4378 PR middle-end/100280
4379 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Adjust.
4380 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4383 2022-02-28 Tom de Vries <tdevries@suse.de>
4385 * testsuite/libgomp.c/declare-variant-3-sm30.c: Add -foffload=-mptx=_.
4386 * testsuite/libgomp.c/declare-variant-3-sm35.c: Same.
4387 * testsuite/libgomp.c/declare-variant-3-sm53.c: Same.
4388 * testsuite/libgomp.c/declare-variant-3-sm70.c: Same.
4389 * testsuite/libgomp.c/declare-variant-3-sm75.c: Same.
4390 * testsuite/libgomp.c/declare-variant-3-sm80.c: Same.
4392 2022-02-24 Tom de Vries <tdevries@suse.de>
4394 * testsuite/libgomp.c/declare-variant-3-sm30.c: New test.
4395 * testsuite/libgomp.c/declare-variant-3-sm35.c: New test.
4396 * testsuite/libgomp.c/declare-variant-3-sm53.c: New test.
4397 * testsuite/libgomp.c/declare-variant-3-sm70.c: New test.
4398 * testsuite/libgomp.c/declare-variant-3-sm75.c: New test.
4399 * testsuite/libgomp.c/declare-variant-3-sm80.c: New test.
4400 * testsuite/libgomp.c/declare-variant-3.h: New header file.
4402 2022-02-22 Thomas Schwinge <thomas@codesourcery.com>
4404 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
4405 gang-redundant execution.
4407 2022-02-22 Tom de Vries <tdevries@suse.de>
4410 * config/nvptx/bar.c (generation_to_barrier): New function, copied
4411 from config/rtems/bar.c.
4412 (futex_wait, futex_wake): New function.
4413 (do_spin, do_wait): New function, copied from config/linux/wait.h.
4414 (gomp_barrier_wait_end, gomp_barrier_wait_last)
4415 (gomp_team_barrier_wake, gomp_team_barrier_wait_end):
4416 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): Remove
4417 and replace with include of config/linux/bar.c.
4418 * config/nvptx/bar.h (gomp_barrier_t): Add fields waiters and lock.
4419 (gomp_barrier_init): Init new fields.
4420 * testsuite/libgomp.c-c++-common/task-detach-6.c: Remove nvptx-specific
4422 * testsuite/libgomp.c/pr99555-1.c: Same.
4423 * testsuite/libgomp.fortran/task-detach-6.f90: Same.
4425 2022-02-22 Tom de Vries <tdevries@suse.de>
4428 * testsuite/libgomp.c++/pr96390.C: Add additional-option
4429 -foffload=-Wa,--verify for nvptx.
4430 * testsuite/libgomp.c-c++-common/pr96390.c: Same.
4432 2022-02-15 Tobias Burnus <tobias@codesourcery.com>
4434 * testsuite/libgomp.fortran/depend-4.f90: New test.
4436 2022-02-10 Tobias Burnus <tobias@codesourcery.com>
4439 * testsuite/libgomp.c++/target-virtual-1.C: New test.
4441 2022-02-10 Marcel Vollweiler <marcel@codesourcery.com>
4443 * libgomp.texi: Updated entry for HAS_DEVICE_ADDR.
4444 * target.c (copy_firstprivate_data): Copy only if host address is not
4446 * testsuite/libgomp.c++/target-has-device-addr-2.C: New test.
4447 * testsuite/libgomp.c++/target-has-device-addr-4.C: New test.
4448 * testsuite/libgomp.c++/target-has-device-addr-5.C: New test.
4449 * testsuite/libgomp.c++/target-has-device-addr-6.C: New test.
4450 * testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: New test.
4451 * testsuite/libgomp.c/target-has-device-addr-3.c: New test.
4452 * testsuite/libgomp.fortran/target-has-device-addr-1.f90: New test.
4453 * testsuite/libgomp.fortran/target-has-device-addr-2.f90: New test.
4454 * testsuite/libgomp.fortran/target-has-device-addr-3.f90: New test.
4455 * testsuite/libgomp.fortran/target-has-device-addr-4.f90: New test.
4457 2022-02-08 Jakub Jelinek <jakub@redhat.com>
4460 * task.c (gomp_task_run_post_handle_dependers): If parent is NULL,
4462 * testsuite/libgomp.c/pr104385.c: New test.
4464 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4466 * testsuite/libgomp.fortran/allocate-1.f90: Remove spurious
4467 STOP of previous commit.
4469 2022-02-04 Tobias Burnus <tobias@codesourcery.com>
4471 * testsuite/libgomp.fortran/allocate-1.c (is_64bit_aligned): Renamed
4472 from is_64bit_aligned_.
4473 * testsuite/libgomp.fortran/allocate-1.f90: Fix interface decl
4474 and use it, more implicit none, remove unused argument.
4476 2022-02-03 David Seifert <soap@gentoo.org>
4477 Jakub Jelinek <jakub@redhat.com>
4479 * configure.ac: Support --disable-werror.
4480 * configure: Regenerate.
4482 2022-02-01 Tom de Vries <tdevries@suse.de>
4484 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: Remove
4486 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: Same.
4487 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90: Same.
4489 2022-02-01 Tom de Vries <tdevries@suse.de>
4491 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Reduce
4492 num_workers for nvidia accelerator to fix libgomp error 'insufficient
4494 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4496 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Same.
4498 2022-02-01 Tom de Vries <tdevries@suse.de>
4500 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
4502 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
4504 2022-01-31 Martin Liska <mliska@suse.cz>
4506 * acinclude.m4: Detect *_ld_is_mold and use it.
4507 * configure: Regenerate.
4509 2022-01-27 Tobias Burnus <tobias@codesourcery.com>
4511 * libgomp.texi (OpenMP 5.0): Update implementation status.
4513 2022-01-21 Thomas Schwinge <thomas@codesourcery.com>
4515 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Strengthen.
4516 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
4517 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4518 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4519 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4520 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4521 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4522 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4523 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4524 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4525 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4526 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4527 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4528 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4529 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4531 2022-01-19 Marcel Vollweiler <marcel@codesourcery.com>
4533 * config/gcn/icv-device.c: Make GOMP_DEVICE_NUM_VAR public (remove
4534 "static") to make the device num available in the offload image.
4536 2022-01-19 Martin Liska <mliska@suse.cz>
4537 Thomas Schwinge <thomas@codesourcery.com>
4539 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update scanning
4541 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4542 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4544 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4545 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4546 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4547 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4548 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
4550 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c:
4552 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c:
4554 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c:
4556 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90:
4558 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
4560 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4561 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4562 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4564 2022-01-18 Martin Liska <mliska@suse.cz>
4566 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Update keyword
4568 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4569 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
4570 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Likewise.
4571 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4572 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
4573 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: Likewise.
4574 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Likewise.
4575 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: Likewise.
4576 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: Likewise.
4577 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: Likewise.
4578 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Likewise.
4579 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: Likewise.
4580 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4581 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
4582 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4584 2022-01-17 Thomas Schwinge <thomas@codesourcery.com>
4586 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: Extend.
4587 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: Likewise.
4588 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: Likewise.
4590 2022-01-17 Julian Brown <julian@codesourcery.com>
4591 Thomas Schwinge <thomas@codesourcery.com>
4593 * testsuite/libgomp.oacc-fortran/privatized-ref-1.f95: New test.
4594 * testsuite/libgomp.oacc-c++/privatized-ref-2.C: New test.
4595 * testsuite/libgomp.oacc-c++/privatized-ref-3.C: New test.
4597 2022-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
4598 Andrew Stubbs <ams@codesourcery.com>
4600 * plugin/plugin-gcn.c (parse_target_attributes): Automatically set
4601 the number of teams and threads if necessary.
4602 (gcn_exec): Automatically set the number of gangs and workers if
4605 2022-01-13 Hafiz Abid Qadeer <abidh@codesourcery.com>
4607 * testsuite/libgomp.fortran/allocate-1.c: New test.
4608 * testsuite/libgomp.fortran/allocate-1.f90: New test.
4609 * libgomp.texi: Remove string that says that allocate clause
4610 support is for C/C++ only.
4612 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4614 * testsuite/libgomp.c-c++-common/on_device_arch.h
4615 (any_device_arch, any_device_arch_intel_mic): New.
4616 * testsuite/lib/libgomp.exp
4617 (check_effective_target_offload_device_any_intel_mic): New.
4618 * testsuite/libgomp.c-c++-common/target-45.c: Use it.
4619 * testsuite/libgomp.fortran/target10.f90: Likewise.
4621 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4623 PR tree-optimization/102192
4624 * testsuite/libgomp.oacc-fortran/routine-10.f90: Document current
4625 '-Wuninitialized' diagnostics.
4627 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4629 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: Document
4630 current '-Wuninitialized' diagnostics.
4631 * testsuite/libgomp.oacc-fortran/data-5.f90: Likewise.
4632 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Likewise.
4633 * testsuite/libgomp.oacc-fortran/gemm.f90: Likewise.
4634 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Likewise.
4635 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4636 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4637 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: Likewise.
4638 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
4639 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4640 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4641 * testsuite/libgomp.oacc-fortran/reference-reductions.f90:
4644 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4646 * testsuite/libgomp.c/address-space-1.c: Remove 'dg-xfail-run-if'
4647 for 'offload_device_intel_mic'.
4649 2022-01-13 Julian Brown <julian@codesourcery.com>
4650 Thomas Schwinge <thomas@codesourcery.com>
4652 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Remove GCN
4653 offloading execution XFAIL.
4655 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4657 PR middle-end/100280
4658 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4660 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4661 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4664 2022-01-13 Thomas Schwinge <thomas@codesourcery.com>
4666 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
4668 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
4670 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Likewise.
4671 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: Likewise.
4672 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: Likewise.
4673 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: Likewise.
4674 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
4676 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4677 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4678 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4679 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
4681 2022-01-04 Tobias Burnus <tobias@codesourcery.com>
4683 * testsuite/libgomp.c-c++-common/target-45.c: Iterate over all devices.
4684 * testsuite/libgomp.fortran/target10.f90: Likewise.
4686 2022-01-04 Chung-Lin Tang <cltang@codesourcery.com>
4688 * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Change uses of STRINGX
4689 into XSTRING when looking for GOMP_DEVICE_NUM_VAR in offload image.
4690 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
4692 2022-01-03 Jakub Jelinek <jakub@redhat.com>
4694 * libgomp.texi: Bump @copying's copyright year.
4696 2021-12-13 Tobias Burnus <tobias@codesourcery.com>
4698 * libgomp.texi (OpenMP 5.1): Set Fortran support for atomic to 'Y'.
4699 * testsuite/libgomp.fortran/atomic-19.f90: New test.
4701 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
4703 * plugin/plugin-gcn.c (struct gcn_image_desc): Remove global_variables.
4704 (GOMP_OFFLOAD_load_image): Locate the offload variables via the
4705 table, not individual symbols.
4707 2021-12-09 Chung-Lin Tang <cltang@codesourcery.com>
4709 * testsuite/libgomp.c++/target-lambda-1.C: Only run under
4710 "target offload_device_nonshared_as"
4711 * testsuite/libgomp.c++/target-this-3.C: Likewise.
4712 * testsuite/libgomp.c++/target-this-4.C: Likewise.
4714 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4716 * target.c (gomp_map_vars_existing): Make sure attached pointer is
4717 not overwritten during cross-host/device copying.
4718 (gomp_update): Likewise.
4719 (gomp_exit_data): Likewise.
4720 * testsuite/libgomp.c++/target-11.C: Adjust testcase.
4721 * testsuite/libgomp.c++/target-12.C: Likewise.
4722 * testsuite/libgomp.c++/target-15.C: Likewise.
4723 * testsuite/libgomp.c++/target-16.C: Likewise.
4724 * testsuite/libgomp.c++/target-17.C: Likewise.
4725 * testsuite/libgomp.c++/target-21.C: Likewise.
4726 * testsuite/libgomp.c++/target-23.C: Likewise.
4727 * testsuite/libgomp.c/target-23.c: Likewise.
4728 * testsuite/libgomp.c/target-29.c: Likewise.
4729 * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
4731 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
4734 * libgomp.h (gomp_attach_pointer): Add bool parameter.
4735 * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
4736 (goacc_enter_data_internal): Likewise.
4737 * target.c (gomp_map_vars_existing): Update assert condition to
4738 include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
4739 (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
4740 parameter, add support for mapping a pointer with NULL target.
4741 (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
4742 parameter, add support for attaching a pointer with NULL target.
4743 (gomp_map_vars_internal): Update calls to gomp_map_pointer and
4744 gomp_attach_pointer, add handling for
4745 GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
4746 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
4747 * testsuite/libgomp.c++/target-23.C: New testcase.
4748 * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
4749 * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
4750 * testsuite/libgomp.c++/target-this-1.C: New testcase.
4751 * testsuite/libgomp.c++/target-this-2.C: New testcase.
4752 * testsuite/libgomp.c++/target-this-3.C: New testcase.
4753 * testsuite/libgomp.c++/target-this-4.C: New testcase.
4754 * testsuite/libgomp.c++/target-this-5.C: New testcase.
4756 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4758 * libgomp.texi (OpenMP 5.1): Update status.
4760 2021-12-04 Tobias Burnus <tobias@codesourcery.com>
4762 * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
4764 2021-12-02 Chung-Lin Tang <cltang@codesourcery.com>
4767 * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
4768 * testsuite/libgomp.fortran/pr90030.f90: New test.
4770 2021-11-30 Kwok Cheung Yeung <kcy@codesourcery.com>
4771 Thomas Schwinge <thomas@codesourcery.com>
4773 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
4776 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
4777 Thomas Schwinge <thomas@codesourcery.com>
4779 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
4782 2021-11-29 Richard Biener <rguenther@suse.de>
4784 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
4787 2021-11-24 Jakub Jelinek <jakub@redhat.com>
4789 PR middle-end/103384
4790 * testsuite/libgomp.c/declare-variant-2.c: New test.
4792 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
4794 * alloc.c (gomp_aligned_alloc): Fix typo.
4796 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4799 * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
4800 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
4801 (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
4802 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4803 * work.c (alloc_work_share, gomp_work_share_start): Likewise.
4804 * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
4805 gomp_aligned_alloc instead of team_malloc.
4807 2021-11-18 Jakub Jelinek <jakub@redhat.com>
4810 * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
4811 memalign over posix_memalign over aligned_alloc over fallback
4812 with malloc instead of aligned_alloc over _aligned_alloc over
4813 posix_memalign over memalign over fallback with malloc. For
4814 aligned_alloc, round up size up to multiple of al.
4816 2021-11-16 Jakub Jelinek <jakub@redhat.com>
4818 * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
4819 construct as implemented.
4821 2021-11-15 Tobias Burnus <tobias@codesourcery.com>
4823 * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
4825 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4827 * task.c (gomp_create_target_task): Copy args array as well.
4828 * target.c (gomp_target_fallback): Add args argument.
4829 Set gomp_icv (true)->thread_limit_var if thread_limit is present.
4830 (GOMP_target): Adjust gomp_target_fallback caller.
4831 (GOMP_target_ext): Likewise.
4832 (gomp_target_task_fn): Likewise.
4833 * config/nvptx/team.c (gomp_nvptx_main): Set
4834 gomp_global_icv.thread_limit_var.
4835 * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
4837 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4839 * config/nvptx/team.c (__gomp_team_num): Define as
4840 __attribute__((shared)) var.
4841 (gomp_nvptx_main): Initialize __gomp_team_num to 0.
4842 * config/nvptx/target.c (__gomp_team_num): Declare as
4843 extern __attribute__((shared)) var.
4844 (GOMP_teams4): Use __gomp_team_num as the team number instead of
4845 %ctaid.x. If first, initialize it to %ctaid.x. If num_teams_lower
4846 is bigger than num_blocks, use num_teams_lower teams and arrange for
4847 bumping of __gomp_team_num if !first and returning false once we run
4849 * config/nvptx/teams.c (__gomp_team_num): Declare as
4850 extern __attribute__((shared)) var.
4851 (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
4853 2021-11-15 Jakub Jelinek <jakub@redhat.com>
4855 * testsuite/libgomp.c/teams-5.c: New test.
4857 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4860 * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
4862 * config/gcn/teams.c: ... here. New file.
4864 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
4866 * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
4867 implicit map handling to allow a "superset" existing map as valid case.
4868 (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
4869 (get_implicit): New function to extract implicit status.
4870 (gomp_map_fields_existing): Adjust arguments in calls to
4871 gomp_map_vars_existing, and add uses of get_implicit.
4872 (gomp_map_vars_internal): Likewise.
4873 * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
4875 2021-11-12 Jakub Jelinek <jakub@redhat.com>
4877 * libgomp_g.h (GOMP_teams4): Declare.
4878 * libgomp.map (GOMP_5.1): Export GOMP_teams4.
4879 * target.c (GOMP_teams4): New function.
4880 * config/nvptx/target.c (GOMP_teams): Remove.
4881 (GOMP_teams4): New function.
4882 * config/gcn/target.c (GOMP_teams): Remove.
4883 (GOMP_teams4): New function.
4884 * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
4885 teams instead of <= 2.
4886 * testsuite/libgomp.c-c++-common/teams-2.c: New test.
4888 2021-11-11 Tobias Burnus <tobias@codesourcery.com>
4890 * testsuite/libgomp.fortran/teams-1.f90: New test.
4892 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4894 * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
4895 * team.c (struct gomp_thread_start_data): Likewise.
4896 (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
4897 (gomp_team_start): Initialize start_data->num_teams and
4898 start_data->team_num. Update nthr->num_teams and nthr->team_num.
4899 * teams.c (gomp_num_teams, gomp_team_num): Remove.
4900 (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
4901 instead of gomp_num_teams and gomp_team_num.
4902 (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
4903 (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
4904 * testsuite/libgomp.c/teams-4.c: New test.
4906 2021-11-11 Jakub Jelinek <jakub@redhat.com>
4908 * testsuite/libgomp.c-c++-common/teams-1.c: New test.
4910 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4912 * env.c (parse_gomp_openacc_dim): Restore parsing.
4914 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4916 PR middle-end/102972
4917 * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
4919 * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
4920 * testsuite/libgomp.c/target-3.c: Likewise.
4921 * testsuite/libgomp.c/target-5.c: Likewise.
4922 * testsuite/libgomp.c/target-6.c: Likewise.
4923 * testsuite/libgomp.c/target-teams-1.c: Likewise.
4924 * testsuite/libgomp.c/teams-1.c: Likewise.
4925 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4926 * testsuite/libgomp.c/thread-limit-3.c: Likewise.
4927 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
4928 * testsuite/libgomp.c/thread-limit-5.c: Likewise.
4929 * testsuite/libgomp.fortran/icv-3.f90: Likewise.
4930 * testsuite/libgomp.fortran/icv-4.f90: Likewise.
4931 * testsuite/libgomp.fortran/teams1.f90: Likewise.
4933 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
4935 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
4936 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4938 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4940 * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
4941 aren't implemented for Fortran yet.
4943 2021-10-27 Jakub Jelinek <jakub@redhat.com>
4945 * testsuite/libgomp.c/loop-26.c: New test.
4946 * testsuite/libgomp.c/loop-27.c: New test.
4948 2021-10-25 Tobias Burnus <tobias@codesourcery.com>
4951 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
4952 instead of #include <alloca.h> + alloca.
4954 2021-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4956 * libgomp.texi (Support of strictly structured blocks in Fortran):
4958 * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
4960 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
4962 * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
4963 * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
4965 2021-10-20 Jakub Jelinek <jakub@redhat.com>
4968 * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
4969 (struct gomp_work_share): Only use aligned(64) attribute if
4970 GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
4971 add padding before lock to ensure lock is at offset 64 bytes
4973 (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
4974 New poor man's static assertions.
4975 * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
4976 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
4978 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
4979 Richard Biener <rguenther@suse.de>
4981 * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
4983 2021-10-18 Jakub Jelinek <jakub@redhat.com>
4985 * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
4986 && gomp_places_list_len < count after nfirst <= nlast loop condition.
4988 2021-10-18 Tobias Burnus <tobias@codesourcery.com>
4997 * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
4999 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5001 * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
5002 type from char [50] to const char *.
5003 (places_array): Add a testcase for simplified syntax place followed
5004 by length or length and stride.
5006 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5008 * env.c (parse_one_place): Handle non-negative-number the same
5009 as { non-negative-number }. Reject even !number:1 and
5010 !number:1:stride or !place:1 or !place:1:stride instead of just
5011 length other than 1.
5012 * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
5013 and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
5014 omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
5016 * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
5019 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5021 * env.c (parse_schedule): For strtoul or strtoull calls which don't
5022 clearly reject return value 0 as invalid handle the case where end
5023 pointer is the same as first argument as invalid.
5024 (parse_unsigned_long_1): Likewise.
5025 (parse_one_place): Likewise.
5026 (parse_places_var): Likewise.
5027 (parse_stacksize): Likewise.
5028 (parse_spincount): Likewise.
5029 (parse_affinity): Likewise.
5030 (parse_gomp_openacc_dim): Likewise. Avoid strict aliasing violation.
5031 Make code valid C89.
5032 * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
5033 For strtoul calls which don't clearly reject return value 0 as
5034 invalid handle the case where end pointer is the same as first
5035 argument as invalid.
5036 (gomp_affinity_init_level_1): Likewise.
5037 (gomp_affinity_init_numa_domains): Likewise.
5038 * config/rtems/proc.c (parse_thread_pools): Likewise.
5040 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5042 * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
5043 after creating count places clean up and return immediately.
5044 * testsuite/libgomp.c/places-6.c: New test.
5045 * testsuite/libgomp.c/places-7.c: New test.
5046 * testsuite/libgomp.c/places-8.c: New test.
5047 * testsuite/libgomp.c/places-9.c: New test.
5048 * testsuite/libgomp.c/places-10.c: New test.
5050 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5052 * env.c (parse_places_var): Handle numa_domains as level 5.
5053 * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
5055 (gomp_affinity_init_level): Use it instead of
5056 gomp_affinity_init_level_1 for level == 5.
5057 * testsuite/libgomp.c/places-5.c: New test.
5059 2021-10-15 Jakub Jelinek <jakub@redhat.com>
5061 * env.c (parse_places_var): Handle ll_caches as level 4.
5062 * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
5064 (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
5066 (gomp_affinity_init_level): Likewise.
5067 * testsuite/libgomp.c/places-1.c: New test.
5068 * testsuite/libgomp.c/places-2.c: New test.
5069 * testsuite/libgomp.c/places-3.c: New test.
5070 * testsuite/libgomp.c/places-4.c: New test.
5072 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
5074 * libgomp.texi (OpenMP 5.0): Update entry for declare variant
5077 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
5079 * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
5081 2021-10-12 Julian Brown <julian@codesourcery.com>
5083 * target.c (gomp_copy_host2dev): Release device lock on cbuf
5086 2021-10-12 Tobias Burnus <tobias@codesourcery.com>
5088 * testsuite/libgomp.fortran/icv-3.f90: New.
5089 * testsuite/libgomp.fortran/icv-4.f90: New.
5091 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5093 * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
5094 omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
5095 OMP_TEAMS_THREAD_LIMIT): Document.
5097 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5099 * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
5100 to avoid makeinfo warnings.
5102 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5104 * testsuite/libgomp.c-c++-common/icv-3.c: New test.
5105 * testsuite/libgomp.c-c++-common/icv-4.c: New test.
5107 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5111 * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
5112 allocation sizes from 420 to 320 and from 768 to 568.
5113 * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
5114 * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
5115 for cr from 16 to 4.
5117 2021-10-12 Jakub Jelinek <jakub@redhat.com>
5119 * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
5120 * testsuite/libgomp.c/scan-12.c: Likewise.
5121 * testsuite/libgomp.c/scan-13.c: Likewise.
5122 * testsuite/libgomp.c/scan-14.c: Likewise.
5123 * testsuite/libgomp.c/scan-15.c: Likewise.
5124 * testsuite/libgomp.c/scan-16.c: Likewise.
5125 * testsuite/libgomp.c/scan-17.c: Likewise.
5126 * testsuite/libgomp.c/scan-18.c: Likewise.
5127 * testsuite/libgomp.c/scan-19.c: Likewise.
5128 * testsuite/libgomp.c/scan-20.c: Likewise.
5129 * testsuite/libgomp.c/scan-21.c: Likewise.
5130 * testsuite/libgomp.c/scan-22.c: Likewise.
5131 * testsuite/libgomp.c++/scan-9.C: Likewise.
5132 * testsuite/libgomp.c++/scan-10.C: Likewise.
5133 * testsuite/libgomp.c++/scan-11.C: Likewise.
5134 * testsuite/libgomp.c++/scan-12.C: Likewise.
5135 * testsuite/libgomp.c++/scan-13.C: Likewise.
5136 * testsuite/libgomp.c++/scan-14.C: Likewise.
5137 * testsuite/libgomp.c++/scan-15.C: Likewise.
5138 * testsuite/libgomp.c++/scan-16.C: Likewise.
5140 2021-10-12 Kewen Lin <linkw@linux.ibm.com>
5142 * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
5144 2021-10-11 Marcel Vollweiler <marcel@codesourcery.com>
5146 * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
5148 * omp.h.in: Add deprecated flag for omp_atv_sequential.
5149 * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
5150 * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
5151 * testsuite/libgomp.fortran/alloc-12.f90: New test.
5153 2021-10-11 Jakub Jelinek <jakub@redhat.com>
5155 * omp.h.in (omp_set_num_teams, omp_get_max_teams,
5156 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5157 * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
5158 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5159 * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
5160 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
5161 * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
5162 * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
5163 omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
5164 omp_set_teams_thread_limit{,_,_8_}.
5165 * icv.c (omp_set_num_teams, omp_get_max_teams,
5166 omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
5168 * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
5169 (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
5170 (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
5172 * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
5173 gomp_teams_thread_limit_var as fallback if not zero. If num_teams
5174 is not specified, use gomp_nteams_var.
5175 * fortran.c (omp_set_num_teams, omp_get_max_teams,
5176 omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
5178 (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
5179 omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
5180 omp_get_teams_thread_limit_): New functions.
5182 2021-10-09 liuhongt <hongtao.liu@intel.com>
5184 * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
5185 * testsuite/libgomp.c++/scan-11.C: Ditto.
5186 * testsuite/libgomp.c++/scan-12.C: Ditto.
5187 * testsuite/libgomp.c++/scan-13.C: Ditto.
5188 * testsuite/libgomp.c++/scan-14.C: Ditto.
5189 * testsuite/libgomp.c++/scan-15.C: Ditto.
5190 * testsuite/libgomp.c++/scan-16.C: Ditto.
5191 * testsuite/libgomp.c++/scan-9.C: Ditto.
5192 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
5193 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
5194 * testsuite/libgomp.c/scan-11.c: Ditto.
5195 * testsuite/libgomp.c/scan-12.c: Ditto.
5196 * testsuite/libgomp.c/scan-13.c: Ditto.
5197 * testsuite/libgomp.c/scan-14.c: Ditto.
5198 * testsuite/libgomp.c/scan-15.c: Ditto.
5199 * testsuite/libgomp.c/scan-16.c: Ditto.
5200 * testsuite/libgomp.c/scan-17.c: Ditto.
5201 * testsuite/libgomp.c/scan-18.c: Ditto.
5202 * testsuite/libgomp.c/scan-19.c: Ditto.
5203 * testsuite/libgomp.c/scan-20.c: Ditto.
5204 * testsuite/libgomp.c/scan-21.c: Ditto.
5205 * testsuite/libgomp.c/scan-22.c: Ditto.
5207 2021-10-09 Jakub Jelinek <jakub@redhat.com>
5209 * libgomp.texi (OpenMP 5.1): Mention implemented support for
5210 structured block sequences in C/C++. Mention support for
5211 unconstrained/reproducible modifiers on order clause.
5212 Mention partial (C/C++ only) support of extentensions to atomics
5213 construct. Mention partial (C/C++ on clause only) support of
5214 align/allocator modifiers on allocate clause.
5216 2021-10-02 Tobias Burnus <tobias@codesourcery.com>
5218 * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
5219 based on libgomp.c-c++-common/order-reproducible-1.c.
5220 * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
5221 * testsuite/libgomp.fortran/my-usleep.c: New test.
5223 2021-10-01 Tobias Burnus <tobias@codesourcery.com>
5225 * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
5226 * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
5227 * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
5228 * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
5229 based on libgomp.c-c++-common/alloc-9.c.
5231 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5233 * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
5234 * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
5236 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5238 * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
5240 * env.c (handle_omp_display_env): Use ialias_call.
5241 * icv-device.c: Move ialias right below each function.
5242 (omp_get_device_num): Use ialias_call.
5243 * fortran.c (omp_fulfill_event): Add ialias_redirect.
5244 * icv.c (omp_get_active_level): Add ialias_redirect.
5246 2021-10-01 Jakub Jelinek <jakub@redhat.com>
5248 * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
5249 __alloc_align__ (1) attribute.
5250 * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
5252 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5254 * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
5255 for -fintrinsic-modules-path= warning of the C compiler.
5256 * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
5257 * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
5259 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
5261 * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
5262 omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
5263 * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5265 * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
5267 * testsuite/libgomp.fortran/alloc-10.f90: New test.
5268 * testsuite/libgomp.fortran/alloc-6.f90: New test.
5269 * testsuite/libgomp.fortran/alloc-7.c: New test.
5270 * testsuite/libgomp.fortran/alloc-7.f90: New test.
5271 * testsuite/libgomp.fortran/alloc-8.f90: New test.
5272 * testsuite/libgomp.fortran/alloc-9.f90: New test.
5274 2021-09-30 Jakub Jelinek <jakub@redhat.com>
5276 * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
5277 omp_realloc): New prototypes.
5278 (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
5280 * allocator.c: Include string.h.
5281 (omp_aligned_alloc): No longer static, add ialias. Add new_alignment
5282 variable and use it instead of alignment so that when retrying the old
5283 alignment is used again. Don't retry if new alignment is the same
5284 as old alignment, unless allocator had pool size.
5285 (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
5286 (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
5287 * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
5288 omp_aligned_calloc and omp_realloc.
5289 * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
5290 omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
5291 * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
5292 * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
5293 * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
5294 * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
5296 2021-09-28 Tobias Burnus <tobias@codesourcery.com>
5299 * configure.ac: Only check for int-type = 2*size_t support when
5300 building with Fortran support.
5301 * configure: Regenerate.
5303 2021-09-28 Thomas Schwinge <thomas@codesourcery.com>
5305 * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
5306 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
5308 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
5310 * team.c: Initialize start_data.
5311 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5312 * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
5314 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5316 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
5317 dg-message back to dg-note.
5319 2021-09-27 Tobias Burnus <tobias@codesourcery.com>
5322 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
5323 expected dg-note output.
5325 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
5328 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
5329 r12-3722 by removing -Wno-missing-include-dirs.
5330 * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5332 2021-09-22 Jakub Jelinek <jakub@redhat.com>
5334 * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
5335 * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
5337 2021-09-21 Tobias Burnus <tobias@codesourcery.com>
5340 * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
5342 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5344 2021-09-18 Jakub Jelinek <jakub@redhat.com>
5346 * testsuite/libgomp.c++/default-1.C: New test.
5347 * testsuite/libgomp.c-c++-common/default-1.c: New test.
5348 * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
5349 to default clause in C and C++" as implemented.
5351 2021-09-17 Julian Brown <julian@codesourcery.com>
5353 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
5355 2021-09-17 Julian Brown <julian@codesourcery.com>
5357 * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
5359 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5361 * libgomp.texi (OpenMP 5.1): Spelling fix,
5362 declare variante -> declare variant.
5364 2021-09-17 Jakub Jelinek <jakub@redhat.com>
5366 * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
5367 Use /* */ comments instead of //.
5368 * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
5369 * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
5370 * testsuite/libgomp.c++/atomic-16.C: New test.
5371 * testsuite/libgomp.c++/atomic-17.C: New test.
5373 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5375 * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
5376 * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
5377 * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
5379 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5381 * libgomp.texi (OpenMP Implementation Status): Extend
5383 (OpenACC Profiling Interface): Fix typo.
5385 2021-09-07 Tobias Burnus <tobias@codesourcery.com>
5387 * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
5388 not to 4.5; link to new section.
5389 (OpenMP Implementation Status): New.
5391 2021-09-06 Thomas Schwinge <thomas@codesourcery.com>
5393 * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
5395 2021-09-03 Tobias Burnus <tobias@codesourcery.com>
5397 * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
5399 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5401 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5402 Jakub Jelinek <jakub@redhat.com>
5404 * testsuite/libgomp.c/address-space-1.c: New file.
5406 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
5408 * testsuite/lib/libgomp.exp
5409 (check_effective_target_offload_target_intelmic): Remove 'proc'.
5410 (check_effective_target_offload_device_intel_mic): New 'proc'.
5411 * testsuite/libgomp.c-c++-common/on_device_arch.h
5412 (device_arch_intel_mic, on_device_arch_intel_mic): New.
5413 * testsuite/libgomp.c-c++-common/target-45.c: Use that for
5415 * testsuite/libgomp.fortran/target10.f90: Likewise.
5417 2021-08-23 Tobias Burnus <tobias@codesourcery.com>
5419 * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
5420 * testsuite/libgomp.fortran/taskloop-4.f90: New test.
5421 * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
5422 * testsuite/libgomp.fortran/taskloop-5.f90: New test.
5424 2021-08-23 Jakub Jelinek <jakub@redhat.com>
5426 * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
5427 * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
5428 * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
5430 2021-08-22 Thomas Schwinge <thomas@codesourcery.com>
5432 * config/nvptx/error.c (fwrite, exit): Override, too.
5433 * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
5434 of offloading testing.
5435 * testsuite/libgomp.fortran/error-1.f90: Likewise.
5437 2021-08-20 Tobias Burnus <tobias@codesourcery.com>
5439 * testsuite/libgomp.fortran/error-1.f90: New test.
5441 2021-08-20 Jakub Jelinek <jakub@redhat.com>
5443 * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
5444 * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
5445 * error.c (GOMP_warning, GOMP_error): New functions.
5446 * testsuite/libgomp.c-c++-common/error-1.c: New test.
5448 2021-08-18 Tobias Burnus <tobias@codesourcery.com>
5450 * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
5451 omp_target_free. omp_target_is_present, omp_target_memcpy,
5452 omp_target_memcpy_rect, omp_target_associate_ptr,
5453 omp_target_disassociate_ptr): Add interface.
5454 * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
5455 omp_target_free. omp_target_is_present, omp_target_memcpy,
5456 omp_target_memcpy_rect, omp_target_associate_ptr,
5457 omp_target_disassociate_ptr): Add interface.
5458 * testsuite/libgomp.fortran/alloc-1.F90: Remove local
5459 interface block for omp_alloc + omp_free.
5460 * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
5461 * testsuite/libgomp.fortran/refcount-1.f90: New test.
5462 * testsuite/libgomp.fortran/target-12.f90: New test.
5464 2021-08-18 Jakub Jelinek <jakub@redhat.com>
5466 * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
5468 2021-08-17 Tobias Burnus <tobias@codesourcery.com>
5470 * testsuite/libgomp.fortran/scope-1.f90: New test.
5471 * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
5473 2021-08-17 Jakub Jelinek <jakub@redhat.com>
5475 * Makefile.am (libgomp_la_SOURCES): Add scope.c
5476 * Makefile.in: Regenerated.
5477 * libgomp_g.h (GOMP_scope_start): Declare.
5478 * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
5479 * scope.c: New file.
5480 * testsuite/libgomp.c-c++-common/scope-1.c: New test.
5481 * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
5483 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
5485 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
5488 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
5490 * testsuite/libgomp.fortran/masked-1.f90: New test.
5492 2021-08-13 Thomas Schwinge <thomas@codesourcery.com>
5494 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
5496 2021-08-12 Jakub Jelinek <jakub@redhat.com>
5498 * testsuite/libgomp.c-c++-common/masked-1.c: New test.
5500 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
5502 * env.c (parse_bind_var): Accept 'primary' as alias for
5504 (omp_display_env): Add TODO comment to
5505 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
5506 * libgomp.texi: Change 'master thread' to 'primary thread'
5507 in line with OpenMP 5.1.
5508 (omp_get_proc_bind): Add omp_proc_bind_primary and note that
5509 omp_proc_bind_master is an alias of it.
5510 (OMP_PROC_BIND): Mention 'PRIMARY'.
5511 * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
5512 (omp_proc_bind_primary): Add.
5513 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5514 * omp_lib.f90.in (omp_proc_bind_primary): Add.
5515 (omp_proc_bind_master): Deprecate for OpenMP 5.1.
5516 * omp_lib.h.in (omp_proc_bind_primary): Add.
5517 * testsuite/libgomp.c/affinity-1.c: Check that
5518 'primary' works and is identical to 'master'.
5520 2021-08-09 Julian Brown <julian@codesourcery.com>
5521 Kwok Cheung Yeung <kcy@codesourcery.com>
5522 Thomas Schwinge <thomas@codesourcery.com>
5524 * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
5526 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
5527 [acc_device_radeon]: Update.
5528 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
5529 [ACC_DEVICE_TYPE_radeon]: Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5531 [acc_device_radeon]: Likewise.
5532 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
5533 [ACC_DEVICE_TYPE_radeon]: Likewise.
5534 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
5535 'openacc_radeon_accel_selected' and '-O0'.
5536 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5538 2021-08-05 Chung-Lin Tang <cltang@codesourcery.com>
5540 * icv-device.c (omp_get_device_num): New API function, host side.
5541 * fortran.c (omp_get_device_num_): New interface function.
5542 * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
5543 * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
5544 omp_get_device_num_.
5545 * libgomp.texi (omp_get_device_num): Add documentation for new API
5547 * omp.h.in (omp_get_device_num): Add declaration.
5548 * omp_lib.f90.in (omp_get_device_num): Likewise.
5549 * omp_lib.h.in (omp_get_device_num): Likewise.
5550 * target.c (gomp_load_image_to_device): If additional entry for device
5551 number exists at end of returned entries from 'load_image_func' hook,
5552 copy the assigned device number over to the device variable.
5553 * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5554 (omp_get_device_num): New API function, device side.
5555 * plugin/plugin-gcn.c ("symcat.h"): Add include.
5556 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5557 at end of returned 'target_table' entries.
5558 * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
5559 (omp_get_device_num): New API function, device side.
5560 * plugin/plugin-nvptx.c ("symcat.h"): Add include.
5561 (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
5562 at end of returned 'target_table' entries.
5563 * testsuite/lib/libgomp.exp
5564 (check_effective_target_offload_target_intelmic): New function for
5565 testing for intelmic offloading.
5566 * testsuite/libgomp.c-c++-common/target-45.c: New test.
5567 * testsuite/libgomp.fortran/target10.f90: New test.
5569 2021-07-30 Thomas Schwinge <thomas@codesourcery.com>
5570 Ulrich Drepper <drepper@redhat.com>
5572 * fortran.c (omp_display_env_, omp_display_env_8_): Only
5573 '#ifndef LIBGOMP_OFFLOADED_ONLY'.
5575 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
5576 Julian Brown <julian@codesourcery.com>
5577 Kwok Cheung Yeung <kcy@codesourcery.com>
5579 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
5580 's%oaccdevlow%oaccloops%g'.
5581 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
5585 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
5587 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
5589 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
5591 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
5593 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
5595 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
5597 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
5599 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5601 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
5603 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
5605 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5607 2021-07-27 Ulrich Drepper <drepper@gmail.com>
5609 * env.c (wait_policy, stacksize): New static variables,
5610 move out of handle_omp_display_env.
5611 (omp_display_env): New function. The meat of the old
5612 handle_omp_display_env function.
5613 (handle_omp_display_env): Change to not take parameters
5614 and instead use the global variables. Only perform
5615 parsing, defer to omp_display_env for the implementation.
5616 (initialize_env): Remove local variables wait_policy and
5617 stacksize. Don't pass parameters to handle_omp_display_env.
5618 * fortran.c: Add ialias_redirect for omp_display_env.
5619 (omp_display_env_, omp_display_env_8_): New functions.
5620 * libgomp.map (OMP_5.1): New version. Add omp_display_env,
5621 omp_display_env_, and omp_display_env_8_.
5622 * omp.h.in: Declare omp_display_env.
5623 * omp_lib.f90.in: Likewise.
5624 * omp_lib.h.in: Likewise.
5626 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5627 Julian Brown <julian@codesourcery.com>
5629 * target.c (gomp_coalesce_buf_add): Update comment.
5630 (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
5632 (gomp_map_vars_internal): Only 'if (!aq)', do
5633 'gomp_coalesce_buf_add'.
5634 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
5637 2021-07-27 Julian Brown <julian@codesourcery.com>
5638 Thomas Schwinge <thomas@codesourcery.com>
5640 * libgomp.h (gomp_copy_host2dev): Update prototype.
5641 * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
5642 argument to gomp_copy_host2dev (false).
5643 * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
5644 (copy_data): Don't free src.
5645 (queue_push_copy): Remove free_src handling.
5646 (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
5647 (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
5649 (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
5651 * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
5652 (gomp_copy_host2dev): Add EPHEMERAL parameter. Snapshot source
5653 data when true, and set up deferred freeing of temporary buffer.
5654 (gomp_copy_dev2host): Update call to goacc_device_copy_async.
5655 (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
5656 (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
5657 calls to gomp_copy_host2dev with appropriate ephemeral argument.
5658 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
5661 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5662 Tom de Vries <tom@codesourcery.com>
5664 * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
5665 * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
5667 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5669 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
5670 sequencing of 'async' data copying vs. profiling events.
5671 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5674 2021-07-27 Thomas Schwinge <thomas@codesourcery.com>
5675 Julian Brown <julian@codesourcery.com>
5677 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
5678 'async'/'wait' issue.
5679 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
5680 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
5681 * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
5683 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
5684 Joseph Myers <joseph@codesourcery.com>
5685 Cesar Philippidis <cesar@codesourcery.com>
5687 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
5689 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
5691 * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
5693 * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
5695 2021-07-20 Thomas Schwinge <thomas@codesourcery.com>
5698 * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
5699 '-Wno-error=array-bounds'.
5700 * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
5701 * libgomp.h [__AMDGCN__]: Likewise.
5703 2021-07-19 Thomas Schwinge <thomas@codesourcery.com>
5706 * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
5707 * libgomp.h [__AMDGCN__]: Likewise.
5709 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5710 Florian Weimer <fweimer@redhat.com>
5712 * config/linux/sem.h: Don't include limits.h.
5713 (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
5714 * config/linux/affinity.c: Include limits.h.
5716 2021-07-01 Jakub Jelinek <jakub@redhat.com>
5719 * testsuite/libgomp.c-c++-common/pr94366.c: New test.
5721 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5724 * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
5725 -foffload=nvptx-none= by -foffload-options=nvptx-none= to
5726 avoid disabling other offload targets.
5727 * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
5728 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
5729 * testsuite/libgomp.c/target-44.c: Likewise.
5731 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
5733 * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
5734 target has shared memory and disable some scalar pointer/allocatable
5735 checks if not as firstprivate does not work.
5737 2021-06-25 Chung-Lin Tang <cltang@codesourcery.com>
5740 * testsuite/libgomp.c-c++-common/struct-elem-5.c:
5741 Add "target offload_device_nonshared_as" condition for enabling test.
5743 2021-06-24 Jakub Jelinek <jakub@redhat.com>
5745 * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
5746 * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
5747 * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
5748 * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
5750 2021-06-23 Jakub Jelinek <jakub@redhat.com>
5752 PR middle-end/101167
5753 * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
5755 2021-06-17 Chung-Lin Tang <cltang@codesourcery.com>
5757 * hashtab.h (htab_clear): New function with initialization code
5758 factored out from...
5759 (htab_create): ...here, adjust to use htab_clear function.
5760 * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
5761 special refcount values, add comments.
5762 (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
5763 (REFCOUNT_LINK): Likewise.
5764 (REFCOUNT_STRUCTELEM): New special refcount range for structure
5766 (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
5768 (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
5769 (REFCOUNT_STRUCTELEM_FLAG_LAST): Flag to indicate last sibling.
5770 (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
5771 (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
5772 (struct splay_tree_key_s): Add structelem_refcount and
5773 structelem_refcount_ptr fields into a union with dynamic_refcount.
5775 (gomp_map_vars): Delete declaration.
5776 (gomp_map_vars_async): Likewise.
5777 (gomp_unmap_vars): Likewise.
5778 (gomp_unmap_vars_async): Likewise.
5779 (goacc_map_vars): New declaration.
5780 (goacc_unmap_vars): Likewise.
5781 * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
5782 (goacc_enter_datum): Likewise.
5783 (goacc_enter_data_internal): Likewise.
5784 * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
5785 and goacc_unmap_vars.
5786 (GOACC_data_start): Adjust to use goacc_map_vars.
5787 (GOACC_data_end): Adjust to use goacc_unmap_vars.
5788 * target.c (hash_entry_type): New typedef.
5789 (htab_alloc): New function hook for hashtab.h.
5790 (htab_free): Likewise.
5791 (htab_hash): Likewise.
5792 (htab_eq): Likewise.
5793 (hashtab.h): Add file include.
5794 (gomp_increment_refcount): New function.
5795 (gomp_decrement_refcount): Likewise.
5796 (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
5797 gomp_increment_refcount.
5798 (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
5799 to gomp_map_vars_existing.
5800 (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
5801 variable to guard OpenMP specific paths, adjust calls to
5802 gomp_map_vars_existing, add structure element sibling splay_tree_key
5803 sequence creation code, adjust Fortran map case to avoid increment
5805 (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
5806 local refcount_set if caller passed in NULL, adjust call to
5807 gomp_map_vars_internal.
5808 (gomp_map_vars_async): Adjust and rename into...
5809 (goacc_map_vars): ...this new function, adjust call to
5810 gomp_map_vars_internal.
5811 (gomp_remove_splay_tree_key): New function with code factored out from
5812 gomp_remove_var_internal.
5813 (gomp_remove_var_internal): Add code to handle removing multiple
5814 splay_tree_key sequence for structure elements, adjust code to use
5815 gomp_remove_splay_tree_key for splay-tree key removal.
5816 (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
5817 gomp_decrement_refcount.
5818 (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
5819 local refcount_set if caller passed in NULL, adjust call to
5820 gomp_unmap_vars_internal.
5821 (gomp_unmap_vars_async): Adjust and rename into...
5822 (goacc_unmap_vars): ...this new function, adjust call to
5823 gomp_unmap_vars_internal.
5824 (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
5826 (GOMP_target_ext): Likewise.
5827 (gomp_target_data_fallback): Adjust call to gomp_map_vars.
5828 (GOMP_target_data): Likewise.
5829 (GOMP_target_data_ext): Likewise.
5830 (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
5831 (gomp_exit_data): Add refcount_set parameter, adjust to use
5832 gomp_decrement_refcount, adjust to queue splay-tree keys for removal
5834 (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
5835 gomp_map_vars and gomp_exit_data.
5836 (gomp_target_task_fn): Likewise.
5837 * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
5838 * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
5839 * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
5840 * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
5841 * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
5842 * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
5844 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
5847 * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
5849 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5850 Thomas Schwinge <thomas@codesourcery.com>
5852 * libgomp.map (GOACC_2.0.2): New symbol version.
5853 * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
5854 * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
5856 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5857 Andrew Stubbs <ams@codesourcery.com>
5859 * oacc-mem.c (goacc_enter_exit_data_internal): New function,
5861 (GOACC_enter_exit_data): ... here.
5862 (GOACC_declare): Use it.
5864 2021-06-10 Thomas Schwinge <thomas@codesourcery.com>
5866 * oacc-parallel.c (GOACC_declare): Move...
5867 * oacc-mem.c: ... here.
5868 * libgomp_g.h: Adjust.
5870 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
5871 Thomas Schwinge <thomas@codesourcery.com>
5873 * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
5876 2021-06-10 Jakub Jelinek <jakub@redhat.com>
5878 PR tree-optimization/100981
5879 * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
5880 dsdotr and dsdoti to 0.
5882 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
5884 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
5885 if atomic compare-and-swap is supported on 'int'.
5887 2021-06-09 Richard Biener <rguenther@suse.de>
5889 PR tree-optimization/100981
5890 * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
5892 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5894 * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
5896 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5898 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5899 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5901 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5903 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
5904 '-DACC_MEM_SHARED=0'.
5905 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5906 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5907 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5908 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5909 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5910 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5911 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5912 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5913 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5914 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5915 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5916 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5917 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5918 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5919 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
5920 'acc_device_radeon' testing.
5921 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5922 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5923 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
5925 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5927 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5928 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5929 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5930 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5931 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
5932 for non-'openacc_nvidia_accel_selected'.
5933 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5934 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
5935 all implement this checking".
5936 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5937 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5938 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5939 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5940 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5942 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5944 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
5945 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
5947 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5949 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
5950 for 'acc_device_radeon'.
5952 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5954 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
5955 for non-'acc_device_nvidia'.
5957 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5959 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
5960 'acc_device_radeon' testing.
5961 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5962 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5963 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5965 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5967 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
5968 require 'openacc_nvidia_accel_selected'. Fix up for
5969 'ACC_DEVICE_TYPE_radeon'.
5971 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5973 * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
5974 'openacc_nvidia_accel_selected'.
5975 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5977 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5979 * testsuite/lib/libgomp.exp
5980 (check_effective_target_openacc_radeon_accel_selected):
5983 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5985 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
5988 2021-06-08 Thomas Schwinge <thomas@codesourcery.com>
5990 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
5991 <acc_device_nvidia>: Update comment.
5993 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
5995 * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
5997 2021-05-27 Jakub Jelinek <jakub@redhat.com>
5999 * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
6000 check_effective_target_openacc_cublas,
6001 check_effective_target_openacc_cudart): New.
6002 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
6003 target openacc_cublas.
6004 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6005 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6006 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
6007 target openacc_cuda.
6008 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6009 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6010 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6011 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6012 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6013 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6014 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6015 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6016 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
6017 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6018 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6019 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6020 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6021 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6022 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6023 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6024 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
6025 targets openacc_cublas and openacc_cudart.
6026 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6027 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6028 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6029 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6030 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
6031 Require effective target openacc_cudart.
6032 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
6033 for effective target openacc_cuda and add && defined USE_CUDA_H to
6034 preprocessor conditionals. Guard -lcuda also on openacc_cuda
6037 2021-05-26 Jakub Jelinek <jakub@redhat.com>
6040 * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
6041 GOMP_target_end_data, GOMP_target_update_ext,
6042 GOMP_target_enter_exit_data): New dummy entrypoints.
6043 * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
6044 GOMP_target_end_data, GOMP_target_update_ext,
6045 GOMP_target_enter_exit_data): Likewise.
6046 * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
6047 OMPFROM, OMPTO): Define.
6048 (main): Remove #pragma omp target teams around all the tests.
6049 * testsuite/libgomp.c-c++-common/target-41.c: New test.
6050 * testsuite/libgomp.c-c++-common/target-42.c: New test.
6052 2021-05-25 Jakub Jelinek <jakub@redhat.com>
6055 * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
6057 2021-05-24 Tobias Burnus <tobias@codesourcery.com>
6060 * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
6061 * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
6062 * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
6064 2021-05-22 Thomas Schwinge <thomas@codesourcery.com>
6067 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
6068 uninteresting/varying diagnostics.
6070 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6073 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
6074 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6076 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6079 * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
6081 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
6082 * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
6083 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6085 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6087 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6089 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6091 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6093 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6095 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6097 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6099 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6101 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6103 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6105 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6107 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6109 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6111 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6113 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6115 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6117 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6119 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6121 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6123 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6125 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6126 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6127 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6128 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
6129 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6130 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6131 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6132 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6133 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6134 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6135 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6136 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6137 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6138 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6139 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6141 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
6143 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
6145 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6147 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
6148 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6150 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6151 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6152 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6153 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6154 * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
6155 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6156 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6158 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6160 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6162 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6164 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6166 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6168 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6170 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6172 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6174 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6176 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6178 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6180 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6182 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6183 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6184 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6186 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6188 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6189 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
6190 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6192 2021-05-21 Julian Brown <julian@codesourcery.com>
6193 Chung-Lin Tang <cltang@codesourcery.com>
6194 Thomas Schwinge <thomas@codesourcery.com>
6197 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
6199 * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
6201 * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
6204 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
6206 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
6207 for nvptx offloading.
6209 2021-05-21 Tobias Burnus <tobias@codesourcery.com>
6211 * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
6213 2021-05-19 Thomas Schwinge <thomas@codesourcery.com>
6216 * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
6218 2021-05-19 Julian Brown <julian@codesourcery.com>
6220 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
6222 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6224 * testsuite/lib/libgomp.exp
6225 (check_effective_target_offload_target_nvptx): Don't shadow global
6226 'offload_targets' variable.
6228 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6230 * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
6231 '-latomic' to nvptx offloading compilation.
6232 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6234 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
6236 * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
6237 offloading compilation.
6239 2021-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
6241 * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
6242 if new tasks generated.
6243 * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
6245 2021-05-14 Tobias Burnus <tobias@codesourcery.com>
6247 * testsuite/libgomp.fortran/parallel-master.f90: New test.
6249 2021-05-13 Martin Liska <mliska@suse.cz>
6252 * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
6253 * testsuite/libgomp.c/pr46032-2.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
6257 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
6259 * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
6260 * testsuite/libgomp.fortran/task-detach-12.f90: New test.
6262 2021-05-11 Jakub Jelinek <jakub@redhat.com>
6264 PR middle-end/100471
6265 * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
6266 GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
6268 * testsuite/libgomp.c/task-reduction-4.c: New test.
6270 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
6271 Tom de Vries <tdevries@suse.de>
6273 * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
6274 complex/floating-point || + && reduction with 'omp target'.
6275 * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
6277 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6279 * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
6280 * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
6281 * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
6282 * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
6284 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
6287 * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
6288 declaration to scope of non-'depend'-guarded assignment to avoid races.
6290 2021-05-03 Tom de Vries <tdevries@suse.de>
6293 * testsuite/libgomp.c/target-44.c: New test.
6295 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
6297 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
6299 2021-04-29 Tom de Vries <tdevries@suse.de>
6301 * testsuite/libgomp.c/pr81778.c: New test.
6303 2021-04-29 Tom de Vries <tdevries@suse.de>
6306 * testsuite/libgomp.c/target-43.c: New file.
6308 2021-04-28 Jakub Jelinek <jakub@redhat.com>
6309 Tobias Burnus <tobias@codesourcery.com>
6311 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
6312 * target.c (gomp_load_plugin_for_device): If set and if a plugin
6313 can't be dlopened, silently assume it has no devices.
6314 * Makefile.in: Regenerate.
6315 * config.h.in: Regenerate.
6316 * configure: Regenerate.
6318 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6320 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6321 Use [Ww]arning in dg-bogus as FE diagnostic and default
6322 diagnostic differ and the result depends on ENABLE_OFFLOAD.
6323 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6324 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6325 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6327 2021-04-26 Tobias Burnus <tobias@codesourcery.com>
6329 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
6330 Correct spelling in dg-bogus to match -Wopenacc-parallelism.
6331 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6332 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6333 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6335 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6336 Nathan Sidwell <nathan@codesourcery.com>
6337 Tom de Vries <vries@codesourcery.com>
6338 Julian Brown <julian@codesourcery.com>
6339 Kwok Cheung Yeung <kcy@codesourcery.com>
6341 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
6342 '-Wopenacc-parallelism', and match diagnostics, as appropriate.
6343 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6344 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6345 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6346 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6347 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
6349 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6350 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6354 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
6355 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
6357 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6358 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6359 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6360 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6361 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
6362 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
6364 * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
6365 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6366 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6367 * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
6368 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6369 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6370 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6371 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6372 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6373 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6374 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6376 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
6378 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
6380 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6381 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
6383 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6384 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
6385 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6386 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6387 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6388 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6389 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6391 2021-04-22 Richard Biener <rguenther@suse.de>
6393 * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
6396 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6398 * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
6399 omp_depend_kind instead of defining it as 16.
6401 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6403 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
6404 New, based on check_effective_target_offload_target_nvptx.
6405 (check_effective_target_offload_target_nvptx): Call it.
6406 (check_effective_target_offload_target_amdgcn): New.
6407 * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
6408 Require target offload_target_nvptx || offload_target_amdgcn.
6409 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
6410 * testsuite/libgomp.c/pr86416-1.c: Likewise.
6411 * testsuite/libgomp.c/pr86416-2.c: Likewise.
6413 2021-04-21 Tobias Burnus <tobias@codesourcery.com>
6415 * testsuite/libgomp.fortran/depobj-1.f90: New test.
6417 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
6419 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6420 '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
6421 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6423 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6425 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6427 2021-04-15 Thomas Schwinge <thomas@codesourcery.com>
6430 * testsuite/lib/libgomp.exp
6431 (check_effective_target_offload_device_nvptx): New.
6432 * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
6433 resolved, make sure that we exit quickly, with error status,
6435 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
6436 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6438 2021-04-14 Jakub Jelinek <jakub@redhat.com>
6441 * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
6442 cp = omp_alloc with cp, p arguments instead of cq, q and call
6443 c_f_pointer after last cq = omp_alloc with cq, q.
6445 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6448 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
6449 for loop with GT/GE condition.
6450 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6452 2021-04-09 Thomas Schwinge <thomas@codesourcery.com>
6457 * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
6459 2021-04-09 Jakub Jelinek <jakub@redhat.com>
6462 * team.c (gomp_thread_start): Call pthread_setspecific for
6463 !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
6464 has been initialized to avoid false positive warning.
6466 2021-03-29 Tobias Burnus <tobias@codesourcery.com>
6469 * testsuite/lib/on_device_arch.c: Move to ...
6470 * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
6471 * testsuite/libgomp.fortran/on_device_arch.c: New file;
6472 #include on_device_arch.h.
6473 * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
6474 on_device_arch.h instead of using dg-additional-source.
6475 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6476 * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
6477 on_device_arch.c without relative paths.
6479 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6481 * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
6482 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
6483 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
6484 * config.h.in: Regenerate.
6485 * configure: Likewise.
6487 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6490 * testsuite/lib/on_device_arch.c: New file.
6491 * testsuite/libgomp.c/pr99555-1.c: Likewise.
6492 * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
6493 skip for nvptx offloading, with error status.
6494 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
6496 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
6498 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
6499 OpenACC 'serial' construct diagnostic for nvptx offloading.
6501 2021-03-15 Tobias Burnus <tobias@codesourcery.com>
6504 * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
6506 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
6509 * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
6511 2021-03-04 Jakub Jelinek <jakub@redhat.com>
6513 * configure.ac: Add AC_CHECK_SIZEOF([void *]).
6514 * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
6515 checking of -m32 or -mx32 options on the command line.
6516 * config.h.in: Regenerated.
6517 * configure: Regenerated.
6519 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
6521 * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
6522 support from the target.
6524 2021-02-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6525 Jakub Jelinek <jakub@redhat.com>
6528 * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
6529 (struct gomp_task): Replace detach and completion_sem fields with
6530 union containing completion_sem and detach_team. Add deferred_p
6532 (struct gomp_team): Remove task_detach_queue.
6533 * task.c: Include assert.h.
6534 (gomp_init_task): Initialize deferred_p and completion_sem fields.
6535 Rearrange initialization order of fields.
6536 (task_fulfilled_p): Delete.
6537 (GOMP_task): Use address of task as the event handle. Remove
6538 initialization of detach field. Initialize deferred_p field.
6539 Use automatic local for completion_sem. Initialize detach_team field
6541 (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
6542 Set kind of suspended detach task to GOMP_TASK_DETACHED and
6543 decrement task_running_count. Move finish_cancelled block out of
6544 else branch. Relocate call to gomp_team_barrier_done.
6545 (GOMP_taskwait): Handle tasks with completion events that have not
6547 (GOMP_taskgroup_end): Likewise.
6548 (omp_fulfill_event): Use address of task as event handle. Post to
6549 completion_sem for undeferred tasks. Clear detach_team if task
6550 has not finished. For finished tasks, handle post-execution tasks,
6551 call gomp_team_barrier_wake if necessary, and free task.
6552 * team.c (gomp_new_team): Remove initialization of task_detach_queue.
6553 (free_team): Remove free of task_detach_queue.
6554 * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
6555 * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
6556 * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
6557 * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
6558 * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
6559 Change data-sharing of detach events on enclosing parallel to private.
6560 * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise. Remove
6562 * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
6563 * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
6564 * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
6565 * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
6566 * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
6567 * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
6568 * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
6569 * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
6570 * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
6571 * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
6572 Change data-sharing of detach events on enclosing parallel to private.
6573 * testsuite/libgomp.fortran/task-detach-6.f90: Likewise. Remove
6575 * testsuite/libgomp.fortran/task-detach-7.f90: New.
6576 * testsuite/libgomp.fortran/task-detach-8.f90: New.
6577 * testsuite/libgomp.fortran/task-detach-9.f90: New.
6578 * testsuite/libgomp.fortran/task-detach-10.f90: New.
6579 * testsuite/libgomp.fortran/task-detach-11.f90: New.
6581 2021-02-22 Tobias Burnus <tobias@codesourcery.com>
6584 * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
6586 2021-02-17 Julian Brown <julian@codesourcery.com>
6588 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
6591 2021-02-17 Julian Brown <julian@codesourcery.com>
6593 * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
6594 * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
6596 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6598 * config/linux/x86/futex.h (__futex_wait):
6599 Revert output type back to long.
6600 (__futex_wake): Ditto.
6601 (futex_wait): Update for revert.
6602 (futex_wake): Ditto.
6604 2021-02-11 Uroš Bizjak <ubizjak@gmail.com>
6606 * config/linux/x86/futex.h (__futex_wait): New static inline
6607 wrapper function. Correct output type to int and
6608 timeout type to void *.
6609 (__futex_wake): New static inline wrapper function.
6610 Correct output type to int.
6611 (futex_wait): Use __futex_wait.
6612 (futex_wake): Use __futex_wake.
6614 2021-02-10 Julian Brown <julian@codesourcery.com>
6617 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
6620 2021-02-04 Julian Brown <julian@codesourcery.com>
6622 * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
6624 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
6626 * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
6627 EF_AMDGPU_MACH_AMDGCN_GFX908.
6628 (gcn_gfx908_s): New constant string.
6629 (isa_hsa_name): Add gfx908.
6630 (isa_code): Add gfx908.
6632 2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6634 * libgomp.texi (omp_fulfill_event): New entry.
6636 2021-01-20 Jakub Jelinek <jakub@redhat.com>
6638 * task.c (GOMP_task): Rename priority argument to priority_arg,
6639 add priority automatic variable and modify that variable. Instead of
6640 clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
6641 check flags for that bit.
6643 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
6646 * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
6648 2021-01-18 Andreas Schwab <schwab@suse.de>
6650 * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
6652 2021-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6654 * config/rtems/sem.h (gomp_sem_getcount): New function.
6656 2021-01-18 Jakub Jelinek <jakub@redhat.com>
6658 * config/linux/sem.h (gomp_sem_getcount): New function.
6659 * config/posix/sem.h (gomp_sem_getcount): New function.
6660 * config/posix/sem.c (gomp_sem_getcount): New function.
6661 * config/accel/sem.h (gomp_sem_getcount): New function.
6662 * task.c (task_fulfilled_p): Use gomp_sem_getcount.
6663 (omp_fulfill_event): Likewise.
6665 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
6667 * fortran.c (omp_fulfill_event_): New.
6668 * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
6669 (struct gomp_team): Add task_detach_queue and task_detach_count
6671 * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
6672 * libgomp_g.h (GOMP_task): Add extra argument.
6673 * omp.h.in (enum omp_event_handle_t): New.
6674 (omp_fulfill_event): New.
6675 * omp_lib.f90.in (omp_event_handle_kind): New.
6676 (omp_fulfill_event): New.
6677 * omp_lib.h.in (omp_event_handle_kind): New.
6678 (omp_fulfill_event): Declare.
6679 * priority_queue.c (priority_tree_find): New.
6680 (priority_list_find): New.
6681 (priority_queue_find): New.
6682 * priority_queue.h (priority_queue_predicate): New.
6683 (priority_queue_find): New.
6684 * task.c (gomp_init_task): Initialize detach field.
6685 (task_fulfilled_p): New.
6686 (GOMP_task): Add detach argument. Ignore detach argument if
6687 GOMP_TASK_FLAG_DETACH not set in flags. Initialize completion_sem
6688 field. Copy address of completion_sem into detach argument and
6689 into the start of the data record. Wait for detach event if task
6691 (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
6692 Remove completed tasks and requeue dependent tasks.
6693 (omp_fulfill_event): New.
6694 * team.c (gomp_new_team): Initialize task_detach_queue and
6695 task_detach_count fields.
6696 (free_team): Free task_detach_queue field.
6697 * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
6698 * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
6699 * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
6700 * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
6701 * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
6702 * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
6703 * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
6704 * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
6705 * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
6706 * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
6707 * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
6708 * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
6710 2021-01-15 Jakub Jelinek <jakub@redhat.com>
6713 * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
6714 be added through preprocessor check on
6715 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
6717 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
6720 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
6722 * configure: Regenerate.
6723 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
6726 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6728 * configure: Re-generate.
6730 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6732 * configure: Re-generate.
6734 2021-01-05 Julian Brown <julian@codesourcery.com>
6736 * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
6737 (struct ptx_device): Add omp_stacks struct.
6738 (nvptx_open_device): Initialise cached-stacks housekeeping info.
6739 (nvptx_close_device): Free cached stacks block and mutex.
6740 (nvptx_stacks_free): New function.
6741 (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
6742 (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
6743 (nvptx_stacks_alloc): Rename to...
6744 (nvptx_stacks_acquire): This. Cache stacks block between runs if same
6745 size or smaller is required.
6746 (nvptx_stacks_free): Remove.
6747 (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
6748 during kernel execution.
6750 2021-01-01 Jakub Jelinek <jakub@redhat.com>
6752 * libgomp.texi: Bump @copying's copyright year.
6754 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
6756 * libgomp.texi (Top): Avoid bad "up" link.
6758 2020-12-18 Jakub Jelinek <jakub@redhat.com>
6760 * testsuite/libgomp.c/task-6.c: New test.
6762 2020-12-09 Andrew Stubbs <ams@codesourcery.com>
6764 * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
6765 (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
6767 2020-12-08 Tobias Burnus <tobias@codesourcery.com>
6769 * testsuite/libgomp.fortran/scan-1.f90: New test.
6771 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
6774 * configure: Regenerate.
6776 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
6778 * configure: Regenerate.
6780 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
6782 * testsuite/libgomp.oacc-c++/cache-1.C: New.
6783 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
6785 2020-11-25 Andrew Stubbs <ams@codesourcery.com>
6787 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
6790 2020-11-24 Andrew Stubbs <ams@codesourcery.com>
6792 * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
6793 (reserved): Delete unused define.
6795 2020-11-24 Thomas Schwinge <thomas@codesourcery.com>
6797 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
6798 Tcl 8.5-specific behavior.
6799 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6801 2020-11-18 Kwok Cheung Yeung <kcy@codesourcery.com>
6803 * env.c (gomp_global_icv): Remove nest_var field. Add
6804 max_active_levels_var field.
6805 (gomp_max_active_levels_var): Remove.
6806 (parse_boolean): Return true on success.
6807 (handle_omp_display_env): Express OMP_NESTED in terms of
6808 max_active_levels_var. Change format specifier for
6809 max_active_levels_var.
6810 (initialize_env): Set max_active_levels_var from
6811 OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
6813 * icv.c (omp_set_nested): Express in terms of
6814 max_active_levels_var.
6815 (omp_get_nested): Likewise.
6816 (omp_set_max_active_levels): Use max_active_levels_var field instead
6817 of gomp_max_active_levels_var.
6818 (omp_get_max_active_levels): Likewise.
6819 * libgomp.h (struct gomp_task_icv): Remove nest_var field. Add
6820 max_active_levels_var field.
6821 (gomp_supported_active_levels): Set to UCHAR_MAX.
6822 (gomp_max_active_levels_var): Delete.
6823 * libgomp.texi (omp_get_nested): Update documentation.
6824 (omp_set_nested): Likewise.
6825 (OMP_MAX_ACTIVE_LEVELS): Likewise.
6826 (OMP_NESTED): Likewise.
6827 (OMP_NUM_THREADS): Likewise.
6828 (OMP_PROC_BIND): Likewise.
6829 * parallel.c (gomp_resolve_num_threads): Replace reference
6830 to nest_var with max_active_levels_var. Use max_active_levels_var
6831 field instead of gomp_max_active_levels_var.
6833 2020-11-18 Tobias Burnus <tobias@codesourcery.com>
6835 * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
6836 nvptx_usleep; use also for device={arch(gcn)}.
6838 2020-11-14 Jakub Jelinek <jakub@redhat.com>
6840 * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
6841 (foo): Add tests for non-VLA private and firstprivate clauses on
6843 (bar): Likewise. Remove taking of address from private/firstprivate
6845 * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
6846 (foo): Add p, q, px and s arguments. Add tests for array reductions
6847 and for non-VLA private and firstprivate clauses on omp task.
6849 (main): Adjust foo caller. Don't call bar.
6851 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6852 Thomas Schwinge <thomas@codesourcery.com>
6854 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
6856 * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
6858 * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
6860 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
6861 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
6863 2020-11-13 Gergö Barany <gergo@codesourcery.com>
6864 Thomas Schwinge <thomas@codesourcery.com>
6867 * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
6869 2020-11-13 Jakub Jelinek <jakub@redhat.com>
6871 * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
6872 for array reductions.
6873 (main): Adjust foo callers.
6875 2020-11-12 Jakub Jelinek <jakub@redhat.com>
6877 * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
6878 * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
6879 * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
6880 * allocator.c (omp_aligned_alloc): New for now static function,
6881 add alignment argument and handle it.
6882 (omp_alloc): Reimplement using omp_aligned_alloc.
6883 (GOMP_alloc, GOMP_free): New functions.
6884 (omp_free): Add ialias.
6885 * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
6886 * testsuite/libgomp.c++/allocate-1.C: New test.
6888 2020-11-12 Thomas Schwinge <thomas@codesourcery.com>
6891 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
6893 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
6895 * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
6897 * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
6898 'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
6899 (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
6900 (goacc_enter_data_internal): Likewise.
6901 * target.c (gomp_map_vars_internal):
6902 Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
6903 of gomp_attach_pointer for OpenMP cases.
6904 (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
6905 (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
6906 * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
6908 2020-11-05 Ulrich Drepper <drepper@redhat.com>
6909 Kwok Cheung Yeung <kcy@codesourcery.com>
6911 * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
6912 * Makefile.in: Regenerate.
6913 * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
6914 pragmas to ignore -Wdeprecated-declarations warnings.
6916 * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
6917 Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
6918 and omp_get_nested with __GOMP_DEPRECATED_5_0.
6919 * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
6921 * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
6923 * testsuite/libgomp.c/affinity-1.c: Likewise.
6924 * testsuite/libgomp.c/affinity-2.c: Likewise.
6925 * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
6926 * testsuite/libgomp.c/lib-1.c: Likewise.
6927 * testsuite/libgomp.c/nested-1.c: Likewise.
6928 * testsuite/libgomp.c/nested-2.c: Likewise.
6929 * testsuite/libgomp.c/nested-3.c: Likewise.
6930 * testsuite/libgomp.c/pr32362-1.c: Likewise.
6931 * testsuite/libgomp.c/pr32362-2.c: Likewise.
6932 * testsuite/libgomp.c/pr32362-3.c: Likewise.
6933 * testsuite/libgomp.c/pr35549.c: Likewise.
6934 * testsuite/libgomp.c/pr42942.c: Likewise.
6935 * testsuite/libgomp.c/pr61200.c: Likewise.
6936 * testsuite/libgomp.c/sort-1.c: Likewise.
6937 * testsuite/libgomp.c/target-5.c: Likewise.
6938 * testsuite/libgomp.c/target-6.c: Likewise.
6939 * testsuite/libgomp.c/teams-1.c: Likewise.
6940 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6941 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6942 * testsuite/libgomp.c/thread-limit-4.c: Likewise.
6943 * testsuite/libgomp.fortran/affinity1.f90: Likewise.
6944 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6945 * testsuite/libgomp.fortran/lib2.f: Likewise.
6946 * testsuite/libgomp.fortran/nested1.f90: Likewise.
6947 * testsuite/libgomp.fortran/teams1.f90: Likewise.
6949 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6952 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
6953 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
6954 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
6956 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
6960 * testsuite/lib/libgomp.exp (libgomp_init): Set
6961 'gcc_warning_prefix', 'gcc_error_prefix'.
6963 2020-10-30 Jakub Jelinek <jakub@redhat.com>
6965 * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
6966 even in field_tgt_clear initializer.
6968 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6970 * testsuite/libgomp.c/target-42.c: New test.
6972 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6973 Tom de Vries <tdevries@suse.de>
6976 * testsuite/libgomp.c/usleep.h: New file.
6977 * testsuite/libgomp.c/target-32.c: Include usleep.h.
6978 (main): Use tgt_usleep instead of usleep.
6979 * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
6980 (main): Use tgt_usleep instead of usleep.
6982 2020-10-28 Jakub Jelinek <jakub@redhat.com>
6985 * testsuite/libgomp.c/declare-variant-1.c: New test.
6987 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6989 * testsuite/libgomp.c/target-41.c: New test.
6991 2020-10-22 Jakub Jelinek <jakub@redhat.com>
6993 * icv.c (omp_get_initial_device): Remove including corresponding
6995 * icv-device.c (omp_get_initial_device): New function. Return
6996 gomp_get_num_devices (). Add ialias.
6997 * target.c (resolve_device): Don't fail with
6998 OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
6999 gomp_get_num_devices ().
7000 (omp_target_alloc, omp_target_free, omp_target_is_present,
7001 omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
7002 omp_target_disassociate_ptr, omp_pause_resource): Use
7003 gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
7004 first use in the functions, in uses dominated by the
7005 gomp_get_num_devices call use num_devices_openmp instead.
7006 * libgomp.texi (omp_get_initial_device): Document.
7007 * config/gcn/icv-device.c (omp_get_initial_device): New function.
7009 * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
7010 * testsuite/libgomp.c/target-40.c: New test.
7012 2020-10-21 Jakub Jelinek <jakub@redhat.com>
7014 * env.c (parse_target_offload): Change new_offload var type to int,
7015 preinitialize to -1, remove found var and test new_offload != -1
7018 2020-10-20 Jakub Jelinek <jakub@redhat.com>
7020 * target.c (gomp_target_init): Inside of the function, use automatic
7021 variables corresponding to num_devices, num_devices_openmp and devices
7022 global variables and update the globals only at the end of the
7025 2020-10-20 Kwok Cheung Yeung <kcy@codesourcery.com>
7027 * env.c (gomp_target_offload_var): New.
7028 (parse_target_offload): New.
7029 (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
7030 (initialize_env): Parse OMP_TARGET_OFFLOAD.
7031 * libgomp.h (gomp_target_offload_t): New.
7032 (gomp_target_offload_var): New.
7033 * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
7034 * target.c (resolve_device): Generate error if device not found and
7035 offloading is mandatory.
7036 (gomp_target_fallback): Generate error if offloading is mandatory.
7037 (GOMP_target): Add argument in call to gomp_target_fallback.
7038 (GOMP_target_ext): Likewise.
7039 (gomp_target_data_fallback): Generate error if offloading is mandatory.
7040 (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
7041 (GOMP_target_data_ext): Likewise.
7042 (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
7043 (gomp_target_init): Return early if offloading is disabled.
7045 2020-10-15 Kwok Cheung Yeung <kcy@codesourcery.com>
7047 * libgomp.texi (omp_get_max_active_levels): Modify description.
7048 (omp_get_supported_active_levels): Make descriptions consistent.
7050 2020-10-14 Jakub Jelinek <jakub@redhat.com>
7052 * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
7054 2020-10-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7056 * env.c (gomp_max_active_levels_var): Initialize to
7057 gomp_supported_active_levels.
7058 (initialize_env): Limit gomp_max_active_levels_var to be at most
7059 equal to gomp_supported_active_levels.
7060 * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
7061 (omp_get_supported_active_levels_): New.
7062 * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
7063 to at most equal to gomp_supported_active_levels.
7064 (omp_get_supported_active_levels): New.
7065 * libgomp.h (gomp_supported_active_levels): New.
7066 * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
7067 omp_get_supported_active_levels_.
7068 * libgomp.texi (omp_get_supported_active_levels): New.
7069 (omp_set_max_active_levels): Update. Add reference to
7070 omp_get_supported_active_levels.
7071 * omp.h.in (omp_get_supported_active_levels): New.
7072 * omp_lib.f90.in (omp_get_supported_active_levels): New.
7073 * omp_lib.h.in (omp_get_supported_active_levels): New.
7074 * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
7075 against omp_get_supported_active_levels.
7076 * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
7078 2020-10-11 Clement Chigot <clement.chigot@atos.net>
7080 * config/t-aix: Delete and recreate libgomp before creating
7083 2020-10-08 Tom de Vries <tdevries@suse.de>
7086 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
7089 2020-10-06 Tom de Vries <tdevries@suse.de>
7091 * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
7093 2020-10-06 Tom de Vries <tdevries@suse.de>
7096 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
7098 2020-10-05 Tom de Vries <tdevries@suse.de>
7101 * testsuite/libgomp.fortran/pr95654.f90: New test.
7103 2020-10-02 Tobias Burnus <tobias@codesourcery.com>
7105 * Makefile.in: Regenerate with automake 1.15.1.
7106 * aclocal.m4: Likewise.
7107 * configure: Likewise.
7108 * testsuite/Makefile.in: Likewise.
7110 2020-09-30 Andrew Stubbs <ams@codesourcery.com>
7112 * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
7115 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
7117 * testsuite/libgomp.fortran/declare-target-3.f90: New test.
7119 2020-09-29 Andrew Stubbs <ams@codesourcery.com>
7121 * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
7122 total number of threads is one.
7123 (gomp_team_barrier_wake): Likewise.
7124 (gomp_team_barrier_wait_end): Likewise.
7125 (gomp_team_barrier_wait_cancel_end): Likewise.
7126 * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
7127 (gomp_team_barrier_wake): Likewise.
7128 (gomp_team_barrier_wait_end): Likewise.
7129 (gomp_team_barrier_wait_cancel_end): Likewise.
7130 * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
7132 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
7135 * testsuite/libgomp.c++/pr96390.C: New test.
7136 * testsuite/libgomp.c-c++-common/pr96390.c: New test.
7138 2020-09-27 Clement Chigot <clement.chigot@atos.net>
7140 * config/t-aix: Use $(AR) without -X32_64.
7142 2020-09-25 Jakub Jelinek <jakub@redhat.com>
7144 * testsuite/libgomp.c/loop-25.c: New test.
7146 2020-09-22 Tobias Burnus <tobias@codesourcery.com>
7149 * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
7151 2020-09-22 Tom de Vries <tdevries@suse.de>
7153 * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
7156 2020-09-16 Nathan Sidwell <nathan@acm.org>
7158 * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
7160 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7163 * target.c (gomp_map_vars_internal): Initialize has_nullptr.
7165 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7168 * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
7169 * target.c (gomp_map_vars_existing): Add always_to_flag flag.
7170 (gomp_map_vars_existing): Update call to it.
7171 (gomp_map_fields_existing): Likewise
7172 (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
7173 now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
7175 (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
7177 * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
7178 * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
7180 2020-09-14 Tom de Vries <tdevries@suse.de>
7182 * config/nvptx/atomic.c: New file. Add
7183 __sync_val_compare_and_swap_16.
7184 * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
7185 target offload_target_nvptx.
7187 2020-09-08 Julian Brown <julian@codesourcery.com>
7189 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
7190 iteration-ordering assumptions.
7192 2020-09-08 Julian Brown <julian@codesourcery.com>
7194 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
7195 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7197 2020-08-20 Chung-Lin Tang <cltang@codesourcery.com>
7199 * plugin/plugin-nvptx.c (nvptx_free):
7200 Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
7201 CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
7204 2020-08-20 Tobias Burnus <tobias@codesourcery.com>
7206 * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
7208 2020-08-13 Kwok Cheung Yeung <kcy@codesourcery.com>
7210 * testsuite/libgomp.c-c++-common/reduction-16.c: New.
7212 2020-08-13 Jakub Jelinek <jakub@redhat.com>
7214 * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
7215 * testsuite/libgomp.c/loop-23.c (main): Likewise.
7216 * testsuite/libgomp.c/loop-24.c: New test.
7218 2020-08-08 Jakub Jelinek <jakub@redhat.com>
7219 Tobias Burnus <tobias@codesourcery.com>
7222 * testsuite/libgomp.fortran/pr93553.f90: New test.
7224 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7226 * testsuite/libgomp.c/loop-22.c: New test.
7227 * testsuite/libgomp.c/loop-23.c: New test.
7229 2020-08-05 Jakub Jelinek <jakub@redhat.com>
7232 * testsuite/libgomp.c/teams-3.c: New test.
7233 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
7235 (N(test)): Use it before all N(f*) calls.
7236 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
7237 (main): Don't call all test_* functions from within
7238 #pragma omp teams reduction(|:err), call them directly.
7240 2020-08-04 Tom de Vries <tdevries@suse.de>
7243 * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
7244 * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
7246 2020-08-03 Julian Brown <julian@codesourcery.com>
7247 Thomas Schwinge <thomas@codesourcery.com>
7249 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
7250 shared-memory devices. Extend with further checking.
7252 2020-08-03 Martin Jambor <mjambor@suse.cz>
7254 * plugin/Makefrag.am: Remove configuration of HSA plugin.
7255 * aclocal.m4: Regenerated.
7256 * Makefile.in: Regenerated.
7257 * config.h.in: Regenerated.
7258 * configure: Regenerated.
7259 * plugin/configfrag.ac: Likewise.
7260 * plugin/hsa_ext_finalize.h: Removed.
7261 * plugin/plugin-hsa.c: Likewise.
7262 * testsuite/Makefile.in: Regenerated.
7263 * testsuite/lib/libgomp.exp
7264 (offload_target_to_openacc_device_type): Remove hsa case.
7265 (check_effective_target_hsa_offloading_selected_nocache): Removed
7266 (check_effective_target_hsa_offloading_selected): Likewise.
7267 (libgomp_init): Do not add -Wno-hsa to additional_flags.
7268 * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
7269 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7270 * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
7271 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7272 * testsuite/libgomp.hsa.c/c.exp: Likewise.
7273 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7274 * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
7275 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7276 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7277 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7278 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7279 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7280 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7281 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7282 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7283 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7284 * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
7285 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7286 * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
7287 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7288 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7289 * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
7290 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7291 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7293 2020-07-27 Julian Brown <julian@codesourcery.com>
7294 Thomas Schwinge <thomas@codesourcery.com>
7296 * libgomp.h (struct target_var_desc): Rename do_detach field to
7298 * oacc-mem.c (goacc_exit_datum_1): Add assert. Don't set finalize for
7299 GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
7300 (goacc_enter_data_internal): Don't affect reference counts
7301 for attach mappings.
7302 (goacc_exit_data_internal): Don't affect reference counts for detach
7304 * target.c (gomp_map_vars_existing): Don't affect reference counts for
7306 (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
7307 mark attach mappings.
7308 (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
7309 reference count for attach mappings.
7310 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
7311 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7312 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
7313 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
7315 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
7316 gracefully in no-finalize mode.
7317 * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
7319 2020-07-24 Thomas Schwinge <thomas@codesourcery.com>
7321 * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
7323 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7324 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7326 2020-07-23 Julian Brown <julian@codesourcery.com>
7327 Thomas Schwinge <thomas@codesourcery.com>
7329 * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
7330 finalization for detach operation.
7331 * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
7334 2020-07-23 Tobias Burnus <tobias@codesourcery.com>
7336 * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
7337 * libgomp_f.h.in (omp_check_defines): Check whether
7338 sizeof of determined Fortran kind and C typedef match.
7339 * omp_lib.f90.in: Add omp_depened_kind.
7340 * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
7341 * configure: Regenerate.
7342 * Makefile.in: Regenerate.
7343 * testsuite/Makefile.in: Regenerate.
7345 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7347 * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
7348 gcc/testsuite/c-c++-common/gomp/.
7349 * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
7350 * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
7351 from gcc/testsuite/gfortran.dg/gomp/.
7352 * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
7354 2020-07-22 Tobias Burnus <tobias@codesourcery.com>
7356 * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
7357 * omp_lib.h.in: Likewise.
7359 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
7362 * testsuite/libgomp.c/pr95620.c: New test.
7364 2020-07-16 Julian Brown <julian@codesourcery.com>
7365 Thomas Schwinge <thomas@codesourcery.com>
7367 * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
7368 * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
7370 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7372 * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
7373 avoid conversion on 32bit systems from 32bit to 64bit due
7374 to -fdefault-integer-8.
7376 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7378 * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
7379 variables; add character(kind=4) tests; update TODO comment.
7381 2020-07-15 Tobias Burnus <tobias@codesourcery.com>
7383 * allocator.c: Add ialias for omp_init_allocator and
7384 omp_destroy_allocator.
7385 * configure.ac: Set INTPTR_T_KIND.
7386 * configure: Regenerate.
7387 * Makefile.in: Regenerate.
7388 * testsuite/Makefile.in: Regenerate.
7389 * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
7390 omp_set_default_allocator_, omp_get_default_allocator_): New
7391 functions and ialias_redirect.
7392 * icv.c: Add ialias for omp_set_default_allocator and
7393 omp_get_default_allocator.
7394 * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
7395 omp_destroy_allocator_, omp_set_default_allocator_ and
7396 omp_get_default_allocator_.
7397 * omp_lib.f90.in: Add allocator traits parameters, declare
7398 allocator routines and add related kind parameters.
7399 * omp_lib.h.in: Likewise.
7400 * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
7401 * testsuite/libgomp.fortran/alloc-1.F90: New test.
7402 * testsuite/libgomp.fortran/alloc-2.F90: New test.
7403 * testsuite/libgomp.fortran/alloc-3.F: New test.
7404 * testsuite/libgomp.fortran/alloc-4.f90: New test.
7405 * testsuite/libgomp.fortran/alloc-5.f90: New test.
7407 2020-07-14 Tom de Vries <tom@codesourcery.com>
7408 Cesar Philippidis <cesar@codesourcery.com>
7409 Thomas Schwinge <thomas@codesourcery.com>
7410 Kwok Cheung Yeung <kcy@codesourcery.com>
7412 * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
7414 (acc_init_1): Set acc_init_thread to pthread_self (). Set
7415 acc_init_state to initializing at the start, and to initialized at the
7417 (self_initializing_p): New function.
7418 (acc_get_device_type): Return acc_device_none if called by thread that
7419 is currently executing acc_init_1.
7420 * libgomp.texi (acc_get_device_type): Update documentation.
7421 (Implementation Status and Implementation-Defined Behavior): Likewise.
7422 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
7424 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
7426 * config/t-aix: Set BITS from compiler cpp macro.
7428 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7430 * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
7432 2020-07-14 Tobias Burnus <tobias@codesourcery.com>
7435 * testsuite/libgomp.fortran/target-map-1.f90: New test.
7437 2020-07-14 Jakub Jelinek <jakub@redhat.com>
7439 * testsuite/libgomp.c/loop-21.c: New test.
7441 2020-07-13 Julian Brown <julian@codesourcery.com>
7442 Thomas Schwinge <thomas@codesourcery.com>
7444 * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
7446 2020-07-10 Julian Brown <julian@codesourcery.com>
7447 Thomas Schwinge <thomas@codesourcery.com>
7449 * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
7451 (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
7452 * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
7454 (acc_unmap_data): Update comment.
7455 (goacc_map_var_existing, goacc_enter_datum): Adjust for
7456 dynamic_refcount semantics.
7457 (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
7458 Adjust for dynamic_refcount semantics.
7459 (goacc_enter_data_internal): Implement "present" case of dynamic
7460 memory-map handling here. Update "non-present" case for
7461 dynamic_refcount semantics.
7462 (goacc_exit_data_internal): Use goacc_exit_datum_1.
7463 * target.c (gomp_map_vars_internal): Remove
7464 GOMP_MAP_VARS_OPENACC_ENTER_DATA handling. Update for dynamic_refcount
7466 (gomp_unmap_vars_internal): Remove virtual_refcount handling.
7467 (gomp_load_image_to_device): Substitute dynamic_refcount for
7469 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
7470 * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
7471 * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
7472 * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
7473 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
7475 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
7477 * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
7479 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7480 Remove stale comment.
7481 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
7482 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7483 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7484 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7485 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7486 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
7488 2020-07-10 Julian Brown <julian@codesourcery.com>
7489 Thomas Schwinge <thomas@codesourcery.com>
7491 * oacc-mem.c (goacc_map_var_existing): New function.
7492 (goacc_enter_datum): Use above function.
7493 (goacc_exit_datum_1): New function.
7494 (goacc_exit_datum): Use above function.
7496 2020-07-09 Julian Brown <julian@codesourcery.com>
7497 Thomas Schwinge <thomas@codesourcery.com>
7500 * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
7501 * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
7503 2020-07-09 Julian Brown <julian@codesourcery.com>
7505 * oacc-mem.c (find_group_last): Group data-movement clauses
7506 (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
7507 GOMP_MAP_ATTACH. Allow standalone GOMP_MAP_ATTACH also.
7509 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7511 * testsuite/libgomp.c/loop-19.c: New test.
7512 * testsuite/libgomp.c/loop-20.c: New test.
7514 2020-07-09 Jakub Jelinek <jakub@redhat.com>
7516 * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
7517 2 to -1. Add omp_atv_serialized and define omp_atv_sequential using
7518 it. Remove __omp_alloctrait_value_max__.
7519 * allocator.c (omp_init_allocator): Handle omp_atv_default for
7520 omp_atk_alignment and omp_atk_pool_size.
7522 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7524 * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
7525 behavior for 'GOMP_MAP_FORCE_FROM'.
7526 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
7528 2020-07-03 Thomas Schwinge <thomas@codesourcery.com>
7530 * oacc-mem.c (goacc_exit_data_internal): Remove
7531 'GOMP_MAP_ALWAYS_FROM' handling.
7533 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7535 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
7536 'scan-assembler' with 'scan-offload-rtl'.
7537 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
7538 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7539 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
7540 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
7542 2020-06-30 Thomas Schwinge <thomas@codesourcery.com>
7544 * target.c (gomp_map_vars_existing): Assert 'kind !=
7546 (gomp_map_vars_internal): Clean up.
7548 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7550 * testsuite/libgomp.c/loop-17.c: New test.
7551 * testsuite/libgomp.c/loop-18.c: New test.
7553 2020-06-26 Marek Polacek <polacek@redhat.com>
7555 * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
7557 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7559 * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
7560 * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
7562 2020-06-22 David Edelsohn <dje.gcc@gmail.com>
7564 * Makefile.am: Use -include.
7565 * Makefile.in: Regenerate.
7567 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
7569 * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
7570 * Makefile.in: Regenerate
7571 * configure.ac (tmake_file): Substitute.
7572 * configure: Regenerate.
7573 * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
7574 * config/t-aix: New file.
7576 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
7579 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
7582 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
7584 * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
7585 variant for HSA_RUNTIME_LIB name.
7586 (find_executable_symbol_1): Delete.
7587 (find_executable_symbol): Delete.
7588 (init_kernel_properties): Add ".kd" suffix to symbol names.
7589 (find_load_offset): Delete.
7590 (create_and_finalize_hsa_program): Remove relocation handling.
7592 2020-06-16 Tobias Burnus <tobias@codesourcery.com>
7594 * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
7596 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
7600 * testsuite/libgomp.fortran/target-var.f90: New test.
7602 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7603 Julian Brown <julian@codesourcery.com>
7605 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
7608 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
7609 Julian Brown <julian@codesourcery.com>
7611 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7614 2020-06-05 Julian Brown <julian@codesourcery.com>
7616 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
7617 * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
7619 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7621 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7622 Evaluate 'copyfrom' individually for each entry.
7623 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
7625 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7627 * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
7628 Evaluate 'finalize' individually for each entry.
7629 * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
7630 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
7633 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7635 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
7637 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
7639 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7640 Julian Brown <julian@codesourcery.com>
7642 * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
7644 (acc_unmap_data, goacc_exit_data_internal): Restore
7645 'is_tgt_unmapped' checking.
7646 * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
7648 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
7649 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7650 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7651 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7652 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7653 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7655 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7656 Julian Brown <julian@codesourcery.com>
7658 * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
7660 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7663 * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
7665 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7668 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
7671 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7672 Julian Brown <julian@codesourcery.com>
7674 * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
7676 (acc_map_data): Clean up accordingly.
7678 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7680 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
7681 of over-eager 'finalize' clause.
7682 * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
7684 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
7685 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
7686 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
7687 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
7688 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
7689 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
7690 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
7691 * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
7693 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7695 * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
7697 2020-06-04 Julian Brown <julian@codesourcery.com>
7699 * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
7701 (goacc_detach_internal): Likewise.
7703 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
7705 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
7707 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7708 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7709 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7710 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7711 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7713 2020-06-02 Jakub Jelinek <jakub@redhat.com>
7715 * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
7718 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7720 * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
7722 2020-05-30 Jakub Jelinek <jakub@redhat.com>
7724 * allocator.c (omp_alloc): For size == 0, return NULL early.
7726 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
7729 * configure: Regenerated.
7731 2020-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
7734 * testsuite/libgomp.fortran/async_io_9.f90: New test.
7736 2020-05-19 Jakub Jelinek <jakub@redhat.com>
7738 * omp.h.in (omp_uintptr_t): New typedef.
7739 (__GOMP_UINTPTR_T_ENUM): Define.
7740 (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
7741 omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
7742 (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
7743 (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
7744 omp_get_default_allocator, omp_alloc, omp_free): Declare.
7745 * libgomp.h (struct gomp_team_state): Add def_allocator field.
7746 (gomp_def_allocator): Declare.
7747 * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
7748 omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
7749 omp_alloc and omp_free.
7750 * team.c (gomp_team_start): Copy over ts.def_allocator.
7751 * env.c (gomp_def_allocator): New variable.
7752 (parse_wait_policy): Adjust function comment.
7753 (parse_allocator): New function.
7754 (handle_omp_display_env): Print OMP_ALLOCATOR.
7755 (initialize_env): Call parse_allocator.
7756 * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
7757 * allocator.c: New file.
7758 * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
7760 * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
7761 * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
7762 * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
7763 * Makefile.in: Regenerated.
7765 2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
7768 * configure: Regenerated.
7770 2020-05-14 Thomas Koenig <tkoenig@gcc.gnu.org>
7773 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
7775 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
7777 * configure: Regenerated.
7779 2020-05-14 Jakub Jelinek <jakub@redhat.com>
7781 * testsuite/libgomp.c-c++-common/target-40.c: New test.
7783 2020-05-13 Tobias Burnus <tobias@codesourcery.com>
7786 * testsuite/libgomp.fortran/pr66199-3.f90: New.
7787 * testsuite/libgomp.fortran/pr66199-4.f90: New.
7788 * testsuite/libgomp.fortran/pr66199-5.f90: New.
7789 * testsuite/libgomp.fortran/pr66199-6.f90: New.
7790 * testsuite/libgomp.fortran/pr66199-7.f90: New.
7791 * testsuite/libgomp.fortran/pr66199-8.f90: New.
7792 * testsuite/libgomp.fortran/pr66199-9.f90: New.
7794 2020-05-12 Jakub Jelinek <jakub@redhat.com>
7796 * testsuite/libgomp.c/target-39.c: New test.
7798 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
7800 * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
7801 * openacc.f90 (acc_device_current): Likewise.
7802 * openacc.h (acc_device_current): Likewise.
7803 * openacc_lib.h (acc_device_current): Likewise.
7806 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
7807 'dg-allow-blank-lines-in-output'.
7809 * oacc-init.c (get_openacc_name): Handle 'gcn'.
7810 * testsuite/lib/libgomp.exp
7811 (offload_target_to_openacc_device_type) [amdgcn*]: Return
7812 'radeon'. Adjust all users.
7813 (check_effective_target_openacc_amdgcn_accel_present): Rename
7815 (check_effective_target_openacc_radeon_accel_present): ... this.
7817 (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
7818 (check_effective_target_openacc_radeon_accel_selected): ... this.
7821 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
7824 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
7828 * plugin/plugin-gcn.c (init_hsa_context): Check return value from
7830 (GOMP_OFFLOAD_init_device): Check return values from both calls to
7831 hsa_agent_iterate_regions.
7833 2020-04-20 Thomas Schwinge <thomas@codesourcery.com>
7836 * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
7839 2020-04-20 Tobias Burnus <tobias@codesourcery.com>
7842 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
7845 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
7848 * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
7850 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
7853 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7855 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
7857 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7859 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
7861 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7863 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
7865 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7867 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
7869 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7871 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
7873 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7875 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
7877 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7879 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
7881 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7883 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
7885 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7887 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
7889 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7891 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
7893 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7895 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
7897 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7899 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
7901 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7903 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
7905 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7907 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
7909 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7911 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
7913 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
7915 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
7918 2020-04-10 Julian Brown <julian@codesourcery.com>
7919 Thomas Schwinge <thomas@codesourcery.com>
7922 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
7924 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
7926 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
7928 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
7930 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
7932 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
7934 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
7936 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
7938 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
7940 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
7942 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
7944 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
7946 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
7948 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
7950 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
7952 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
7955 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
7957 * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
7960 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
7963 * libgomp.oacc-c++/declare-pr94120.C: New.
7965 2020-04-06 Maciej W. Rozycki <macro@wdc.com>
7967 * configure.ac: Add testsuite/libgomp-site-extra.exp to output
7969 * configure: Regenerate.
7970 * testsuite/libgomp-site-extra.exp.in: New file.
7971 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
7973 * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
7975 * testsuite/Makefile.in: Regenerate.
7977 2020-04-03 Thomas Schwinge <thomas@codesourcery.com>
7979 PR tree-optimization/89713
7981 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
7983 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
7985 2020-03-31 Tobias Burnus <tobias@codesourcery.com>
7987 * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
7988 * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
7990 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
7993 * testsuite/libgomp.c/target-link-1.c: Remove xfail.
7995 2020-03-20 Tobias Burnus <tobias@codesourcery.com>
7998 * target.c (gomp_load_image_to_device): Fix link
8001 2020-03-19 Jakub Jelinek <jakub@redhat.com>
8004 * testsuite/libgomp.c++/pr93931.C: New test.
8006 2020-03-19 Tobias Burnus <tobias@codesourcery.com>
8008 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
8009 dg-allow-blank-lines-in-output.
8011 2020-03-18 Julian Brown <julian@codesourcery.com>
8012 Tobias Burnus <tobias@codesourcery.com>
8014 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
8015 it work concurrently.
8017 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
8019 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
8020 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
8021 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
8023 2020-03-14 Jakub Jelinek <jakub@redhat.com>
8026 * testsuite/libgomp.c/pr93566.c: New test.
8028 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
8030 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
8031 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
8032 integer(acc_device_property) for the type of the return value of
8035 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
8037 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
8038 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
8039 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
8040 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
8041 (acc_set_device_num): Fix Fortran argument name, use same name for C.
8042 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
8043 corrections; add note about the previous interface and named constant.
8044 (OpenACC library and environment variables): Fix two typos.
8045 * openacc.f90: Use for all procedures the argument names from the spec
8046 as for …_h they are user visible.
8047 (openacc_kinds): Rename acc_device_property to
8048 acc_device_property_kinds and change value to int32 ; and update users.
8049 Re-add acc_device_property for for backward compatibility.
8050 (acc_get_property_string_h): Clean up as acc_device_property_kind
8052 (acc_get_property_h): Likewise and return c_size_t instead of
8053 acc_device_property.
8054 (openacc): Also export acc_device_property_kinds.
8055 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
8056 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
8057 handling; check against /= 0 instead of == 1 to match C.
8058 * openacc_lib.h: Use for all procedures the argument names from the spec
8059 as for …_h they are user visible. Place !GCC$ into the first column to
8060 be active also for fixed-form souce form.
8061 (acc_device_current, acc_device_property_kind, acc_device_property,
8062 acc_property_memory, acc_property_free_memory, acc_property_name,
8063 acc_property_vendor, acc_property_driver): New named constants.
8064 (acc_get_property, acc_get_property_string): New generic interface.
8066 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
8069 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
8070 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
8072 (gomp_target_task_fn): Assert "devicep->async_run_func".
8073 (clear_unsupported_flags): New function to remove unsupported flags
8074 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
8075 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
8076 * testsuite/libgomp.c/target-33.c:
8077 Remove xfail for offload_target_nvptx.
8078 * testsuite/libgomp.c/target-34.c: Likewise.
8080 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
8082 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
8083 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
8084 * testsuite/libgomp.c/target-34.c: Likewise.
8085 * testsuite/libgomp.c/target-link-1.c: Add xfail for
8086 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
8088 2020-02-09 Jakub Jelinek <jakub@redhat.com>
8090 * testsuite/libgomp.c/target-38.c: New test.
8092 2020-02-06 Jakub Jelinek <jakub@redhat.com>
8095 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
8097 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
8099 * testsuite/lib/libgomp.exp
8100 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
8101 and not as 'source' argument to libgomp_target_compile.
8103 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
8105 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
8106 (gcn_gfx801_s): Remove.
8107 (isa_hsa_name): Remove gfx801.
8108 (isa_gcc_name): Remove gfx801/carizzo.
8109 (isa_code): Remove gfx801.
8111 2020-02-03 Julian Brown <julian@codesourcery.com>
8112 Tobias Burnus <tobias@codesourcery.com>
8114 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
8115 and *_finalize variants; document acc_attach and acc_detach; update
8116 references from OpenACC 2.0 to 2.6.
8117 * openacc.f90 (openacc_version): Update to 201711.
8118 * openacc_lib.h (openacc_version): Update to 201711.
8119 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
8120 openacc_version to 201711.
8121 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8123 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
8125 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
8126 and vgpr_count fields.
8127 (struct kernel_info): Add a field for a hsa_kernel_description.
8128 (run_kernel): Reduce the number of threads/workers if the requested
8129 number would require too many VGPRs.
8130 (init_basic_kernel_info): Initialize description field with
8131 the hsa_kernel_description entry for the kernel.
8133 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
8136 * plugin/configfrag.ac (enable_offload_targets): Skip
8137 HSA and GCN plugin besides -m32 also for -mx32.
8138 * configure: Regenerate.
8140 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8142 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
8144 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
8146 * plugin-gcn.c (struct agent_info): Add fields "name" and
8148 (GOMP_OFFLOAD_init_device): ... and init from here.
8149 (struct hsa_context_info): Add field "driver_version_s" ...
8150 (init_hsa_contest): ... and init from here.
8151 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
8153 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8154 Enable test execution for amdgcn and host offloading targets.
8155 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
8156 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8157 (expect_device_properties): Split function into ...
8158 (expect_device_string_properties): ... this new function ...
8159 (expect_device_memory): ... and this new function.
8160 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
8163 2020-01-28 Julian Brown <julian@codesourcery.com>
8165 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
8166 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
8167 component/non-component variable refs in a single directive.
8168 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
8170 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
8172 * configure.ac: Handle `--with-toolexeclibdir='.
8173 * Makefile.in: Regenerate.
8174 * aclocal.m4: Regenerate.
8175 * configure: Regenerate.
8176 * testsuite/Makefile.in: Regenerate.
8178 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
8180 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
8181 (expect_device_properties): Remove "expected_free_mem" argument,
8182 change "expected_total_mem" argument type to size_t;
8183 change types of acc_get_property results to size_t,
8184 adapt format strings.
8185 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
8186 Use %zu instead of %zd to print size_t values.
8187 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
8189 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
8190 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
8192 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
8194 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
8196 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
8199 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
8201 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
8202 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
8203 Adjust test dimensions for amdgcn.
8204 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
8205 gang/worker/vector expectations dynamically.
8206 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
8208 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
8209 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
8210 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
8211 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
8212 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
8213 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
8214 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
8215 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
8216 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
8217 (acc_gang): Recognise acc_device_radeon.
8218 (acc_worker): Likewise.
8219 (acc_vector): Likewise.
8220 (main): Set expectations for amdgcn.
8221 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
8222 (main): Adjust gang/worker/vector expectations dynamically.
8223 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
8224 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
8225 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
8226 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
8229 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
8231 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
8233 (openacc): Likewise.
8234 * openacc.f90 (openacc_kinds): Likewise.
8235 (openacc): Likewise.
8236 * openacc.h (acc_device_t): Likewise.
8237 * openacc_lib.h: Likewise.
8238 * testsuite/lib/libgomp.exp
8239 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
8241 (cb_compute_construct_end): Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
8243 (cb_enqueue_launch_start): Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
8245 (cb_enter_data_end): Likewise.
8246 (cb_exit_data_start): Likewise.
8247 (cb_exit_data_end): Likewise.
8248 (cb_compute_construct_end): Likewise.
8249 (cb_enqueue_launch_start): Likewise.
8250 (cb_enqueue_launch_end): Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
8254 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
8256 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
8257 to use this instead of 'enum gomp_device_property'.
8258 (GOMP_OFFLOAD_get_property): Rename to...
8259 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
8260 * libgomp.h (struct gomp_device_descr): Move
8261 'GOMP_OFFLOAD_openacc_get_property'...
8262 (struct acc_dispatch_t): ... here. Adjust all users.
8263 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
8265 * target.c (gomp_map_vars_internal)
8266 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
8269 2020-01-10 Jakub Jelinek <jakub@redhat.com>
8272 * libgomp.h (gomp_print_string): Change return type from void to int.
8273 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
8274 not all characters have been written.
8276 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
8278 * libgomp.texi: Fix typos, use https.
8280 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
8282 * testsuite/libgomp.fortran/optional-map.f90: Add test for
8283 unallocated/disassociated actual arguments to nonallocatable/nonpointer
8284 dummy arguments; those are/shall be regarded as absent arguments.
8285 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8286 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
8288 2020-01-01 Jakub Jelinek <jakub@redhat.com>
8290 Update copyright years.
8292 * libgomp.texi: Bump @copying's copyright year.
8294 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
8297 * oacc-init.c (goacc_runtime_deinitialize): New function.
8299 2019-12-28 Jakub Jelinek <jakub@redhat.com>
8302 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
8303 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
8305 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
8306 Frederik Harwath <frederik@codesourcery.com>
8307 Thomas Schwinge <tschwinge@codesourcery.com>
8309 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
8310 * libgomp-plugin.h (gomp_device_property_value): New union.
8311 (gomp_device_property_value): New prototype.
8312 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
8314 (acc_device_property_t): New enum.
8315 (acc_get_property, acc_get_property_string): New prototypes.
8316 * oacc-init.c (acc_get_device_type): Also assert that result
8317 is not `acc_device_current'.
8318 (get_property_any, acc_get_property, acc_get_property_string):
8320 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
8321 `acc_property_memory', `acc_property_free_memory',
8322 `acc_property_name', `acc_property_vendor' and
8323 `acc_property_driver' constants. Add `acc_device_property' data
8325 (openacc_internal): Add `acc_get_property' and
8326 `acc_get_property_string' interfaces. Add `acc_get_property_h',
8327 `acc_get_property_string_h', `acc_get_property_l' and
8328 `acc_get_property_string_l'.
8329 * oacc-host.c (host_get_property): New function.
8330 (host_dispatch): Wire it.
8331 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
8332 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
8333 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
8334 * libgomp.texi (OpenACC Runtime Library Routines): Add
8336 (acc_get_property): New node.
8337 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
8339 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
8340 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
8341 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
8343 (GOMP_OFFLOAD_get_property): New function.
8344 (struct ptx_device): Add new field "name".
8345 (cuda_driver_version_s): Add new static variable ...
8346 (nvptx_init): ... and init from here.
8348 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
8349 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
8350 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
8351 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
8352 with test helper functions.
8354 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
8356 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
8358 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
8361 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
8363 * target.c (gomp_map_vars_internal): Restore 'omp declare target
8366 2019-12-19 Julian Brown <julian@codesourcery.com>
8368 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
8369 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
8370 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
8372 2019-12-19 Julian Brown <julian@codesourcery.com>
8373 Cesar Philippidis <cesar@codesourcery.com>
8375 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
8376 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
8377 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
8378 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
8379 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
8380 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
8381 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
8382 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
8383 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
8384 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
8385 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
8386 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
8387 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
8389 2019-12-19 Julian Brown <julian@codesourcery.com>
8391 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
8392 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
8393 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
8394 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
8395 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
8396 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
8397 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
8398 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
8399 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
8400 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
8401 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
8402 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
8404 2019-12-19 Julian Brown <julian@codesourcery.com>
8406 * libgomp.h (struct target_var_desc): Add do_detach flag.
8407 * oacc-init.c (acc_shutdown_1): Free aux block if present.
8408 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
8409 struct components. Tidy up and add some new checks.
8410 (goacc_enter_data_internal): Update call to find_group_last.
8411 (goacc_exit_data_internal): Support detach operations and
8413 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
8414 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
8415 attach/detach in enter/exit data detection code.
8416 * target.c (gomp_map_vars_existing): Initialise do_detach field of
8418 (gomp_map_vars_internal): Support attach.
8419 (gomp_unmap_vars_internal): Support detach.
8421 2019-12-19 Julian Brown <julian@codesourcery.com>
8422 Thomas Schwinge <thomas@codesourcery.com>
8424 * libgomp.h (struct splay_tree_aux): Add attach_count field.
8425 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
8426 * libgomp.map (OACC_2.6): New section. Add acc_attach,
8427 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
8428 acc_detach_finalize_async.
8429 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
8430 acc_detach, acc_detach_async, acc_detach_finalize,
8431 acc_detach_finalize_async): New functions.
8432 * openacc.h (acc_attach, acc_attach_async, acc_detach,
8433 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
8435 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
8436 (gomp_remove_var_internal): Free attachment counts if present.
8437 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
8438 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
8440 2019-12-19 Julian Brown <julian@codesourcery.com>
8441 Cesar Philippidis <cesar@codesourcery.com>
8443 * libgomp.h (gomp_map_val): Add prototype.
8444 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
8445 open-coding device-address calculation.
8446 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
8449 2019-12-19 Julian Brown <julian@codesourcery.com>
8451 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
8452 field for virtual_refcount.
8453 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
8454 (gomp_free_memmap): Remove prototype.
8455 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
8456 instead of calling gomp_free_memmap.
8457 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
8459 (acc_unmap_data): Open code instead of forcing target_mem_desc's
8460 to_free field to NULL then calling gomp_unmap_vars. Handle
8461 REFCOUNT_INFINITY on target blocks.
8462 (goacc_enter_data): Rename to...
8463 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
8464 handling for mapping groups. Use virtual_refcount instead of
8465 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
8466 map_map_vars_async call. Re-do lookup for target pointer return value.
8467 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
8468 renamed goacc_enter_datum function.
8469 (goacc_exit_data): Rename to...
8470 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
8471 (acc_delete, acc_delete_async, acc_delete_finalize,
8472 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
8473 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
8474 goacc_exit_datum function.
8475 (gomp_acc_remove_pointer, find_pointer): Remove functions.
8476 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
8478 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
8479 goacc_exit_data_internal helper functions.
8480 * target.c (gomp_map_vars_internal): Handle
8481 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
8483 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
8484 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
8485 virtual_refcount field instead of dynamic_refcount.
8486 (gomp_free_memmap): Remove function.
8487 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
8488 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
8489 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
8491 2019-12-19 Julian Brown <julian@codesourcery.com>
8492 Thomas Schwinge <thomas@codesourcery.com>
8494 * libgomp.h (struct splay_tree_aux): New.
8495 (struct splay_tree_key_s): Replace link_key field with aux pointer.
8496 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
8498 (gomp_remove_var_internal): Free aux block if present.
8499 (gomp_load_image_to_device): Zero-initialise aux field instead of
8501 (omp_target_associate_pointer): Zero-initialise aux field.
8503 2019-12-18 Jakub Jelinek <jakub@redhat.com>
8506 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
8508 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
8511 2019-12-19 Julian Brown <julian@codesourcery.com>
8512 Maciej W. Rozycki <macro@codesourcery.com>
8513 Tobias Burnus <tobias@codesourcery.com>
8514 Thomas Schwinge <thomas@codesourcery.com>
8516 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
8517 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
8518 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
8519 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
8520 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
8521 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
8522 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
8523 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
8524 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
8526 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
8528 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8530 (goacc_insert_pointer): ... from here, "present" case.
8531 (goacc_insert_pointer): Inline function into...
8532 (GOACC_enter_exit_data): ... here, and simplify.
8534 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
8536 (goacc_insert_pointer): ... from here, "not present" case.
8538 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
8541 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
8542 'goacc_enter_data', 'goacc_exit_data'.
8544 * oacc-mem.c (delete_copyout): Refactor into...
8545 (goacc_exit_data): ... this. Adjust all users.
8547 * oacc-mem.c (present_create_copy): Refactor into...
8548 (goacc_enter_data): ... this. Adjust all users.
8550 * target.c (gomp_unmap_vars_internal): Add a safeguard to
8553 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
8554 like 'GOMP_MAP_FROM'.
8559 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
8561 (GOACC_enter_exit_data): Simplify accordingly.
8562 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
8564 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
8565 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
8567 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
8569 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
8570 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
8572 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
8574 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
8576 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
8577 'finalize' handling.
8580 * oacc-mem.c (acc_map_data, present_create_copy)
8581 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
8582 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
8583 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
8584 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
8585 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
8586 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
8587 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
8588 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8591 * target.c (gomp_unmap_tgt): Make it 'static'.
8592 * libgomp.h (gomp_unmap_tgt): Remove.
8594 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
8597 * testsuite/libgomp.c/pr86416-1.c: New.
8598 * testsuite/libgomp.c/pr86416-2.c: New.
8600 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
8602 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
8603 all symbols as public except for the 'use …, only' imported symbol,
8605 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8606 all symbols from module openacc_kinds as PUBLIC
8607 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
8609 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
8611 2019-12-13 Julian Brown <julian@codesourcery.com>
8615 * libgomp.h (gomp_remove_var_async): Add prototype.
8616 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
8618 * target.c (gomp_unref_tgt): Change return type to bool, indicating
8619 whether target_mem_desc was unmapped.
8620 (gomp_unref_tgt_void): New.
8621 (gomp_remove_var): Reimplement in terms of...
8622 (gomp_remove_var_internal): ...this new helper function.
8623 (gomp_remove_var_async): New, implemented using above helper function.
8624 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
8627 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
8629 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
8630 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
8631 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
8632 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
8633 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
8635 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
8636 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
8638 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
8640 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
8641 as public except for the 'use …, only' imported symbol, which is
8643 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
8644 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
8645 attributes for acc_copyout_finalize and acc_delete_finalize.
8647 2019-12-11 Jakub Jelinek <jakub@redhat.com>
8650 * testsuite/libgomp.fortran/atomic1.f90: New test.
8652 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8655 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
8656 reference counting for structured 'REFCOUNT_INFINITY'. Add some
8658 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
8659 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
8660 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
8661 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8662 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8664 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
8665 * oacc-mem.c: ... here.
8666 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
8667 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
8668 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
8670 * libgomp_g.h: Update.
8672 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
8673 * oacc-async.c: ... here.
8674 * oacc-int.h (goacc_wait): Declare.
8675 * libgomp_g.h: Update
8678 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
8680 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
8682 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
8684 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
8686 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
8688 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
8691 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
8692 Julian Brown <julian@codesourcery.com>
8694 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
8695 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
8697 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8699 * omp_lib.h.in: Fix spelling of function declaration
8700 omp_get_cancell(l)ation.
8701 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
8703 * env.c: Fix comment typos.
8704 * oacc-host.c: Likewise.
8705 * ordered.c: Likewise.
8708 * config/gcn/task.c: Likewise.
8709 * config/gcn/team.c: Likewise.
8710 * config/nvptx/task.c: Likewise.
8711 * config/nvptx/team.c: Likewise.
8712 * plugin/plugin-gcn.c: Likewise.
8713 * testsuite/libgomp.fortran/jacobi.f: Likewise.
8714 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8715 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
8717 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
8719 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
8720 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
8721 unnecessary 'dg-additional-options "-w"'.
8723 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8724 Julian Brown <julian@codesourcery.com>
8729 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
8730 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
8732 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8734 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8736 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
8738 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
8741 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
8742 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
8744 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
8746 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
8748 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
8750 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
8752 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
8754 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8755 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8756 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8757 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8758 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8759 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8760 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8761 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8762 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8763 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8766 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
8767 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
8768 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
8770 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
8772 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
8774 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
8775 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
8778 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
8780 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
8782 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
8784 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
8786 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
8787 ... with their content moved into, and extended in this new file.
8788 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
8790 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
8792 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
8794 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
8797 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
8800 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
8802 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
8804 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
8806 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
8808 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
8810 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
8811 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
8812 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
8813 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
8815 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
8816 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
8818 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
8820 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
8822 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
8823 Kwok Cheung Yeung <kcy@codesourcery.com>
8825 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
8826 if input it a NULL pointer.
8827 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
8828 diagnostic of NULL pointer.
8829 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
8830 * testsuite/libgomp.fortran/optional-map.f90: New.
8831 * testsuite/libgomp.fortran/use_device_addr-1.f90
8832 (test_dummy_opt_callee_1_absent): New.
8833 (test_dummy_opt_call_1): Call it.
8834 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
8835 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
8836 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
8837 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
8838 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
8839 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
8840 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
8841 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
8842 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
8843 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
8844 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
8845 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
8846 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
8847 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
8848 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
8849 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
8851 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
8853 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
8854 expect dg-output of 'Error termination.' for GCN.
8855 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
8856 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
8858 2019-12-04 Jakub Jelinek <jakub@redhat.com>
8861 * testsuite/libgomp.fortran/teams1.f90: New test.
8862 * testsuite/libgomp.fortran/teams2.f90: New test.
8864 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
8866 * oacc-init.c (acc_known_device_type): Add function.
8867 (unknown_device_type_error): Add function.
8868 (name_of_acc_device_t): Change to call unknown_device_type_error
8870 (resolve_device): Use acc_known_device_type.
8871 (acc_init): Fail if acc_device_t argument is not valid.
8872 (acc_shutdown): Likewise.
8873 (acc_get_num_devices): Likewise.
8874 (acc_set_device_type): Likewise.
8875 (acc_get_device_num): Likewise.
8876 (acc_set_device_num): Likewise.
8877 (acc_on_device): Add comment that argument validity is not checked.
8879 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
8881 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
8883 (check_effective_target_openacc_amdgcn_accel_present): New proc.
8884 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
8885 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
8886 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8887 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8889 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8892 * configure.tgt: Avoid IE tls on *-*-musl*.
8894 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
8896 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
8897 adding a common-block test case.
8899 2019-11-29 Jakub Jelinek <jakub@redhat.com>
8902 * testsuite/libgomp.c++/udr-20.C: New test.
8903 * testsuite/libgomp.c++/udr-21.C: New test.
8905 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
8907 * testsuite/lib/libgomp.exp
8908 (check_effective_target_offload_target_nvptx): New proc.
8909 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
8911 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
8912 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
8913 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
8915 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8917 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
8918 * testsuite/libgomp.c/pr39591-2.c: Likewise.
8919 * testsuite/libgomp.c/pr39591-3.c: Likewise.
8920 * testsuite/libgomp.c/private-1.c: Likewise.
8921 * testsuite/libgomp.c/task-1.c: Likewise.
8922 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
8924 2019-11-20 Julian Brown <julian@codesourcery.com>
8926 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
8928 (queue_push_launch): Lock aq->mutex before calling
8929 wait_for_queue_nonfull.
8930 (queue_push_callback): Likewise.
8931 (queue_push_asyncwait): Likewise.
8932 (queue_push_placeholder): Likewise.
8934 2019-11-20 Julian Brown <julian@codesourcery.com>
8936 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
8937 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
8938 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
8941 2019-11-20 Julian Brown <julian@codesourcery.com>
8945 * oacc-mem.c (present_create_copy): Fix device pointer return value in
8946 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
8947 in non-present/create case.
8948 (delete_copyout): Change error condition to fail only on copies outside
8949 of mapped block. Adjust error message accordingly.
8950 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
8951 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
8952 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
8954 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8955 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
8956 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8958 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
8960 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
8961 libatomic in build-tree testing.
8963 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
8965 * testsuite/Makefile.in: Regenerate.
8967 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
8969 * testsuite/libgomp.c/target-print-1.c: New file.
8970 * testsuite/libgomp.fortran/target-print-1.f90: New file.
8971 * testsuite/libgomp.oacc-c/print-1.c: New file.
8972 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
8974 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8975 Kwok Cheung Yeung <kcy@codesourcery.com>
8976 Julian Brown <julian@codesourcery.com>
8977 Tom de Vries <tom@codesourcery.com>
8979 * plugin/Makefrag.am: Add amdgcn plugin support.
8980 * plugin/configfrag.ac: Likewise.
8981 * plugin/plugin-gcn.c: New file.
8982 * configure: Regenerate.
8983 * Makefile.in: Regenerate.
8984 * testsuite/Makefile.in: Regenerate.
8986 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
8988 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
8989 and use team_malloc variants.
8990 (gomp_gcn_exit_kernel): Use team_free.
8991 * libgomp.h (TEAM_ARENA_SIZE): Define.
8992 (TEAM_ARENA_START): Define.
8993 (TEAM_ARENA_FREE): Define.
8994 (TEAM_ARENA_END): Define.
8995 (team_malloc): New function.
8996 (team_malloc_cleared): New function.
8997 (team_free): New function.
8998 * team.c (gomp_new_team): Initialize and use team_malloc.
8999 (free_team): Use team_free.
9000 (gomp_free_thread): Use team_free.
9001 (gomp_pause_host): Use team_free.
9002 * work.c (gomp_init_work_share): Use team_malloc.
9003 (gomp_fini_work_share): Use team_free.
9005 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9006 Kwok Cheung Yeung <kcy@codesourcery.com>
9007 Julian Brown <julian@codesourcery.com>
9008 Tom de Vries <tom@codesourcery.com>
9010 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
9011 * Makefile.in: Regenerate.
9012 * config.h.in (PLUGIN_GCN): Add new undef.
9013 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
9014 * config/gcn/affinity-fmt.c: New file.
9015 * config/gcn/bar.c: New file.
9016 * config/gcn/bar.h: New file.
9017 * config/gcn/doacross.h: New file.
9018 * config/gcn/icv-device.c: New file.
9019 * config/gcn/oacc-target.c: New file.
9020 * config/gcn/simple-bar.h: New file.
9021 * config/gcn/target.c: New file.
9022 * config/gcn/task.c: New file.
9023 * config/gcn/team.c: New file.
9024 * config/gcn/time.c: New file.
9025 * configure.ac: Add amdgcn*-*-*.
9026 * configure: Regenerate.
9027 * configure.tgt: Add amdgcn*-*-*.
9028 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
9029 * libgomp.h (gcn_thrs): Add amdgcn variant.
9030 (set_gcn_thrs): Likewise.
9031 (gomp_thread): Likewise.
9032 * oacc-int.h (goacc_thread): Likewise.
9033 * oacc-target.c: New file.
9034 * openacc.f90 (acc_device_gcn): New parameter.
9035 * openacc.h (acc_device_t): Add acc_device_gcn.
9036 * team.c (gomp_free_pool_helper): Add amdgcn support.
9038 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9039 Julian Brown <julian@codesourcery.com>
9041 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
9043 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
9045 * oacc-host.c (host_openacc_async_construct): Add device parameter.
9046 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
9049 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
9051 * configure.tgt (nvptx*-*-*): Add "accel" directory.
9052 * config/nvptx/libgomp-plugin.c: Move ...
9053 * config/accel/libgomp-plugin.c: ... to here.
9054 * config/nvptx/lock.c: Move ...
9055 * config/accel/lock.c: ... to here.
9056 * config/nvptx/mutex.c: Move ...
9057 * config/accel/mutex.c: ... to here.
9058 * config/nvptx/mutex.h: Move ...
9059 * config/accel/mutex.h: ... to here.
9060 * config/nvptx/oacc-async.c: Move ...
9061 * config/accel/oacc-async.c: ... to here.
9062 * config/nvptx/oacc-cuda.c: Move ...
9063 * config/accel/oacc-cuda.c: ... to here.
9064 * config/nvptx/oacc-host.c: Move ...
9065 * config/accel/oacc-host.c: ... to here.
9066 * config/nvptx/oacc-init.c: Move ...
9067 * config/accel/oacc-init.c: ... to here.
9068 * config/nvptx/oacc-mem.c: Move ...
9069 * config/accel/oacc-mem.c: ... to here.
9070 * config/nvptx/oacc-plugin.c: Move ...
9071 * config/accel/oacc-plugin.c: ... to here.
9072 * config/nvptx/omp-lock.h: Move ...
9073 * config/accel/omp-lock.h: ... to here.
9074 * config/nvptx/openacc.f90: Move ...
9075 * config/accel/openacc.f90: ... to here.
9076 * config/nvptx/pool.h: Move ...
9077 * config/accel/pool.h: ... to here.
9078 * config/nvptx/proc.c: Move ...
9079 * config/accel/proc.c: ... to here.
9080 * config/nvptx/ptrlock.c: Move ...
9081 * config/accel/ptrlock.c: ... to here.
9082 * config/nvptx/ptrlock.h: Move ...
9083 * config/accel/ptrlock.h: ... to here.
9084 * config/nvptx/sem.c: Move ...
9085 * config/accel/sem.c: ... to here.
9086 * config/nvptx/sem.h: Move ...
9087 * config/accel/sem.h: ... to here.
9088 * config/nvptx/thread-stacksize.h: Move ...
9089 * config/accel/thread-stacksize.h: ... to here.
9091 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
9092 Tobias Burnus <tobias@codesourcery.com>
9093 Frederik Harwath <frederik@codesourcery.com>
9094 Thomas Schwinge <thomas@codesourcery.com>
9097 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
9098 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
9099 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
9101 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
9102 Kwok Cheung Yeung <kcy@codesourcery.com>
9104 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
9105 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
9107 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
9109 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
9111 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
9113 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
9114 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
9116 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
9118 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
9119 Add expected warnings about missing reduction clauses.
9120 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
9122 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
9124 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
9127 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9129 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
9130 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
9131 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
9132 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9133 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9134 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9136 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
9139 * testsuite/libgomp.fortran/allocatable2.f90: Use
9140 unique numbers with 'stop'.
9141 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9142 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9143 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
9144 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
9145 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
9147 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
9149 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
9150 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
9151 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
9152 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
9153 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
9154 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
9156 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9158 * testsuite/libgomp.fortran/target9.f90: New.
9160 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9162 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
9163 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
9164 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
9165 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
9166 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
9167 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
9168 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
9169 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
9170 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
9171 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
9172 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
9173 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
9174 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
9175 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
9176 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
9177 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
9178 * testsuite/libgomp.fortran/associate1.f90: Ditto.
9179 * testsuite/libgomp.fortran/associate2.f90: Ditto.
9180 * testsuite/libgomp.fortran/associate3.f90: Ditto.
9181 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
9182 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
9183 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
9184 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
9185 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
9186 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
9187 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
9188 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
9189 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
9190 * testsuite/libgomp.fortran/character1.f90: Ditto.
9191 * testsuite/libgomp.fortran/character2.f90: Ditto.
9192 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
9193 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
9194 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
9195 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
9196 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
9197 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
9198 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
9199 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
9200 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
9201 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
9202 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
9203 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
9204 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
9205 * testsuite/libgomp.fortran/do1.f90: Ditto.
9206 * testsuite/libgomp.fortran/do2.f90: Ditto.
9207 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
9208 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
9209 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
9210 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
9211 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
9212 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
9213 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
9214 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
9215 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
9216 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
9217 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
9218 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
9219 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
9220 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
9221 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
9222 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
9223 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
9224 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
9225 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
9226 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
9227 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
9228 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
9229 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
9230 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
9231 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
9232 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
9233 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
9234 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
9235 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
9236 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
9237 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
9238 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
9239 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
9240 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
9241 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
9242 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
9243 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
9244 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
9245 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
9246 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
9247 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
9248 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
9249 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
9250 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
9251 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
9252 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
9253 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
9254 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
9255 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
9256 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9257 * testsuite/libgomp.fortran/lib1.f90: Ditto.
9258 * testsuite/libgomp.fortran/lib4.f90: Ditto.
9259 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
9260 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
9261 * testsuite/libgomp.fortran/nested1.f90: Ditto.
9262 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
9263 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
9264 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
9265 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9266 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
9267 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
9268 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
9269 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
9270 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
9271 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
9272 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
9273 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
9274 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
9275 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
9276 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
9277 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
9278 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
9279 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
9280 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
9281 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
9282 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
9283 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
9284 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
9285 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
9286 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9287 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
9288 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
9289 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
9290 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
9291 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
9292 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9293 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
9294 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9295 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
9296 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
9297 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9298 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
9299 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
9300 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
9301 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
9302 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
9303 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
9304 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
9305 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
9306 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
9307 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
9308 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
9309 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
9310 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
9311 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
9312 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
9313 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
9314 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
9315 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
9316 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
9317 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
9318 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9319 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
9320 * testsuite/libgomp.fortran/reference1.f90: Ditto.
9321 * testsuite/libgomp.fortran/reference2.f90: Ditto.
9322 * testsuite/libgomp.fortran/retval1.f90: Ditto.
9323 * testsuite/libgomp.fortran/retval2.f90: Ditto.
9324 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
9325 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
9326 * testsuite/libgomp.fortran/simd1.f90: Ditto.
9327 * testsuite/libgomp.fortran/simd2.f90: Ditto.
9328 * testsuite/libgomp.fortran/simd3.f90: Ditto.
9329 * testsuite/libgomp.fortran/simd4.f90: Ditto.
9330 * testsuite/libgomp.fortran/simd5.f90: Ditto.
9331 * testsuite/libgomp.fortran/simd6.f90: Ditto.
9332 * testsuite/libgomp.fortran/simd7.f90: Ditto.
9333 * testsuite/libgomp.fortran/stack.f90: Ditto.
9334 * testsuite/libgomp.fortran/strassen.f90: Ditto.
9335 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
9336 * testsuite/libgomp.fortran/tabs2.f: Ditto.
9337 * testsuite/libgomp.fortran/target1.f90: Ditto.
9338 * testsuite/libgomp.fortran/target2.f90: Ditto.
9339 * testsuite/libgomp.fortran/target3.f90: Ditto.
9340 * testsuite/libgomp.fortran/target4.f90: Ditto.
9341 * testsuite/libgomp.fortran/target5.f90: Ditto.
9342 * testsuite/libgomp.fortran/target6.f90: Ditto.
9343 * testsuite/libgomp.fortran/target7.f90: Ditto.
9344 * testsuite/libgomp.fortran/target8.f90: Ditto.
9345 * testsuite/libgomp.fortran/task1.f90: Ditto.
9346 * testsuite/libgomp.fortran/task2.f90: Ditto.
9347 * testsuite/libgomp.fortran/task3.f90: Ditto.
9348 * testsuite/libgomp.fortran/task4.f90: Ditto.
9349 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9350 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9351 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
9352 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
9353 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
9354 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
9355 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
9356 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
9357 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
9358 * testsuite/libgomp.fortran/udr1.f90: Ditto.
9359 * testsuite/libgomp.fortran/udr10.f90: Ditto.
9360 * testsuite/libgomp.fortran/udr11.f90: Ditto.
9361 * testsuite/libgomp.fortran/udr12.f90: Ditto.
9362 * testsuite/libgomp.fortran/udr13.f90: Ditto.
9363 * testsuite/libgomp.fortran/udr14.f90: Ditto.
9364 * testsuite/libgomp.fortran/udr15.f90: Ditto.
9365 * testsuite/libgomp.fortran/udr2.f90: Ditto.
9366 * testsuite/libgomp.fortran/udr3.f90: Ditto.
9367 * testsuite/libgomp.fortran/udr4.f90: Ditto.
9368 * testsuite/libgomp.fortran/udr5.f90: Ditto.
9369 * testsuite/libgomp.fortran/udr6.f90: Ditto.
9370 * testsuite/libgomp.fortran/udr7.f90: Ditto.
9371 * testsuite/libgomp.fortran/udr8.f90: Ditto.
9372 * testsuite/libgomp.fortran/udr9.f90: Ditto.
9373 * testsuite/libgomp.fortran/vla1.f90: Ditto.
9374 * testsuite/libgomp.fortran/vla2.f90: Ditto.
9375 * testsuite/libgomp.fortran/vla3.f90: Ditto.
9376 * testsuite/libgomp.fortran/vla4.f90: Ditto.
9377 * testsuite/libgomp.fortran/vla5.f90: Ditto.
9378 * testsuite/libgomp.fortran/vla6.f90: Ditto.
9379 * testsuite/libgomp.fortran/vla7.f90: Ditto.
9380 * testsuite/libgomp.fortran/vla8.f90: Ditto.
9381 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9382 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9384 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
9386 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
9387 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
9388 Ditto; add 'dg-do run' for torture testing.
9389 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
9390 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
9391 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
9392 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
9393 * testsuite/libgomp.fortran/pr28390.f: Ditto.
9394 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
9395 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
9396 * testsuite/libgomp.fortran/task2.f90: Ditto.
9397 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
9398 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
9399 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
9400 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
9401 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
9402 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
9404 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
9406 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
9407 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
9408 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
9409 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
9410 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
9411 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
9412 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
9413 Use 'stop' not abort().
9414 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
9415 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
9416 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
9417 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
9418 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
9419 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
9420 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
9421 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
9422 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
9423 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
9424 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
9425 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
9426 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
9427 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
9428 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
9429 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
9430 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
9432 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
9434 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
9436 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
9438 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
9440 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
9442 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
9444 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
9446 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
9448 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
9450 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
9452 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
9454 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
9456 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
9458 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
9459 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
9460 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
9461 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
9462 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
9463 Likewise and also add 'dg-do run'.
9464 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
9467 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
9468 Tobias Burnus <tobias@codesourcery.com>
9470 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
9471 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
9472 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
9474 2019-10-14 Jakub Jelinek <jakub@redhat.com>
9477 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
9480 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9482 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
9483 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
9485 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
9488 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
9491 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
9494 * testsuite/libgomp.fortran/fortran.exp: Conditionally
9496 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
9498 2019-10-09 Jakub Jelinek <jakub@redhat.com>
9501 * target.c (gomp_map_vars_internal): Readd the previous
9502 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
9503 though do that just in the !not_found_cnt case.
9505 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
9507 * gfortran.dg/gomp/target-simd.f90: New.
9509 2019-10-02 Julian Brown <julian@codesourcery.com>
9510 Cesar Philippidis <cesar@codesourcery.com>
9512 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
9513 * target.c (FIELD_TGT_EMPTY): Define.
9514 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
9515 as switch instead of list of ifs.
9516 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
9518 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
9520 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
9521 include. Replace alloca () with __builtin_alloca ().
9522 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
9524 2019-10-01 Jakub Jelinek <jakub@redhat.com>
9526 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
9527 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
9528 * oacc-parallel.c: Don't include "libgomp_g.h".
9529 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
9530 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
9531 * aclocal.m4: Regenerated.
9532 * config.h.in: Regenerated.
9533 * configure: Regenerated.
9534 * Makefile.in: Regenerated.
9536 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
9538 * libgomp_g.h: Include stdint.h instead of gstdint.h.
9540 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9542 * configure: Regenerate.
9544 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
9546 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
9547 string is initialized.
9549 2019-09-06 Florian Weimer <fweimer@redhat.com>
9551 * configure: Regenerate.
9553 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
9556 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
9557 scanning to conform to the GNU Coding Standards.
9558 * configure: Regenerate.
9560 2019-08-28 Jakub Jelinek <jakub@redhat.com>
9563 * testsuite/libgomp.c/scan-21.c: New test.
9564 * testsuite/libgomp.c/scan-22.c: New test.
9566 2019-08-27 Jakub Jelinek <jakub@redhat.com>
9569 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
9571 * testsuite/libgomp.c/scan-12.c: Likewise.
9572 * testsuite/libgomp.c/scan-13.c: Likewise.
9573 * testsuite/libgomp.c/scan-14.c: Likewise.
9574 * testsuite/libgomp.c/scan-15.c: Likewise.
9575 * testsuite/libgomp.c/scan-16.c: Likewise.
9576 * testsuite/libgomp.c/scan-17.c: Likewise.
9577 * testsuite/libgomp.c/scan-18.c: Likewise.
9578 * testsuite/libgomp.c/scan-19.c: Likewise.
9579 * testsuite/libgomp.c/scan-20.c: Likewise.
9580 * testsuite/libgomp.c++/scan-9.C: Likewise.
9581 * testsuite/libgomp.c++/scan-10.C: Likewise.
9582 * testsuite/libgomp.c++/scan-11.C: Likewise.
9583 * testsuite/libgomp.c++/scan-12.C: Likewise.
9584 * testsuite/libgomp.c++/scan-14.C: Likewise.
9585 * testsuite/libgomp.c++/scan-15.C: Likewise.
9586 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
9587 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
9588 * testsuite/libgomp.c++/scan-16.C: Likewise.
9590 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
9593 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
9594 -std=legacy so invalid code in the test case is accepted.
9596 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
9599 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
9602 2019-08-08 Jakub Jelinek <jakub@redhat.com>
9604 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
9605 perform the lookup in the first loop only if !not_found_cnt, otherwise
9606 perform lookups for it in the second loop guarded with
9607 if (not_found_cnt || has_firstprivate).
9608 * testsuite/libgomp.c/target-37.c: New test.
9609 * testsuite/libgomp.c++/target-22.C: New test.
9611 2019-08-07 Jakub Jelinek <jakub@redhat.com>
9613 * testsuite/libgomp.c/target-18.c (struct S): New type.
9614 (foo): Use use_device_addr clause instead of use_device_ptr clause
9615 where required by OpenMP 5.0, add further tests for both use_device_ptr
9616 and use_device_addr clauses.
9617 * testsuite/libgomp.c++/target-9.C (struct S): New type.
9618 (foo): Use use_device_addr clause instead of use_device_ptr clause
9619 where required by OpenMP 5.0, add further tests for both use_device_ptr
9620 and use_device_addr clauses. Add t and u arguments.
9621 (main): Adjust caller.
9623 2019-08-06 Jakub Jelinek <jakub@redhat.com>
9625 * testsuite/libgomp.c++/loop-13.C: New test.
9626 * testsuite/libgomp.c++/loop-14.C: New test.
9627 * testsuite/libgomp.c++/loop-15.C: New test.
9629 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9632 * testsuite/libgomp.c++/for-27.C: New test.
9634 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
9636 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
9637 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
9639 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9641 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
9643 2019-07-08 Jakub Jelinek <jakub@redhat.com>
9645 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
9646 * testsuite/libgomp.c++/scan-16.C: Likewise.
9648 2019-07-06 Jakub Jelinek <jakub@redhat.com>
9650 * testsuite/libgomp.c/scan-19.c: New test.
9651 * testsuite/libgomp.c/scan-20.c: New test.
9653 * testsuite/libgomp.c/scan-11.c: New test.
9654 * testsuite/libgomp.c/scan-12.c: New test.
9655 * testsuite/libgomp.c/scan-13.c: New test.
9656 * testsuite/libgomp.c/scan-14.c: New test.
9657 * testsuite/libgomp.c/scan-15.c: New test.
9658 * testsuite/libgomp.c/scan-16.c: New test.
9659 * testsuite/libgomp.c/scan-17.c: New test.
9660 * testsuite/libgomp.c/scan-18.c: New test.
9661 * testsuite/libgomp.c++/scan-9.C: New test.
9662 * testsuite/libgomp.c++/scan-10.C: New test.
9663 * testsuite/libgomp.c++/scan-11.C: New test.
9664 * testsuite/libgomp.c++/scan-12.C: New test.
9665 * testsuite/libgomp.c++/scan-13.C: New test.
9666 * testsuite/libgomp.c++/scan-14.C: New test.
9667 * testsuite/libgomp.c++/scan-15.C: New test.
9668 * testsuite/libgomp.c++/scan-16.C: New test.
9670 2019-07-04 Jakub Jelinek <jakub@redhat.com>
9672 * testsuite/libgomp.c/scan-9.c: New test.
9673 * testsuite/libgomp.c/scan-10.c: New test.
9675 2019-07-03 Jakub Jelinek <jakub@redhat.com>
9677 * testsuite/libgomp.c++/scan-1.C: New test.
9678 * testsuite/libgomp.c++/scan-2.C: New test.
9679 * testsuite/libgomp.c++/scan-3.C: New test.
9680 * testsuite/libgomp.c++/scan-4.C: New test.
9681 * testsuite/libgomp.c++/scan-5.C: New test.
9682 * testsuite/libgomp.c++/scan-6.C: New test.
9683 * testsuite/libgomp.c++/scan-7.C: New test.
9684 * testsuite/libgomp.c++/scan-8.C: New test.
9685 * testsuite/libgomp.c/scan-1.c: New test.
9686 * testsuite/libgomp.c/scan-2.c: New test.
9687 * testsuite/libgomp.c/scan-3.c: New test.
9688 * testsuite/libgomp.c/scan-4.c: New test.
9689 * testsuite/libgomp.c/scan-5.c: New test.
9690 * testsuite/libgomp.c/scan-6.c: New test.
9691 * testsuite/libgomp.c/scan-7.c: New test.
9692 * testsuite/libgomp.c/scan-8.c: New test.
9694 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9696 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
9697 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
9700 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
9703 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
9705 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
9708 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9711 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
9713 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
9714 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
9715 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
9716 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
9719 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
9722 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
9724 2019-06-16 Tom de Vries <tdevries@suse.de>
9726 PR tree-optimization/89376
9727 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
9729 2019-06-15 Tom de Vries <tdevries@suse.de>
9731 PR tree-optimization/89713
9732 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
9733 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
9735 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9738 * testsuite/libgomp.c/pr90779.c: New test.
9739 * testsuite/libgomp.fortran/pr90779.f90: New test.
9741 2019-06-15 Tom de Vries <tdevries@suse.de>
9743 PR tree-optimization/90009
9744 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
9746 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9748 PR tree-optimization/89713
9749 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
9751 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9754 * testsuite/libgomp.c/pr90811.c: New test.
9756 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9758 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
9759 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
9761 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9763 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
9764 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
9765 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
9766 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
9768 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9770 * configure.ac: Call AX_COUNT_CPUS.
9771 Substitute CPU_COUNT.
9772 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
9774 * aclocal.m4: Regenerate.
9775 * configure: Regenerate.
9776 * Makefile.in, testsuite/Makefile.in: Regenerate.
9778 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9780 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
9782 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
9783 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
9784 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
9786 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9788 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
9790 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
9793 * work.c (gomp_init_work_share): Instead of aligning final ordered
9794 value to multiples of long long alignment, align to that the
9795 first part (ordered team ids) and if inline_ordered_team_ids
9796 is not on a long long alignment boundary within the structure,
9797 use __alignof__ (long long) - 1 pad size always.
9798 * loop.c (GOMP_loop_start): Fix *mem computation if
9799 inline_ordered_team_ids is not aligned on long long alignment boundary
9800 within the structure.
9801 * loop-ull.c (GOMP_loop_ull_start): Likewise.
9802 * sections.c (GOMP_sections2_start): Likewise.
9804 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9806 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
9807 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
9810 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
9811 HAVE_INTTYPES_H is defined.
9812 (print_uint64_t): New typedef.
9813 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
9814 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
9815 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
9816 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
9817 before casting to void *.
9818 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
9819 * oacc-mem.c: Don't include config.h nor stdint.h.
9820 * target.c: Don't include config.h.
9821 * oacc-cuda.c: Likewise.
9822 * oacc-host.c: Don't include stdint.h.
9824 2019-05-20 Jakub Jelinek <jakub@redhat.com>
9827 * alloc.c (_GNU_SOURCE): Define.
9829 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
9831 * acc_prof.h: New file.
9832 * oacc-profiling.c: Likewise.
9833 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
9834 Add these, respectively.
9835 * Makefile.in: Regenerate.
9836 * env.c (initialize_env): Call goacc_profiling_initialize.
9837 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
9838 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
9839 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
9840 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
9841 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
9842 acc_prof_register, acc_prof_unregister, and acc_register_library.
9843 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
9844 GOMP_PLUGIN_goacc_thread.
9845 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
9846 prof_callbacks_enabled members.
9847 (goacc_prof_enabled, goacc_profiling_initialize)
9848 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
9849 (goacc_profiling_dispatch): Declare.
9850 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
9851 (GOACC_PROFILING_SETUP_P): Define.
9852 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
9853 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
9854 OpenACC Profiling Interface.
9855 * oacc-cuda.c (acc_get_current_cuda_device)
9856 (acc_get_current_cuda_context, acc_get_cuda_stream)
9857 (acc_set_cuda_stream): Likewise.
9858 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
9859 (acc_init, acc_set_device_type, acc_get_device_type)
9860 (acc_get_device_num, goacc_lazy_initialize): Likewise.
9861 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
9862 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
9863 (acc_unmap_data, present_create_copy, delete_copyout)
9864 (update_dev_host): Likewise.
9865 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
9866 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
9868 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
9869 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
9871 * libgomp.texi: Update.
9872 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
9874 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
9875 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
9877 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
9879 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
9881 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
9884 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
9886 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
9887 (struct goacc_asyncqueue_list): Likewise.
9888 (goacc_aq): Likewise.
9889 (goacc_aq_list): Likewise.
9890 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
9891 (GOMP_OFFLOAD_openacc_async_test): Remove.
9892 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
9893 (GOMP_OFFLOAD_openacc_async_wait): Remove.
9894 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
9895 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
9896 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
9897 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
9898 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
9899 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
9900 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
9901 (GOMP_OFFLOAD_openacc_async_exec): Declare.
9902 (GOMP_OFFLOAD_openacc_async_construct): Declare.
9903 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
9904 (GOMP_OFFLOAD_openacc_async_test): Declare.
9905 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
9906 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
9907 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
9908 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
9909 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
9911 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
9912 (gomp_acc_insert_pointer): Adjust declaration.
9913 (gomp_copy_host2dev): New declaration.
9914 (gomp_copy_dev2host): Likewise.
9915 (gomp_map_vars_async): Likewise.
9916 (gomp_unmap_tgt): Likewise.
9917 (gomp_unmap_vars_async): Likewise.
9918 (gomp_fini_device): Likewise.
9920 * oacc-async.c (get_goacc_thread): New function.
9921 (get_goacc_thread_device): New function.
9922 (lookup_goacc_asyncqueue): New function.
9923 (get_goacc_asyncqueue): New function.
9924 (acc_async_test): Adjust code to use new async design.
9925 (acc_async_test_all): Likewise.
9926 (acc_wait): Likewise.
9927 (acc_wait_async): Likewise.
9928 (acc_wait_all): Likewise.
9929 (acc_wait_all_async): Likewise.
9930 (goacc_async_free): New function.
9931 (goacc_init_asyncqueues): Likewise.
9932 (goacc_fini_asyncqueues): Likewise.
9933 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
9935 (acc_set_cuda_stream): Likewise.
9936 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
9937 (host_openacc_register_async_cleanup): Remove.
9938 (host_openacc_async_exec): New function.
9939 (host_openacc_async_test): Adjust parameters.
9940 (host_openacc_async_test_all): Remove.
9941 (host_openacc_async_wait): Remove.
9942 (host_openacc_async_wait_async): Remove.
9943 (host_openacc_async_wait_all): Remove.
9944 (host_openacc_async_wait_all_async): Remove.
9945 (host_openacc_async_set_async): Remove.
9946 (host_openacc_async_synchronize): New function.
9947 (host_openacc_async_serialize): New function.
9948 (host_openacc_async_host2dev): New function.
9949 (host_openacc_async_dev2host): New function.
9950 (host_openacc_async_queue_callback): New function.
9951 (host_openacc_async_construct): New function.
9952 (host_openacc_async_destruct): New function.
9953 (struct gomp_device_descr host_dispatch): Remove initialization of old
9954 interface, add initialization of new async sub-struct.
9955 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
9956 (goacc_attach_host_thread_to_device): Remove old async code usage.
9957 * oacc-int.h (goacc_init_asyncqueues): New declaration.
9958 (goacc_fini_asyncqueues): Likewise.
9959 (goacc_async_copyout_unmap_vars): Likewise.
9960 (goacc_async_free): Likewise.
9961 (get_goacc_asyncqueue): Likewise.
9962 (lookup_goacc_asyncqueue): Likewise.
9963 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
9965 (present_create_copy): Adjust code to use new async design.
9966 (delete_copyout): Likewise.
9967 (update_dev_host): Likewise.
9968 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
9970 (gomp_acc_remove_pointer): Adjust code to use new async design.
9971 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
9973 (GOACC_enter_exit_data): Likewise.
9974 (goacc_wait): Likewise.
9975 (GOACC_update): Likewise.
9976 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
9977 when called, warn as obsolete in comment.
9978 * target.c (goacc_device_copy_async): New function.
9979 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
9980 add goacc_device_copy_async case.
9981 (gomp_copy_dev2host): Likewise.
9982 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
9983 (gomp_map_pointer): Likewise.
9984 (gomp_map_fields_existing): Likewise.
9985 (gomp_map_vars_internal): New always_inline function, renamed from
9987 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
9988 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
9989 passing goacc_asyncqueue argument.
9990 (gomp_unmap_tgt): Remove static, add attribute_hidden.
9991 (gomp_unref_tgt): New function.
9992 (gomp_unmap_vars_internal): New always_inline function, renamed from
9994 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
9995 (gomp_unmap_vars_async): Implement by calling
9996 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
9997 (gomp_fini_device): New function.
9998 (gomp_exit_data): Adjust gomp_copy_dev2host call.
9999 (gomp_load_plugin_for_device): Remove old interface, adjust to load
10000 new async interface.
10001 (gomp_target_fini): Adjust code to call gomp_fini_device.
10003 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
10004 (struct ptx_stream): Remove.
10005 (struct nvptx_thread): Remove current_stream field.
10006 (cuda_map_create): Remove.
10007 (cuda_map_destroy): Remove.
10008 (map_init): Remove.
10009 (map_fini): Remove.
10011 (map_push): Remove.
10012 (struct goacc_asyncqueue): Define.
10013 (struct nvptx_callback): Define.
10014 (struct ptx_free_block): Define.
10015 (struct ptx_device): Remove null_stream, active_streams, async_streams,
10016 stream_lock, and next fields.
10017 (enum ptx_event_type): Remove.
10018 (struct ptx_event): Remove.
10019 (ptx_event_lock): Remove.
10020 (ptx_events): Remove.
10021 (init_streams_for_device): Remove.
10022 (fini_streams_for_device): Remove.
10023 (select_stream_for_async): Remove.
10024 (nvptx_init): Remove ptx_events and ptx_event_lock references.
10025 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
10027 (nvptx_open_device): Add free_blocks initialization, remove
10028 init_streams_for_device call.
10029 (nvptx_close_device): Remove fini_streams_for_device call, add
10030 free_blocks destruct code.
10031 (event_gc): Remove.
10032 (event_add): Remove.
10033 (nvptx_exec): Adjust parameters and code.
10034 (nvptx_free): Likewise.
10035 (nvptx_host2dev): Remove.
10036 (nvptx_dev2host): Remove.
10037 (nvptx_set_async): Remove.
10038 (nvptx_async_test): Remove.
10039 (nvptx_async_test_all): Remove.
10040 (nvptx_wait): Remove.
10041 (nvptx_wait_async): Remove.
10042 (nvptx_wait_all): Remove.
10043 (nvptx_wait_all_async): Remove.
10044 (nvptx_get_cuda_stream): Remove.
10045 (nvptx_set_cuda_stream): Remove.
10046 (GOMP_OFFLOAD_alloc): Adjust code.
10047 (GOMP_OFFLOAD_free): Likewise.
10048 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
10049 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
10050 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
10051 (GOMP_OFFLOAD_openacc_async_wait): Remove.
10052 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
10053 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
10054 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
10055 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
10056 (cuda_free_argmem): New function.
10057 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
10058 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
10059 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
10060 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
10061 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
10062 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
10063 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
10064 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
10065 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
10066 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
10067 (cuda_callback_wrapper): New function.
10068 (cuda_memcpy_sanity_check): New function.
10069 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
10070 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
10071 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
10072 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
10074 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
10077 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
10079 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
10081 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
10083 2019-03-27 Kevin Buettner <kevinb@redhat.com>
10085 * team.c (gomp_team_start): Initialize pool->threads[0].
10087 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
10089 * testsuite/libgomp.oacc-c++/c++.exp: Specify
10090 "-foffload=$offload_target".
10091 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10092 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10093 * testsuite/lib/libgomp.exp
10094 (check_effective_target_openacc_nvidia_accel_configured): Remove,
10095 as (conceptually) merged into
10096 check_effective_target_openacc_nvidia_accel_selected. Adjust all
10099 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
10100 * testsuite/libgomp-test-support.exp.in: Adjust.
10101 * testsuite/lib/libgomp.exp: Likewise. Don't populate
10102 openacc_device_types_s.
10103 (offload_target_to_openacc_device_type): New proc.
10104 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
10105 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10106 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10107 * Makefile.in: Regenerate.
10108 * configure: Likewise.
10109 * testsuite/Makefile.in: Likewise.
10111 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
10112 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
10113 instead of OFFLOAD_TARGETS.
10114 * target.c (gomp_target_init): Adjust.
10115 * testsuite/libgomp-test-support.exp.in: Likewise.
10116 * testsuite/lib/libgomp.exp: Likewise. Populate
10117 openacc_device_types_s instead of offload_targets_s_openacc.
10118 (check_effective_target_openacc_nvidia_accel_selected)
10119 (check_effective_target_openacc_host_selected): Adjust.
10120 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10121 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10122 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10123 * Makefile.in: Regenerate.
10124 * config.h.in: Likewise.
10125 * configure: Likewise.
10126 * testsuite/Makefile.in: Likewise.
10128 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
10129 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
10130 "offloading: supported, but hardware not accessible".
10131 * testsuite/libgomp.oacc-c/c.exp: Likewise.
10132 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10134 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
10137 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
10139 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
10140 and related adjustment.
10142 2019-01-30 Jakub Jelinek <jakub@redhat.com>
10145 * testsuite/libgomp.c++/pr88988.C: New test.
10147 2019-01-28 Jakub Jelinek <jakub@redhat.com>
10149 PR middle-end/89002
10150 * testsuite/libgomp.c/pr89002.c: New test.
10152 2019-01-28 Richard Biener <rguenther@suse.de>
10155 PR tree-optimization/86865
10156 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
10158 2019-01-24 Tom de Vries <tdevries@suse.de>
10160 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
10161 once instantiated_devices drops to 0.
10163 2019-01-23 Tom de Vries <tdevries@suse.de>
10166 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
10168 (nvptx_exec): Don't call map_push if mapnum == 0.
10169 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
10171 2019-01-23 Tom de Vries <tdevries@suse.de>
10175 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
10176 (map_fini): Remove "assert (!s->map->active)".
10177 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
10179 2019-01-23 Tom de Vries <tdevries@suse.de>
10182 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
10183 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
10185 2019-01-15 Tom de Vries <tdevries@suse.de>
10188 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
10191 2019-01-12 Tom de Vries <tdevries@suse.de>
10193 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
10194 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
10195 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
10196 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
10198 2019-01-12 Tom de Vries <tdevries@suse.de>
10200 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
10202 2019-01-12 Tom de Vries <tdevries@suse.de>
10204 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
10205 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
10206 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
10208 2019-01-12 Tom de Vries <tdevries@suse.de>
10211 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
10212 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
10214 2019-01-12 Tom de Vries <tdevries@suse.de>
10217 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
10218 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
10220 2019-01-12 Tom de Vries <tdevries@suse.de>
10222 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
10223 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
10224 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
10226 2019-01-12 Tom de Vries <tdevries@suse.de>
10228 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
10229 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
10230 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
10232 2019-01-12 Tom de Vries <tdevries@suse.de>
10234 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
10235 resources diagnostic.
10237 2019-01-12 Tom de Vries <tdevries@suse.de>
10239 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
10240 vector length to be 128.
10241 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
10242 length 2097152 to be reduced to 1024 instead of 32.
10244 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
10245 James Norris <jnorris@codesourcery.com>
10247 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
10248 Library Routines", and "Environment Variables".
10250 2019-01-11 Tom de Vries <tdevries@suse.de>
10252 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
10255 2019-01-11 Tom de Vries <tdevries@suse.de>
10257 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
10259 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
10260 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
10261 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
10262 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
10264 2019-01-11 Tom de Vries <tdevries@suse.de>
10266 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
10269 2019-01-10 Nathan Sidwell <nathan@acm.org>
10270 Julian Brown <julian@codesourcery.com>
10273 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
10274 * testsuite/libgomp.oacc-c++/pr71959.C: New.
10276 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10278 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
10281 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
10283 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
10284 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10287 2019-01-09 Tom de Vries <tdevries@suse.de>
10290 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
10291 #define instead of "const int".
10292 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
10293 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
10294 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
10295 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
10297 2019-01-09 Tom de Vries <tdevries@suse.de>
10299 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
10302 2019-01-07 Tom de Vries <tdevries@suse.de>
10304 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
10305 GOMP_OPENACC_DIM argument.
10307 2019-01-03 Tom de Vries <tdevries@suse.de>
10309 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
10310 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
10312 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10314 Update copyright years.
10316 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10318 * libgomp.texi: Bump @copying's copyright year.
10320 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10322 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
10323 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
10324 (GOACC_declare): Redefine the "device" argument to "flags".
10326 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
10327 Cesar Philippidis <cesar@codesourcery.com>
10329 * target.c (struct gomp_coalesce_chunk): New structure.
10330 (struct gomp_coalesce_buf): Update the chunks member to use that
10331 type. Adjust all users.
10333 2018-12-19 Tom de Vries <tdevries@suse.de>
10335 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
10336 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
10337 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
10339 2018-12-19 Tom de Vries <tdevries@suse.de>
10341 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
10342 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
10343 gcc/testsuite/gcc.dg/goacc.
10344 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
10346 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10347 Chung-Lin Tang <cltang@codesourcery.com>
10349 * oacc-mem.c (acc_present_or_create): Remove definition and change
10350 to alias of acc_create.
10351 (acc_present_or_copyin): Remove definition and change to alias of
10353 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
10354 of acc_present_or_create.
10355 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
10356 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10357 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10358 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10359 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10360 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10361 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10362 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10363 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10364 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10365 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10366 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10367 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10368 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10369 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10370 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10372 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10375 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
10376 "identical parameters".
10377 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
10378 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
10381 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
10382 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
10385 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
10386 (nvptx_wait_async): Unseen async-argument is a no-op.
10387 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
10388 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
10389 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10390 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10391 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
10392 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
10393 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
10394 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
10395 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
10397 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
10398 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10400 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
10402 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
10403 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10404 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10406 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
10409 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
10410 (acc_set_cuda_stream): Clarify.
10411 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
10413 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
10415 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
10416 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
10417 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
10418 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10420 2018-12-14 Tom de Vries <tdevries@suse.de>
10422 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
10423 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
10424 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
10425 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
10426 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
10428 2018-12-13 Tom de Vries <tdevries@suse.de>
10430 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
10431 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
10432 * fortran.c (omp_display_affinity_): ... here.
10433 * libgomp.h (gomp_print_string): Declare.
10434 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
10435 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
10438 2018-12-13 Jakub Jelinek <jakub@redhat.com>
10441 * testsuite/libgomp.c++/for-24.C (results): Include it in
10442 omp declare target region.
10443 (main): Use map (always, tofrom: results) instead of
10444 map (tofrom: results).
10446 2018-12-12 Jakub Jelinek <jakub@redhat.com>
10449 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
10450 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
10452 * testsuite/libgomp.c-c++-common/for-16.c: New test.
10454 2018-12-12 Andreas Schwab <schwab@suse.de>
10456 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
10459 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
10462 * testsuite/libgomp.fortran/async_io_8.f90: New test.
10464 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
10465 Jakub Jelinek <jakub@redhat.com>
10467 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
10468 devicep->host2dev_func.
10470 2018-12-08 Jakub Jelinek <jakub@redhat.com>
10473 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
10474 tls_runtime effective target.
10475 (t): New threadprivate variable.
10476 (main): Set t in threads which execute iterations of the worksharing
10477 loop. Propagate that to the task after the loop and don't abort
10478 if the current taskgroup hasn't been cancelled.
10480 2018-12-02 Jakub Jelinek <jakub@redhat.com>
10482 * testsuite/libgomp.c/task-reduction-3.c: New test.
10484 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
10486 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
10489 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
10490 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
10492 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
10494 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
10496 2018-10-19 Richard Biener <rguenther@suse.de>
10498 PR tree-optimization/88182
10499 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
10501 2018-11-26 Jakub Jelinek <jakub@redhat.com>
10503 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
10504 (RUNTEST): Don't define.
10505 (RUNTESTDEFAULTFLAGS): Add.
10506 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
10507 (distclean-am): Depend on distclean-DEJAGNU.
10508 (check-am): If -j% option is present in MFLAGS and if
10509 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
10510 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
10511 * testsuite/Makefile.in: Regenerated.
10513 2018-11-26 Richard Biener <rguenther@suse.de>
10515 PR tree-optimization/88182
10516 * testsuite/libgomp.c++/pr88182.C: New testcase.
10518 2018-11-20 Jakub Jelinek <jakub@redhat.com>
10521 * config/mingw32/affinity-fmt.c: New file.
10523 2018-11-09 Jakub Jelinek <jakub@redhat.com>
10525 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
10526 (gomp_display_affinity): Use __builtin_choose_expr to handle
10527 properly handle argument having integral, or pointer or some other
10528 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
10529 with uint64_t type instead of %llx and unsigned long long.
10531 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
10532 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
10534 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10536 * affinity.c: Include <string.h>, <stdio.h>.
10537 (gomp_display_affinity_place): Remove cpusetp.
10538 * teams.c: Include <limits.h>.
10540 2018-11-08 Jakub Jelinek <jakub@redhat.com>
10542 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
10543 in_reduction clause for s[0].
10545 * affinity.c (gomp_display_affinity_place): New function.
10546 * affinity-fmt.c: New file.
10547 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
10548 * config/linux/affinity.c (gomp_display_affinity_place): New function.
10549 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
10550 Move these functions to ...
10551 * config/nvptx/teams.c: ... here. New file.
10552 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
10554 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
10556 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
10557 and _aligned_malloc.
10558 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
10559 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
10560 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
10561 gomp_affinity_format_len): New variables.
10562 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
10563 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
10564 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
10565 modifiers. Display (non-default) chunk sizes. Print
10566 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
10567 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
10568 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
10569 * fortran.c: Include stdio.h and string.h.
10570 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
10571 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
10572 (omp_set_affinity_format_, omp_get_affinity_format_,
10573 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
10574 omp_pause_resource_all_): New functions.
10575 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
10577 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
10579 * teams.c: ... here. New file.
10580 * libgomp_g.h: Include gstdint.h.
10581 (GOMP_loop_nonmonotonic_runtime_start,
10582 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
10583 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
10584 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
10585 GOMP_parallel_loop_nonmonotonic_runtime,
10586 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10587 GOMP_loop_ull_nonmonotonic_runtime_start,
10588 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
10589 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
10590 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10591 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
10592 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
10593 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10594 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10595 GOMP_teams_reg): Declare.
10596 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
10597 gomp_aligned_alloc uses fallback implementation.
10598 (gomp_aligned_alloc, gomp_aligned_free): Declare.
10599 (enum gomp_schedule_type): Add GFS_MONOTONIC.
10600 (struct gomp_doacross_work_share): Add extra field.
10601 (struct gomp_work_share): Add task_reductions field.
10602 (struct gomp_taskgroup): Add workshare and reductions fields.
10603 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
10604 (gomp_thread_handle): New typedef.
10605 (gomp_display_affinity_place, gomp_set_affinity_format,
10606 gomp_display_string, gomp_display_affinity,
10607 gomp_display_affinity_thread): Declare.
10608 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
10609 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
10610 gomp_workshare_task_reduction_register): Declare.
10611 (gomp_team_start): Add taskgroup argument.
10612 (gomp_pause_host): Declare.
10613 (gomp_init_work_share, gomp_work_share_start): Change bool argument
10615 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
10616 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
10617 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
10618 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10619 GOMP_loop_ull_doacross_start,
10620 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
10621 GOMP_loop_maybe_nonmonotonic_runtime_next,
10622 GOMP_loop_maybe_nonmonotonic_runtime_start,
10623 GOMP_loop_nonmonotonic_runtime_next,
10624 GOMP_loop_nonmonotonic_runtime_start,
10625 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10626 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10627 GOMP_loop_ull_nonmonotonic_runtime_next,
10628 GOMP_loop_ull_nonmonotonic_runtime_start,
10629 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10630 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
10631 GOMP_taskgroup_reduction_register,
10632 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10633 GOMP_teams_reg and GOMP_taskwait_depend.
10634 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
10635 omp_{capture,display}_affinity{,_}, and
10636 omp_[gs]et_affinity_format{,_}.
10637 * loop.c: Include string.h.
10638 (GOMP_loop_runtime_next): Add ialias.
10639 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10640 (gomp_loop_static_start, gomp_loop_dynamic_start,
10641 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10642 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10643 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10644 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
10645 or gomp_doacross_init callers.
10646 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
10647 GOMP_loop_doacross_start): New functions.
10648 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10649 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
10650 Mask off GFS_MONOTONIC bit.
10651 (GOMP_loop_maybe_nonmonotonic_runtime_next,
10652 GOMP_loop_maybe_nonmonotonic_runtime_start,
10653 GOMP_loop_nonmonotonic_runtime_next,
10654 GOMP_loop_nonmonotonic_runtime_start,
10655 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
10656 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
10658 (gomp_parallel_loop_start): Pass NULL as taskgroup to
10660 * loop_ull.c: Include string.h.
10661 (GOMP_loop_ull_runtime_next): Add ialias.
10662 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10663 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
10664 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
10665 gomp_loop_ull_ordered_dynamic_start,
10666 gomp_loop_ull_ordered_guided_start,
10667 gomp_loop_ull_doacross_static_start,
10668 gomp_loop_ull_doacross_dynamic_start,
10669 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
10670 and gomp_doacross_ull_init callers.
10671 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
10672 GOMP_loop_ull_doacross_start): New functions.
10673 (GOMP_loop_ull_runtime_start,
10674 GOMP_loop_ull_ordered_runtime_start,
10675 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
10676 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
10677 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
10678 GOMP_loop_ull_nonmonotonic_runtime_next,
10679 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
10680 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
10681 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
10682 (omp_pause_resource_t, omp_depend_t): New typedefs.
10683 (enum omp_lock_hint_t): Renamed to ...
10684 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
10685 enumerators using numbers and omp_lock_hint_* as their aliases.
10686 (omp_lock_hint_t): New typedef. Rename to ...
10687 (omp_sync_hint_t): ... this.
10688 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
10689 omp_sync_hint_t instead of omp_lock_hint_t.
10690 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10691 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10693 (omp_target_is_present, omp_target_disassociate_ptr):
10694 Change first argument from void * to const void *.
10695 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
10696 from void * to const void *.
10697 (omp_target_associate_ptr): Change first and second arguments from
10698 void * to const void *.
10699 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
10700 omp_pause_hard): New parameters.
10701 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10702 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10704 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
10705 omp_pause_hard): New parameters.
10706 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
10707 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
10709 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
10710 EXTRA argument. If not needed to prepare array, if extra is 0,
10711 clear ws->doacross, otherwise allocate just doacross structure and
10712 extra payload. If array is needed, allocate also extra payload.
10713 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
10714 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
10716 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
10718 (GOMP_parallel): Likewise. Formatting fix.
10719 (GOMP_parallel_reductions): New function.
10720 (GOMP_cancellation_point): If taskgroup has workshare
10721 flag set, check cancelled of prev taskgroup if any.
10722 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
10723 on prev taskgroup if any.
10724 * sections.c: Include string.h.
10725 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
10726 (GOMP_sections_start): Adjust gomp_work_share_start caller.
10727 (GOMP_sections2_start): New function.
10728 (GOMP_parallel_sections_start, GOMP_parallel_sections):
10729 Pass NULL as taskgroup to gomp_team_start.
10730 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
10731 gomp_work_share_start callers.
10732 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
10733 If taskgroup has workshare flag set, check cancelled on prev
10734 taskgroup if any. Guard all cancellation tests with
10735 gomp_cancel_var test.
10736 (omp_target_is_present, omp_target_disassociate_ptr):
10737 Change ptr argument from void * to const void *.
10738 (omp_target_memcpy): Change src argument from void * to const void *.
10739 (omp_target_memcpy_rect): Likewise.
10740 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
10741 instead of char * where needed.
10742 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
10743 from void * to const void *.
10744 (omp_pause_resource, omp_pause_resource_all): New functions.
10745 * task.c (gomp_task_handle_depend): Handle new depend array format
10746 in addition to the old. Handle mutexinoutset kinds the same as
10747 inout for now, handle unspecified kinds.
10748 (gomp_create_target_task): If taskgroup has workshare flag set, check
10749 cancelled on prev taskgroup if any. Guard all cancellation tests with
10750 gomp_cancel_var test. Handle new depend array format count in
10751 addition to the old.
10752 (GOMP_task): Likewise. Adjust function comment.
10753 (gomp_task_run_pre): If taskgroup has workshare flag set, check
10754 cancelled on prev taskgroup if any. Guard all cancellation tests with
10755 gomp_cancel_var test.
10756 (GOMP_taskwait_depend): New function.
10757 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
10758 format in addition to the old. Handle mutexinoutset kinds the same as
10759 inout for now, handle unspecified kinds. Fix a function comment typo.
10760 (gomp_taskgroup_init): New function.
10761 (GOMP_taskgroup_start): Use it.
10762 (gomp_reduction_register, gomp_create_artificial_team,
10763 GOMP_taskgroup_reduction_register,
10764 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
10765 gomp_parallel_reduction_register,
10766 gomp_workshare_task_reduction_register,
10767 gomp_workshare_taskgroup_start,
10768 GOMP_workshare_task_reduction_unregister): New functions.
10769 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
10770 check cancelled on prev taskgroup if any. Guard all cancellation
10771 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
10772 by calling GOMP_taskgroup_reduction_register.
10773 * team.c (gomp_thread_attr): Remove comment.
10774 (struct gomp_thread_start_data): Add handle field.
10775 (gomp_thread_start): Call pthread_detach.
10776 (gomp_new_team): Adjust gomp_init_work_share caller.
10777 (gomp_free_pool_helper): Call pthread_detach.
10778 (gomp_team_start): Add taskgroup argument, initialize implicit
10779 tasks' taskgroup field to that. Don't call
10780 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
10781 (gomp_team_end): Determine nesting by thr->ts.level != 0
10782 rather than thr->ts.team != NULL.
10783 (gomp_pause_pool_helper, gomp_pause_host): New functions.
10784 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
10785 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
10786 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
10787 if more than 1 allocate also extra payload at the end of array. Never
10788 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
10789 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
10790 return true instead of ws.
10791 * Makefile.in: Regenerated.
10792 * configure: Regenerated.
10793 * config.h.in: Regenerated.
10794 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
10796 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
10797 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
10798 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
10799 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
10800 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
10801 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
10802 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
10803 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
10804 * testsuite/libgomp.c-c++-common/for-10.c: New test.
10805 * testsuite/libgomp.c-c++-common/for-11.c: New test.
10806 * testsuite/libgomp.c-c++-common/for-12.c: New test.
10807 * testsuite/libgomp.c-c++-common/for-13.c: New test.
10808 * testsuite/libgomp.c-c++-common/for-14.c: New test.
10809 * testsuite/libgomp.c-c++-common/for-15.c: New test.
10810 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
10811 define a different N(test), don't define N(f0) to N(f14), but instead
10812 define N(f20) to N(f34) using != comparisons.
10813 * testsuite/libgomp.c-c++-common/for-7.c: New test.
10814 * testsuite/libgomp.c-c++-common/for-8.c: New test.
10815 * testsuite/libgomp.c-c++-common/for-9.c: New test.
10816 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
10817 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
10818 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
10819 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
10820 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
10821 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
10822 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
10823 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
10824 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
10825 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
10826 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
10827 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
10828 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
10829 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
10830 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
10831 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
10832 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
10833 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
10834 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
10835 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
10836 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
10837 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
10838 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
10839 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
10840 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
10841 * testsuite/libgomp.c++/depend-1.C: New test.
10842 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
10843 * testsuite/libgomp.c++/depobj-1.C: New test.
10844 * testsuite/libgomp.c++/for-16.C: New test.
10845 * testsuite/libgomp.c++/for-21.C: New test.
10846 * testsuite/libgomp.c++/for-22.C: New test.
10847 * testsuite/libgomp.c++/for-23.C: New test.
10848 * testsuite/libgomp.c++/for-24.C: New test.
10849 * testsuite/libgomp.c++/for-25.C: New test.
10850 * testsuite/libgomp.c++/for-26.C: New test.
10851 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
10852 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
10853 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
10854 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
10855 * testsuite/libgomp.c++/task-reduction-10.C: New test.
10856 * testsuite/libgomp.c++/task-reduction-11.C: New test.
10857 * testsuite/libgomp.c++/task-reduction-12.C: New test.
10858 * testsuite/libgomp.c++/task-reduction-13.C: New test.
10859 * testsuite/libgomp.c++/task-reduction-14.C: New test.
10860 * testsuite/libgomp.c++/task-reduction-15.C: New test.
10861 * testsuite/libgomp.c++/task-reduction-16.C: New test.
10862 * testsuite/libgomp.c++/task-reduction-17.C: New test.
10863 * testsuite/libgomp.c++/task-reduction-18.C: New test.
10864 * testsuite/libgomp.c++/task-reduction-19.C: New test.
10865 * testsuite/libgomp.c/task-reduction-1.c: New test.
10866 * testsuite/libgomp.c++/task-reduction-1.C: New test.
10867 * testsuite/libgomp.c/task-reduction-2.c: New test.
10868 * testsuite/libgomp.c++/task-reduction-2.C: New test.
10869 * testsuite/libgomp.c++/task-reduction-3.C: New test.
10870 * testsuite/libgomp.c++/task-reduction-4.C: New test.
10871 * testsuite/libgomp.c++/task-reduction-5.C: New test.
10872 * testsuite/libgomp.c++/task-reduction-6.C: New test.
10873 * testsuite/libgomp.c++/task-reduction-7.C: New test.
10874 * testsuite/libgomp.c++/task-reduction-8.C: New test.
10875 * testsuite/libgomp.c++/task-reduction-9.C: New test.
10876 * testsuite/libgomp.c/teams-1.c: New test.
10877 * testsuite/libgomp.c/teams-2.c: New test.
10878 * testsuite/libgomp.c/thread-limit-4.c: New test.
10879 * testsuite/libgomp.c/thread-limit-5.c: New test.
10880 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
10882 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
10884 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
10885 acc_memcpy_to/from_device functions, now with async parameter.
10886 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
10887 (acc_memcpy_from_device): Likewise.
10888 (acc_memcpy_to_device_async): New API function.
10889 (acc_memcpy_from_device_async): Likewise.
10890 (present_create_copy): Add async parameter and async setting/unsetting.
10891 (acc_create): Adjust present_create_copy call.
10892 (acc_copyin): Likewise.
10893 (acc_present_or_create): Likewise.
10894 (acc_present_or_copyin): Likewise.
10895 (acc_create_async): New API function.
10896 (acc_copyin_async): New API function.
10897 (delete_copyout): Add async parameter and async setting/unsetting.
10898 (acc_delete): Adjust delete_copyout call.
10899 (acc_copyout): Likewise.
10900 (acc_delete_async): New API function.
10901 (acc_copyout_async): Likewise.
10902 (update_dev_host): Add async parameter and async setting/unsetting.
10903 (acc_update_device): Adjust update_dev_host call.
10904 (acc_update_self): Likewise.
10905 (acc_update_device_async): New API function.
10906 (acc_update_self_async): Likewise.
10907 * openacc.h (acc_copyin_async): Declare new API function.
10908 (acc_create_async): Likewise.
10909 (acc_copyout_async): Likewise.
10910 (acc_delete_async): Likewise.
10911 (acc_update_device_async): Likewise.
10912 (acc_update_self_async): Likewise.
10913 (acc_memcpy_to_device_async): Likewise.
10914 (acc_memcpy_from_device_async): Likewise.
10915 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
10916 (acc_copyin_async_64_h): New subroutine.
10917 (acc_copyin_async_array_h): New subroutine.
10918 (acc_create_async_32_h): New subroutine.
10919 (acc_create_async_64_h): New subroutine.
10920 (acc_create_async_array_h): New subroutine.
10921 (acc_copyout_async_32_h): New subroutine.
10922 (acc_copyout_async_64_h): New subroutine.
10923 (acc_copyout_async_array_h): New subroutine.
10924 (acc_delete_async_32_h): New subroutine.
10925 (acc_delete_async_64_h): New subroutine.
10926 (acc_delete_async_array_h): New subroutine.
10927 (acc_update_device_async_32_h): New subroutine.
10928 (acc_update_device_async_64_h): New subroutine.
10929 (acc_update_device_async_array_h): New subroutine.
10930 (acc_update_self_async_32_h): New subroutine.
10931 (acc_update_self_async_64_h): New subroutine.
10932 (acc_update_self_async_array_h): New subroutine.
10933 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
10934 (acc_copyin_async_64_h): New subroutine.
10935 (acc_copyin_async_array_h): New subroutine.
10936 (acc_create_async_32_h): New subroutine.
10937 (acc_create_async_64_h): New subroutine.
10938 (acc_create_async_array_h): New subroutine.
10939 (acc_copyout_async_32_h): New subroutine.
10940 (acc_copyout_async_64_h): New subroutine.
10941 (acc_copyout_async_array_h): New subroutine.
10942 (acc_delete_async_32_h): New subroutine.
10943 (acc_delete_async_64_h): New subroutine.
10944 (acc_delete_async_array_h): New subroutine.
10945 (acc_update_device_async_32_h): New subroutine.
10946 (acc_update_device_async_64_h): New subroutine.
10947 (acc_update_device_async_array_h): New subroutine.
10948 (acc_update_self_async_32_h): New subroutine.
10949 (acc_update_self_async_64_h): New subroutine.
10950 (acc_update_self_async_array_h): New subroutine.
10951 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
10952 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
10953 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
10954 acc_memcpy_to_device_async*, acc_update_device_async*, and
10955 acc_update_self_async* entries.
10956 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
10957 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
10958 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
10960 2018-10-31 Joseph Myers <joseph@codesourcery.com>
10963 * Makefile.am: Include multilib.am
10964 (AUTOMAKE_OPTIONS): Add info-in-builddir.
10965 (CLEANFILES): Remove libgomp.info.
10966 * configure.ac: Remove AC_PREREQ.
10967 * testsuite/Makefile.am (RUNTEST): Remove quotes.
10968 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
10971 2018-10-29 Joseph Myers <joseph@codesourcery.com>
10972 Julian Brown <julian@codesourcery.com>
10974 * testsuite/libgomp.oacc-c++/this.C: New.
10976 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
10978 * plugin/plugin-nvptx.c (struct cuda_map): New.
10979 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
10980 h_tail with (cuda_map *) map.
10981 (cuda_map_create): New function.
10982 (cuda_map_destroy): New function.
10983 (map_init): Update to use a linked list of cuda_map objects.
10984 (map_fini): Likewise.
10985 (map_pop): Likewise.
10986 (map_push): Likewise. Return CUdeviceptr instead of void.
10987 (init_streams_for_device): Remove stales references to ptx_stream
10989 (select_stream_for_async): Likewise.
10990 (nvptx_exec): Update call to map_init.
10992 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
10993 Julian Brown <julian@codesourcery.com>
10995 PR middle-end/86336
10996 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
10998 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
10999 Thomas Koenig <tkoenig@gcc.gnu.org>
11002 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11003 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11004 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11005 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11006 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11007 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11008 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11010 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
11011 Tom de Vries <tdevries@suse.de>
11014 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
11015 (cuOccupancyMaxPotentialBlockSize): Declare.
11016 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
11017 CUDA_ONE_CALL_MAYBE_NULL.
11018 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
11019 CUoccupancyB2DSize and declare
11020 cuOccupancyMaxPotentialBlockSize.
11021 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
11022 default num_gangs and num_workers when the driver supports it.
11024 2018-08-08 Tom de Vries <tdevries@suse.de>
11026 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
11027 CUDA_ONE_CALL_MAYBE_NULL.
11028 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
11029 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
11030 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
11033 2018-08-08 Tom de Vries <tdevries@suse.de>
11035 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
11036 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
11039 2018-08-08 Tom de Vries <tdevries@suse.de>
11041 * plugin/plugin-nvptx.c
11042 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
11043 (nvptx_open_device): Use
11044 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
11046 2018-08-08 Tom de Vries <tdevries@suse.de>
11048 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
11049 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
11051 2018-08-07 Tom de Vries <tdevries@suse.de>
11053 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
11054 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
11055 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
11056 corresponding call in CUDA_ONE_CALL. Add def/undef of
11057 CUDA_ONE_CALL_MAYBE_NULL.
11058 (CUDA_CALL_EXISTS): Define.
11060 2018-08-07 Tom de Vries <tdevries@suse.de>
11062 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
11063 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
11064 corresponding undefs right after.
11066 2018-08-04 Tom de Vries <tdevries@suse.de>
11068 * plugin/configfrag.ac: For --without-cuda-driver, set
11069 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
11070 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
11071 * configure: Regenerate.
11073 2018-08-02 Tom de Vries <tdevries@suse.de>
11076 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
11077 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
11078 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
11080 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
11081 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
11082 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
11084 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
11085 Thomas Schwinge <thomas@codesourcery.com>
11087 * config/nvptx/oacc-parallel.c: Truncate.
11089 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
11090 James Norris <jnorris@codesourcery.com>
11092 * plugin/plugin-nvptx.c (struct map): Removed.
11093 (map_init, map_pop): Remove use of struct map.
11094 (map_push): Likewise and change argument list.
11095 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
11097 2018-08-01 Tom de Vries <tdevries@suse.de>
11099 * plugin/cuda-lib.def: New file. Factor out of ...
11100 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
11101 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
11104 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
11106 Revert 'AsyncI/O patch committed'.
11107 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11108 Thomas Koenig <tkoenig@gcc.gnu.org>
11111 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11112 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11113 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11114 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11115 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11116 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11117 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11119 2018-07-30 Tom de Vries <tdevries@suse.de>
11121 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
11122 (nvptx_exec): Ensure worker and vector default dims don't exceed
11123 targ_fn->max_threads_per_block.
11125 2018-07-30 Tom de Vries <tdevries@suse.de>
11127 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
11128 (nvptx_open_device): Init default_dims for device.
11129 (nvptx_exec): Use default_dims from device.
11131 2018-07-26 Jakub Jelinek <jakub@redhat.com>
11134 * testsuite/libgomp.c++/for-15.C (results): Include it in
11135 omp declare target region.
11136 (main): Use map (always, tofrom: results) instead of
11137 map (tofrom: results).
11139 PR middle-end/86660
11140 * testsuite/libgomp.c/pr86660.c: New test.
11142 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11143 Tom de Vries <tdevries@suse.de>
11145 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
11146 sufficient resources to launch a kernel, and give a hint on how to fix
11149 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
11150 Tom de Vries <tdevries@suse.de>
11152 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
11153 max_threads_per_block and max_threads_per_multiprocessor fields.
11154 (nvptx_open_device): Initialize new fields.
11155 (nvptx_exec): Use num_sms, and new fields.
11157 2018-07-26 Tom de Vries <tdevries@suse.de>
11159 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
11160 to correct locations. Remove xfail.
11162 2018-07-26 Tom de Vries <tdevries@suse.de>
11164 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
11165 acc_wait. Move acc_async_test calls to correct locations. Remove
11168 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
11169 Thomas Koenig <tkoenig@gcc.gnu.org>
11172 * testsuite/libgomp.fortran/async_io_1.f90: New test.
11173 * testsuite/libgomp.fortran/async_io_2.f90: New test.
11174 * testsuite/libgomp.fortran/async_io_3.f90: New test.
11175 * testsuite/libgomp.fortran/async_io_4.f90: New test.
11176 * testsuite/libgomp.fortran/async_io_5.f90: New test.
11177 * testsuite/libgomp.fortran/async_io_6.f90: New test.
11178 * testsuite/libgomp.fortran/async_io_7.f90: New test.
11180 2018-07-17 Jakub Jelinek <jakub@redhat.com>
11182 PR middle-end/86542
11183 * testsuite/libgomp.c++/pr86542.C: New test.
11185 PR middle-end/86539
11186 * testsuite/libgomp.c++/pr86539.C: New test.
11188 2018-07-11 Jakub Jelinek <jakub@redhat.com>
11191 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
11192 (results): Make sure the variable is not inside declare target region.
11193 (qux): Remove unused function.
11195 2018-07-10 Jakub Jelinek <jakub@redhat.com>
11198 * testsuite/libgomp.c++/for-15.C: New test.
11200 2018-06-26 Jakub Jelinek <jakub@redhat.com>
11203 * testsuite/libgomp.c++/pr86291.C: New test.
11205 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
11207 * libgomp.texi (Top): Move www.openmp.org to https.
11208 (Enabling OpenMP): Ditto.
11209 (omp_get_active_level): Ditto.
11210 (omp_get_ancestor_thread_num): Ditto.
11211 (omp_get_cancellation): Ditto.
11212 (omp_get_default_device): Ditto.
11213 (omp_get_dynamic): Ditto.
11214 (omp_get_level): Ditto.
11215 (omp_get_max_active_levels): Ditto.
11216 (omp_get_max_task_priority): Ditto.
11217 (omp_get_max_threads): Ditto.
11218 (omp_get_nested): Ditto.
11219 (omp_get_num_devices): Ditto.
11220 (omp_get_num_procs): Ditto.
11221 (omp_get_num_teams): Ditto.
11222 (omp_get_num_threads): Ditto.
11223 (omp_get_proc_bind): Ditto.
11224 (omp_get_schedule): Ditto.
11225 (omp_get_team_num): Ditto.
11226 (omp_get_team_size): Ditto.
11227 (omp_get_thread_limit): Ditto.
11228 (omp_get_thread_num): Ditto.
11229 (omp_in_parallel): Ditto.
11230 (omp_in_final): Ditto.
11231 (omp_is_initial_device): Ditto.
11232 (omp_set_default_device): Ditto.
11233 (omp_set_dynamic): Ditto.
11234 (omp_set_max_active_levels): Ditto.
11235 (omp_set_nested): Ditto.
11236 (omp_set_num_threads): Ditto.
11237 (omp_set_schedule): Ditto.
11238 (omp_init_lock): Ditto.
11239 (omp_set_lock): Ditto.
11240 (omp_test_lock): Ditto.
11241 (omp_unset_lock): Ditto.
11242 (omp_destroy_lock): Ditto.
11243 (omp_init_nest_lock): Ditto.
11244 (omp_set_nest_lock): Ditto.
11245 (omp_test_nest_lock): Ditto.
11246 (omp_unset_nest_lock): Ditto.
11247 (omp_destroy_nest_lock): Ditto.
11248 (omp_get_wtick): Ditto.
11249 (omp_get_wtime): Ditto.
11250 (OMP_CANCELLATION): Ditto.
11251 (OMP_DISPLAY_ENV): Ditto.
11252 (OMP_DEFAULT_DEVICE): Ditto.
11253 (OMP_DYNAMIC): Ditto.
11254 (OMP_MAX_ACTIVE_LEVELS): Ditto.
11255 (OMP_MAX_TASK_PRIORITY): Ditto.
11256 (OMP_NESTED): Ditto.
11257 (OMP_NUM_THREADS): Ditto.
11258 (OMP_PROC_BIND): Ditto.
11259 (OMP_PLACES): Ditto.
11260 (OMP_STACKSIZE): Ditto.
11261 (OMP_SCHEDULE): Ditto.
11262 (OMP_THREAD_LIMIT): Ditto.
11263 (OMP_WAIT_POLICY): Ditto.
11265 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
11266 James Norris <jnorris@codesourcery.com>
11267 Julian Brown <julian@codesourcery.com>
11268 Thomas Schwinge <thomas@codesourcery.com>
11269 Tom de Vries <tom@codesourcery.com>
11271 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
11272 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
11273 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
11274 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
11275 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11276 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11277 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
11278 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
11279 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
11280 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
11282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
11284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
11286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
11288 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
11290 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
11292 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
11294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
11296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
11298 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
11300 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
11302 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
11304 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
11306 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
11308 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
11310 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
11312 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
11314 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
11316 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
11318 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
11320 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
11322 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
11324 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
11326 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
11328 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
11330 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
11332 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
11334 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
11335 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
11336 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
11337 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
11338 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
11339 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
11340 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
11341 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
11342 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
11344 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
11346 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
11347 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
11348 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
11350 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
11351 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
11352 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
11354 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
11356 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
11358 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
11360 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
11362 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
11364 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
11366 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
11368 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
11370 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
11372 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
11374 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
11376 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
11378 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
11380 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
11382 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
11383 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
11384 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
11385 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
11386 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
11387 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
11388 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
11390 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
11391 Thomas Schwinge <thomas@codesourcery.com>
11392 Cesar Philippidis <cesar@codesourcery.com>
11394 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
11395 (gomp_acc_remove_pointer): Update declaration.
11396 (gomp_acc_declare_allocate): Declare.
11397 (gomp_remove_var): Declare.
11398 * libgomp.map (OACC_2.5): Define.
11399 * oacc-mem.c (acc_map_data): Update refcount.
11400 (acc_unmap_data): Likewise.
11401 (present_create_copy): Likewise.
11402 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
11403 (acc_copyin): Likewise.
11404 (FLAG_FINALIZE): Define.
11405 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
11406 (acc_delete_finalize): New function.
11407 (acc_delete_finalize_async): New function.
11408 (acc_copyout_finalize): New function.
11409 (acc_copyout_finalize_async): New function.
11410 (gomp_acc_insert_pointer): Update refcounts.
11411 (gomp_acc_remove_pointer): Return if data is not present on the
11413 * oacc-parallel.c (find_pset): Rename to find_pointer.
11414 (find_pointer): Add support for GOMP_MAP_POINTER.
11415 (handle_ftn_pointers): New function.
11416 (GOACC_parallel_keyed): Update refcounts of variables.
11417 (GOACC_enter_exit_data): Add support for finalized data mappings.
11418 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
11420 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
11421 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
11422 for GOMP_MAP_FORCE_FROM.
11423 * openacc.f90 (module openacc_internal): Add
11424 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
11425 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
11426 acc_copyout_finalize and acc_delete_finalize.
11427 (acc_copyout_finalize_32_h): New subroutine.
11428 (acc_copyout_finalize_64_h): New subroutine.
11429 (acc_copyout_finalize_array_h): New subroutine.
11430 (acc_delete_finalize_32_h): New subroutine.
11431 (acc_delete_finalize_64_h): New subroutine.
11432 (acc_delete_finalize_array_h): New subroutine.
11433 * openacc.h (acc_copyout_finalize): Declare.
11434 (acc_copyout_finalize_async): Declare.
11435 (acc_delete_finalize): Declare.
11436 (acc_delete_finalize_async): Declare.
11437 * openacc_lib.h (acc_copyout_finalize): New interface.
11438 (acc_delete_finalize): New interface.
11439 * target.c (gomp_map_vars): Update dynamic_refcount.
11440 (gomp_remove_var): New function.
11441 (gomp_unmap_vars): Use it.
11442 (gomp_unload_image_from_device): Likewise.
11443 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
11444 case to utilize OpenACC 2.5 data clause semantics.
11445 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11446 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11447 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11448 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11449 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11450 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11451 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11452 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11453 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11454 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11455 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11456 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
11457 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
11458 utilize OpenACC 2.5 data clause semantics.
11459 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11460 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11461 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11462 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11463 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11464 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11465 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11466 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
11467 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
11469 2018-05-21 Janus Weil <janus@gcc.gnu.org>
11473 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
11474 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
11475 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
11476 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
11477 * testsuite/libgomp.fortran/task2.f90: Ditto.
11478 * testsuite/libgomp.fortran/vla1.f90: Ditto.
11479 * testsuite/libgomp.fortran/vla2.f90: Ditto.
11480 * testsuite/libgomp.fortran/vla3.f90: Ditto.
11481 * testsuite/libgomp.fortran/vla4.f90: Ditto.
11482 * testsuite/libgomp.fortran/vla5.f90: Ditto.
11483 * testsuite/libgomp.fortran/vla6.f90: Ditto.
11484 * testsuite/libgomp.fortran/vla8.f90: Ditto.
11485 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
11486 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
11488 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
11491 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
11493 2018-05-09 Tom de Vries <tom@codesourcery.com>
11496 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
11497 to GOACC_enter_exit_data.
11499 2018-05-09 Tom de Vries <tom@codesourcery.com>
11502 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
11503 (async_synchronous_p): New function.
11504 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
11506 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
11507 async_valid_stream_id_p.
11508 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
11509 * oacc-parallel.c (GOACC_parallel_keyed): Same.
11511 2018-05-07 Tom de Vries <tom@codesourcery.com>
11514 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
11515 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
11517 2018-05-03 Tom de Vries <tom@codesourcery.com>
11520 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
11521 extra_tool_flags if it contains an -foffload=-fdump-* flag.
11522 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
11523 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
11525 2018-05-02 Tom de Vries <tom@codesourcery.com>
11528 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
11529 GOMP_OPENACC_DIM ...
11530 * env.c (parse_gomp_openacc_dim): ... here. New function.
11531 (initialize_env): Call parse_gomp_openacc_dim.
11532 (goacc_default_dims): Define.
11533 * libgomp.h (goacc_default_dims): Declare.
11534 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
11535 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
11536 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
11537 GOMP_PLUGIN_acc_default_dim.
11538 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
11539 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
11541 2018-05-02 Tom de Vries <tom@codesourcery.com>
11544 * testsuite/libgomp.c++/udr-9.C: Update.
11545 * testsuite/libgomp.c++/atomic-16.C: Remove.
11546 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
11547 * testsuite/libgomp.c++/loop-13.C: Remove.
11548 * testsuite/libgomp.c++/loop-14.C: Remove.
11549 * testsuite/libgomp.c++/loop-15.C: Remove.
11550 * testsuite/libgomp.c++/monotonic-1.C: Remove.
11551 * testsuite/libgomp.c++/monotonic-2.C: Remove.
11552 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
11553 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
11554 * testsuite/libgomp.c++/ordered-1.C: Remove.
11555 * testsuite/libgomp.c++/pr45784.C: Remove.
11556 * testsuite/libgomp.c++/pr64824.C: Remove.
11557 * testsuite/libgomp.c++/pr64868.C: Remove.
11558 * testsuite/libgomp.c++/pr66199-1.C: Remove.
11559 * testsuite/libgomp.c++/pr66199-2.C: Remove.
11560 * testsuite/libgomp.c++/pr66199-3.C: Remove.
11561 * testsuite/libgomp.c++/pr66199-4.C: Remove.
11562 * testsuite/libgomp.c++/pr66199-5.C: Remove.
11563 * testsuite/libgomp.c++/pr66199-6.C: Remove.
11564 * testsuite/libgomp.c++/pr66199-7.C: Remove.
11565 * testsuite/libgomp.c++/pr66199-8.C: Remove.
11566 * testsuite/libgomp.c++/pr66199-9.C: Remove.
11567 * testsuite/libgomp.c++/pr69389.C: Remove.
11568 * testsuite/libgomp.c++/simd10.C: Remove.
11569 * testsuite/libgomp.c++/simd11.C: Remove.
11570 * testsuite/libgomp.c++/simd12.C: Remove.
11571 * testsuite/libgomp.c++/simd13.C: Remove.
11572 * testsuite/libgomp.c++/target-1.C: Remove.
11573 * testsuite/libgomp.c++/target-3.C: Remove.
11574 * testsuite/libgomp.c++/target-4.C: Remove.
11575 * testsuite/libgomp.c++/target-5.C: Remove.
11576 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
11577 * testsuite/libgomp.c++/taskloop-1.C: Remove.
11578 * testsuite/libgomp.c++/taskloop-2.C: Remove.
11579 * testsuite/libgomp.c++/taskloop-3.C: Remove.
11580 * testsuite/libgomp.c++/taskloop-4.C: Remove.
11581 * testsuite/libgomp.c++/udr-9.C: Remove.
11582 * testsuite/libgomp.c++/for-10.C: Remove.
11583 * testsuite/libgomp.c++/for-11.C: Remove.
11584 * testsuite/libgomp.c++/for-12.C: Remove.
11585 * testsuite/libgomp.c++/for-13.C: Remove.
11586 * testsuite/libgomp.c++/for-14.C: Remove.
11587 * testsuite/libgomp.c++/for-9.C: Remove.
11588 * testsuite/libgomp.c/atomic-18.c: Move ...
11589 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
11590 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
11591 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
11592 * testsuite/libgomp.c/loop-13.c: Move ...
11593 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
11594 * testsuite/libgomp.c/loop-14.c: Move ...
11595 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
11596 * testsuite/libgomp.c/loop-15.c: Remove.
11597 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
11598 * testsuite/libgomp.c/monotonic-1.c: Move ...
11599 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
11600 * testsuite/libgomp.c/monotonic-2.c: Move ...
11601 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
11602 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
11603 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
11604 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
11605 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
11606 * testsuite/libgomp.c/ordered-4.c: Move ...
11607 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
11608 * testsuite/libgomp.c/pr45784.c: Move ...
11609 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
11610 * testsuite/libgomp.c/pr64824.c: Move ...
11611 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
11612 * testsuite/libgomp.c/pr64868.c: Move ...
11613 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
11614 * testsuite/libgomp.c/pr66199-1.c: Move ...
11615 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
11616 * testsuite/libgomp.c/pr66199-2.c: Move ...
11617 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
11618 * testsuite/libgomp.c/pr66199-3.c: Move ...
11619 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
11620 * testsuite/libgomp.c/pr66199-4.c: Move ...
11621 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
11622 * testsuite/libgomp.c/pr66199-5.c: Move ...
11623 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
11624 * testsuite/libgomp.c/pr66199-6.c: Move ...
11625 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
11626 * testsuite/libgomp.c/pr66199-7.c: Move ...
11627 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
11628 * testsuite/libgomp.c/pr66199-8.c: Move ...
11629 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
11630 * testsuite/libgomp.c/pr66199-9.c: Move ...
11631 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
11632 * testsuite/libgomp.c/pr69389.c: Move ...
11633 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
11634 * testsuite/libgomp.c/simd-14.c: Move ...
11635 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
11636 * testsuite/libgomp.c/simd-15.c: Move ...
11637 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
11638 * testsuite/libgomp.c/simd-16.c: Move ...
11639 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
11640 * testsuite/libgomp.c/simd-17.c: Move ...
11641 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
11642 * testsuite/libgomp.c/target-1.c: Move ...
11643 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
11644 * testsuite/libgomp.c/target-10.c: Move ...
11645 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
11646 * testsuite/libgomp.c/target-13.c: Move ...
11647 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
11648 * testsuite/libgomp.c/target-2.c: Move ...
11649 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
11650 * testsuite/libgomp.c/taskgroup-1.c: Move ...
11651 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
11652 * testsuite/libgomp.c/taskloop-1.c: Move ...
11653 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
11654 * testsuite/libgomp.c/taskloop-2.c: Move ...
11655 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
11656 * testsuite/libgomp.c/taskloop-3.c: Move ...
11657 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
11658 * testsuite/libgomp.c/taskloop-4.c: Move ...
11659 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
11660 * testsuite/libgomp.c/udr-1.c: Move ...
11661 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
11662 * testsuite/libgomp.c/for-1.c: Move ...
11663 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
11664 * testsuite/libgomp.c/for-1.h: Move ...
11665 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
11666 * testsuite/libgomp.c/for-2.c: Move ...
11667 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
11668 * testsuite/libgomp.c/for-2.h: Move ...
11669 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
11670 * testsuite/libgomp.c/for-3.c: Move ...
11671 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
11672 * testsuite/libgomp.c/for-4.c: Move ...
11673 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
11674 * testsuite/libgomp.c/for-5.c: Move ...
11675 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
11676 * testsuite/libgomp.c/for-6.c: Move ...
11677 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
11679 2018-05-02 Tom de Vries <tom@codesourcery.com>
11682 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
11683 __builtin_goacc_parlevel_{id,size}.
11684 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
11685 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
11686 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
11687 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
11688 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
11689 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
11690 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
11691 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
11692 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
11693 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
11694 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
11695 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
11696 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
11697 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
11698 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
11699 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
11700 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
11701 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
11702 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
11703 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
11704 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
11705 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
11706 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
11708 2018-05-02 Tom de Vries <tom@codesourcery.com>
11711 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
11713 2018-05-02 Tom de Vries <tom@codesourcery.com>
11716 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
11718 2018-04-29 Julian Brown <julian@codesourcery.com>
11719 Tom de Vries <tom@codesourcery.com>
11722 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
11723 arbitrary order for iterations of atomic subtract check.
11725 2018-04-28 Tom de Vries <tom@codesourcery.com>
11728 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
11729 atomic capture results obtained in parallel loop to an array, instead of
11732 2018-04-26 Tom de Vries <tom@codesourcery.com>
11735 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
11736 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
11737 (process_GOMP_NVPTX_JIT): New function.
11738 (link_ptx): Use process_GOMP_NVPTX_JIT.
11740 2018-04-26 Richard Biener <rguenther@suse.de>
11741 Tom de Vries <tom@codesourcery.com>
11744 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
11746 2018-04-26 Tom de Vries <tom@codesourcery.com>
11749 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
11750 recursion depth from 25 to 23.
11751 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
11753 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
11755 * configure: Regenerated.
11757 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
11758 Tom de Vries <tom@codesourcery.com>
11761 * testsuite/libgomp.oacc-c++/ref-1.C: New.
11763 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
11766 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
11767 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
11768 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
11769 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
11770 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
11771 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
11773 PR libfortran/85166
11774 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
11776 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11778 2018-04-19 Jakub Jelinek <jakub@redhat.com>
11780 * configure: Regenerated.
11782 2018-04-18 David Malcolm <dmalcolm@redhat.com>
11785 * configure: Regenerate.
11787 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
11788 Tom de Vries <tom@codesourcery.com>
11790 PR middle-end/84955
11791 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11792 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11794 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
11798 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
11799 test from gfortran.dg to here.
11801 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11803 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
11804 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
11806 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
11808 PR middle-end/84955
11809 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
11810 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
11812 2018-04-05 Tom de Vries <tom@codesourcery.com>
11815 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
11817 2018-03-26 Tom de Vries <tom@codesourcery.com>
11819 PR tree-optimization/85063
11820 * testsuite/libgomp.c/switch-conversion-2.c: New test.
11821 * testsuite/libgomp.c/switch-conversion.c: New test.
11822 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
11823 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
11825 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
11828 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
11829 call abort by STOP n.
11830 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
11831 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
11832 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
11833 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
11834 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
11835 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
11836 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
11837 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
11838 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
11839 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
11840 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
11841 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
11842 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
11843 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
11844 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
11845 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
11846 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
11847 * testsuite/libgomp.fortran/associate1.f90: Likewise.
11848 * testsuite/libgomp.fortran/associate2.f90: Likewise.
11849 * testsuite/libgomp.fortran/associate3.f90: Likewise.
11850 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
11851 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
11852 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
11853 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
11854 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
11855 * testsuite/libgomp.fortran/character1.f90: Likewise.
11856 * testsuite/libgomp.fortran/character2.f90: Likewise.
11857 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
11858 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
11859 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
11860 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
11861 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
11862 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
11863 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
11864 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
11865 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
11866 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
11867 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
11868 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
11869 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
11870 * testsuite/libgomp.fortran/do1.f90: Likewise.
11871 * testsuite/libgomp.fortran/do2.f90: Likewise.
11872 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
11873 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
11874 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
11875 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
11876 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
11877 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
11878 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
11879 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
11880 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
11881 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
11882 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
11883 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
11884 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
11885 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
11886 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
11887 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
11888 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
11889 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
11890 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
11891 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
11892 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
11893 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
11894 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
11895 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
11896 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
11897 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
11898 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
11899 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
11900 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
11901 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
11902 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
11903 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
11904 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
11905 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
11906 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
11907 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
11908 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
11909 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
11910 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
11911 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
11912 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
11913 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
11914 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
11915 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
11916 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
11917 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
11918 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
11919 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
11920 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
11921 * testsuite/libgomp.fortran/lib1.f90: Likewise.
11922 * testsuite/libgomp.fortran/lib2.f: Likewise.
11923 * testsuite/libgomp.fortran/lib3.f: Likewise.
11924 * testsuite/libgomp.fortran/lib4.f90: Likewise.
11925 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
11926 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
11927 * testsuite/libgomp.fortran/nested1.f90: Likewise.
11928 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
11929 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
11930 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
11931 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
11932 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
11933 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
11934 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
11935 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
11936 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
11937 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
11938 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
11939 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
11940 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
11941 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
11942 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
11943 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
11944 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
11945 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
11946 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
11947 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11948 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
11949 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
11950 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
11951 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
11952 * testsuite/libgomp.fortran/pr25162.f: Likewise.
11953 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
11954 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
11955 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
11956 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
11957 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
11958 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
11959 * testsuite/libgomp.fortran/pr28390.f: Likewise.
11960 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
11961 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
11962 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
11963 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
11964 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
11965 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
11966 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
11967 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
11968 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
11969 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
11970 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
11971 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
11972 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
11973 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
11974 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
11975 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
11976 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
11977 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
11978 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
11979 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
11980 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
11981 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
11982 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
11983 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
11984 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
11985 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11986 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
11987 * testsuite/libgomp.fortran/reference1.f90: Likewise.
11988 * testsuite/libgomp.fortran/reference2.f90: Likewise.
11989 * testsuite/libgomp.fortran/retval1.f90: Likewise.
11990 * testsuite/libgomp.fortran/retval2.f90: Likewise.
11991 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
11992 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
11993 * testsuite/libgomp.fortran/simd1.f90: Likewise.
11994 * testsuite/libgomp.fortran/simd2.f90: Likewise.
11995 * testsuite/libgomp.fortran/simd3.f90: Likewise.
11996 * testsuite/libgomp.fortran/simd4.f90: Likewise.
11997 * testsuite/libgomp.fortran/simd5.f90: Likewise.
11998 * testsuite/libgomp.fortran/simd6.f90: Likewise.
11999 * testsuite/libgomp.fortran/simd7.f90: Likewise.
12000 * testsuite/libgomp.fortran/stack.f90: Likewise.
12001 * testsuite/libgomp.fortran/strassen.f90: Likewise.
12002 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
12003 * testsuite/libgomp.fortran/tabs2.f: Likewise.
12004 * testsuite/libgomp.fortran/target1.f90: Likewise.
12005 * testsuite/libgomp.fortran/target2.f90: Likewise.
12006 * testsuite/libgomp.fortran/target3.f90: Likewise.
12007 * testsuite/libgomp.fortran/target4.f90: Likewise.
12008 * testsuite/libgomp.fortran/target5.f90: Likewise.
12009 * testsuite/libgomp.fortran/target6.f90: Likewise.
12010 * testsuite/libgomp.fortran/target7.f90: Likewise.
12011 * testsuite/libgomp.fortran/target8.f90: Likewise.
12012 * testsuite/libgomp.fortran/task1.f90: Likewise.
12013 * testsuite/libgomp.fortran/task2.f90: Likewise.
12014 * testsuite/libgomp.fortran/task3.f90: Likewise.
12015 * testsuite/libgomp.fortran/task4.f90: Likewise.
12016 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
12017 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
12018 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
12019 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
12020 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
12021 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
12022 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
12023 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
12024 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
12025 * testsuite/libgomp.fortran/udr1.f90: Likewise.
12026 * testsuite/libgomp.fortran/udr10.f90: Likewise.
12027 * testsuite/libgomp.fortran/udr11.f90: Likewise.
12028 * testsuite/libgomp.fortran/udr12.f90: Likewise.
12029 * testsuite/libgomp.fortran/udr13.f90: Likewise.
12030 * testsuite/libgomp.fortran/udr14.f90: Likewise.
12031 * testsuite/libgomp.fortran/udr15.f90: Likewise.
12032 * testsuite/libgomp.fortran/udr2.f90: Likewise.
12033 * testsuite/libgomp.fortran/udr3.f90: Likewise.
12034 * testsuite/libgomp.fortran/udr4.f90: Likewise.
12035 * testsuite/libgomp.fortran/udr5.f90: Likewise.
12036 * testsuite/libgomp.fortran/udr6.f90: Likewise.
12037 * testsuite/libgomp.fortran/udr7.f90: Likewise.
12038 * testsuite/libgomp.fortran/udr8.f90: Likewise.
12039 * testsuite/libgomp.fortran/udr9.f90: Likewise.
12040 * testsuite/libgomp.fortran/vla1.f90: Likewise.
12041 * testsuite/libgomp.fortran/vla2.f90: Likewise.
12042 * testsuite/libgomp.fortran/vla3.f90: Likewise.
12043 * testsuite/libgomp.fortran/vla4.f90: Likewise.
12044 * testsuite/libgomp.fortran/vla5.f90: Likewise.
12045 * testsuite/libgomp.fortran/vla6.f90: Likewise.
12046 * testsuite/libgomp.fortran/vla7.f90: Likewise.
12047 * testsuite/libgomp.fortran/vla8.f90: Likewise.
12048 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
12049 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
12050 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
12051 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
12052 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
12053 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
12054 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
12055 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
12056 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
12057 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
12058 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
12059 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
12060 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
12061 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
12062 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
12063 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
12064 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
12065 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
12066 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
12067 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
12068 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
12069 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
12070 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
12071 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
12072 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
12073 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
12074 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
12075 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
12076 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12077 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
12078 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
12079 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12080 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12081 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12082 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12083 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12084 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
12085 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
12086 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
12087 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
12088 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
12089 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12090 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
12091 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
12092 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
12093 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
12094 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
12095 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
12096 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
12097 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
12098 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
12099 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
12100 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
12101 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12102 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
12103 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
12104 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
12105 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
12106 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
12107 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
12108 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
12109 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
12110 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
12111 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12112 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
12113 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
12114 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
12115 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12116 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
12117 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
12118 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
12119 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
12120 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
12121 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
12122 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
12123 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
12124 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
12125 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
12126 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
12127 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
12128 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
12129 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
12130 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
12131 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
12132 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
12133 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
12134 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
12135 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
12136 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
12137 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
12138 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
12139 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
12140 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
12141 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
12143 2018-03-20 Richard Biener <rguenther@suse.de>
12145 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
12146 parallelizable loop.
12148 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12151 * configure: Regenerate.
12153 2018-02-16 Jakub Jelinek <jakub@redhat.com>
12156 * libgomp.fortran/pr84418-1.f90: New test.
12157 * libgomp.fortran/pr84418-2.f90: New test.
12159 2018-02-14 Jakub Jelinek <jakub@redhat.com>
12162 * testsuite/libgomp.fortran/threadprivate4.f90: Add
12163 -std=f2003 -fall-intrinsics into dg-additional-options.
12165 2018-02-08 Martin Jambor <mjambor@suse.cz>
12167 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
12170 2018-02-08 Martin Jambor <mjambor@suse.cz>
12172 * testsuite/libgomp.hsa.c/staticvar.c: New test.
12174 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12176 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
12177 [__cplusplus]: Declare extern "C".
12179 2018-02-07 Tom de Vries <tom@codesourcery.com>
12182 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
12184 2018-01-29 Christoph Spiel <cspiel@freenet.de>
12185 Jakub Jelinek <jakub@redhat.com>
12188 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
12189 instead of omp_lock_t.
12191 2018-01-25 Tom de Vries <tom@codesourcery.com>
12194 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
12196 2018-01-24 Tom de Vries <tom@codesourcery.com>
12199 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
12201 2018-01-24 Tom de Vries <tom@codesourcery.com>
12204 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
12206 2018-01-19 Tom de Vries <tom@codesourcery.com>
12207 Cesar Philippidis <cesar@codesourcery.com>
12210 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
12211 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
12213 2018-01-03 Jakub Jelinek <jakub@redhat.com>
12215 Update copyright years.
12217 * libgomp.texi: Bump @copying's copyright year.
12219 2017-12-30 Tom de Vries <tom@codesourcery.com>
12222 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
12223 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
12225 2017-12-27 Tom de Vries <tom@codesourcery.com>
12228 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
12229 (test_nonstatic): Fix return type to workaround PR83046.
12231 2017-12-05 Jakub Jelinek <jakub@redhat.com>
12234 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
12235 j suffix instead of i.
12236 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
12239 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
12241 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
12242 call to acc_wait (1).
12244 2017-11-24 Jakub Jelinek <jakub@redhat.com>
12247 * testsuite/libgomp.fortran/pr81304.f90: New test.
12249 2017-11-23 Jakub Jelinek <jakub@redhat.com>
12252 * libgomp.fortran/pr81841.f90: New test.
12254 2017-11-22 Jakub Jelinek <jakub@redhat.com>
12257 * target.c (gomp_target_init): Compute lengths just once and
12258 use them in both malloc size and subsequent copying.
12260 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12262 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
12263 * acinclude.m4: Add cet.m4.
12264 * configure: Regenerate.
12265 * Makefile.in: Likewise.
12266 * testsuite/Makefile.in: Likewise.
12268 2017-11-15 Tom de Vries <tom@codesourcery.com>
12270 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
12271 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
12272 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
12273 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
12274 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
12275 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
12277 2017-11-14 Tom de Vries <tom@codesourcery.com>
12279 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
12280 non-nvidia devices.
12282 2017-11-07 Jakub Jelinek <jakub@redhat.com>
12285 * testsuite/libgomp.c++/pr82835.C: New test.
12287 2017-11-06 Martin Liska <mliska@suse.cz>
12289 * testsuite/libgomp.c++/loop-2.C: Return a value
12290 for functions with non-void return type, or change type to void,
12291 or add -Wno-return-type for test.
12292 * testsuite/libgomp.c++/loop-4.C: Likewise.
12293 * testsuite/libgomp.c++/parallel-1.C: Likewise.
12294 * testsuite/libgomp.c++/shared-1.C: Likewise.
12295 * testsuite/libgomp.c++/single-1.C: Likewise.
12296 * testsuite/libgomp.c++/single-2.C: Likewise.
12298 2017-10-31 Tom de Vries <tom@codesourcery.com>
12300 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
12301 "do {} while (false)".
12302 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
12303 after HSA_DEBUG call.
12305 2017-10-28 Jakub Jelinek <jakub@redhat.com>
12307 * target.c (struct gomp_coalesce_buf): New type.
12308 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
12309 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
12310 (gomp_copy_host2dev): Add CBUF argument, if copying into
12311 the cached ranges, memcpy into buffer instead of copying
12313 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
12314 Add CBUF argument, pass it through to other calls.
12315 (gomp_map_vars): Aggregate copies from host to device if small enough
12316 and with small enough gaps in between into memcpy into a buffer and
12317 fewer host to device copies from the buffer.
12318 (gomp_update): Adjust gomp_copy_host2dev caller.
12320 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
12322 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
12324 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
12325 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
12326 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
12327 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
12329 2017-10-16 Tom de Vries <tom@codesourcery.com>
12331 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
12332 openacc_nvidia_accel_selected.
12333 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
12334 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
12335 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
12336 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
12337 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
12338 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
12339 openacc_nvidia_accel_selected. Skip for shared memory device.
12340 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
12341 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
12343 2017-10-09 Martin Jambor <mjambor@suse.cz>
12346 * testsuite/libgomp.hsa.c/pr82416.c: New test.
12348 2017-10-07 Tom de Vries <tom@codesourcery.com>
12350 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
12351 Remove acc_device_nvidia references.
12352 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
12355 2017-10-05 Tom de Vries <tom@codesourcery.com>
12357 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
12358 vector_length(32) clause from acc parallel directive.
12359 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
12361 2017-10-04 Tom de Vries <tom@codesourcery.com>
12363 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
12364 (main): Reduce sum of arr elements. Assert that hres is exactly
12365 representable in 32-bit floating point.
12366 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
12367 (main): Reduce sum of arr elements. Assert that hres and hmres are
12368 exactly representable in 32-bit floating point.
12369 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
12371 2017-09-28 Tom de Vries <tom@codesourcery.com>
12373 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
12375 * testsuite/libgomp.c++/pr69393.C: Same.
12376 * testsuite/libgomp.c++/taskloop-1.C: Same.
12377 * testsuite/libgomp.c++/taskloop-3.C: Same.
12378 * testsuite/libgomp.c++/taskloop-4.C: Same.
12379 * testsuite/libgomp.c/for-4.c: Same.
12380 * testsuite/libgomp.c/pr66199-3.c: Same.
12381 * testsuite/libgomp.c/pr66199-4.c: Same.
12382 * testsuite/libgomp.c/pr66199-6.c: Same.
12383 * testsuite/libgomp.c/taskloop-1.c: Same.
12384 * testsuite/libgomp.c/taskloop-3.c: Same.
12385 * testsuite/libgomp.c/taskloop-4.c: Same.
12386 * testsuite/libgomp.fortran/aligned1.f03: Same.
12387 * testsuite/libgomp.fortran/condinc1.f: Same.
12388 * testsuite/libgomp.fortran/condinc3.f90: Same.
12389 * testsuite/libgomp.fortran/crayptr1.f90: Same.
12390 * testsuite/libgomp.fortran/crayptr2.f90: Same.
12391 * testsuite/libgomp.fortran/crayptr3.f90: Same.
12392 * testsuite/libgomp.fortran/omp_cond1.f: Same.
12393 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
12394 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
12395 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
12396 * testsuite/libgomp.fortran/recursion1.f90: Same.
12397 * testsuite/libgomp.fortran/target2.f90: Same.
12398 * testsuite/libgomp.fortran/target5.f90: Same.
12399 * testsuite/libgomp.fortran/task3.f90: Same.
12401 2017-09-28 Tom de Vries <tom@codesourcery.com>
12403 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
12404 vector_length(32) clause from acc parallel directive.
12405 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
12407 2017-09-27 Tom de Vries <tom@codesourcery.com>
12409 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
12410 Remove acc_device_nvidia references.
12412 2017-09-16 Tom de Vries <tom@codesourcery.com>
12415 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
12417 2017-09-14 Tom de Vries <tom@codesourcery.com>
12419 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
12420 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
12421 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
12422 * testsuite/libgomp.c/c.exp: Include test-cases from
12423 libgomp.c-c++-common.
12424 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
12427 2017-09-14 Jakub Jelinek <jakub@redhat.com>
12430 * testsuite/libgomp.c++/pr81314.C: New test.
12432 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
12434 * libgomp.texi (Top): www.openacc.org now uses https.
12435 (Enabling OpenACC): Ditto.
12436 (acc_get_num_devices): Ditto.
12437 (acc_set_device_type): Ditto.
12438 (acc_get_device_type): Ditto.
12439 (acc_set_device_num): Ditto.
12440 (acc_get_device_num): Ditto.
12441 (acc_async_test): Ditto.
12442 (acc_async_test_all): Ditto.
12444 (acc_wait_all): Ditto.
12445 (acc_wait_all_async): Ditto.
12446 (acc_wait_async): Ditto.
12448 (acc_shutdown): Ditto.
12449 (acc_on_device): Ditto.
12450 (acc_malloc): Ditto.
12452 (acc_copyin): Ditto.
12453 (acc_present_or_copyin): Ditto.
12454 (acc_create): Ditto.
12455 (acc_present_or_create): Ditto.
12456 (acc_copyout): Ditto.
12457 (acc_delete): Ditto.
12458 (acc_update_device): Ditto.
12459 (acc_update_self): Ditto.
12460 (acc_map_data): Ditto.
12461 (acc_unmap_data): Ditto.
12462 (acc_deviceptr): Ditto.
12463 (acc_hostptr): Ditto.
12464 (acc_is_present): Ditto.
12465 (acc_memcpy_to_device): Ditto.
12466 (acc_memcpy_from_device): Ditto.
12467 (acc_get_current_cuda_device): Ditto.
12468 (acc_get_current_cuda_context): Ditto.
12469 (acc_get_cuda_stream): Ditto.
12470 (acc_set_cuda_stream): Ditto.
12471 (ACC_DEVICE_TYPE): Ditto.
12472 (ACC_DEVICE_NUM): Ditto.
12473 (OpenACC Library Interoperability): Ditto.
12475 2017-08-09 Jakub Jelinek <jakub@redhat.com>
12478 * testsuite/libgomp.c/pr81687-1.c: New test.
12479 * testsuite/libgomp.c/pr81687-2.c: New test.
12481 2017-08-07 Jakub Jelinek <jakub@redhat.com>
12484 * testsuite/libgomp.c/pr69389.c: New test.
12485 * testsuite/libgomp.c++/pr69389.C: New test.
12487 2017-08-07 Tom de Vries <tom@codesourcery.com>
12489 PR middle-end/78266
12490 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
12491 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
12493 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12496 * testsuite/libgomp.c/pr45784.c: New test.
12497 * testsuite/libgomp.c++/pr45784.C: New test.
12499 2017-07-19 Tom de Vries <tom@codesourcery.com>
12501 * testsuite/libgomp.oacc-c/vec.c: New test.
12503 2017-07-03 Tom de Vries <tom@codesourcery.com>
12505 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
12507 2017-06-27 Tom de Vries <tom@codesourcery.com>
12509 * plugin/plugin-nvptx.c (notify_var): New function.
12510 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
12512 2017-06-27 Tom de Vries <tom@codesourcery.com>
12514 * env.c (parse_unsigned_long_1): Factor out of ...
12515 (parse_unsigned_long): ... here.
12516 (parse_int_1): Factor out of ...
12517 (parse_int): ... here.
12518 (parse_int_secure): New function.
12519 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
12520 * secure_getenv.h: Factor out of ...
12521 * plugin/plugin-hsa.c: ... here.
12522 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
12524 2017-06-21 Jakub Jelinek <jakub@redhat.com>
12527 * testsuite/libgomp.c++/pr81130.C: New test.
12529 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12531 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
12533 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
12534 dg-xfail-run-if default args.
12536 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12538 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
12539 * testsuite/libgomp.c/pr39591-3.c: Likewise.
12541 2017-05-30 Jakub Jelinek <jakub@redhat.com>
12544 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
12545 (gomp_affinity_init_level): Use it. Always analyze the core and thread
12546 sibling lists, depending on level just pick up what CPUs to put
12547 together into a place vs. whether add multiple ordered places.
12549 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
12551 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
12552 * libgomp.map (OACC_2.0.1): Add these.
12553 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
12554 for "acc_wait", and "acc_wait_all", respectively.
12555 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
12556 for "acc_wait", and "acc_wait_all", respectively.
12557 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
12558 * libgomp.texi (acc_wait, acc_wait_all): Update.
12559 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
12560 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
12561 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
12563 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
12564 acc_present_or_copyin and acc_present_or_create procedures,
12566 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
12567 generally different variants of OpenACC Runtime Library functions.
12568 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12570 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
12571 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
12573 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
12574 of preprocessor definitions.
12575 * libgomp.h (strong_alias): Guard by "#ifdef
12576 HAVE_ATTRIBUTE_ALIAS".
12577 * oacc-mem.c: Provide "acc_pcreate" as alias for
12578 "acc_present_or_create", and "acc_pcopyin" as alias for
12579 "acc_present_or_copyin".
12580 * libgomp.map: New version "OACC_2.0.1".
12581 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
12582 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
12583 its content into...
12584 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
12587 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
12588 when disabling nvptx offloading.
12590 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
12592 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
12593 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
12594 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
12596 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
12597 * testsuite/lib/libgomp.exp
12598 (check_effective_target_openacc_nvidia_accel_configured): New
12600 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
12601 (check_effective_target_c++): New procs.
12602 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
12603 (check_effective_target_c++): Likewise.
12605 2017-05-22 Jakub Jelinek <jakub@redhat.com>
12607 PR middle-end/80809
12608 * testsuite/libgomp.c/pr80809-2.c: New test.
12609 * testsuite/libgomp.c/pr80809-3.c: New test.
12611 PR middle-end/80809
12612 * testsuite/libgomp.c/pr80809-1.c: New test.
12614 PR middle-end/80853
12615 * testsuite/libgomp.c/pr80853.c: New test.
12617 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
12619 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
12620 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
12621 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
12622 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
12623 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
12625 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
12626 Debug output for failure.
12628 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12630 * testsuite/lib/libgomp.exp: Load scanlang.exp.
12632 2017-04-27 Jakub Jelinek <jakub@redhat.com>
12635 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
12636 bootstrap compare failures.
12638 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
12640 * testsuite/libgomp.c/target-36.c: New testcase.
12642 2017-04-13 Jakub Jelinek <jakub@redhat.com>
12644 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
12647 2017-04-11 Jakub Jelinek <jakub@redhat.com>
12650 * testsuite/libgomp.c/pr80394.c: New test.
12652 2017-04-04 Jakub Jelinek <jakub@redhat.com>
12655 * config/posix/thread-stacksize.h: New file.
12656 * config/darwin/thread-stacksize.h: New file.
12657 * config/nvptx/thread-stacksize.h: New file.
12658 * env.c: Include thread-stacksize.h.
12659 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
12660 instead of 0. Call pthread_attr_setstacksize even if
12661 GOMP_DEFAULT_STACKSIZE is non-zero.
12663 2017-03-30 Jakub Jelinek <jakub@redhat.com>
12665 * env.c (initialize_env): Initialize stacksize to 0.
12667 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
12670 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
12672 2017-03-08 Jakub Jelinek <jakub@redhat.com>
12675 * testsuite/libgomp.c/pr79940.c: New test.
12677 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12679 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
12681 Add __float128 options.
12683 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
12685 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
12686 hppa*-*-* dg-skip-if directive.
12688 2017-02-09 Jakub Jelinek <jakub@redhat.com>
12690 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
12691 dg-skip-if directive into a comment.
12693 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
12694 Chung-Lin Tang <cltang@codesourcery.com>
12696 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
12697 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
12698 add additional case.
12699 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
12700 "openacc_nvidia_accel_selected".
12701 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
12702 Add num_workers(8) clause.
12704 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
12706 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
12708 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
12709 include complex.h on hppa*-*-hpux*.
12710 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
12712 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
12714 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
12716 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
12717 GOMP_OFFLOAD_openacc_exec. Adjust all users.
12718 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
12719 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
12720 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
12721 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
12722 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
12723 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
12724 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
12725 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
12727 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
12729 * libgomp-plugin.h: #include <stdbool.h>.
12730 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
12731 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
12732 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
12733 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
12734 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
12735 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
12736 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
12737 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
12738 (GOMP_OFFLOAD_openacc_register_async_cleanup)
12739 (GOMP_OFFLOAD_openacc_async_test)
12740 (GOMP_OFFLOAD_openacc_async_test_all)
12741 (GOMP_OFFLOAD_openacc_async_wait)
12742 (GOMP_OFFLOAD_openacc_async_wait_async)
12743 (GOMP_OFFLOAD_openacc_async_wait_all)
12744 (GOMP_OFFLOAD_openacc_async_wait_all_async)
12745 (GOMP_OFFLOAD_openacc_async_set_async)
12746 (GOMP_OFFLOAD_openacc_create_thread_data)
12747 (GOMP_OFFLOAD_openacc_destroy_thread_data)
12748 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
12749 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
12750 (GOMP_OFFLOAD_openacc_get_cuda_stream)
12751 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
12752 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
12754 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
12755 (GOMP_OFFLOAD_unload_image): Fix argument types.
12757 2017-01-26 Jakub Jelinek <jakub@redhat.com>
12759 * testsuite/lib/libgomp.exp
12760 (check_effective_target_hsa_offloading_selected_nocache): Fix up
12761 check_compile invocation. Fix up removal of executable. Drop
12762 bogus "2>&1" argument.
12764 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
12767 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
12768 Martin Jambor <mjambor@suse.cz>
12770 * plugin/hsa.h: Moved to top level include.
12771 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
12773 2017-01-21 Jakub Jelinek <jakub@redhat.com>
12776 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
12777 of cat to get version from BASE-VER file.
12778 * testsuite/Makefile.in: Regenerated.
12780 2017-01-19 Jakub Jelinek <jakub@redhat.com>
12782 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
12785 2017-01-17 Jakub Jelinek <jakub@redhat.com>
12787 * plugin/hsa.h: Add GCC runtime library exception.
12788 * plugin/hsa_ext_finalize.h: Likewise.
12790 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
12791 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
12792 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
12793 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
12794 plugin/include/cuda as include dir and -ldl instead of -lcuda as
12795 library to link ptx plugin against.
12796 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
12797 (CUDA_CALLS): Define.
12798 (cuda_lib, cuda_lib_inited): New variables.
12799 (init_cuda_lib): New function.
12800 (CUDA_CALL_PREFIX): Define.
12801 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
12802 (CUDA_CALL): Use FN instead of (FN).
12803 (CUDA_CALL_NOCHECK): Define.
12804 (cuda_error, fini_streams_for_device, select_stream_for_async,
12805 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
12806 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
12807 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
12808 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
12810 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
12812 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
12813 Use CUDA_CALL_NOCHECK.
12814 * plugin/cuda/cuda.h: New file.
12815 * config.h.in: Regenerated.
12816 * configure: Regenerated.
12819 * configure.ac: Add GCC_BASE_VER.
12820 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
12821 get version from BASE-VER file.
12822 * testsuite/Makefile.in: Regenerated.
12823 * configure: Regenerated.
12824 * Makefile.in: Regenerated.
12826 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12829 * Makefile.am: Make fincludedir multilib-aware.
12830 * Makefile.in: Regenerate.
12832 2017-01-01 Jakub Jelinek <jakub@redhat.com>
12834 Update copyright years.
12836 * libgomp.texi: Bump @copying's copyright year.
12838 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12840 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
12841 pthread_spinlock_t instead of gomp_mutex_t lock.
12842 (gomp_get_thread_pool): Likewise.
12843 (gomp_release_thread_pool): Likewise.
12844 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
12847 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
12849 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
12850 thread pool in case nthreads == 1.
12852 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12854 * config/nvptx/env.c: Delete.
12855 * icv.c: Move definitions of ICV variables back ...
12856 * env.c: ...here. Do not compile environment-related functionality if
12857 LIBGOMP_OFFLOADED_ONLY is set.
12859 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12861 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
12862 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
12863 * configure: Regenerate.
12864 * config.h.in: Likewise.
12866 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
12868 * Makefile.in: Regenerate with automake-1.11.6.
12869 * aclocal.m4: Likewise.
12870 * configure: Likewise.
12871 * testsuite/Makefile.in: Likewise.
12873 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
12875 * config/nvptx/critical.c: Delete to use generic implementation.
12877 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
12879 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
12880 ../../affinity.c as fallback.
12881 * config/nvptx/affinity.c: Delete to use fallback implementation.
12883 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
12884 Jakub Jelinek <jakub@redhat.com>
12885 Dmitry Melnik <dm@ispras.ru>
12887 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
12888 * Makefile.in. Regenerate.
12889 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
12890 (LIBGOMP_USE_PTHREADS): ...here; new define.
12891 * configure: Regenerate.
12892 * config.h.in: Likewise.
12893 * config/posix/affinity.c: Move to...
12894 * affinity.c: ...here (new file). Guard use of Pthreads-specific
12895 interface by LIBGOMP_USE_PTHREADS.
12896 * critical.c: Split out GOMP_atomic_{start,end} into...
12897 * atomic.c: ...here (new file).
12898 * env.c: Split out ICV definitions into...
12899 * icv.c: ...here (new file) and...
12900 * icv-device.c: ...here. New file.
12901 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
12902 (gomp_destroy_lock_30): Ditto.
12903 (gomp_set_lock_30): Ditto.
12904 (gomp_unset_lock_30): Ditto.
12905 (gomp_test_lock_30): Ditto.
12906 (gomp_init_nest_lock_30): Ditto.
12907 (gomp_destroy_nest_lock_30): Ditto.
12908 (gomp_set_nest_lock_30): Ditto.
12909 (gomp_unset_nest_lock_30): Ditto.
12910 (gomp_test_nest_lock_30): Ditto.
12912 * config/nvptx/lock.c: New.
12913 * config/nvptx/bar.c: New.
12914 * config/nvptx/bar.h: New.
12915 * config/nvptx/doacross.h: New.
12916 * config/nvptx/error.c: New.
12917 * config/nvptx/icv-device.c: New.
12918 * config/nvptx/mutex.h: New.
12919 * config/nvptx/pool.h: New.
12920 * config/nvptx/proc.c: New.
12921 * config/nvptx/ptrlock.h: New.
12922 * config/nvptx/sem.h: New.
12923 * config/nvptx/simple-bar.h: New.
12924 * config/nvptx/target.c: New.
12925 * config/nvptx/task.c: New.
12926 * config/nvptx/team.c: New.
12927 * config/nvptx/time.c: New.
12928 * config/posix/simple-bar.h: New.
12929 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
12930 (gomp_num_teams_var): Declare.
12931 (struct gomp_thread_pool): Change threads_dock member to
12932 gomp_simple_barrier_t.
12933 [__nvptx__] (gomp_thread): New implementation.
12934 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
12935 (gomp_thread_destructor): Ditto.
12936 (gomp_init_thread_affinity): Ditto.
12937 * team.c: Guard uses of Pthreads-specific interfaces by
12938 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
12939 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
12940 * config/nvptx/alloc.c: Delete.
12941 * config/nvptx/barrier.c: Ditto.
12942 * config/nvptx/fortran.c: Ditto.
12943 * config/nvptx/iter.c: Ditto.
12944 * config/nvptx/iter_ull.c: Ditto.
12945 * config/nvptx/loop.c: Ditto.
12946 * config/nvptx/loop_ull.c: Ditto.
12947 * config/nvptx/ordered.c: Ditto.
12948 * config/nvptx/parallel.c: Ditto.
12949 * config/nvptx/priority_queue.c: Ditto.
12950 * config/nvptx/sections.c: Ditto.
12951 * config/nvptx/single.c: Ditto.
12952 * config/nvptx/splay-tree.c: Ditto.
12953 * config/nvptx/work.c: Ditto.
12954 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
12955 -foffload=-lgfortran in addition to -lgfortran.
12956 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
12957 * plugin/plugin-nvptx.c: Include <limits.h>.
12958 (struct targ_fn_descriptor): Add new fields.
12959 (struct ptx_device): Ditto. Set them...
12960 (nvptx_open_device): ...here.
12961 (nvptx_adjust_launch_bounds): New.
12962 (nvptx_host2dev): Allow NULL 'nvthd'.
12963 (nvptx_dev2host): Ditto.
12964 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
12965 (link_ptx): Adjust log sizes.
12966 (nvptx_host2dev): Allow NULL 'nvthd'.
12967 (nvptx_dev2host): Ditto.
12968 (nvptx_set_clocktick): New. Use it...
12969 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
12971 (GOMP_OFFLOAD_dev2dev): New.
12972 (nvptx_adjust_launch_bounds): New.
12973 (nvptx_stacks_size): New.
12974 (nvptx_stacks_alloc): New.
12975 (nvptx_stacks_free): New.
12976 (GOMP_OFFLOAD_run): New.
12977 (GOMP_OFFLOAD_async_run): New (stub).
12979 2016-11-23 Martin Jambor <mjambor@suse.cz>
12981 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
12982 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
12983 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
12985 2016-11-23 Martin Liska <mliska@suse.cz>
12986 Martin Jambor <mjambor@suse.cz>
12988 * plugin/hsa.h: New file.
12989 * plugin/hsa_ext_finalize.h: New file.
12990 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
12991 header file unistd.h, and functions secure_getenv, __secure_getenv,
12992 getuid, geteuid, getgid and getegid.
12993 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
12995 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
12996 Handle various cases of secure_getenv presence, add an implementation
12997 when we can test effective UID and GID.
12998 (struct hsa_runtime_fn_info): New structure.
12999 (hsa_runtime_fn_info hsa_fns): New variable.
13000 (hsa_runtime_lib): Likewise.
13001 (support_cpu_devices): Likewise.
13002 (init_enviroment_variables): Load newly introduced ENV
13004 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
13005 (hsa_fatal): Likewise.
13006 (DLSYM_FN): New macro.
13007 (init_hsa_runtime_functions): New function.
13008 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
13009 structure. Depending on environment, also allow CPU devices.
13010 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
13011 (get_kernarg_memory_region): Likewise.
13012 (GOMP_OFFLOAD_init_device): Likewise.
13013 (destroy_hsa_program): Likewise.
13014 (init_basic_kernel_info): New function.
13015 (GOMP_OFFLOAD_load_image): Use it.
13016 (create_and_finalize_hsa_program): Call hsa run-time functions via
13018 (create_single_kernel_dispatch): Likewise.
13019 (release_kernel_dispatch): Likewise.
13020 (init_single_kernel): Likewise.
13021 (parse_target_attributes): Allow up multiple HSA grid dimensions.
13022 (get_group_size): New function.
13023 (run_kernel): Likewise.
13024 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
13025 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
13027 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
13028 * testsuite/libgomp-test-support.exp.in: Likewise.
13029 * Makefile.in: Regenerated.
13030 * aclocal.m4: Likewise.
13031 * config.h.in: Likewise.
13032 * configure: Likewise.
13033 * testsuite/Makefile.in: Likewise.
13035 2016-11-15 Martin Jambor <mjambor@suse.cz>
13036 Alexander Monakov <amonakov@ispras.ru>
13038 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
13039 mapping clauses to target constructs.
13040 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
13042 2016-11-15 Matthias Klose <doko@ubuntu.com>
13044 * configure: Regenerate.
13046 2016-11-10 Jakub Jelinek <jakub@redhat.com>
13048 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
13049 * omp_lib.h.in (openmp_version): Likewise.
13050 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
13052 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
13054 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
13055 (fib_wrapper): Add map(from: x) clause.
13056 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
13057 (e_53_2): Likewise.
13058 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
13059 (accum): Add map(tmp) clause.
13060 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
13061 (accum): Add map(tofrom: tmp) clause.
13062 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
13063 (gramSchmidt): Likewise.
13064 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
13065 map(tofrom: sum) clause.
13066 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
13067 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
13068 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
13069 only allowed on the loop iterator.
13070 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
13071 * testsuite/libgomp.fortran/taskloop2.f90: New test.
13072 * testsuite/libgomp.fortran/taskloop4.f90: New test.
13073 * testsuite/libgomp.fortran/doacross1.f90: New test.
13074 * testsuite/libgomp.fortran/doacross3.f90: New test.
13075 * testsuite/libgomp.fortran/taskloop1.f90: New test.
13076 * testsuite/libgomp.fortran/taskloop3.f90: New test.
13077 * testsuite/libgomp.fortran/doacross2.f90: New test.
13078 * testsuite/libgomp.c/doacross-1.c (main): Add missing
13079 #pragma omp atomic read.
13080 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13081 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
13083 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
13084 Nathan Sidwell <nathan@acm.org>
13086 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
13087 to determine default geometry.
13088 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
13091 2016-11-01 Jakub Jelinek <jakub@redhat.com>
13093 * hashtab.h: Use standard GPLv3 with runtime exception
13096 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
13098 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
13099 size when allocating new thread.
13101 2016-09-14 Marek Polacek <polacek@redhat.com>
13103 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
13105 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13108 * testsuite/libgomp.fortran/pr71014.f90: New test.
13110 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13112 PR middle-end/70895
13113 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
13114 firstprivate clauses.
13115 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
13117 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13118 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
13119 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
13120 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
13121 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
13122 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
13123 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13124 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
13125 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13126 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13127 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13128 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
13130 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
13133 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
13135 2016-08-08 Jakub Jelinek <jakub@redhat.com>
13138 * testsuite/libgomp.c++/pr58706.C: New test.
13140 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
13142 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
13143 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
13144 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
13146 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
13147 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
13149 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
13151 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
13152 test, and don't hardcode -O0.
13154 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
13156 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
13158 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
13160 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
13163 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
13165 PR middle-end/71734
13166 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
13167 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
13169 2016-07-01 Jakub Jelinek <jakub@redhat.com>
13172 * testsuite/libgomp.fortran/associate3.f90: New test.
13174 2016-06-17 Jakub Jelinek <jakub@redhat.com>
13176 * testsuite/libgomp.c++/target-21.C: New test.
13178 2016-06-16 Jakub Jelinek <jakub@redhat.com>
13180 * testsuite/libgomp.c++/target-20.C: New test.
13182 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13183 Cesar Philippidis <cesar@codesourcery.com>
13185 PR middle-end/71373
13186 * libgomp.oacc-c/nested-function-1.c: New file.
13187 * libgomp.oacc-c/nested-function-2.c: Likewise.
13188 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
13189 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
13190 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
13192 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
13195 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
13196 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
13197 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
13199 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
13201 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
13202 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
13204 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
13207 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
13209 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13211 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
13212 instead of invalid schedule(static, 0).
13213 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
13215 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13217 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
13218 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
13219 parameter, use to set async stream around call to gomp_unmap_vars,
13220 call gomp_unmap_vars() with 'do_copyfrom' set to true.
13221 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
13222 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
13223 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
13224 (event_add): Add int parameter, initialize 'val' field when
13225 adding new ptx_event struct.
13226 (nvptx_evec): Adjust event_add() call arguments.
13227 (nvptx_host2dev): Likewise.
13228 (nvptx_dev2host): Likewise.
13229 (nvptx_wait_async): Likewise.
13230 (nvptx_wait_all_async): Likewise.
13231 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
13232 pass to event_add() call.
13233 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
13235 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
13236 call openacc.register_async_cleanup_func() hook.
13237 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
13238 * target.c (gomp_copy_from_async): Delete function.
13239 (gomp_map_vars): Remove async_refcount.
13240 (gomp_unmap_vars): Likewise.
13241 (gomp_load_image_to_device): Likewise.
13242 (omp_target_associate_ptr): Likewise.
13243 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
13244 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
13245 (gomp_copy_from_async): Remove.
13247 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
13249 * target.c (gomp_device_copy): New function.
13250 (gomp_copy_host2dev): Likewise.
13251 (gomp_copy_dev2host): Likewise.
13252 (gomp_free_device_memory): Likewise.
13253 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
13254 (gomp_map_pointer): Likewise.
13255 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
13256 NULL value from alloc_func plugin hook.
13257 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
13258 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
13259 (gomp_unmap_vars): Likewise.
13260 (gomp_update): Adjust to call gomp_copy_dev2host and
13261 gomp_copy_host2dev functions.
13262 (gomp_unload_image_from_device): Handle false value from
13263 unload_image_func plugin hook.
13264 (gomp_init_device): Handle false value from init_device_func
13266 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
13267 (omp_target_free): Adjust to call gomp_free_device_memory.
13268 (omp_target_memcpy): Handle return values from host2dev_func,
13269 dev2host_func, and dev2dev_func plugin hooks.
13270 (omp_target_memcpy_rect_worker): Likewise.
13271 (gomp_target_fini): Handle false value from fini_device_func
13273 * libgomp.h (struct gomp_device_descr): Adjust return type of
13274 init_device_func, fini_device_func, unload_image_func, free_func,
13275 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
13276 * oacc-init.c (acc_shutdown_1): Handle false value from
13277 fini_device_func plugin hook.
13278 * oacc-host.c (host_init_device): Change return type to bool.
13279 (host_fini_device): Likewise.
13280 (host_unload_image): Likewise.
13281 (host_free): Likewise.
13282 (host_dev2host): Likewise.
13283 (host_host2dev): Likewise.
13284 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
13285 (acc_memcpy_to_device): Likewise.
13286 (acc_memcpy_from_device): Likewise.
13287 (delete_copyout): Add libfnname parameter, handle free_func
13288 hook fatal error case.
13289 (acc_delete): Adjust delete_copyout call.
13290 (acc_copyout): Likewise.
13291 (update_dev_host): Move gomp_mutex_unlock to after
13292 host2dev/dev2host hook calls.
13294 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
13295 to 'hsa_error_msg', for clarity.
13296 (hsa_fatal): Likewise.
13297 (hsa_error): New function.
13298 (init_hsa_context): Change return type to bool, adjust to return
13300 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
13302 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
13303 return false on error.
13304 (get_agent_info): Adjust to return NULL on error.
13305 (destroy_hsa_program): Change return type to bool, adjust to
13306 return false on error.
13307 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
13308 (destroy_module): Change return type to bool, adjust to
13309 return false on error.
13310 (GOMP_OFFLOAD_unload_image): Likewise.
13311 (GOMP_OFFLOAD_fini_device): Likewise.
13312 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
13313 (GOMP_OFFLOAD_free): Change to return false when called.
13314 (GOMP_OFFLOAD_dev2host): Likewise.
13315 (GOMP_OFFLOAD_host2dev): Likewise.
13316 (GOMP_OFFLOAD_dev2dev): Likewise.
13318 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
13319 (CUDA_CALL): Likewise.
13320 (CUDA_CALL_ASSERT): Likewise.
13321 (map_init): Change return type to bool, use CUDA_CALL* macros.
13322 (map_fini): Likewise.
13323 (init_streams_for_device): Change return type to bool, adjust
13325 (fini_streams_for_device): Change return type to bool, adjust
13327 (select_stream_for_async): Release stream_lock before calls to
13328 GOMP_PLUGIN_fatal, adjust call to map_init.
13329 (nvptx_init): Use CUDA_CALL* macros.
13330 (nvptx_attach_host_thread_to_device): Change return type to bool,
13331 use CUDA_CALL* macros.
13332 (nvptx_open_device): Use CUDA_CALL* macros.
13333 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
13335 (nvptx_get_num_devices): Use CUDA_CALL* macros.
13336 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
13337 (nvptx_exec): Use CUDA_CALL* macros.
13338 (nvptx_alloc): Use CUDA_CALL* macros.
13339 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
13340 (nvptx_host2dev): Likewise.
13341 (nvptx_dev2host): Likewise.
13342 (nvptx_wait): Use CUDA_CALL* macros.
13343 (nvptx_wait_async): Likewise.
13344 (nvptx_wait_all): Likewise.
13345 (nvptx_wait_all_async): Likewise.
13346 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
13347 use CUDA_CALL* macros, adjust call to map_fini.
13348 (GOMP_OFFLOAD_init_device): Change return type to bool,
13349 adjust code accordingly.
13350 (GOMP_OFFLOAD_fini_device): Likewise.
13351 (GOMP_OFFLOAD_load_image): Adjust calls to
13352 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
13353 use CUDA_CALL* macros.
13354 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
13356 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
13357 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
13358 handle error return.
13359 (GOMP_OFFLOAD_dev2host): Likewise.
13360 (GOMP_OFFLOAD_host2dev): Likewise.
13361 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
13362 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
13364 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
13366 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
13367 (acc_free): Likewise.
13368 (acc_memcpy_to_device): Likewise.
13369 (acc_memcpy_from_device): Likewise.
13370 (acc_deviceptr): Likewise.
13371 (acc_hostptr): Likewise.
13372 (acc_is_present): Likewise.
13373 (acc_map_data): Likewise.
13374 (acc_unmap_data): Likewise.
13375 (present_create_copy): Likewise.
13376 (delete_copyout): Likewise.
13377 (update_dev_host): Likewise.
13378 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
13379 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
13380 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
13381 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
13382 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
13383 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
13384 it only runs on nvptx targets.
13385 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
13386 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
13387 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
13388 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
13389 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
13390 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
13391 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
13392 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
13393 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
13394 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
13395 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
13396 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
13397 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
13398 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
13399 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
13400 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
13401 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
13402 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
13403 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
13404 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
13405 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
13406 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
13407 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
13409 2016-05-23 Martin Jambor <mjambor@suse.cz>
13411 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
13413 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
13415 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
13416 to gomp_init_targets_once.
13417 (acc_set_device_type): Remove !cached_base_dev condition on call to
13418 gomp_init_targets_once, move call to before acc_device_lock acquire,
13420 (acc_get_device_num): Remove !cached_base_dev condition on call to
13421 gomp_init_targets_once.
13422 (acc_set_device_num): Likewise.
13424 2016-05-16 Martin Jambor <mjambor@suse.cz>
13426 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
13428 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
13430 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
13431 expected partitioning.
13433 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
13435 PR middle-end/70626
13436 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
13437 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
13438 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
13440 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
13442 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
13445 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13447 PR middle-end/70680
13448 * testsuite/libgomp.c/pr70680-1.c: New test.
13449 * testsuite/libgomp.c/pr70680-2.c: New test.
13451 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13453 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
13454 pass parameter variables to subroutines.
13456 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
13458 PR middle-end/70643
13459 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
13461 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
13464 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
13465 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13467 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
13469 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
13470 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
13471 GOACC_declare prototype.
13473 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
13474 Merge this file, and...
13475 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
13476 ... this file, and...
13477 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
13478 ... this file, and...
13479 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
13480 ... this file, and...
13481 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
13482 ... this file, and...
13483 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
13484 ... this file, and...
13485 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
13486 ... this file, and...
13487 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
13488 ... this file, and...
13489 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
13490 ... this file, and...
13491 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
13492 ... this file, and...
13493 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
13494 ... this file, and...
13495 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
13496 ... this file, and...
13497 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
13498 ... this file into...
13499 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
13502 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
13503 Make failure observable.
13505 2016-04-12 Jakub Jelinek <jakub@redhat.com>
13507 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
13509 * target.c (gomp_target_fallback_firstprivate,
13510 gomp_target_unshare_firstprivate): Removed.
13511 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
13512 before waiting for dependencies.
13513 (gomp_target_task_fn): Don't copy firstprivate vars here.
13514 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
13515 firstprivate_copies here.
13516 (gomp_create_target_task): Don't initialize firstprivate_copies field.
13517 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
13518 explicit/implicit firstprivate.
13520 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
13524 PR tree-optimization/70373
13525 PR middle-end/70533
13526 PR middle-end/70534
13527 PR middle-end/70535
13528 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
13530 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
13532 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
13534 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
13536 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
13538 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
13540 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
13542 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
13544 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
13546 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
13547 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
13548 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
13549 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
13551 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
13553 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
13555 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
13557 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
13559 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
13560 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
13561 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
13562 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
13563 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
13564 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
13566 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
13567 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
13568 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
13569 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
13570 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
13571 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
13572 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
13573 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
13574 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
13575 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
13576 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
13577 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
13578 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
13579 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
13580 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
13582 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
13583 James Norris <jnorris@codesourcery.com>
13584 Nathan Sidwell <nathan@codesourcery.com>
13585 Julian Brown <julian@codesourcery.com>
13586 Cesar Philippidis <cesar@codesourcery.com>
13587 Chung-Lin Tang <cltang@codesourcery.com>
13588 Tom de Vries <tom@codesourcery.com>
13590 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
13591 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
13592 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
13593 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
13594 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
13595 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
13596 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
13597 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
13598 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
13600 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
13602 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
13604 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
13605 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
13606 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
13607 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
13609 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
13611 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
13612 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
13613 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
13614 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
13615 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
13616 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
13617 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
13618 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
13619 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
13620 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
13622 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
13623 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
13624 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
13626 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
13628 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
13630 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
13632 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
13634 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
13635 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
13636 ... this new file. Update.
13637 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
13638 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
13639 ... this new file. Update.
13640 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
13641 file. Incorporate...
13642 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
13644 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
13646 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
13648 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
13650 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
13652 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
13653 set-torture-options.
13655 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
13657 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
13659 * testsuite/libgomp.oacc-c/c.exp: Likewise.
13660 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
13661 -fno-builtin-acc_on_device instead of -O0.
13662 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
13664 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
13665 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
13667 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
13668 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
13669 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
13670 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
13671 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
13672 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
13673 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
13674 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
13675 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
13676 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
13677 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
13678 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
13679 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
13680 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
13681 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
13682 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
13683 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
13684 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
13686 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
13688 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
13691 2016-03-24 Martin Liska <mliska@suse.cz>
13693 * plugin/plugin-hsa.c (packet_store_release): New function
13694 that is taken from the HSA runtime manual.
13695 (GOMP_OFFLOAD_run): Use the function.
13697 2016-03-23 Jakub Jelinek <jakub@redhat.com>
13700 * testsuite/libgomp.c++/pr70376.C: New test.
13702 2016-03-23 Tom de Vries <tom@codesourcery.com>
13704 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
13705 initialization of lresult and lvresult.
13706 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
13708 2016-03-23 James Norris <jnorris@codesourcery.com>
13709 Daichi Fukuoka <dc-fukuoka@sgi.com>
13712 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
13713 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
13714 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
13715 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
13717 2016-03-23 Martin Liska <mliska@suse.cz>
13720 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
13721 argument just in case a dispatched kernel uses that argument.
13723 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
13725 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
13726 -ftree-parallelize-loops/-fopenacc changes.
13727 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
13729 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13731 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
13733 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
13735 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
13736 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
13738 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
13740 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
13741 always_ld_library_path the path to libgcc_s.
13743 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
13746 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
13748 2016-03-09 Tom de Vries <tom@codesourcery.com>
13750 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
13751 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
13752 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
13754 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
13755 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
13756 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
13757 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
13759 2016-03-07 Martin Jambor <mjambor@suse.cz>
13761 * testsuite/lib/libgomp.exp
13762 (check_effective_target_hsa_offloading_selected_nocache): New.
13763 (check_effective_target_hsa_offloading_selected): Likewise.
13764 * testsuite/libgomp.hsa.c/c.exp: Likewise.
13765 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
13766 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
13767 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
13768 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
13769 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
13770 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
13771 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
13772 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
13773 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
13774 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
13775 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
13776 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
13777 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
13778 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
13779 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
13780 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
13782 2016-03-07 Martin Jambor <mjambor@suse.cz>
13784 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
13785 non-shared memory accelerators.
13786 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
13787 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
13788 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
13789 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
13790 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
13791 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
13792 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
13793 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
13794 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
13796 2016-03-07 Martin Jambor <mjambor@suse.cz>
13798 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
13801 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13804 * testsuite/libgomp.c++/pr69555-1.C: New test.
13805 * testsuite/libgomp.c++/pr69555-2.C: New test.
13807 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
13808 Martin Jambor <mjambor@suse.cz>
13810 * testsuite/lib/libgomp.exp
13811 (check_effective_target_offload_device_shared_as): New proc.
13812 * testsuite/libgomp.c++/declare_target-1.C: New test.
13814 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
13817 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
13819 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
13821 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
13822 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
13824 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
13825 -ftree-parallelize-loops/-fopenacc changes.
13826 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
13827 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
13829 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
13831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
13833 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
13835 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
13837 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
13839 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
13841 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
13842 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
13844 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
13845 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
13847 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
13848 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
13851 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
13853 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
13855 2016-02-19 Jakub Jelinek <jakub@redhat.com>
13858 * testsuite/libgomp.c/pr69805.c: New test.
13860 2016-02-16 Tom de Vries <tom@codesourcery.com>
13863 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
13865 2016-02-09 Tom de Vries <tom@codesourcery.com>
13867 PR tree-optimization/69599
13868 * testsuite/libgomp.c/omp-nested-3.c: New test.
13869 * testsuite/libgomp.c/pr46032-2.c: New test.
13870 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
13871 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
13873 2016-02-09 Tom de Vries <tom@codesourcery.com>
13876 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
13878 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13880 * testsuite/libgomp.c/target-31.c: Fix testcase.
13882 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13884 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
13886 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
13887 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
13888 reduction and map clauses.
13889 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
13891 2016-02-02 James Norris <jnorris@codesourcery.com>
13893 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
13895 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13897 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
13898 * oacc-parallel.c (GOACC_host_data): Remove function definition.
13900 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
13903 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
13905 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
13906 (hsa_kmt_lib): Set variables.
13907 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
13908 always_ld_library_path.
13909 * Makefile.in: Regenerate.
13910 * configure: Likewise.
13911 * testsuite/Makefile.in: Likewise.
13913 * plugin/configfrag.ac (offload_additional_options)
13914 (offload_additional_lib_paths): Don't amend for hsa offloading.
13915 * configure: Regenerate.
13917 * plugin/configfrag.ac: Don't configure for offloading target if
13918 we don't build the corresponding plugin.
13919 * configure: Regenerate.
13921 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13923 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
13924 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
13926 2016-01-26 Tom de Vries <tom@codesourcery.com>
13928 PR tree-optimization/69110
13929 * testsuite/libgomp.c/pr69110.c: New test.
13931 2016-01-25 Richard Biener <rguenther@suse.de>
13934 * testsuite/libgomp.c++/pr69393.C: New testcase.
13936 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
13938 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
13939 function wasn't mapped to the device with non-shared memory.
13941 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
13943 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
13945 2016-01-19 Martin Jambor <mjambor@suse.cz>
13946 Martin Liska <mliska@suse.cz>
13948 * plugin/Makefrag.am: Add HSA plugin requirements.
13949 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
13950 (HSA_RUNTIME_LIB): Likewise.
13951 (HSA_RUNTIME_CPPFLAGS): Likewise.
13952 (HSA_RUNTIME_INCLUDE): New substitution.
13953 (HSA_RUNTIME_LIB): Likewise.
13954 (HSA_RUNTIME_LDFLAGS): Likewise.
13955 (hsa-runtime): New configure option.
13956 (hsa-runtime-include): Likewise.
13957 (hsa-runtime-lib): Likewise.
13958 (PLUGIN_HSA): New substitution variable.
13959 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
13961 (PLUGIN_HSA_CPPFLAGS): Likewise.
13962 (PLUGIN_HSA_LDFLAGS): Likewise.
13963 (PLUGIN_HSA_LIBS): Likewise.
13964 Check that we have access to HSA run-time.
13965 * libgomp-plugin.h (offload_target_type): New element
13966 OFFLOAD_TARGET_TYPE_HSA.
13967 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
13969 (bool gomp_create_target_task): Updated.
13970 (gomp_device_descr): Extra parameter of run_func and async_run_func,
13971 new field can_run_func.
13972 * libgomp_g.h (GOMP_target_ext): Update prototype.
13973 * oacc-host.c (host_run): Added a new parameter args.
13974 * target.c (calculate_firstprivate_requirements): New function.
13975 (copy_firstprivate_data): Likewise.
13976 (gomp_target_fallback_firstprivate): Use them.
13977 (gomp_target_unshare_firstprivate): New function.
13978 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
13980 (GOMP_target): Do host fallback for all shared memory devices. Do not
13981 pass any args to plugins.
13982 (GOMP_target_ext): Introduce device-specific argument parameter args.
13983 Allow host fallback if device shares memory. Do not remap data if
13984 device has shared memory.
13985 (gomp_target_task_fn): Likewise. Also treat shared memory devices
13986 like host fallback for mappings.
13987 (GOMP_target_data): Treat shared memory devices like host fallback.
13988 (GOMP_target_data_ext): Likewise.
13989 (GOMP_target_update): Likewise.
13990 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
13991 gomp_create_target_task.
13992 (GOMP_target_enter_exit_data): Likewise.
13993 (omp_target_alloc): Treat shared memory devices like host fallback.
13994 (omp_target_free): Likewise.
13995 (omp_target_is_present): Likewise.
13996 (omp_target_memcpy): Likewise.
13997 (omp_target_memcpy_rect): Likewise.
13998 (omp_target_associate_ptr): Likewise.
13999 (gomp_load_plugin_for_device): Also load can_run.
14000 * task.c (GOMP_PLUGIN_target_task_completion): Free
14001 firstprivate_copies.
14002 (gomp_create_target_task): Accept new argument args and store it to
14004 * plugin/plugin-hsa.c: New file.
14006 2016-01-18 Tom de Vries <tom@codesourcery.com>
14008 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
14009 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
14010 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
14011 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
14012 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
14013 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
14014 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
14015 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
14016 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
14017 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
14018 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
14020 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
14022 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
14023 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
14024 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
14025 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
14026 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
14027 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
14028 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
14029 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
14031 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
14033 2016-01-15 Jakub Jelinek <jakub@redhat.com>
14035 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
14037 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
14039 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
14041 2016-01-12 James Norris <jnorris@codesourcery.com>
14043 * libgomp.texi: Updates for OpenACC.
14045 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
14047 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
14049 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
14052 * testsuite/libgomp.fortran/pr66680.f90: New test.
14054 2016-01-07 Jakub Jelinek <jakub@redhat.com>
14056 PR middle-end/68960
14057 * testsuite/libgomp.c/pr68960.c: New test.
14059 2016-01-06 Nathan Sidwell <nathan@acm.org>
14061 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
14062 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
14064 2016-01-04 Jakub Jelinek <jakub@redhat.com>
14066 Update copyright years.
14068 * libgomp.texi: Bump @copying's copyright year.
14070 2015-12-31 Nathan Sidwell <nathan@acm.org>
14072 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
14073 dg-additional-options syntax.
14074 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
14075 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
14076 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
14077 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
14078 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
14079 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
14080 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
14081 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
14082 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
14083 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
14084 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
14085 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
14086 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
14087 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
14088 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
14089 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
14090 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
14091 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
14093 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
14095 * libgomp.h (REFCOUNT_LINK): Define.
14096 (struct splay_tree_key_s): Add link_key.
14097 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
14098 Replace target address of the pointer with target address of newly
14099 mapped object in the splay tree. Set link pointer on target to the
14100 device address of the mapped object.
14101 (gomp_unmap_vars): Restore target address of the pointer in the splay
14102 tree for REFCOUNT_LINK objects after unmapping.
14103 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
14104 declare target link" objects.
14105 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
14106 "omp declare target link" objects, which were mapped for the image.
14107 (gomp_exit_data): Restore target address of the pointer in the splay
14108 tree for REFCOUNT_LINK objects after unmapping.
14109 * testsuite/libgomp.c/target-link-1.c: New file.
14111 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
14113 * libgomp.h (gomp_device_state): New enum.
14114 (struct gomp_device_descr): Replace is_initialized with state.
14115 (gomp_fini_device): Remove declaration.
14116 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
14117 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
14118 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
14119 (acc_set_device_type): Use state instead of is_initialized.
14120 (acc_set_device_num): Likewise.
14121 * target.c (resolve_device): Use state instead of is_initialized.
14122 Do not initialize finalized device.
14123 (gomp_map_vars): Do nothing if device is finalized.
14124 (gomp_unmap_vars): Likewise.
14125 (gomp_update): Likewise.
14126 (GOMP_offload_register_ver): Use state instead of is_initialized.
14127 (GOMP_offload_unregister_ver): Likewise.
14128 (gomp_init_device): Likewise.
14129 (gomp_unload_device): Likewise.
14130 (gomp_fini_device): Remove.
14131 (gomp_get_target_fn_addr): Do nothing if device is finalized.
14132 (GOMP_target): Go to host fallback if device is finalized.
14133 (GOMP_target_ext): Likewise.
14134 (gomp_exit_data): Do nothing if device is finalized.
14135 (gomp_target_task_fn): Go to host fallback if device is finalized.
14136 (gomp_target_fini): New static function.
14137 (gomp_target_init): Use state instead of is_initialized.
14138 Call gomp_target_fini at exit.
14140 2015-12-09 Tom de Vries <tom@codesourcery.com>
14142 PR tree-optimization/68716
14143 * testsuite/libgomp.c/omp-nested-2.c: New test.
14145 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
14147 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
14148 target openacc_nvidia_accel_selected.
14149 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
14150 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
14151 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
14152 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
14154 2015-12-01 Julian Brown <julian@codesourcery.com>
14155 James Norris <James_Norris@mentor.com>
14157 * oacc-parallel.c (GOACC_host_data): New function.
14158 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
14159 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
14160 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
14161 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
14162 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
14163 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
14164 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
14166 2015-11-30 James Norris <jnorris@codesourcery.com>
14167 Cesar Philippidis <cesar@codesourcery.com>
14170 * libgomp.oacc-fortran/routine-5.f90: New test.
14171 * libgomp.oacc-fortran/routine-7.f90: New test.
14172 * libgomp.oacc-fortran/routine-9.f90: New test.
14174 2015-11-30 Tom de Vries <tom@codesourcery.com>
14176 PR tree-optimization/46032
14177 * testsuite/libgomp.c/pr46032.c: New test.
14179 2015-11-27 Jakub Jelinek <jakub@redhat.com>
14182 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
14183 (gomp_create_target_task): Call it before freeing
14184 GOMP_TARGET_TASK_DATA tasks.
14187 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
14188 in between case label and OpenMP standalone directives.
14189 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
14191 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
14193 * configure: Regenerate.
14195 2015-11-26 Jakub Jelinek <jakub@redhat.com>
14197 * testsuite/libgomp.c/target-35.c: New test.
14199 2015-11-22 James Norris <jnorris@codesourcery.com>
14200 Cesar Philippidis <cesar@codesourcery.com>
14202 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
14203 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
14204 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
14205 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
14206 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
14208 2015-11-20 Jakub Jelinek <jakub@redhat.com>
14210 PR middle-end/68221
14211 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
14212 * testsuite/libgomp.c/reduction-12.c: Likewise.
14213 * testsuite/libgomp.c++/reduction-11.C: Likewise.
14214 * testsuite/libgomp.c++/reduction-12.C: Likewise.
14216 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
14218 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
14219 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
14220 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
14221 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
14222 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
14224 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14225 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14227 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
14229 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
14230 worker & gang cases.
14231 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
14233 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
14235 * config/nvptx/priority_queue.c: New file.
14237 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14239 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
14242 2015-11-14 Jakub Jelinek <jakub@redhat.com>
14243 Aldy Hernandez <aldyh@redhat.com>
14244 Ilya Verbin <ilya.verbin@intel.com>
14246 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
14247 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
14248 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
14249 iterators or IV by chunk size.
14250 * parallel.c (gomp_resolve_num_threads): Don't assume that
14251 if thr->ts.team is non-NULL, then pool must be non-NULL.
14252 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
14253 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
14254 GOMP_PLUGIN_target_task_completion.
14255 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
14256 * Makefile.in: Regenerate.
14257 * libgomp.h: Shuffle prototypes and forward definitions around so
14258 priority queues can be defined.
14259 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
14260 (enum gomp_target_task_state): New enum.
14261 (struct gomp_target_task): Add state, tgt, task and team fields.
14262 (gomp_create_target_task): Change return type to bool, add
14264 (gomp_target_task_fn): Change return type to bool.
14265 (struct gomp_device_descr): Add async_run_func.
14266 (struct gomp_task): Remove children, next_child, prev_child,
14267 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
14269 (struct gomp_taskgroup): Remove children.
14270 Add taskgroup_queue.
14271 (struct gomp_team): Change task_queue type to a priority queue.
14272 (splay_compare): Define inline.
14273 (priority_queue_offset): New.
14274 (priority_node_to_task): New.
14275 (task_to_priority_node): New.
14276 * oacc-mem.c: Do not include splay-tree.h.
14277 * priority_queue.c: New file.
14278 * priority_queue.h: New file.
14279 * splay-tree.c: Do not include splay-tree.h.
14280 (splay_tree_foreach_internal): New.
14281 (splay_tree_foreach): New.
14282 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
14283 (splay_tree_callback): Define typedef.
14284 * target.c (splay_compare): Move to libgomp.h.
14285 (GOMP_target): Don't adjust *thr in any way around running offloaded
14287 (GOMP_target_ext): Likewise. Handle target nowait.
14288 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
14289 return value from gomp_create_target_task, if false, fallthrough
14290 as if no dependencies exist.
14291 (gomp_target_task_fn): Change return type to bool, return true
14292 if the task should have another part scheduled later. Handle
14294 (gomp_load_plugin_for_device): Initialize async_run.
14295 * task.c (gomp_init_task): Initialize children_queue.
14296 (gomp_clear_parent_in_list): New.
14297 (gomp_clear_parent_in_tree): New.
14298 (gomp_clear_parent): Handle priorities.
14299 (GOMP_task): Likewise.
14300 (priority_queue_move_task_first,
14301 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
14303 (gomp_create_target_task): Use priority queues. Change return type
14304 to bool, add state argument, return false if for async
14305 {{enter,exit} data,update} constructs no dependencies need to be
14306 waited for, handle target nowait. Set task->fn to NULL instead of
14307 gomp_target_task_fn.
14308 (verify_children_queue): Remove.
14309 (priority_list_upgrade_task): New.
14310 (priority_queue_upgrade_task): New.
14311 (verify_task_queue): Remove.
14312 (priority_list_downgrade_task): New.
14313 (priority_queue_downgrade_task): New.
14314 (gomp_task_run_pre): Use priority queues.
14315 Abstract code out to priority_queue_downgrade_task.
14316 (gomp_task_run_post_handle_dependers): Use priority queues.
14317 (gomp_task_run_post_remove_parent): Likewise.
14318 (gomp_task_run_post_remove_taskgroup): Likewise.
14319 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
14321 (GOMP_taskwait): Likewise.
14322 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
14323 priority-queue_upgrade_task.
14324 (GOMP_taskgroup_start): Use priority queues.
14325 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
14326 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
14328 * taskloop.c (GOMP_taskloop): Handle priorities.
14329 * team.c (gomp_new_team): Call priority_queue_init.
14330 (free_team): Call priority_queue_free.
14331 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
14332 team created for target nowait in implicit parallel region.
14333 (gomp_team_start): For nested check, test thr->ts.level instead of
14334 thr->ts.team != NULL.
14335 * testsuite/libgomp.c/doacross-3.c: New test.
14336 * testsuite/libgomp.c/ordered-5.c: New test.
14337 * testsuite/libgomp.c/priority.c: New test.
14338 * testsuite/libgomp.c/target-31.c: New test.
14339 * testsuite/libgomp.c/target-32.c: New test.
14340 * testsuite/libgomp.c/target-33.c: New test.
14341 * testsuite/libgomp.c/target-34.c: New test.
14343 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14345 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
14347 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
14348 loop is sequential.
14350 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
14352 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
14353 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
14355 2015-11-12 James Norris <jnorris@codesourcery.com>
14356 Joseph Myers <joseph@codesourcery.com>
14358 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
14359 * oacc-parallel.c (GOACC_declare): New function.
14360 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
14361 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
14362 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
14363 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
14364 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
14366 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
14368 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
14370 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
14372 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
14373 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
14375 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14377 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
14378 inadvertent commit.
14380 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14382 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
14383 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
14384 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
14385 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
14386 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
14388 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
14390 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
14391 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
14393 2015-11-05 Jakub Jelinek <jakub@redhat.com>
14394 Ilya Verbin <ilya.verbin@intel.com>
14396 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
14397 GOMP_loop_nonmonotonic_dynamic_start,
14398 GOMP_loop_nonmonotonic_guided_next,
14399 GOMP_loop_nonmonotonic_guided_start,
14400 GOMP_loop_ull_nonmonotonic_dynamic_next,
14401 GOMP_loop_ull_nonmonotonic_dynamic_start,
14402 GOMP_loop_ull_nonmonotonic_guided_next,
14403 GOMP_loop_ull_nonmonotonic_guided_start,
14404 GOMP_parallel_loop_nonmonotonic_dynamic,
14405 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
14406 (GOMP_target_41): Renamed to ...
14407 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14409 (GOMP_target_data_41): Renamed to ...
14410 (GOMP_target_data_ext): ... this.
14411 (GOMP_target_update_41): Renamed to ...
14412 (GOMP_target_update_ext): ... this.
14413 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
14414 GOMP_target_data_ext and GOMP_target_update_ext instead of
14415 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
14416 Export GOMP_loop_nonmonotonic_dynamic_next,
14417 GOMP_loop_nonmonotonic_dynamic_start,
14418 GOMP_loop_nonmonotonic_guided_next,
14419 GOMP_loop_nonmonotonic_guided_start,
14420 GOMP_loop_ull_nonmonotonic_dynamic_next,
14421 GOMP_loop_ull_nonmonotonic_dynamic_start,
14422 GOMP_loop_ull_nonmonotonic_guided_next,
14423 GOMP_loop_ull_nonmonotonic_guided_start,
14424 GOMP_parallel_loop_nonmonotonic_dynamic and
14425 GOMP_parallel_loop_nonmonotonic_guided.
14426 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
14427 GOMP_parallel_loop_nonmonotonic_guided,
14428 GOMP_loop_nonmonotonic_dynamic_start,
14429 GOMP_loop_nonmonotonic_guided_start,
14430 GOMP_loop_nonmonotonic_dynamic_next,
14431 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
14432 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
14433 GOMP_loop_ull_nonmonotonic_guided_start,
14434 GOMP_loop_ull_nonmonotonic_dynamic_next,
14435 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
14436 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
14438 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
14439 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
14440 Use gomp_map_val function.
14441 (gomp_target_fallback_firstprivate): New static function.
14442 (GOMP_target_41): Renamed to ...
14443 (GOMP_target_ext): ... this. Add num_teams and thread_limit
14444 arguments. Move firstprivate fallback handling into a new
14446 (GOMP_target_data_41): Renamed to ...
14447 (GOMP_target_data_ext): ... this.
14448 (GOMP_target_update_41): Renamed to ...
14449 (GOMP_target_update_ext): ... this.
14450 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
14451 gomp_map_0len_lookup instead of gomp_map_lookup.
14452 (omp_target_is_present): Use gomp_map_0len_lookup instead of
14454 * testsuite/libgomp.c/target-28.c: Likewise.
14455 * testsuite/libgomp.c/monotonic-1.c: New test.
14456 * testsuite/libgomp.c/monotonic-2.c: New test.
14457 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
14458 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
14459 * testsuite/libgomp.c/pr66199-5.c: New test.
14460 * testsuite/libgomp.c/pr66199-6.c: New test.
14461 * testsuite/libgomp.c/pr66199-7.c: New test.
14462 * testsuite/libgomp.c/pr66199-8.c: New test.
14463 * testsuite/libgomp.c/pr66199-9.c: New test.
14464 * testsuite/libgomp.c/reduction-11.c: New test.
14465 * testsuite/libgomp.c/reduction-12.c: New test.
14466 * testsuite/libgomp.c/reduction-13.c: New test.
14467 * testsuite/libgomp.c/reduction-14.c: New test.
14468 * testsuite/libgomp.c/reduction-15.c: New test.
14469 * testsuite/libgomp.c/target-12.c (main): Adjust for
14470 omp_target_is_present change for one-past-last element.
14471 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
14472 the same var is both mapped and privatized.
14473 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
14474 handling of zero-length array sections.
14475 * testsuite/libgomp.c/target-28.c: New test.
14476 * testsuite/libgomp.c/target-29.c: New test.
14477 * testsuite/libgomp.c/target-30.c: New test.
14478 * testsuite/libgomp.c/target-teams-1.c: New test.
14479 * testsuite/libgomp.c++/member-6.C: New test.
14480 * testsuite/libgomp.c++/member-7.C: New test.
14481 * testsuite/libgomp.c++/monotonic-1.C: New test.
14482 * testsuite/libgomp.c++/monotonic-2.C: New test.
14483 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
14484 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
14485 * testsuite/libgomp.c++/pr66199-3.C: New test.
14486 * testsuite/libgomp.c++/pr66199-4.C: New test.
14487 * testsuite/libgomp.c++/pr66199-5.C: New test.
14488 * testsuite/libgomp.c++/pr66199-6.C: New test.
14489 * testsuite/libgomp.c++/pr66199-7.C: New test.
14490 * testsuite/libgomp.c++/pr66199-8.C: New test.
14491 * testsuite/libgomp.c++/pr66199-9.C: New test.
14492 * testsuite/libgomp.c++/reduction-11.C: New test.
14493 * testsuite/libgomp.c++/reduction-12.C: New test.
14494 * testsuite/libgomp.c++/target-13.C: New test.
14495 * testsuite/libgomp.c++/target-14.C: New test.
14496 * testsuite/libgomp.c++/target-15.C: New test.
14497 * testsuite/libgomp.c++/target-16.C: New test.
14498 * testsuite/libgomp.c++/target-17.C: New test.
14499 * testsuite/libgomp.c++/target-18.C: New test.
14500 * testsuite/libgomp.c++/target-19.C: New test.
14502 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14504 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
14505 and reduction copy.
14506 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
14507 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
14508 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
14509 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14510 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
14511 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
14512 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
14513 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14514 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
14515 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
14516 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
14517 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
14518 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
14519 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
14521 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14523 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
14524 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
14525 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
14526 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
14527 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
14528 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
14529 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
14530 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
14532 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
14534 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
14535 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
14536 (GOMP_OFFLOAD_openacc_parallel): Likewise.
14537 * oacc-host.c (host_openacc_exec): Likewise.
14538 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
14540 2015-11-03 Julian Brown <julian@codesourcery.com>
14541 Thomas Schwinge <thomas@codesourcery.com>
14543 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
14544 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
14545 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
14547 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
14548 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
14550 2015-11-03 James Norris <jnorris@codesourcery.com>
14552 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
14554 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
14556 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
14557 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
14558 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
14559 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
14560 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
14562 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
14564 * openacc.h (enum acc_device_t): Reformat. Ensure layout
14566 (enum acc_async_t): Reformat.
14567 (acc_on_device): Declare compatible with builtin and provide C++
14569 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
14571 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
14572 Cesar Philippidis <cesar@codesourcery.com>
14574 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
14575 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
14576 ... this. Add a description of the test at the top of the file.
14577 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
14578 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
14579 ... this. Add a description of the test at the top of the file.
14581 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
14583 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
14584 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
14585 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
14586 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
14587 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
14588 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
14590 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
14592 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
14595 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
14598 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
14600 2015-10-27 James Norris <jnorris@codesourcery.com>
14602 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
14603 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
14605 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
14607 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
14608 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
14610 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
14611 acc_device_nvidia usage.
14612 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
14613 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
14614 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
14616 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
14617 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
14620 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
14624 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
14625 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
14627 2015-10-23 Tom de Vries <tom@codesourcery.com>
14630 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
14632 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
14634 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
14636 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
14638 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
14639 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
14641 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
14642 to 0 when mapnum is 0.
14644 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
14646 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
14647 Cast to int from int32_t.
14649 2015-10-13 Jakub Jelinek <jakub@redhat.com>
14650 Aldy Hernandez <aldyh@redhat.com>
14651 Ilya Verbin <ilya.verbin@intel.com>
14653 * config/linux/affinity.c (omp_get_place_num_procs,
14654 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14655 * config/linux/doacross.h: New file.
14656 * config/posix/affinity.c (omp_get_place_num_procs,
14657 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
14658 * config/posix/doacross.h: New file.
14659 * env.c: Include gomp-constants.h.
14660 (struct gomp_task_icv): Rename run_sched_modifier to
14661 run_sched_chunk_size.
14662 (gomp_max_task_priority_var): New variable.
14663 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
14664 (handle_omp_display_env): Change _OPENMP value from 201307 to
14665 201511. Print OMP_MAX_TASK_PRIORITY.
14666 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
14667 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
14668 chunk_size and run_sched_modifier to run_sched_chunk_size.
14669 (omp_get_max_task_priority, omp_get_initial_device,
14670 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
14671 omp_get_partition_place_nums): New functions.
14672 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
14673 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
14675 (omp_get_num_places_, omp_get_place_num_procs_,
14676 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
14677 omp_get_place_proc_ids_8_, omp_get_place_num_,
14678 omp_get_partition_num_places_, omp_get_partition_place_nums_,
14679 omp_get_partition_place_nums_8_, omp_get_initial_device_,
14680 omp_get_max_task_priority_): New functions.
14681 * libgomp_g.h (GOMP_loop_doacross_static_start,
14682 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
14683 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
14684 GOMP_loop_ull_doacross_dynamic_start,
14685 GOMP_loop_ull_doacross_guided_start,
14686 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
14687 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
14688 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
14689 GOMP_target_data_41, GOMP_target_update_41,
14690 GOMP_target_enter_exit_data): New prototypes.
14691 (GOMP_task): Add prototype argument.
14692 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
14693 (struct gomp_doacross_work_share): New type.
14694 (struct gomp_work_share): Add doacross field.
14695 (struct gomp_task_icv): Rename run_sched_modifier to
14696 run_sched_chunk_size.
14697 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
14698 GOMP_TASK_UNDEFERRED. Add comments.
14699 (struct gomp_task_depend_entry): Add comments.
14700 (struct gomp_task): Likewise.
14701 (struct gomp_taskgroup): Likewise.
14702 (struct gomp_target_task): New type.
14703 (struct gomp_team): Add comment.
14704 (gomp_get_place_proc_ids_8, gomp_doacross_init,
14705 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
14706 gomp_create_target_task, gomp_target_task_fn): New prototypes.
14707 (struct target_var_desc): New type.
14708 (struct target_mem_desc): Adjust comment. Use struct
14709 target_var_desc instead of splay_tree_key for list.
14710 (REFCOUNT_INFINITY): Define.
14711 (struct splay_tree_key_s): Remove copy_from field.
14712 (struct gomp_device_descr): Add dev2dev_func field.
14713 (enum gomp_map_vars_kind): New enum.
14714 (gomp_map_vars): Add one argument.
14715 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
14716 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
14717 omp_get_place_num_procs, omp_get_place_num_procs_,
14718 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
14719 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
14720 omp_get_place_num_, omp_get_partition_num_places,
14721 omp_get_partition_num_places_, omp_get_partition_place_nums,
14722 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
14723 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
14724 omp_target_free, omp_target_is_present, omp_target_memcpy,
14725 omp_target_memcpy_rect, omp_target_associate_ptr and
14726 omp_target_disassociate_ptr.
14727 (GOMP_4.0.2): Renamed to ...
14728 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
14729 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
14730 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
14731 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14732 GOMP_loop_doacross_static_start, GOMP_doacross_post,
14733 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
14734 GOMP_loop_ull_doacross_guided_start,
14735 GOMP_loop_ull_doacross_runtime_start,
14736 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
14737 GOMP_doacross_ull_wait.
14738 * libgomp.texi: Document omp_get_max_task_priority.
14739 Rename modifier argument to chunk_size for omp_set_schedule and
14740 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
14741 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
14742 to run_sched_chunk_size renaming.
14743 (GOMP_loop_ordered_runtime_start): Likewise.
14744 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
14745 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
14746 GOMP_parallel_loop_runtime_start): New functions.
14747 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
14748 to run_sched_chunk_size renaming.
14749 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
14750 GOMP_loop_doacross_guided_start): New functions or aliases.
14751 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
14752 run_sched_modifier to run_sched_chunk_size renaming.
14753 (GOMP_loop_ull_ordered_runtime_start): Likewise.
14754 (gomp_loop_ull_doacross_static_start,
14755 gomp_loop_ull_doacross_dynamic_start,
14756 gomp_loop_ull_doacross_guided_start,
14757 GOMP_loop_ull_doacross_runtime_start): New functions.
14758 (GOMP_loop_ull_doacross_static_start,
14759 GOMP_loop_ull_doacross_dynamic_start,
14760 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
14761 * oacc-mem.c (acc_map_data, present_create_copy,
14762 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
14764 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
14765 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
14766 instead of false to gomp_map_vars.
14767 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
14768 * omp.h.in (omp_lock_hint_t): New type.
14769 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14770 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14771 omp_get_place_num, omp_get_partition_num_places,
14772 omp_get_partition_place_nums, omp_get_initial_device,
14773 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
14774 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
14775 omp_target_associate_ptr, omp_target_disassociate_ptr): New
14777 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
14778 (omp_lock_hint_none, omp_lock_hint_uncontended,
14779 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14780 omp_lock_hint_speculative): New parameters.
14781 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14782 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14783 omp_get_place_num, omp_get_partition_num_places,
14784 omp_get_partition_place_nums, omp_get_initial_device,
14785 omp_get_max_task_priority): New interfaces.
14786 (omp_set_schedule, omp_get_schedule): Rename modifier argument
14788 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
14789 (omp_lock_hint_none, omp_lock_hint_uncontended,
14790 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
14791 omp_lock_hint_speculative): New parameters.
14792 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
14793 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
14794 omp_get_place_num, omp_get_partition_num_places,
14795 omp_get_partition_place_nums, omp_get_initial_device,
14796 omp_get_max_task_priority): New functions and subroutines.
14797 * ordered.c: Include stdarg.h and string.h.
14798 (MAX_COLLAPSED_BITS): Define.
14799 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
14800 gomp_doacross_ull_init, GOMP_doacross_ull_post,
14801 GOMP_doacross_ull_wait): New functions.
14802 * target.c: Include errno.h.
14803 (resolve_device): If device is not initialized, call
14804 gomp_init_device on it.
14805 (gomp_map_lookup): New function.
14806 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
14807 Don't bump refcount if REFCOUNT_INFINITY. Handle
14808 GOMP_MAP_ALWAYS_TO_P.
14809 (get_kind): Rename is_openacc argument to short_mapkind.
14810 (gomp_map_pointer): Use gomp_map_lookup.
14811 (gomp_map_fields_existing): New function.
14812 (gomp_map_vars): Rename is_openacc argument to short_mapkind
14813 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
14814 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
14815 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
14816 Adjust for tgt->list changed type and copy_from living in there.
14817 (gomp_copy_from_async): Adjust for tgt->list changed type and
14818 copy_from living in there.
14819 (gomp_unmap_vars): Likewise.
14820 (gomp_update): Likewise. Rename is_openacc argument to
14821 short_mapkind. Don't fail if object is not mapped.
14822 (gomp_load_image_to_device): Initialize refcount to
14824 (gomp_target_fallback): New function.
14825 (gomp_get_target_fn_addr): Likewise.
14826 (GOMP_target): Adjust gomp_map_vars caller, use
14827 gomp_get_target_fn_addr and gomp_target_fallback.
14828 (GOMP_target_41): New function.
14829 (gomp_target_data_fallback): New function.
14830 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
14831 (GOMP_target_data_41): New function.
14832 (GOMP_target_update): Adjust gomp_update caller.
14833 (GOMP_target_update_41): New function.
14834 (gomp_exit_data, GOMP_target_enter_exit_data,
14835 gomp_target_task_fn, omp_target_alloc, omp_target_free,
14836 omp_target_is_present, omp_target_memcpy,
14837 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
14838 omp_target_associate_ptr, omp_target_disassociate_ptr,
14839 gomp_load_plugin_for_device): New functions.
14840 * task.c: Include gomp-constants.h. Include taskloop.c
14841 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
14842 (gomp_task_handle_depend): New function.
14843 (GOMP_task): Use it. Add priority argument. Use
14844 gomp-constant.h constants instead of hardcoded numbers.
14845 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
14846 (gomp_create_target_task): New function.
14847 (verify_children_queue, verify_taskgroup_queue,
14848 verify_task_queue): New functions.
14849 (gomp_task_run_pre): Call verify_*_queue functions.
14850 If an upcoming tied task is about to leave the sibling or
14851 taskgroup queues in an invalid state, adjust appropriately.
14852 Remove taskgroup argument. Add comments.
14853 (gomp_task_run_post_handle_dependers): Add comments.
14854 (gomp_task_run_post_remove_parent): Likewise.
14855 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
14856 (GOMP_taskwait): Likewise. Add comments.
14857 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
14858 problem such that the first non parent_depends_on task does not
14859 end up at the end of the children queue.
14860 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
14861 GOMP_TASK_UNDEFERRED.
14862 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
14863 * taskloop.c: New file.
14864 * testsuite/lib/libgomp.exp
14865 (check_effective_target_offload_device_nonshared_as): New proc.
14866 * testsuite/libgomp.c/affinity-2.c: New test.
14867 * testsuite/libgomp.c/doacross-1.c: New test.
14868 * testsuite/libgomp.c/doacross-2.c: New test.
14869 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
14870 Add map clause to target.
14871 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
14872 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
14873 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
14874 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
14875 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
14877 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
14878 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
14879 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
14880 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
14881 not defined. Use those where needed.
14882 * testsuite/libgomp.c/for-4.c: New test.
14883 * testsuite/libgomp.c/for-5.c: New test.
14884 * testsuite/libgomp.c/for-6.c: New test.
14885 * testsuite/libgomp.c/linear-1.c: New test.
14886 * testsuite/libgomp.c/ordered-4.c: New test.
14887 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
14888 only allowed on the loop iterator.
14889 * testsuite/libgomp.c/pr66199-3.c: New test.
14890 * testsuite/libgomp.c/pr66199-4.c: New test.
14891 * testsuite/libgomp.c/reduction-7.c: New test.
14892 * testsuite/libgomp.c/reduction-8.c: New test.
14893 * testsuite/libgomp.c/reduction-9.c: New test.
14894 * testsuite/libgomp.c/reduction-10.c: New test.
14895 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
14897 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
14898 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
14899 * testsuite/libgomp.c/target-11.c: New test.
14900 * testsuite/libgomp.c/target-12.c: New test.
14901 * testsuite/libgomp.c/target-13.c: New test.
14902 * testsuite/libgomp.c/target-14.c: New test.
14903 * testsuite/libgomp.c/target-15.c: New test.
14904 * testsuite/libgomp.c/target-16.c: New test.
14905 * testsuite/libgomp.c/target-17.c: New test.
14906 * testsuite/libgomp.c/target-18.c: New test.
14907 * testsuite/libgomp.c/target-19.c: New test.
14908 * testsuite/libgomp.c/target-20.c: New test.
14909 * testsuite/libgomp.c/target-21.c: New test.
14910 * testsuite/libgomp.c/target-22.c: New test.
14911 * testsuite/libgomp.c/target-23.c: New test.
14912 * testsuite/libgomp.c/target-24.c: New test.
14913 * testsuite/libgomp.c/target-25.c: New test.
14914 * testsuite/libgomp.c/target-26.c: New test.
14915 * testsuite/libgomp.c/target-27.c: New test.
14916 * testsuite/libgomp.c/taskloop-1.c: New test.
14917 * testsuite/libgomp.c/taskloop-2.c: New test.
14918 * testsuite/libgomp.c/taskloop-3.c: New test.
14919 * testsuite/libgomp.c/taskloop-4.c: New test.
14920 * testsuite/libgomp.c++/ctor-13.C: New test.
14921 * testsuite/libgomp.c++/doacross-1.C: New test.
14922 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
14923 Replace offload_device with offload_device_nonshared_as.
14924 * testsuite/libgomp.c++/for-12.C: New test.
14925 * testsuite/libgomp.c++/for-13.C: New test.
14926 * testsuite/libgomp.c++/for-14.C: New test.
14927 * testsuite/libgomp.c++/linear-1.C: New test.
14928 * testsuite/libgomp.c++/member-1.C: New test.
14929 * testsuite/libgomp.c++/member-2.C: New test.
14930 * testsuite/libgomp.c++/member-3.C: New test.
14931 * testsuite/libgomp.c++/member-4.C: New test.
14932 * testsuite/libgomp.c++/member-5.C: New test.
14933 * testsuite/libgomp.c++/ordered-1.C: New test.
14934 * testsuite/libgomp.c++/reduction-5.C: New test.
14935 * testsuite/libgomp.c++/reduction-6.C: New test.
14936 * testsuite/libgomp.c++/reduction-7.C: New test.
14937 * testsuite/libgomp.c++/reduction-8.C: New test.
14938 * testsuite/libgomp.c++/reduction-9.C: New test.
14939 * testsuite/libgomp.c++/reduction-10.C: New test.
14940 * testsuite/libgomp.c++/reference-1.C: New test.
14941 * testsuite/libgomp.c++/simd14.C: New test.
14942 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
14943 * testsuite/libgomp.c++/target-5.C: New test.
14944 * testsuite/libgomp.c++/target-6.C: New test.
14945 * testsuite/libgomp.c++/target-7.C: New test.
14946 * testsuite/libgomp.c++/target-8.C: New test.
14947 * testsuite/libgomp.c++/target-9.C: New test.
14948 * testsuite/libgomp.c++/target-10.C: New test.
14949 * testsuite/libgomp.c++/target-11.C: New test.
14950 * testsuite/libgomp.c++/target-12.C: New test.
14951 * testsuite/libgomp.c++/taskloop-1.C: New test.
14952 * testsuite/libgomp.c++/taskloop-2.C: New test.
14953 * testsuite/libgomp.c++/taskloop-3.C: New test.
14954 * testsuite/libgomp.c++/taskloop-4.C: New test.
14955 * testsuite/libgomp.c++/taskloop-5.C: New test.
14956 * testsuite/libgomp.c++/taskloop-6.C: New test.
14957 * testsuite/libgomp.c++/taskloop-7.C: New test.
14958 * testsuite/libgomp.c++/taskloop-8.C: New test.
14959 * testsuite/libgomp.c++/taskloop-9.C: New test.
14960 * testsuite/libgomp.fortran/affinity1.f90: New test.
14961 * testsuite/libgomp.fortran/affinity2.f90: New test.
14963 2015-10-13 Tom de Vries <tom@codesourcery.com>
14965 PR tree-optimization/67476
14966 * testsuite/libgomp.c/autopar-3.c: New test.
14967 * testsuite/libgomp.c/autopar-4.c: New test.
14968 * testsuite/libgomp.c/autopar-5.c: New test.
14969 * testsuite/libgomp.c/autopar-6.c: New test.
14970 * testsuite/libgomp.c/autopar-7.c: New test.
14971 * testsuite/libgomp.c/autopar-8.c: New test.
14973 2015-10-12 James Norris <jnorris@codesourcery.com>
14975 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
14978 2015-10-09 David Malcolm <dmalcolm@redhat.com>
14980 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
14981 using load_gcc_lib.
14983 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14985 * oacc-ptx.h: Remove file, moving its content into...
14986 * config/nvptx/fortran.c: ... here...
14987 * config/nvptx/oacc-init.c: ..., here...
14988 * config/nvptx/oacc-parallel.c: ..., and here.
14989 * config/nvptx/openacc.f90: New file.
14990 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
14991 (link_ptx): Don't link in predefined bits of PTX code.
14993 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14994 Bernd Schmidt <bernds@codesourcery.com>
14996 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
14997 (struct targ_ptx_obj): New.
14998 (nvptx_tdata): Move earlier, change data format.
14999 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
15001 (GOMP_OFFLOAD_load_image): Adjust.
15003 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
15005 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
15006 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
15007 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
15008 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
15009 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15010 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
15011 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
15012 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
15013 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
15014 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
15015 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15016 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15017 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15018 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15019 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15020 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15021 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
15022 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15023 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15024 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15025 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15026 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15027 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15028 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15029 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15030 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15031 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
15032 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15033 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15034 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15035 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15036 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15037 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
15038 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15039 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15040 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15041 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15042 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15043 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15044 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15045 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15046 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15047 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15048 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15049 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
15050 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
15051 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
15052 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
15053 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
15054 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
15055 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
15056 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
15057 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
15058 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
15059 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
15060 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15061 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15062 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
15063 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
15064 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
15065 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
15066 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
15067 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15069 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
15071 * oacc-init.c (acc_on_device): Force optimization level.
15073 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
15075 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
15076 (cuda_errlist): Delete.
15077 (cuda_error): Reimplement.
15079 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
15081 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
15083 * libgomp.map (GOACC_parallel_keyed): New.
15084 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
15086 (GOACC_parallel_keyed): New interface. Lose geometry arguments
15087 and take keyed varargs list. Adjust call to exec_func.
15088 (GOACC_parallel): Force host fallback.
15089 * libgomp_g.h (GOACC_parallel): Remove.
15090 (GOACC_parallel_keyed): Declare.
15091 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
15092 (struct targ_gn_descriptor): Replace name field with launch field.
15093 (nvptx_exec): Lose separate geometry args, take array. Process
15094 dynamic dimensions and adjust.
15095 (struct nvptx_tdata): Replace fn_names field with fn_descs.
15096 (GOMP_OFFLOAD_load_image): Adjust for change in function table
15098 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
15100 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
15103 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15106 * oacc-int.h (goacc_host_init): Add declaration.
15107 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
15108 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
15110 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15111 Sebastian Pop <s.pop@samsung.com>
15113 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
15115 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
15116 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
15117 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
15118 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
15119 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
15121 2015-09-03 Jakub Jelinek <jakub@redhat.com>
15123 * configure.tgt: Add missing ;; in between nvptx and rtems
15126 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15128 * config/posix/pool.h (gomp_adjust_thread_attr): New.
15129 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
15130 (gomp_thread_pool_reservoir): Add priority member.
15131 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
15133 (parse_thread_pools): Likewise.
15134 * team.c (gomp_team_start): Call configuration provided
15135 gomp_adjust_thread_attr(). Destroy thread attributes if
15137 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
15139 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15141 * config/posix/pool.h: New.
15142 * config/rtems/pool.h: Likewise.
15143 * config/rtems/proc.c: Likewise.
15144 * libgomp.h (gomp_thread_destructor): Declare.
15145 * team.c: Include configuration provided "pool.h".
15146 (gomp_get_thread_pool): Define in configuration.
15147 (gomp_team_end): Call configuration defined
15148 gomp_release_thread_pool().
15150 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15152 * config/rtems/bar.c: New.
15153 * config/rtems/bar.h: Likewise.
15154 * config/rtems/mutex.c: Likewise.
15155 * config/rtems/mutex.h: Likewise.
15156 * config/rtems/sem.c: Likewise.
15157 * config/rtems/sem.h: Likewise.
15158 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
15159 <sys/lock.h> header file.
15160 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
15161 supported by Newlib.
15162 * configure: Regenerate.
15164 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
15166 * team.c (gomp_new_thread_pool): Delete and move content to ...
15167 (gomp_get_thread_pool): ... new function. Allocate and
15168 initialize thread pool on demand.
15169 (get_last_team): Use gomp_get_thread_pool().
15170 (gomp_team_start): Delete thread pool initialization.
15172 2015-09-03 Tom de Vries <tom@codesourcery.com>
15174 PR tree-optimization/65637
15175 * testsuite/libgomp.c/autopar-2.c: New test.
15177 2015-08-29 Tom de Vries <tom@codesourcery.com>
15179 PR tree-optimization/46193
15180 * testsuite/libgomp.c/pr46193.c: New test.
15182 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
15185 * libgomp.map: Add 4.0.2 version.
15186 * target.c (offload_image_descr): Add version field.
15187 (gomp_load_image_to_device): Add version argument. Adjust plugin
15188 call. Improve load mismatch diagnostic.
15189 (gomp_unload_image_from_device): Add version argument. Adjust plugin
15191 (GOMP_offload_regster): Make stub function, move bulk to ...
15192 (GOMP_offload_register_ver): ... here. Process version argument.
15193 (GOMP_offload_unregister): Make stub function, move bulk to ...
15194 (GOMP_offload_unregister_ver): ... here. Process version argument.
15195 (gomp_init_device): Process version field.
15196 (gomp_unload_device): Process version field.
15197 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
15198 macros. Check plugin version.
15199 * libgomp.h (gomp_device_descr): Add version function field. Adjust
15200 loader and unloader types.
15201 * oacc-host.c: Include gomp-constants.h.
15202 (host_version): New.
15203 (host_load_image, host_unload_image): Adjust.
15204 (host_dispatch): Add host_version.
15205 * plugin/plugin-nvptx.c: Include gomp-constants.h.
15206 (GOMP_OFFLOAD_version): New.
15207 (GOMP_OFFLOAD_load_image): Add version arg and check it.
15208 (GOMP_OFFLOAD_unload_image): Likewise.
15209 * plugin/plugin-host.c: Include gomp-constants.h.
15210 (GOMP_OFFLOAD_version): New.
15211 (GOMP_OFFLOAD_load_image): Add version arg.
15212 (GOMP_OFFLOAD_unload_image): Likewise.
15214 2015-08-24 Tom de Vries <tom@codesourcery.com>
15216 PR tree-optimization/65468
15217 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
15219 2015-08-24 Tom de Vries <tom@codesourcery.com>
15221 PR tree-optimization/65468
15222 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
15224 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
15228 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
15229 (gomp_iter_guided_next): Idem.
15230 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
15231 (gomp_iter_ull_guided_next): Idem.
15232 * config/linux/wait.h (do_spin): Idem.
15234 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15236 * libgomp-plugin.h (enum offload_target_type): Remove
15237 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
15238 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
15239 * openacc.h (enum acc_device_t): Likewise.
15240 * openacc_lib.h: Likewise.
15241 * oacc-init.c (name_of_acc_device_t): Don't handle it.
15242 (acc_on_device): Just use __builtin_acc_on_device.
15243 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
15244 of acc_on_device builtin.
15245 * plugin/plugin-host.h: Remove file.
15246 * plugin/plugin-host.c: Likewise, but salvage some content into...
15247 * oacc-host.c: ... this file.
15248 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
15249 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
15250 * Makefile.in: Regenerate.
15251 * configure: Likewise.
15252 * testsuite/lib/libgomp.exp
15253 (check_effective_target_openacc_host_nonshm_selected): Remove.
15254 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
15255 ACC_DEVICE_TYPE=host_nonshm.
15256 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15257 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15258 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
15259 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
15260 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
15261 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
15263 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15264 Jakub Jelinek <jakub@redhat.com>
15266 * config/nvptx/affinity.c: New file.
15267 * config/nvptx/alloc.c: Likewise.
15268 * config/nvptx/bar.c: Likewise.
15269 * config/nvptx/barrier.c: Likewise.
15270 * config/nvptx/critical.c: Likewise.
15271 * config/nvptx/env.c: Likewise.
15272 * config/nvptx/error.c: Likewise.
15273 * config/nvptx/fortran.c: Likewise.
15274 * config/nvptx/iter.c: Likewise.
15275 * config/nvptx/iter_ull.c: Likewise.
15276 * config/nvptx/libgomp-plugin.c: Likewise.
15277 * config/nvptx/lock.c: Likewise.
15278 * config/nvptx/loop.c: Likewise.
15279 * config/nvptx/loop_ull.c: Likewise.
15280 * config/nvptx/mutex.c: Likewise.
15281 * config/nvptx/oacc-async.c: Likewise.
15282 * config/nvptx/oacc-cuda.c: Likewise.
15283 * config/nvptx/oacc-host.c: Likewise.
15284 * config/nvptx/oacc-init.c: Likewise.
15285 * config/nvptx/oacc-mem.c: Likewise.
15286 * config/nvptx/oacc-parallel.c: Likewise.
15287 * config/nvptx/oacc-plugin.c: Likewise.
15288 * config/nvptx/omp-lock.h: Likewise.
15289 * config/nvptx/ordered.c: Likewise.
15290 * config/nvptx/parallel.c: Likewise.
15291 * config/nvptx/proc.c: Likewise.
15292 * config/nvptx/ptrlock.c: Likewise.
15293 * config/nvptx/sections.c: Likewise.
15294 * config/nvptx/sem.c: Likewise.
15295 * config/nvptx/single.c: Likewise.
15296 * config/nvptx/splay-tree.c: Likewise.
15297 * config/nvptx/target.c: Likewise.
15298 * config/nvptx/task.c: Likewise.
15299 * config/nvptx/team.c: Likewise.
15300 * config/nvptx/time.c: Likewise.
15301 * config/nvptx/work.c: Likewise.
15302 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
15303 * configure: Regenerate.
15304 * configure.tgt (config_path): Set to "nvptx" for target
15307 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
15309 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
15311 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
15313 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
15314 (cuda_errlist): Constify.
15315 (errmsg): Move into ...
15316 (cuda_error): ... here. Make smaller.
15317 (_XSTR, _STR): Delete.
15318 (cuda_synames): Delete.
15319 (verify_device_library): Delete.
15320 (nvptx_init): Don't call it.
15322 2015-07-28 Tom de Vries <tom@codesourcery.com>
15324 * testsuite/libgomp.c/uns-outer-4.c: New test.
15326 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15328 * testsuite/libgomp.c/pr66714.c: New test.
15330 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
15333 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
15334 (fib_ref): New function.
15335 (fib): Correct corner cases in the recursion.
15336 (main): Replace the non-simd loop with fib_ref call.
15337 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
15339 (fibonacci): Lower the parameter N to 30. Correct accordingly check
15340 for the last array element value. Replace the non-simd loop with
15341 fib_ref call. Remove redundant b_ref array. Remove the comparison
15342 of the last array element with according Fibonacci sequence element.
15343 (fib): Correct corner cases in the recursion.
15345 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15347 * target.c (gomp_offload_image_to_device): Rename to ...
15348 (gomp_load_image_to_device): ... here.
15349 (GOMP_offload_register): Adjust call.
15350 (gomp_init_device): Likewise.
15351 (gomp_unload_image_from_device): New. Broken out of ...
15352 (GOMP_offload_unregister): ... here. Call it.
15353 (gomp_unload_device): New.
15354 * libgomp.h (gomp_unload_device): Declare.
15355 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
15358 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
15360 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
15362 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
15364 (goacc_waits): Move !num_waits handling to ...
15365 (GOACC_wait): ... here, the only caller that might have zero waits.
15367 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
15368 (struct ptx_image_data): Move earlier, add fns field.
15369 (struct ptx_device): Add images and image_lock fields.
15370 (ptx_images, ptx_image_lock): Delete.
15371 (nvptx_open_device): Initialize images and image_lock fields.
15372 (nvptx_close_device): Destroy image_lock.
15373 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
15374 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
15377 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15379 * target.c (GOMP_offload_register): Use int for device type arg.
15380 (GOMP_offload_unregister): Likewise.
15382 * target.c (struct_offload_image_descr): Constify host_table.
15383 (gomp_offload_image_to_device): Likewise.
15384 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
15386 * libgomp.h (gomp_device_descr): Constify target data arguments.
15387 * target.c (struct offload_image_descr): Constify target_data.
15388 (gomp_offload_image_to_device): Likewise.
15389 (GOMP_offload_register): Likewise.
15390 (GOMP_offload_unregister): Likewise.
15391 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
15392 GOMP_OFFLOAD_unload_image): Constify target data.
15393 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
15394 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
15396 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15398 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
15399 Workaround driver library const error.
15400 (struct nvptx_tdata, nvptx_tdata_t): New.
15401 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
15404 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
15406 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
15407 of EPS parameter from integer to real.
15408 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
15409 type of EPS parameter from integer to real.
15411 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15413 * team.c (get_last_team): New.
15414 (gomp_new_team): Recycle last non-nested team if possible.
15415 (gomp_team_end): Move team work share list free lock destruction
15417 (free_team): ... here.
15419 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
15421 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
15422 and ref from int to double. Replaced their comparison with
15423 an inequality of their difference and EPS.
15424 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
15425 comparison of pri and a reference number with an inequality of their
15426 difference and EPS.
15427 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
15428 the comparison of sum and sum_ref with an inequality of their
15429 difference and EPS.
15430 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
15431 the comparison of pri and a reference number with an inequality of
15432 their difference and EPS.
15434 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
15436 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
15437 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
15438 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
15439 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
15440 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
15441 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
15442 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
15443 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
15444 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
15445 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
15446 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
15447 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
15448 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
15450 (vec_mult): Likewise. Add #pragma omp taskwait.
15451 (main): Adjust caller.
15452 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
15453 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
15454 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
15455 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
15456 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
15457 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
15458 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
15459 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
15460 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
15461 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
15462 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
15463 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
15464 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
15465 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
15466 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
15467 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
15468 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
15469 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
15470 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
15471 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
15472 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
15473 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
15474 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
15475 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
15476 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
15477 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
15478 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
15479 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
15480 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
15481 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
15482 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
15483 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
15484 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
15485 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
15486 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
15487 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
15488 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
15489 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
15490 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
15491 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
15492 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
15493 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
15494 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
15495 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
15496 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
15497 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
15498 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
15499 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
15500 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
15501 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
15502 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
15503 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
15504 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
15505 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
15506 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
15507 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
15508 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
15509 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
15510 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
15511 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
15512 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
15513 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
15514 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
15515 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
15516 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
15517 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
15518 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
15519 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
15520 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
15521 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
15522 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
15523 (vec_mult): Add !$omp taskwait.
15524 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
15525 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
15526 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
15527 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
15528 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
15529 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
15530 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
15531 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
15532 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
15533 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
15534 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
15535 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
15536 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
15537 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
15538 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
15539 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
15540 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
15541 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
15542 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
15543 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
15544 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
15545 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
15546 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
15547 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
15548 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
15549 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
15550 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
15551 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
15552 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
15553 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
15554 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
15555 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
15556 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
15557 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
15558 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
15559 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
15560 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
15561 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
15562 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
15563 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
15564 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
15565 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
15566 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
15567 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
15568 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
15569 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
15570 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
15571 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
15572 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
15573 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
15574 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
15575 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
15576 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
15577 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
15578 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
15579 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
15580 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
15581 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
15582 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
15583 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
15584 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
15585 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
15586 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
15587 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
15588 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
15589 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
15590 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
15592 2015-07-10 Tom de Vries <tom@codesourcery.com>
15594 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
15595 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
15597 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15600 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
15601 in a 64-bit configuration.
15602 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
15603 offloading testing if no such device is available.
15604 * testsuite/libgomp.oacc-c/c.exp: Likewise.
15605 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
15607 2015-07-08 Tom de Vries <tom@codesourcery.com>
15609 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
15611 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15613 2015-07-07 Tom de Vries <tom@codesourcery.com>
15615 PR tree-optimization/66642
15616 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
15617 iteration count case.
15618 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
15619 function, factor out of ...
15620 (main): ... here. Test low iteration count case.
15622 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15624 * libgomp.h (gomp_thread_pool): Comment last_team field.
15626 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15628 * testsuite/libgomp.c++/pr66702-1.C: Require
15629 vect_simd_clones effective target.
15630 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
15632 2015-06-30 Tom de Vries <tom@codesourcery.com>
15634 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15635 already set. Use DEFAULT_CFLAGS in dg-runtest.
15636 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
15639 2015-06-30 Tom de Vries <tom@codesourcery.com>
15641 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
15642 already set. Use DEFAULT_CFLAGS in dg-runtest.
15643 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
15644 * testsuite/libgomp.c++/pr64824.C: Same.
15645 * testsuite/libgomp.c++/pr64868.C: Same.
15646 * testsuite/libgomp.c++/pr66199-1.C: Same.
15647 * testsuite/libgomp.c++/pr66199-2.C: Same.
15648 * testsuite/libgomp.c++/target-2.C: Same.
15649 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
15650 -std=<standard> option.
15651 * testsuite/libgomp.c++/udr-11.C: Same.
15652 * testsuite/libgomp.c++/udr-12.C: Same.
15653 * testsuite/libgomp.c++/udr-13.C: Same.
15654 * testsuite/libgomp.c++/udr-14.C: Same.
15655 * testsuite/libgomp.c++/udr-15.C: Same.
15656 * testsuite/libgomp.c++/udr-16.C: Same.
15657 * testsuite/libgomp.c++/udr-17.C: Same.
15658 * testsuite/libgomp.c++/udr-18.C: Same.
15659 * testsuite/libgomp.c++/udr-19.C: Same.
15660 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
15661 * testsuite/libgomp.c++/simd-1.C: Same.
15662 * testsuite/libgomp.c++/simd-2.C: Same.
15663 * testsuite/libgomp.c++/simd-3.C: Same.
15664 * testsuite/libgomp.c++/simd-4.C: Same.
15665 * testsuite/libgomp.c++/simd-5.C: Same.
15666 * testsuite/libgomp.c++/simd-6.C: Same.
15667 * testsuite/libgomp.c++/simd-7.C: Same.
15668 * testsuite/libgomp.c++/simd-8.C: Same.
15669 * testsuite/libgomp.c++/simd-9.C: Same.
15670 * testsuite/libgomp.c++/simd10.C: Same.
15671 * testsuite/libgomp.c++/simd11.C: Same.
15672 * testsuite/libgomp.c++/simd12.C: Same.
15673 * testsuite/libgomp.c++/simd13.C: Same.
15675 2015-06-30 Jakub Jelinek <jakub@redhat.com>
15677 PR middle-end/66702
15678 * testsuite/libgomp.c++/pr66702-1.C: New test.
15679 * testsuite/libgomp.c++/pr66702-2.C: New test.
15681 2015-06-30 Tom de Vries <tom@codesourcery.com>
15683 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
15684 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
15685 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
15686 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
15688 2015-06-30 Tom de Vries <tom@codesourcery.com>
15690 PR tree-optimization/66652
15691 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
15692 using restrict pointers.
15693 (main): Add arguments to calls to f.
15694 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15696 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
15698 * configure.ac: Fix check for header <sys/sysctl.h>.
15699 * configure: Regenerate.
15700 * config.h.in: Likewise.
15702 2015-06-23 Tom de Vries <tom@codesourcery.com>
15704 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
15706 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
15708 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
15710 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
15714 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
15715 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15717 2015-06-15 Tom de Vries <tom@codesourcery.com>
15719 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
15720 dg-additional-options for any remaining options.
15721 * testsuite/libgomp.c/atomic-2.c: Same.
15722 * testsuite/libgomp.c/atomic-4.c: Same.
15723 * testsuite/libgomp.c/atomic-5.c: Same.
15724 * testsuite/libgomp.c/atomic-6.c: Same.
15725 * testsuite/libgomp.c/autopar-1.c: Same.
15726 * testsuite/libgomp.c/copyin-1.c: Same.
15727 * testsuite/libgomp.c/copyin-2.c: Same.
15728 * testsuite/libgomp.c/copyin-3.c: Same.
15729 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
15730 * testsuite/libgomp.c/nestedfn-5.c: Same.
15731 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
15732 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
15733 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
15734 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15735 * testsuite/libgomp.c/pr32362-1.c: Same.
15736 * testsuite/libgomp.c/pr32362-2.c: Same.
15737 * testsuite/libgomp.c/pr32362-3.c: Same.
15738 * testsuite/libgomp.c/pr39591-1.c: Same.
15739 * testsuite/libgomp.c/pr39591-2.c: Same.
15740 * testsuite/libgomp.c/pr39591-3.c: Same.
15741 * testsuite/libgomp.c/pr58392.c: Same.
15742 * testsuite/libgomp.c/pr58756.c: Same.
15743 * testsuite/libgomp.c/simd-1.c: Same.
15744 * testsuite/libgomp.c/simd-10.c: Same.
15745 * testsuite/libgomp.c/simd-11.c: Same.
15746 * testsuite/libgomp.c/simd-12.c: Same.
15747 * testsuite/libgomp.c/simd-13.c: Same.
15748 * testsuite/libgomp.c/simd-14.c: Same.
15749 * testsuite/libgomp.c/simd-15.c: Same.
15750 * testsuite/libgomp.c/simd-2.c: Same.
15751 * testsuite/libgomp.c/simd-3.c: Same.
15752 * testsuite/libgomp.c/simd-4.c: Same.
15753 * testsuite/libgomp.c/simd-5.c: Same.
15754 * testsuite/libgomp.c/simd-6.c: Same.
15755 * testsuite/libgomp.c/simd-7.c: Same.
15756 * testsuite/libgomp.c/simd-8.c: Same.
15757 * testsuite/libgomp.c/simd-9.c: Same.
15759 2015-06-15 Tom de Vries <tom@codesourcery.com>
15761 * testsuite/libgomp.c/pr35625.c: Fix typo.
15763 2015-06-15 Tom de Vries <tom@codesourcery.com>
15765 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
15767 * testsuite/libgomp.c/atomic-3.c: Same.
15768 * testsuite/libgomp.c/debug-1.c: Same.
15769 * testsuite/libgomp.c/nqueens-1.c: Same.
15770 * testsuite/libgomp.c/pr26171.c: Same.
15771 * testsuite/libgomp.c/pr48591.c: Same.
15772 * testsuite/libgomp.c/pr64824.c: Same.
15773 * testsuite/libgomp.c/pr64868.c: Same.
15774 * testsuite/libgomp.c/pr66133.c: Same.
15775 * testsuite/libgomp.c/pr66199-1.c: Same.
15776 * testsuite/libgomp.c/pr66199-2.c: Same.
15777 * testsuite/libgomp.c/target-8.c: Same.
15779 2015-06-15 Tom de Vries <tom@codesourcery.com>
15781 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
15783 * testsuite/libgomp.c/for-1.c: Same.
15784 * testsuite/libgomp.c/for-2.c: Same.
15785 * testsuite/libgomp.c/for-3.c: Same.
15786 * testsuite/libgomp.c/pr35625.c: Same.
15787 * testsuite/libgomp.c/pr39154.c: Same.
15788 * testsuite/libgomp.c/simd-16.c: Same.
15789 * testsuite/libgomp.c/simd-17.c: Same.
15791 2015-06-13 Tom de Vries <tom@codesourcery.com>
15793 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
15795 2015-06-13 Tom de Vries <tom@codesourcery.com>
15797 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
15798 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
15799 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
15801 (main): Use N instead of hardcoded constants.
15803 2015-06-05 Tom de Vries <tom@codesourcery.com>
15805 merge from gomp4 branch:
15806 2015-05-28 Tom de Vries <tom@codesourcery.com>
15808 PR tree-optimization/65443
15809 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
15810 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
15811 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
15813 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15815 * testsuite/libgomp.graphite/bounds.c: Adjust for
15816 cleanup-tree-dump removal.
15817 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
15818 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
15819 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
15820 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
15821 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
15822 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
15823 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
15824 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
15825 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
15826 * testsuite/libgomp.graphite/pr41118.c: Likewise.
15828 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
15830 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
15831 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
15832 (futex_wake) [!__x86_64__]: Ditto.
15834 2015-05-28 Julian Brown <julian@codesourcery.com>
15836 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
15837 function comment. Only call gomp_fatal if new argument is true.
15838 (acc_dev_num_out_of_range): New function.
15839 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
15840 acc_dev_num_out_of_range as appropriate.
15841 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15842 (acc_get_device_num, acc_set_device_num): Update calls to
15844 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
15847 2015-05-28 Julian Brown <julian@codesourcery.com>
15850 * oacc-init.c (plugin/plugin-host.h): Include.
15851 (acc_on_device): Check whether we're in an offloaded region for
15853 plugin. Don't use __builtin_acc_on_device.
15854 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
15855 nonshm_exec flag in thread-local data.
15856 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
15857 data for host_nonshm plugin.
15858 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
15859 for host_nonshm plugin.
15860 * plugin/plugin-host.h: New.
15862 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15864 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
15866 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15868 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
15870 (FUTEX_PRIVATE_FLAG): Remove L suffix.
15871 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
15874 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
15876 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
15878 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
15880 * target.c (gomp_map_pointer): New function abstracting out
15881 GOMP_MAP_POINTER handling.
15882 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
15883 gomp_map_pointer().
15885 2015-05-19 Jakub Jelinek <jakub@redhat.com>
15887 PR middle-end/66199
15888 * testsuite/libgomp.c/pr66199-1.c: New test.
15889 * testsuite/libgomp.c/pr66199-2.c: New test.
15890 * testsuite/libgomp.c++/pr66199-1.C: New test.
15891 * testsuite/libgomp.c++/pr66199-2.C: New test.
15892 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
15893 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
15895 2015-05-19 Julian Brown <julian@codesourcery.com>
15897 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
15900 2015-05-13 Jakub Jelinek <jakub@redhat.com>
15902 PR middle-end/66133
15903 * testsuite/libgomp.c/pr66133.c: New test.
15905 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
15907 * Makefile.in: Regenerated with automake-1.11.6.
15908 * aclocal.m4: Likewise.
15909 * config.h.in: Likewise.
15910 * configure: Likewise.
15911 * testsuite/Makefile.in: Likewise.
15913 2015-05-08 Jason Merrill <jason@redhat.com>
15915 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
15918 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
15920 2015-05-06 Julian Brown <julian@codesourcery.com>
15922 * oacc-init.c (acc_device_lock): Add explanatory comment.
15923 (resolve_device): Add comment about locking requirement.
15924 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
15925 gomp_init_device and gomp_fini_device calls.
15926 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
15927 (acc_get_device_num, acc_set_device_num): Add locking around
15928 resolve_device and gomp_init_device calls.
15930 2015-05-06 Julian Brown <julian@codesourcery.com>
15932 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
15933 goacc_thread_lock on error paths.
15934 * oacc-mem.c (lookup_host): Remove locking from function. Note
15935 locking requirement for caller in function comment.
15936 (lookup_dev): Likewise.
15937 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
15938 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
15939 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
15942 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
15946 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
15947 don't expect "0x" prefix for "%p" format specifier, don't expect
15948 "(nil)" for NULL pointer.
15949 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15950 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15951 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15952 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
15953 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
15954 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
15955 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
15956 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
15957 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
15958 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
15959 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
15960 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
15961 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
15962 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
15963 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
15964 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
15965 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
15966 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
15967 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
15968 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
15969 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
15970 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
15971 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
15972 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
15973 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
15974 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
15975 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
15976 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
15977 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
15978 accurately specify what we're looking for.
15979 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
15980 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
15981 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
15982 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
15983 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
15985 2015-04-30 James Norris <jnorris@codesourcery.com>
15988 * testsuite/lib/libgomp.exp
15989 (check_effective_target_openacc_host_selected)
15990 (check_effective_target_openacc_host_nonshm_selected): New
15992 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
15994 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
15995 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
15996 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
15997 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
15998 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
15999 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16000 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16001 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16002 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16003 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16004 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16005 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16006 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16007 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16008 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16009 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16010 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16011 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16012 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16013 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16014 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16015 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16016 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16017 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16018 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16019 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16020 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16021 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16022 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16023 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16024 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16025 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16026 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16027 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16028 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16029 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16030 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16031 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16032 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16033 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16034 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16035 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16036 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16038 2015-04-08 Julian Brown <julian@codesourcery.com>
16040 * libgomp.h (target_mem_desc: Remove mem_map field.
16041 (acc_dispatch_t): Remove open_device_func, close_device_func,
16042 get_device_num_func, set_device_num_func, target_data members.
16043 Change create_thread_data_func argument to device number instead of
16045 * oacc-async.c (assert.h): Include.
16046 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
16047 (acc_wait_all, acc_wait_all_async): Use current host thread's
16048 active device, not base_dev.
16049 * oacc-cuda.c (acc_get_current_cuda_device)
16050 (acc_get_current_cuda_context, acc_get_cuda_stream)
16051 (acc_set_cuda_stream): Likewise.
16052 * oacc-host.c (host_dispatch): Don't set open_device_func,
16053 close_device_func, get_device_num_func or set_device_num_func.
16054 * oacc-init.c (base_dev, init_key): Remove.
16055 (cached_base_dev): New.
16056 (name_of_acc_device_t): New.
16057 (acc_init_1): Initialise default-numbered device, not zeroth.
16058 (acc_shutdown_1): Close all devices of a given type.
16059 (goacc_destroy_thread): Don't use base_dev.
16060 (lazy_open, lazy_init, lazy_init_and_open): Remove.
16061 (goacc_attach_host_thread_to_device): New.
16062 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
16063 (acc_get_num_devices): Don't use base_dev.
16064 (acc_set_device_type): Reimplement.
16065 (acc_get_device_type): Don't use base_dev.
16066 (acc_get_device_num): Tweak logic.
16067 (acc_set_device_num): Likewise.
16068 (acc_on_device): Use acc_get_device_type.
16069 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
16070 (goacc_lazy_initialize): Reimplement with acc_init and
16071 goacc_attach_host_thread_to_device.
16072 * oacc-int.h (goacc_thread): Add base_dev field.
16073 (base_dev): Remove extern declaration.
16074 (goacc_attach_host_thread_to_device): Add prototype.
16075 * oacc-mem.c (acc_malloc): Use current thread's device instead of
16077 (acc_free): Likewise.
16078 (acc_memcpy_to_device): Likewise.
16079 (acc_memcpy_from_device): Likewise.
16080 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
16081 goacc_lazy_initialize (throughout).
16082 (GOACC_parallel): Use tgt_offset to locate target functions.
16083 * target.c (gomp_map_vars): Don't set tgt->mem_map.
16084 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
16085 (gomp_load_plugin_for_device): Remove open_device, close_device,
16086 get_device_num, set_device_num openacc hook initialisation. Don't set
16087 openacc.target_data.
16088 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
16089 (GOMP_OFFLOAD_openacc_close_device)
16090 (GOMP_OFFLOAD_openacc_get_device_num)
16091 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
16092 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
16094 * plugin/plugin-nvptx.c (ptx_inited): Remove.
16095 (instantiated_devices, ptx_dev_lock): New.
16096 (struct ptx_image_data): New.
16097 (ptx_devices, ptx_images, ptx_image_lock): New.
16098 (fini_streams_for_device): Reorder cuStreamDestroy call.
16099 (nvptx_get_num_devices): Remove forward declaration.
16100 (nvptx_init): Change return type to bool.
16101 (nvptx_fini): Remove.
16102 (nvptx_attach_host_thread_to_device): New.
16103 (nvptx_open_device): Return struct ptx_device* instead of void*.
16104 (nvptx_close_device): Change argument type to struct ptx_device*,
16105 return type to void.
16106 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
16107 (kernel_target_data, kernel_host_table): Remove static globals.
16108 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
16109 (GOMP_OFFLOAD_init_device): Reimplement.
16110 (GOMP_OFFLOAD_fini_device): Likewise.
16111 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
16112 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
16113 (GOMP_OFFLOAD_host2dev): Use ORD argument.
16114 (GOMP_OFFLOAD_openacc_open_device)
16115 (GOMP_OFFLOAD_openacc_close_device)
16116 (GOMP_OFFLOAD_openacc_set_device_num)
16117 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
16118 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
16122 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
16124 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
16126 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
16127 * libgomp.h (struct gomp_memory_mapping): Remove.
16128 (struct target_mem_desc): Change type of mem_map from
16129 gomp_memory_mapping * to splay_tree_s *.
16130 (struct gomp_device_descr): Remove register_image_func, get_table_func.
16131 Add load_image_func, unload_image_func.
16132 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
16133 Remove offload_regions_registered.
16134 (gomp_init_tables): Remove.
16135 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16137 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
16138 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
16139 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
16140 offload_regions_registered.
16141 Initialize load_image_func, unload_image_func, mem_map.root.
16142 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
16143 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
16144 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
16145 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
16146 gomp_memory_mapping *. Use dev's lock and splay_tree.
16147 (lookup_dev): Use dev's lock.
16148 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
16149 (acc_is_present): Likewise.
16150 (acc_map_data): Likewise.
16151 (acc_unmap_data): Likewise. Use dev's lock.
16152 (present_create_copy): Likewise.
16153 (delete_copyout): Pass dev to lookup_host instead of mem_map.
16154 (update_dev_host): Likewise.
16155 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
16156 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
16157 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
16158 (GOMP_OFFLOAD_get_table): Remove
16159 (GOMP_OFFLOAD_load_image): New function.
16160 (GOMP_OFFLOAD_unload_image): New function.
16161 * target.c (register_lock): New mutex for offload image registration.
16162 (num_devices): Do not guard with PLUGIN_SUPPORT.
16163 (gomp_realloc_unlock): New static function.
16164 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
16166 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
16167 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
16168 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
16170 (gomp_unmap_vars): Likewise.
16171 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
16172 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
16173 (gomp_offload_image_to_device): New static function.
16174 (GOMP_offload_register): Add mutex lock.
16175 Call gomp_offload_image_to_device for all initialized devices.
16176 Replace gomp_realloc with gomp_realloc_unlock.
16177 (GOMP_offload_unregister): New function.
16178 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
16179 get_table_func from the plugin with calls to init_device_func and
16180 gomp_offload_image_to_device.
16181 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
16183 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
16184 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
16185 (GOMP_target_data): Do not call gomp_init_tables.
16186 (GOMP_target_update): Likewise. Remove argument from gomp_update.
16187 (gomp_load_plugin_for_device): Replace register_image and get_table
16188 with load_image and unload_image in DLSYM ().
16189 (gomp_register_images_for_device): Remove function.
16190 (gomp_target_init): Do not initialize current_device.mem_map.*,
16191 current_device.offload_regions_registered.
16192 Remove call to gomp_register_images_for_device.
16193 Do not free offload_images and num_offload_images.
16195 2015-03-30 Jakub Jelinek <jakub@redhat.com>
16198 * testsuite/libgomp.fortran/pr65597.f90: New test.
16200 2015-03-27 Tom de Vries <tom@codesourcery.com>
16203 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
16204 (init, check): New function.
16205 (foo): Change return type to void.
16206 (main): Call init and check.
16208 2015-03-27 Tom de Vries <tom@codesourcery.com>
16211 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
16212 (foo): Use M for non-inner loops to scale down test-case.
16214 2015-03-25 Kai Tietz <ktietz@redhat.com>
16217 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
16218 (GOACC_data_start): Likewise.
16219 * target.c (gomp_map_vars): Likewise.
16221 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
16223 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
16226 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16228 * testsuite/libgomp.c/target-10.c: New test.
16229 * testsuite/libgomp.c++/target-4.C: New test.
16231 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16233 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
16234 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
16236 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
16238 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
16239 * configure.ac (*-*-rtems*): Assume Pthread is supported.
16240 (pthread.h): Check for this header file.
16241 * configure: Regenerate.
16243 2015-02-25 Tom de Vries <tom@codesourcery.com>
16245 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
16246 (check_reduction_op, check_reduction_macro, max, min):
16248 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
16250 (main): Use new functions.
16252 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
16254 * target.c (gomp_load_plugin_for_device): Use const char * instead of
16255 char * for variables holding dlerror return values.
16256 (DLSYM_OPT): Ditto.
16258 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16260 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
16262 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
16263 Cesar Philippidis <cesar@codesourcery.com>
16265 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
16266 GOACC_ctaid, and GOACC_nctaid routines.
16268 2015-02-11 Jakub Jelinek <jakub@redhat.com>
16271 * testsuite/libgomp.c/atomic-18.c: New test.
16272 * testsuite/libgomp.c++/atomic-16.C: New test.
16274 2015-02-04 Jakub Jelinek <jakub@redhat.com>
16278 * testsuite/libgomp.c/pr64824.c: New test.
16279 * testsuite/libgomp.c/pr64868.c: New test.
16280 * testsuite/libgomp.c++/pr64824.C: New test.
16281 * testsuite/libgomp.c++/pr64868.C: New test.
16283 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
16286 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
16287 Link with -lpthread.
16288 * config/aix/plugin-suffix.h: Delete.
16290 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
16293 * configure.tgt (*-*-aix*): Use config_path "aix posix".
16294 (*-*-darwin*): Use config_path "bsd darwin posix".
16295 (*-*-hpux*): Use config_path "hpux posix".
16296 * target.c: Add include of plugin-suffix.h and use
16297 SONAME_SUFFIX macro.
16298 * config/aix/plugin-suffix.h: New file.
16299 * config/darwin/plugin-suffix.h: New file.
16300 * config/hpux/plugin-suffix.h: New file.
16301 * config/posix/plugin-suffix.h: New file.
16303 2015-01-23 Jakub Jelinek <jakub@redhat.com>
16305 PR middle-end/64734
16306 * libgomp.c/pr64734.c: New test.
16308 2015-01-23 Tom de Vries <tom@codesourcery.com>
16311 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
16313 2015-01-23 Tom de Vries <tom@codesourcery.com>
16316 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
16319 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
16322 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
16323 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
16324 formal parameter. Update all users.
16325 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
16326 Document unused formal parameter.
16328 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
16330 * oacc-parallel.c: Don't include <alloca.h>.
16331 (GOACC_parallel): Use gomp_alloca instead of alloca.
16333 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
16335 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
16337 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
16338 James Norris <jnorris@codesourcery.com>
16339 Tom de Vries <tom@codesourcery.com>
16340 Julian Brown <julian@codesourcery.com>
16341 Cesar Philippidis <cesar@codesourcery.com>
16342 Nathan Sidwell <nathan@codesourcery.com>
16343 Tobias Burnus <burnus@net-b.de>
16345 * Makefile.am (search_path): Add $(top_srcdir)/../include.
16346 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
16347 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
16348 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
16349 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
16350 Include $(top_srcdir)/plugin/Makefrag.am.
16351 (nodist_libsubinclude_HEADERS): Add openacc.h.
16352 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
16353 openacc.f90, openacc.mod, openacc_kinds.mod.
16354 (omp_lib.mod): Generalize into...
16355 (%.mod): ... this new rule.
16356 (openacc_kinds.mod, openacc.mod): New rules.
16357 * plugin/configfrag.ac: New file.
16358 * configure.ac: Move plugin/offloading support into it. Include
16359 it. Instantiate testsuite/libgomp-test-support.pt.exp.
16360 * plugin/Makefrag.am: New file.
16361 * testsuite/Makefile.am (OFFLOAD_TARGETS)
16362 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
16364 (libgomp-test-support.exp): New rule.
16365 (all-local): Depend on it.
16366 * Makefile.in: Regenerate.
16367 * testsuite/Makefile.in: Regenerate.
16368 * config.h.in: Likewise.
16369 * configure: Likewise.
16370 * configure.tgt: Harden shell syntax.
16371 * env.c: Include "oacc-int.h".
16372 (parse_acc_device_type): New function.
16373 (gomp_debug_var, goacc_device_type, goacc_device_num): New
16375 (initialize_env): Initialize those. Call
16376 goacc_runtime_initialize.
16377 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
16378 (gomp_fatal): Call gomp_vfatal.
16379 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
16380 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
16381 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
16382 (splay_tree_node, splay_tree, splay_tree_key)
16383 (struct target_mem_desc, struct splay_tree_key_s)
16384 (struct gomp_memory_mapping, struct acc_dispatch_t)
16385 (struct gomp_device_descr, gomp_acc_insert_pointer)
16386 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
16387 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
16388 (gomp_free_memmap, gomp_fini_device): New declarations.
16389 (gomp_vdebug, gomp_debug): New macros.
16390 Include "splay-tree.h".
16391 * libgomp.map (OACC_2.0): New symbol version. Use for
16392 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
16393 acc_set_device_type_h_, acc_get_device_type,
16394 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
16395 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
16396 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
16397 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
16398 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
16399 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
16400 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
16401 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
16402 acc_copyin_array_h_, acc_present_or_copyin,
16403 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
16404 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
16405 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
16406 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
16407 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
16408 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
16409 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
16410 acc_update_device, acc_update_device_32_h_,
16411 acc_update_device_64_h_, acc_update_device_array_h_,
16412 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
16413 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
16414 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
16415 acc_is_present_64_h_, acc_is_present_array_h_,
16416 acc_memcpy_to_device, acc_memcpy_from_device,
16417 acc_get_current_cuda_device, acc_get_current_cuda_context,
16418 acc_get_cuda_stream, acc_set_cuda_stream.
16419 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
16420 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
16421 GOACC_update, GOACC_wait, GOACC_get_thread_num,
16422 GOACC_get_num_threads.
16423 (GOMP_PLUGIN_1.0): New symbol version. Use for
16424 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
16425 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
16426 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
16427 GOMP_PLUGIN_acc_thread.
16428 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
16429 environment variable.
16430 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
16431 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
16432 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
16433 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
16434 (splay_tree_remove): New declarations.
16435 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
16436 (splay_tree_remove, splay_tree_lookup): Move into...
16437 * splay-tree.c: ... this new file.
16438 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
16439 (splay_tree_node, splay_tree, splay_tree_key)
16440 (struct target_mem_desc, struct splay_tree_key_s)
16441 (struct gomp_device_descr): Don't declare.
16442 (num_devices_openmp): New variable.
16443 (gomp_get_num_devices ): Use it.
16444 (gomp_init_targets_once): New function.
16445 (gomp_get_num_devices ): Use it.
16446 (get_kind, gomp_copy_from_async, gomp_free_memmap)
16447 (gomp_fini_device, gomp_register_image_for_device): New functions.
16448 (gomp_map_vars): Add devaddrs parameter.
16449 (gomp_update): Add mm parameter.
16450 (gomp_init_device): Move most of it into...
16451 (gomp_init_tables): ... this new function.
16452 (gomp_register_images_for_device): Remove function.
16453 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
16454 Make them hidden instead of static.
16455 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
16456 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
16457 (GOMP_target_end_data, GOMP_target_update)
16458 (gomp_load_plugin_for_device, gomp_target_init): Update for
16460 * oacc-async.c: New file.
16461 * oacc-cuda.c: Likewise.
16462 * oacc-host.c: Likewise.
16463 * oacc-init.c: Likewise.
16464 * oacc-int.h: Likewise.
16465 * oacc-mem.c: Likewise.
16466 * oacc-parallel.c: Likewise.
16467 * oacc-plugin.c: Likewise.
16468 * oacc-plugin.h: Likewise.
16469 * oacc-ptx.h: Likewise.
16470 * openacc.f90: Likewise.
16471 * openacc.h: Likewise.
16472 * openacc_lib.h: Likewise.
16473 * plugin/plugin-host.c: Likewise.
16474 * plugin/plugin-nvptx.c: Likewise.
16475 * libgomp-plugin.c: Likewise.
16476 * libgomp-plugin.h: Likewise.
16477 * libgomp_target.h: Remove file after merging content into the
16478 former file. Update all users.
16479 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
16480 (offload_targets_s, offload_targets_s_openacc): New variables.
16481 (check_effective_target_openacc_nvidia_accel_present)
16482 (check_effective_target_openacc_nvidia_accel_selected): New
16484 (libgomp_init): Update for OpenACC changes.
16485 * testsuite/libgomp-test-support.exp.in: New file.
16486 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
16487 * testsuite/libgomp.oacc-c/c.exp: Likewise.
16488 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
16489 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
16490 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
16491 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
16492 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
16493 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
16494 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
16495 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
16496 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
16497 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
16498 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
16499 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
16500 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
16501 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
16502 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
16503 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
16504 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
16505 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
16506 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
16507 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
16508 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
16509 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
16510 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
16511 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
16512 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
16513 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
16514 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
16515 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
16516 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
16517 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
16518 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
16519 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
16520 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
16521 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
16522 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
16523 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
16524 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
16525 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
16526 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
16527 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
16528 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
16529 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
16530 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
16531 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
16532 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
16533 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
16534 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
16535 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
16536 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
16537 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
16538 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
16539 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
16540 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
16541 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
16542 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
16543 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
16544 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
16545 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
16546 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
16547 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
16548 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
16549 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
16550 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
16551 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
16552 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
16553 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
16554 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
16555 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
16556 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
16557 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
16558 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
16559 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
16560 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
16561 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
16562 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
16563 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
16564 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
16565 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
16566 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
16567 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
16568 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
16569 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
16570 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
16571 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
16572 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
16573 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
16574 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
16575 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
16576 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
16577 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
16578 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
16579 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
16580 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
16581 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
16582 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
16583 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
16584 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
16585 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
16586 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
16587 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
16588 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
16589 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
16590 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
16591 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
16592 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
16593 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
16594 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
16595 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
16596 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
16597 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
16598 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
16599 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
16600 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
16601 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
16602 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
16603 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
16604 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
16605 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
16606 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
16607 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
16608 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
16609 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
16610 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
16611 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
16612 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
16613 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
16614 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
16615 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
16616 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
16617 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
16618 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
16619 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
16620 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
16621 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
16622 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
16623 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
16624 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
16625 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
16627 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
16628 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
16629 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
16630 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
16631 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
16632 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
16633 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
16634 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
16635 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
16636 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
16637 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
16638 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
16639 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
16640 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
16641 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
16642 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
16643 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
16644 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
16645 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
16646 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
16647 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
16648 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
16649 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
16650 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
16651 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
16652 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
16653 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
16654 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
16655 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
16656 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
16657 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
16658 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
16659 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
16660 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
16661 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
16662 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
16663 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
16664 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
16665 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
16666 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
16667 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
16668 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
16669 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
16670 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
16671 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
16672 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
16673 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
16674 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
16675 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
16676 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
16677 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
16678 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
16679 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
16680 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
16681 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
16682 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
16683 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
16684 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
16685 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
16686 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
16688 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
16689 Julian Brown <julian@codesourcery.com>
16690 David Malcolm <dmalcolm@redhat.com>
16692 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
16693 to "GNU Offloading and Multi Processing Runtime Library". Change
16695 * configure: Regenerate.
16696 * libgomp.texi: Update.
16698 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
16700 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
16702 * configure: Regenerate.
16704 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
16705 "intelmic" in $offload_targets.
16707 2015-01-05 Jakub Jelinek <jakub@redhat.com>
16709 Update copyright years.
16711 * libgomp.texi: Bump @copying's copyright year.
16713 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16715 * testsuite/lib/libgomp.exp: Load target-utils.exp.
16716 Move load of target-supports.exp earlier.
16718 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
16720 * testsuite/libgomp.c/target-9.c: New test.
16722 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
16724 * config.h.in: Regenerate.
16725 * configure: Regenerate.
16726 * configure.ac: Add GCC_CHECK_EMUTLS.
16727 * libgomp.h: Add check for USE_EMUTLS: this case
16728 is equal to HAVE_TLS.
16729 * team.c: Likewise.
16731 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
16733 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
16735 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
16736 Ilya Verbin <ilya.verbin@intel.com>
16738 * testsuite/libgomp.c/target-critical-1.c: New test.
16740 2014-11-26 Jakub Jelinek <jakub@redhat.com>
16742 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
16743 to dg-options unless expensive testing is on.
16744 (TESTITERS): Define to N if not defined.
16745 (main): Use TESTITERS instead of N.
16746 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
16747 dg-additional-options depending on whether expensive testing is on.
16748 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
16749 Decrease N to 100000 and CHUNKSZ to 10000.
16751 2014-11-24 Jakub Jelinek <jakub@redhat.com>
16754 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
16755 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
16757 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
16759 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
16761 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
16764 * configure: Regenerated.
16766 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
16768 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
16769 vect_simd_clones effective target.
16770 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16772 2014-11-14 Jakub Jelinek <jakub@redhat.com>
16774 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
16775 of 32 as block_size.
16776 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
16777 instead of 32 as block_size.
16779 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16780 Ilya Verbin <ilya.verbin@intel.com>
16782 * Makefile.in: Regenerate.
16783 * configure: Regenerate.
16784 * configure.ac: Set up offload_additional_options,
16785 offload_additional_lib_paths and offload_targets.
16786 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16787 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
16788 * testsuite/Makefile.in: Regenerate.
16789 * testsuite/lib/libgomp.exp (libgomp_init): Append
16790 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
16791 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
16792 build directory to LD_LIBRARY_PATH for intelmic offload targets.
16794 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
16795 Ilya Verbin <ilya.verbin@intel.com>
16796 Kirill Yukhin <kirill.yukhin@intel.com>
16797 Ilya Tocar <ilya.tocar@intel.com>
16799 * testsuite/lib/libgomp.exp
16800 (check_effective_target_offload_device): New.
16801 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
16802 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
16803 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
16804 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
16805 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
16806 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
16807 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
16808 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
16809 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
16810 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
16811 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
16812 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
16813 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
16814 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
16815 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
16816 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
16817 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
16818 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
16819 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
16820 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
16821 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
16822 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
16823 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
16824 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
16825 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
16826 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
16827 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
16828 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
16829 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
16830 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
16831 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
16832 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
16833 * testsuite/libgomp.c/target-7.c: Fix test.
16834 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
16835 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
16836 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
16837 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
16838 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
16839 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
16840 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
16841 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
16842 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
16843 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
16844 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
16845 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
16846 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
16847 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
16848 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
16849 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
16850 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
16851 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
16852 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
16853 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
16854 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
16855 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
16856 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
16857 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
16858 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
16859 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
16860 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
16861 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
16862 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
16863 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
16864 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
16866 2014-11-13 Jakub Jelinek <jakub@redhat.com>
16867 Ilya Verbin <ilya.verbin@intel.com>
16868 Thomas Schwinge <thomas@codesourcery.com>
16869 Andrey Turetskiy <andrey.turetskiy@intel.com>
16871 * libgomp.map (GOMP_4.0.1): New symbol version.
16872 Add GOMP_offload_register.
16873 * libgomp_target.h: New file.
16874 * splay-tree.h: New file.
16875 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
16876 (gomp_target_init): New forward declaration.
16877 (gomp_is_initialized): New static variable.
16878 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
16879 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
16881 (offload_images, num_offload_images, devices, num_devices): New static
16883 (splay_compare): New static function.
16884 (struct gomp_device_descr): New structure.
16885 (gomp_get_num_devices): Call gomp_target_init.
16886 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
16887 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
16888 (GOMP_offload_register): New function.
16889 (GOMP_target): Arrange for host callback to be performed in a separate
16890 initial thread and contention group, inheriting ICVs from
16891 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
16892 Add device initialization and lookup for target function in splay tree.
16893 (GOMP_target_data): Add device initialization and call gomp_map_vars.
16894 (GOMP_target_end_data): Call gomp_unmap_vars.
16895 (GOMP_target_update): Add device initialization and call gomp_update.
16896 (gomp_load_plugin_for_device, gomp_register_images_for_device)
16897 (gomp_target_init): New static functions.
16899 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
16900 Thomas Schwinge <thomas@codesourcery.com>
16901 Ilya Verbin <ilya.verbin@intel.com>
16902 Andrey Turetskiy <andrey.turetskiy@intel.com>
16904 * config.h.in: Regenerate.
16905 * configure: Regenerate.
16906 * configure.ac: Check for libdl, required for plugin support.
16907 (PLUGIN_SUPPORT): Define if plugins are supported.
16908 (enable_offload_targets): Support Intel MIC targets.
16909 (OFFLOAD_TARGETS): List of target names suitable for offloading.
16911 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16914 * configure: Regenerate.
16916 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16918 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
16920 2014-10-06 Marek Polacek <polacek@redhat.com>
16922 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
16923 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
16924 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
16925 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16927 2014-10-06 Marek Polacek <polacek@redhat.com>
16929 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
16930 * testsuite/libgomp.c/nqueens-1.c: Likewise.
16931 * testsuite/libgomp.c/pr26943-3.c: Likewise.
16932 * testsuite/libgomp.c/pr26943-4.c: Likewise.
16933 * testsuite/libgomp.c/pr36802-2.c: Likewise.
16934 * testsuite/libgomp.c/pr36802-3.c: Likewise.
16935 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
16936 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
16937 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
16938 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
16939 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
16940 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
16941 * testsuite/libgomp.c/omp-single-1.c: Likewise.
16942 * testsuite/libgomp.c/omp-single-2.c: Likewise.
16943 * testsuite/libgomp.c/omp_matvec.c: Likewise.
16944 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
16945 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
16946 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
16949 2014-10-03 Jakub Jelinek <jakub@redhat.com>
16952 * testsuite/libgomp.c/pr61200.c: New test.
16954 2014-09-18 Jakub Jelinek <jakub@redhat.com>
16957 * testsuite/libgomp.c++/pr63248.C: New test.
16959 2014-08-04 Jakub Jelinek <jakub@redhat.com>
16961 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
16962 is not zero, but taskgroup->children is NULL and there are
16963 any task->children, schedule those instead of waiting.
16964 * testsuite/libgomp.c/depend-6.c: New test.
16965 * testsuite/libgomp.c/depend-7.c: New test.
16966 * testsuite/libgomp.c/depend-8.c: New test.
16967 * testsuite/libgomp.c/depend-9.c: New test.
16968 * testsuite/libgomp.c/depend-10.c: New test.
16970 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16972 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
16973 (struct gomp_taskwait): New type.
16974 (struct gomp_task): Add taskwait and parent_depends_on, remove
16975 in_taskwait and taskwait_sem fields.
16976 (gomp_finish_task): Don't destroy taskwait_sem.
16977 * task.c (gomp_init_task): Don't init in_taskwait, instead init
16978 taskwait and parent_depends_on.
16979 (GOMP_task): For if (0) tasks with depend clause that depend on
16980 earlier tasks don't defer them, instead call
16981 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
16982 Initialize redundant_out field, for redundant out entries just
16983 move them at the end of linked list instead of removing them
16984 completely, and set redundant_out flag instead of redundant.
16985 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
16987 (gomp_task_run_post_handle_dependers): If parent is in
16988 gomp_task_maybe_wait_for_dependencies and newly runnable task
16989 is not parent_depends_on, queue it in parent->children linked
16990 list after all runnable tasks with parent_depends_on set.
16991 Adjust for addition of taskwait indirection.
16992 (gomp_task_run_post_remove_parent): If parent is in
16993 gomp_task_maybe_wait_for_dependencies and task to be removed
16994 is parent_depends_on, decrement n_depend and if needed awake
16995 parent. Adjust for addition of taskwait indirection.
16996 (GOMP_taskwait): Adjust for addition of taskwait indirection.
16997 (gomp_task_maybe_wait_for_dependencies): New function.
16998 * testsuite/libgomp.c/depend-5.c: New test.
17000 2014-07-13 Tobias Burnus <burnus@net-b.de>
17002 * testsuite/libgomp.fortran/pr34020.f90: Make compile
17003 with TS 18508/Fortran 2015.
17005 2014-07-06 Marek Polacek <polacek@redhat.com>
17008 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
17010 2014-07-03 Jakub Jelinek <jakub@redhat.com>
17012 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
17013 matches regex $lang_source_re, add $lang_include_flags to options.
17014 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
17015 * testsuite/libgomp.c++/c++.exp: Likewise.
17016 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
17017 and lang_include_flags instead of adding -fintrinsic-modules-path= to
17019 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
17021 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
17023 * testsuite/libgomp.fortran/fortran.exp: Explain
17024 gfortran-dg-runtest usage.
17026 2014-06-25 Jakub Jelinek <jakub@redhat.com>
17028 * testsuite/libgomp.fortran/simd5.f90: New test.
17029 * testsuite/libgomp.fortran/simd6.f90: New test.
17030 * testsuite/libgomp.fortran/simd7.f90: New test.
17032 2014-06-24 Jakub Jelinek <jakub@redhat.com>
17034 * testsuite/libgomp.c/for-2.c: Define SC to static for
17035 #pragma omp for simd testing.
17036 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
17037 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
17039 * testsuite/libgomp.c/simd-14.c: New test.
17040 * testsuite/libgomp.c/simd-15.c: New test.
17041 * testsuite/libgomp.c/simd-16.c: New test.
17042 * testsuite/libgomp.c/simd-17.c: New test.
17043 * testsuite/libgomp.c++/for-10.C: Define SC to static for
17044 #pragma omp for simd testing.
17045 * testsuite/libgomp.c++/simd10.C: New test.
17046 * testsuite/libgomp.c++/simd11.C: New test.
17047 * testsuite/libgomp.c++/simd12.C: New test.
17048 * testsuite/libgomp.c++/simd13.C: New test.
17050 * testsuite/libgomp.fortran/aligned1.f03: New test.
17051 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
17052 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
17053 tasks with !$omp parallel !$omp single.
17054 * testsuite/libgomp.fortran/target8.f90: New test.
17055 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
17056 not to use trim in the combiner, instead call elemental function.
17057 (fn): New elemental function.
17058 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
17060 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
17062 * testsuite/libgomp.fortran/udr12.f90: New test.
17063 * testsuite/libgomp.fortran/udr13.f90: New test.
17064 * testsuite/libgomp.fortran/udr14.f90: New test.
17065 * testsuite/libgomp.fortran/udr15.f90: New test.
17067 2014-06-18 Jakub Jelinek <jakub@redhat.com>
17069 * omp_lib.f90.in (openmp_version): Set to 201307.
17070 * omp_lib.h.in (openmp_version): Likewise.
17071 * testsuite/libgomp.c/target-8.c: New test.
17072 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
17073 and inbranch clauses.
17074 * testsuite/libgomp.fortran/depend-3.f90: New test.
17075 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
17077 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17078 * testsuite/libgomp.fortran/target1.f90: New test.
17079 * testsuite/libgomp.fortran/target2.f90: New test.
17080 * testsuite/libgomp.fortran/target3.f90: New test.
17081 * testsuite/libgomp.fortran/target4.f90: New test.
17082 * testsuite/libgomp.fortran/target5.f90: New test.
17083 * testsuite/libgomp.fortran/target6.f90: New test.
17084 * testsuite/libgomp.fortran/target7.f90: New test.
17086 2014-06-10 Jakub Jelinek <jakub@redhat.com>
17089 * testsuite/libgomp.fortran/allocatable9.f90: New test.
17090 * testsuite/libgomp.fortran/allocatable10.f90: New test.
17091 * testsuite/libgomp.fortran/allocatable11.f90: New test.
17092 * testsuite/libgomp.fortran/allocatable12.f90: New test.
17093 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
17094 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
17095 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
17096 * testsuite/libgomp.fortran/associate1.f90: New test.
17097 * testsuite/libgomp.fortran/associate2.f90: New test.
17098 * testsuite/libgomp.fortran/procptr1.f90: New test.
17100 2014-06-06 Jakub Jelinek <jakub@redhat.com>
17102 * testsuite/libgomp.fortran/simd1.f90: New test.
17103 * testsuite/libgomp.fortran/udr1.f90: New test.
17104 * testsuite/libgomp.fortran/udr2.f90: New test.
17105 * testsuite/libgomp.fortran/udr3.f90: New test.
17106 * testsuite/libgomp.fortran/udr4.f90: New test.
17107 * testsuite/libgomp.fortran/udr5.f90: New test.
17108 * testsuite/libgomp.fortran/udr6.f90: New test.
17109 * testsuite/libgomp.fortran/udr7.f90: New test.
17110 * testsuite/libgomp.fortran/udr8.f90: New test.
17111 * testsuite/libgomp.fortran/udr9.f90: New test.
17112 * testsuite/libgomp.fortran/udr10.f90: New test.
17113 * testsuite/libgomp.fortran/udr11.f90: New test.
17115 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
17117 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
17118 vect_simd_clones effective target.
17119 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
17121 2014-05-21 Jakub Jelinek <jakub@redhat.com>
17123 PR middle-end/61252
17124 * testsuite/libgomp.c++/simd-9.C: New test.
17126 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
17128 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
17129 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
17130 texts according to their @menu entry positions.
17132 2014-05-11 Jakub Jelinek <jakub@redhat.com>
17134 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
17135 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
17136 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
17137 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
17138 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
17139 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
17140 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
17141 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
17142 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
17143 * testsuite/libgomp.fortran/depend-1.f90: New test.
17144 * testsuite/libgomp.fortran/depend-2.f90: New test.
17145 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
17146 * testsuite/libgomp.fortran/simd1.f90: New test.
17147 * testsuite/libgomp.fortran/simd2.f90: New test.
17148 * testsuite/libgomp.fortran/simd3.f90: New test.
17149 * testsuite/libgomp.fortran/simd4.f90: New test.
17150 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
17152 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17154 * testsuite/libgomp.c/simd-10.c: New test.
17155 * testsuite/libgomp.c/simd-11.c: New test.
17156 * testsuite/libgomp.c/simd-12.c: New test.
17157 * testsuite/libgomp.c/simd-13.c: New test.
17159 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17161 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
17162 atomic type clauses in any order and optional comma in between.
17163 * testsuite/libgomp.c++/atomic-15.C: Likewise.
17164 * testsuite/libgomp.c/atomic-17.c: Likewise.
17166 * testsuite/libgomp.c/simd-7.c: New test.
17167 * testsuite/libgomp.c/simd-8.c: New test.
17168 * testsuite/libgomp.c/simd-9.c: New test.
17169 * testsuite/libgomp.c/loop-16.c: New test.
17171 2014-04-02 Richard Henderson <rth@redhat.com>
17173 * config/linux/futex.h (futex_wait): Get error value from errno.
17174 (futex_wake): Likewise.
17176 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17179 * testsuite/libgomp.c++/udr-11.C: New test.
17180 * testsuite/libgomp.c++/udr-12.C: New test.
17181 * testsuite/libgomp.c++/udr-13.C: New test.
17182 * testsuite/libgomp.c++/udr-14.C: New test.
17183 * testsuite/libgomp.c++/udr-15.C: New test.
17184 * testsuite/libgomp.c++/udr-16.C: New test.
17185 * testsuite/libgomp.c++/udr-17.C: New test.
17186 * testsuite/libgomp.c++/udr-18.C: New test.
17187 * testsuite/libgomp.c++/udr-19.C: New test.
17189 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17191 Update copyright years
17193 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
17195 * hashtab.h: Use the standard form for the copyright notice.
17197 2014-01-02 Tobias Burnus <burnus@net-b.de>
17199 * libgomp.texi: Bump @copying's copyright year.
17201 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
17203 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
17204 alloca () with __builtin_alloca ().
17205 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
17206 * testsuite/libgomp.c/lock-3.c: Likewise.
17207 * testsuite/libgomp.c/pr48591.c: Likewise.
17209 2013-12-17 Jakub Jelinek <jakub@redhat.com>
17212 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
17215 2013-12-16 Jakub Jelinek <jakub@redhat.com>
17218 * testsuite/libgomp.c/pr58756.c: New test.
17220 2013-12-12 Jakub Jelinek <jakub@redhat.com>
17223 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
17226 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
17228 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
17230 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
17231 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
17232 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
17233 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
17236 * libgomp_g.h: Include <stddef.h> for size_t.
17238 * libgomp.spec.in: Update comment about libgomp's dependencies.
17239 * configure.ac: Likewise.
17240 * configure: Regenerate.
17242 2013-10-16 Tobias Burnus <burnus@net-b.de>
17244 * libgomp.texi: (Runtime Library Routines): Update references for
17245 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
17246 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
17247 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
17248 (Environment Variables): Update references for OpenMP 4.0. Add
17249 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
17250 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
17253 2013-10-14 Jakub Jelinek <jakub@redhat.com>
17255 * env.c (parse_bind_var): Initialize value to avoid
17256 (false positive) warning.
17258 2013-10-12 Jakub Jelinek <jakub@redhat.com>
17261 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
17263 (gomp_init_num_threads): Move i variable declaration into
17264 #ifdef CPU_ALLOC_SIZE block.
17265 * config/linux/affinity.c (gomp_affinity_init_level): Test
17266 gomp_places_list_len == 0 rather than gomp_places_list == 0
17267 when checking for topology reading error.
17268 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
17269 * env.c (parse_affinity): Add ignore argument, if true, don't populate
17270 gomp_places_list, only parse env var and always return false.
17271 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
17272 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
17273 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
17274 and either of these variables were parsed correctly into a places
17277 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17278 Jakub Jelinek <jakub@redhat.com>
17280 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
17281 of 5 loopfn matches.
17282 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17283 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17284 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
17285 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17286 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17287 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17288 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17289 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17291 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
17293 * Makefile.am (omp_lib.mod): Streamline rule.
17294 * Makefile.in: Regenerate.
17296 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
17299 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
17300 * testsuite/libgomp.fortran/lib1.f90: Likewise.
17301 * testsuite/libgomp.fortran/lib2.f: Likewise.
17302 * testsuite/libgomp.fortran/lib3.f: Likewise.
17304 * configure.ac: Typo fix.
17305 * configure: Regenerate.
17307 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
17308 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
17310 * omp.h.in: Don't touch the user's namespace.
17312 2013-10-11 Jakub Jelinek <jakub@redhat.com>
17313 Tobias Burnus <burnus@net-b.de>
17314 Richard Henderson <rth@redhat.com>
17316 * target.c: New file.
17317 * Makefile.am (libgomp_la_SOURCES): Add target.c.
17318 * Makefile.in: Regenerated.
17319 * libgomp_g.h (GOMP_task): Add depend argument.
17320 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17321 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17322 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
17323 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17324 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17325 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
17326 GOMP_taskgroup_start, GOMP_taskgroup_end,
17327 GOMP_parallel_sections): New prototypes.
17328 * fortran.c (omp_is_initial_device): Add ialias_redirect.
17329 (omp_is_initial_device_): New function.
17330 (ULP, STR1, STR2, ialias_redirect): Removed.
17331 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
17332 omp_set_default_device_8_, omp_get_default_device_,
17333 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
17335 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
17336 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
17337 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
17339 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
17340 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
17341 omp_set_default_device, omp_set_default_device_,
17342 omp_set_default_device_8_, omp_get_default_device,
17343 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
17344 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
17345 omp_get_team_num_): Export @@OMP_4.0.
17346 * team.c (struct gomp_thread_start_data): Add place field.
17347 (gomp_thread_start): Clear thr->thread_pool and
17348 thr->task before returning. Use gomp_team_barrier_wait_final
17349 instead of gomp_team_barrier_wait. Initialize thr->place.
17350 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
17351 team_cancelled and task_queued_count fields.
17352 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
17353 before calling pthread_exit.
17354 (gomp_free_thread): No longer static. Use
17355 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
17356 (gomp_team_start): Add flags argument. Set
17357 thr->thread_pool->threads_busy to nthreads immediately after creating
17358 new pool. Use gomp_managed_threads_lock instead of
17359 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
17360 (gomp_team_end): Use gomp_managed_threads_lock instead of
17361 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
17362 of gomp_team_barrier_wait. If team->team_cancelled, call
17363 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
17364 rather than thr->ts.work_share.
17365 (initialize_team): Don't call gomp_sem_init here.
17366 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
17368 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
17369 * env.c (gomp_global_icv): Add default_device_var, target_data and
17370 bind_var initializers.
17371 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17372 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17373 gomp_places_list_len): New variables.
17374 (parse_bind_var, parse_one_place, parse_places_var): New functions.
17375 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
17377 (gomp_cancel_var): New global variable.
17378 (parse_int): New function.
17379 (handle_omp_display_env): New function.
17380 (initialize_env): Use it. Initialize default_device_var.
17381 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
17382 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
17383 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
17384 been successfully parsed (and call gomp_init_affinity in that case).
17385 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17386 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17387 omp_get_team_num, omp_is_initial_device): New functions.
17388 * libgomp.h: Include stdlib.h.
17389 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
17391 (struct target_mem_desc): Forward declare.
17392 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
17393 and thread_limit_var fields.
17394 (gomp_get_num_devices): New prototype.
17395 (gomp_cancel_var): New extern decl.
17396 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
17397 team_cancelled and task_queued_count fields. Add comments about
17398 task_{,queued_,running_}count.
17399 (gomp_cancel_kind): New enum.
17400 (gomp_work_share_end_cancel): New prototype.
17401 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
17402 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
17404 (struct gomp_taskgroup): New type.
17405 (struct gomp_task_depend_entry,
17406 struct gomp_dependers_vec): New types.
17407 (gomp_finish_task): Free depend_hash if non-NULL.
17408 (struct gomp_team_state): Add place_partition_off
17409 and place_partition_len fields.
17410 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
17411 gomp_places_list_len): New extern decls.
17412 (struct gomp_thread): Add place field.
17413 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
17414 (gomp_init_thread_affinity): Add place argument.
17415 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17416 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17417 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17418 gomp_affinity_init_level, gomp_affinity_print_place): New
17420 (gomp_team_start): Add flags argument.
17421 (gomp_thread_limit_var, gomp_remaining_threads_count,
17422 gomp_remaining_threads_lock): Remove.
17423 (gomp_managed_threads_lock): New variable.
17424 (struct gomp_thread_pool): Add threads_busy field.
17425 (gomp_free_thread): New prototype.
17426 * task.c: Include hashtab.h.
17427 (hash_entry_type): New typedef.
17428 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
17429 (gomp_init_task): Clear dependers, depend_hash, depend_count,
17430 copy_ctors_done and taskgroup fields.
17431 (GOMP_task): Add depend argument, handle depend clauses. If
17432 gomp_team_barrier_cancelled or if it's taskgroup has been
17433 cancelled, don't queue or start new tasks. Set copy_ctors_done
17434 field if needed. Initialize taskgroup field. If copy_ctors_done
17435 and already cancelled, don't discard the task. If taskgroup is
17436 non-NULL, enqueue the task into taskgroup queue. Increment
17437 num_children field in taskgroup. Increment task_queued_count.
17438 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
17439 gomp_task_run_post_remove_taskgroup): New inline functions.
17440 (gomp_task_run_post_handle_depend_hash,
17441 gomp_task_run_post_handle_dependers,
17442 gomp_task_run_post_handle_depend): New functions.
17443 (GOMP_taskwait): Use them. If more than one new tasks
17444 have been queued, wake other threads if needed.
17445 (gomp_barrier_handle_tasks): Likewise. If
17446 gomp_team_barrier_cancelled, don't start any new tasks, just free
17448 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
17450 (omp_proc_bind_kind, omp_proc_bind_false,
17451 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17452 omp_proc_bind_spread): New params.
17453 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17454 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17455 omp_get_team_num, omp_is_initial_device): New interfaces.
17456 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
17457 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
17458 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
17459 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
17460 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
17461 useless use omp_lib_kinds.
17462 * omp.h.in (omp_proc_bind_t): New typedef.
17463 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17464 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17465 omp_get_team_num, omp_is_initial_device): New prototypes.
17466 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
17467 through to gomp_team_start.
17468 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
17469 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
17470 Adjust gomp_parallel_loop_start callers.
17471 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
17472 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
17473 GOMP_loop_end_cancel): New functions.
17474 (GOMP_parallel_end): Add ialias_redirect.
17475 * hashtab.h: New file.
17476 * libgomp.texi (Environment Variables): Minor cleanup,
17477 update section refs to OpenMP 4.0rc2.
17478 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
17479 environment variables.
17480 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
17481 team->work_shares_to_free to thr->ts.work_share before calling
17483 (gomp_work_share_end_cancel): New function.
17484 * config/linux/proc.c: Include errno.h.
17485 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
17486 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
17487 sizeof (cpu_set_t) to determine number of iterations. Fix up check
17488 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
17489 gomp_cpuset_size is sizeof (cpu_set_t).
17490 (gomp_init_num_threads): Initialize gomp_cpuset_size,
17491 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
17492 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
17493 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
17494 contain any logical CPUs.
17495 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
17496 is NULL. Use gomp_cpusetp instead of &cpuset and pass
17497 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
17498 pthread_getaffinity_np. Check gomp_places_list instead of
17499 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
17500 * config/linux/bar.c (gomp_barrier_wait_end,
17501 gomp_barrier_wait_last): Use BAR_* defines.
17502 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
17503 from state where needed. Set work_share_cancelled to 0 on last
17505 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
17506 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
17508 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
17509 Add cpusetsize argument.
17510 (gomp_cpuset_size, gomp_cpusetp): Declare.
17511 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
17512 (affinity_counter): Remove.
17513 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
17514 if CPU_ALLOC_SIZE isn't defined.
17515 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
17516 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
17517 bind current thread to the first place.
17518 (gomp_init_thread_affinity): Rewritten. Add place argument, just
17519 pthread_setaffinity_np to gomp_places_list[place].
17520 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17521 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17522 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17523 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
17524 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17525 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17526 (gomp_barrier_t): Add awaited_final field.
17527 (gomp_barrier_init): Initialize awaited_final field.
17528 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
17529 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
17531 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
17533 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
17534 gomp_team_barrier_cancelled): New inline functions.
17535 (gomp_barrier_last_thread,
17536 gomp_team_barrier_set_task_pending,
17537 gomp_team_barrier_clear_task_pending,
17538 gomp_team_barrier_set_waiting_for_tasks,
17539 gomp_team_barrier_waiting_for_tasks,
17540 gomp_team_barrier_done): Use BAR_* defines.
17541 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
17542 (gomp_barrier_wait_end): Use BAR_* defines.
17543 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
17544 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
17546 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
17547 gomp_team_barrier_cancel): New functions.
17548 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
17550 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
17551 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
17552 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
17553 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
17554 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
17555 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
17556 (gomp_barrier_t): Add cancellable field.
17557 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
17558 gomp_team_barrier_cancel): New prototypes.
17559 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
17560 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
17561 gomp_team_barrier_cancelled): New inline functions.
17562 (gomp_barrier_wait_start, gomp_barrier_last_thread,
17563 gomp_team_barrier_set_task_pending,
17564 gomp_team_barrier_clear_task_pending,
17565 gomp_team_barrier_set_waiting_for_tasks,
17566 gomp_team_barrier_waiting_for_tasks,
17567 gomp_team_barrier_done): Use BAR_* defines.
17568 * barrier.c (GOMP_barrier_cancel): New function.
17569 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
17570 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
17571 omp_proc_bind_spread): New params.
17572 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
17573 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
17574 omp_get_team_num, omp_is_initial_device): New externals.
17575 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
17577 (gomp_resolve_num_threads): Adjust for thread_limit now being in
17578 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17579 infinity. If not nested, just return minimum of max_num_threads
17580 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
17581 to the returned value. Otherwise, don't update atomically
17582 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
17583 (GOMP_parallel_end): Adjust for thread_limit now being in
17584 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
17585 infinity. Adjust threads_busy in the pool rather than
17586 gomp_remaining_threads_count. Remember team->nthreads and call
17587 gomp_team_end before adjusting threads_busy, if not nested
17588 afterwards, just set it to 1 non-atomically. Add ialias.
17589 (GOMP_parallel_start): Adjust gomp_team_start caller.
17590 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
17591 * testsuite/libgomp.c/affinity-1.c: New test.
17592 * testsuite/libgomp.c/atomic-15.c: New test.
17593 * testsuite/libgomp.c/atomic-16.c: New test.
17594 * testsuite/libgomp.c/atomic-17.c: New test.
17595 * testsuite/libgomp.c/cancel-for-1.c: New test.
17596 * testsuite/libgomp.c/cancel-for-2.c: New test.
17597 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
17598 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
17599 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
17600 * testsuite/libgomp.c/cancel-sections-1.c: New test.
17601 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
17602 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
17603 * testsuite/libgomp.c/depend-1.c: New test.
17604 * testsuite/libgomp.c/depend-2.c: New test.
17605 * testsuite/libgomp.c/depend-3.c: New test.
17606 * testsuite/libgomp.c/depend-4.c: New test.
17607 * testsuite/libgomp.c/for-1.c: New test.
17608 * testsuite/libgomp.c/for-1.h: New file.
17609 * testsuite/libgomp.c/for-2.c: New test.
17610 * testsuite/libgomp.c/for-2.h: New file.
17611 * testsuite/libgomp.c/for-3.c: New test.
17612 * testsuite/libgomp.c/pr58392.c: New test.
17613 * testsuite/libgomp.c/simd-1.c: New test.
17614 * testsuite/libgomp.c/simd-2.c: New test.
17615 * testsuite/libgomp.c/simd-3.c: New test.
17616 * testsuite/libgomp.c/simd-4.c: New test.
17617 * testsuite/libgomp.c/simd-5.c: New test.
17618 * testsuite/libgomp.c/simd-6.c: New test.
17619 * testsuite/libgomp.c/target-1.c: New test.
17620 * testsuite/libgomp.c/target-2.c: New test.
17621 * testsuite/libgomp.c/target-3.c: New test.
17622 * testsuite/libgomp.c/target-4.c: New test.
17623 * testsuite/libgomp.c/target-5.c: New test.
17624 * testsuite/libgomp.c/target-6.c: New test.
17625 * testsuite/libgomp.c/target-7.c: New test.
17626 * testsuite/libgomp.c/taskgroup-1.c: New test.
17627 * testsuite/libgomp.c/thread-limit-1.c: New test.
17628 * testsuite/libgomp.c/thread-limit-2.c: New test.
17629 * testsuite/libgomp.c/thread-limit-3.c: New test.
17630 * testsuite/libgomp.c/udr-1.c: New test.
17631 * testsuite/libgomp.c/udr-2.c: New test.
17632 * testsuite/libgomp.c/udr-3.c: New test.
17633 * testsuite/libgomp.c++/affinity-1.C: New test.
17634 * testsuite/libgomp.c++/atomic-10.C: New test.
17635 * testsuite/libgomp.c++/atomic-11.C: New test.
17636 * testsuite/libgomp.c++/atomic-12.C: New test.
17637 * testsuite/libgomp.c++/atomic-13.C: New test.
17638 * testsuite/libgomp.c++/atomic-14.C: New test.
17639 * testsuite/libgomp.c++/atomic-15.C: New test.
17640 * testsuite/libgomp.c++/cancel-for-1.C: New test.
17641 * testsuite/libgomp.c++/cancel-for-2.C: New test.
17642 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
17643 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
17644 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
17645 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
17646 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
17647 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
17648 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
17649 * testsuite/libgomp.c++/cancel-test.h: New file.
17650 * testsuite/libgomp.c++/for-9.C: New test.
17651 * testsuite/libgomp.c++/for-10.C: New test.
17652 * testsuite/libgomp.c++/for-11.C: New test.
17653 * testsuite/libgomp.c++/simd-1.C: New test.
17654 * testsuite/libgomp.c++/simd-2.C: New test.
17655 * testsuite/libgomp.c++/simd-3.C: New test.
17656 * testsuite/libgomp.c++/simd-4.C: New test.
17657 * testsuite/libgomp.c++/simd-5.C: New test.
17658 * testsuite/libgomp.c++/simd-6.C: New test.
17659 * testsuite/libgomp.c++/simd-7.C: New test.
17660 * testsuite/libgomp.c++/simd-8.C: New test.
17661 * testsuite/libgomp.c++/target-1.C: New test.
17662 * testsuite/libgomp.c++/target-2.C: New test.
17663 * testsuite/libgomp.c++/target-2-aux.cc: New file.
17664 * testsuite/libgomp.c++/target-3.C: New test.
17665 * testsuite/libgomp.c++/taskgroup-1.C: New test.
17666 * testsuite/libgomp.c++/udr-1.C: New test.
17667 * testsuite/libgomp.c++/udr-2.C: New test.
17668 * testsuite/libgomp.c++/udr-3.C: New test.
17669 * testsuite/libgomp.c++/udr-4.C: New test.
17670 * testsuite/libgomp.c++/udr-5.C: New test.
17671 * testsuite/libgomp.c++/udr-6.C: New test.
17672 * testsuite/libgomp.c++/udr-7.C: New test.
17673 * testsuite/libgomp.c++/udr-8.C: New test.
17674 * testsuite/libgomp.c++/udr-9.C: New test.
17676 2013-09-20 Jakub Jelinek <jakub@redhat.com>
17679 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
17682 2013-09-20 Alan Modra <amodra@gmail.com>
17684 * configure: Regenerate.
17686 2013-09-19 Jakub Jelinek <jakub@redhat.com>
17688 * testsuite/libgomp.c/sections-2.c: New test.
17690 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
17692 * testsuite/libgomp.fortran/strassen.f90:
17693 Add dg-skip-if aarch64_tiny.
17695 2013-06-20 Iain Sandoe <iain@codesourcery.com>
17696 Cesar Philippidis <cesar@codesourcery.com>
17698 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
17699 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
17700 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
17701 * testsuite/libgomp.fortran/fortran.exp: Likewise.
17702 * testsuite/libgomp.graphite/graphite.exp: Likewise.
17703 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
17704 Use dg-runtest rather than gfortran-dg-runtest.
17706 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
17708 * testsuite/libgomp.c/icv-2.c: Extend current handling of
17709 Linux-based x86 systems to cover all GNU systems.
17710 * testsuite/libgomp.c/lock-3.c: Likewise.
17711 * testsuite/libgomp.c/pr48591.c: Likewise.
17713 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
17715 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
17716 GNU/Hurd, as done for Linux-based systems.
17718 * config/posix/ptrlock.h: Fix comment.
17720 2013-05-27 Tobias Burnus <burnus@net-b.de>
17723 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
17724 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
17725 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
17726 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
17727 omp_destroy_nest_lock): Correct arguments to match the one in
17729 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
17730 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
17731 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
17732 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
17734 2013-05-16 Jakub Jelinek <jakub@redhat.com>
17736 * testsuite/libgomp.c/loop-13.c: New test.
17737 * testsuite/libgomp.c/loop-14.c: New test.
17738 * testsuite/libgomp.c/loop-15.c: New test.
17739 * testsuite/libgomp.c++/loop-13.C: New test.
17740 * testsuite/libgomp.c++/loop-14.C: New test.
17741 * testsuite/libgomp.c++/loop-15.C: New test.
17743 2013-02-06 Jakub Jelinek <jakub@redhat.com>
17745 PR middle-end/56217
17746 * testsuite/libgomp.c++/pr56217.C: New test.
17748 2013-02-01 Alan Modra <amodra@gmail.com>
17750 * task.c (GOMP_task, GOMP_taskwait): Comment.
17752 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
17753 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
17756 * config/linux/wait.h (do_spin): Use atomic load for addr.
17757 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
17758 for intptr and ptrlock.
17759 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
17762 2013-01-22 Alan Modra <amodra@gmail.com>
17766 * task.c (GOMP_task): Revert 2011-12-09 change.
17767 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
17768 barrier to read task->children..
17769 (gomp_barrier_handle_tasks): ..and matching atomic store with
17770 release barrier here when setting parent->children to NULL.
17772 2013-01-16 Jakub Jelinek <jakub@redhat.com>
17773 Tobias Burnus <burnus@net-b.de>
17776 * testsuite/libgomp.fortran/fortran.exp: Use
17777 -fintrinsic-modules-path= instead of
17778 -fintrinsic-modules-path.
17780 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
17782 Update copyright years.
17784 2012-12-19 Tobias Burnus <burnus@net-b.de>
17786 * testsuite/libgomp.fortran/fortran.exp: Set
17787 -fintrinsic-modules-path.
17789 2012-12-19 Tobias Burnus <burnus@net-b.de>
17791 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
17792 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
17794 2012-11-21 Jakub Jelinek <jakub@redhat.com>
17797 * team.c (gomp_free_thread): Decrease gomp_managed_threads
17798 if pool had any threads_used.
17800 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
17802 * testsuite/libgomp.c++/pr24455.C: Use
17803 -Wl,-undefined,dynamic_lookup on darwin.
17805 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
17807 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
17809 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
17811 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
17813 2012-10-23 Ian Bolton <ian.bolton@arm.com>
17814 Jim MacArthur <jim.macarthur@arm.com>
17815 Marcus Shawcroft <marcus.shawcroft@arm.com>
17816 Nigel Stephens <nigel.stephens@arm.com>
17817 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17818 Richard Earnshaw <rearnsha@arm.com>
17819 Sofiane Naci <sofiane.naci@arm.com>
17820 Stephen Thomas <stephen.thomas@arm.com>
17821 Tejas Belagod <tejas.belagod@arm.com>
17822 Yufeng Zhang <yufeng.zhang@arm.com>
17824 * configure.tgt: Add AArch64.
17826 2012-10-04 Jason Merrill <jason@redhat.com>
17828 * testsuite/libgomp.c++/tls-init1.C: New.
17830 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
17832 * configure: Regenerated.
17834 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
17836 * config/linux/mips/futex.h (sys_futex0): Change to static
17837 function with noinline, nomips16 attributes under MIPS16. Adjust
17838 asm statement to place 'li v0,SYS_futex' immediately before
17841 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
17843 * libgomp.texi (Library Index): Renamed from "Index" to prevent
17844 conflict with index.html on case-insensitive file systems.
17846 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17848 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
17849 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
17851 2012-07-02 Richard Guenther <rguenther@suse.de>
17852 Michael Matz <matz@suse.de>
17853 Tobias Grosser <tobias@grosser.es>
17854 Sebastian Pop <sebpop@gmail.com>
17856 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17857 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
17858 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17859 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17861 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17863 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
17865 2012-06-22 Richard Guenther <rguenther@suse.de>
17867 Merge from graphite branch
17868 2012-01-13 Tobias Grosser <tobias@grosser.es>
17870 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
17871 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
17873 2012-06-07 Jakub Jelinek <jakub@redhat.com>
17875 PR middle-end/53580
17876 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
17877 use GOMP_barrier () call instead.
17878 * testsuite/libgomp.c/pr26943-3.c: Likewise.
17879 * testsuite/libgomp.c/pr26943-4.c: Likewise.
17880 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
17881 call GOMP_barrier instead.
17882 * testsuite/libgomp.fortran/vla5.f90: Likewise.
17884 2012-06-06 Jakub Jelinek <jakub@redhat.com>
17887 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
17888 argument to memset call.
17890 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
17892 * configure: Regenerated.
17894 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17896 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
17898 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17901 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
17903 2012-03-22 Jakub Jelinek <jakub@redhat.com>
17905 PR middle-end/52547
17906 * testsuite/libgomp.c/pr52547.c: New test.
17908 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17910 * testsuite/lib/libgomp.exp: load fortran-modules.exp
17912 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17914 * configure.tgt (mips-sgi-irix6*): Remove.
17916 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17918 * configure.tgt (alpha*-dec-osf*): Remove.
17920 * config/osf/sem.h: Remove.
17921 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
17923 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17925 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
17927 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17930 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
17931 Remove ENABLE_SYMVERS_SOL2.
17932 * configure: Regenerate.
17933 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
17934 (PREPROCESS): New variable.
17935 (libgomp.ver): New target.
17936 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
17937 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
17938 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
17940 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
17941 * Makefile.in: Regenerate.
17943 2012-02-14 Walter Lee <walt@tilera.com>
17945 * configure.tgt: Handle tilegx and tilepro.
17946 * config/linux/tile/futex.h: New file.
17948 2012-02-08 Richard Guenther <rguenther@suse.de>
17950 PR tree-optimization/46886
17951 * testsuite/libgomp.c/pr46886.c: New testcase.
17953 2012-01-25 Matthias Klose <doko@ubuntu.com>
17955 * config/linux/arm: Remove empty directory.
17956 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
17958 2011-12-09 Alan Modra <amodra@gmail.com>
17961 * task.c (GOMP_taskwait): Don't access task->children outside of
17962 task_lock mutex region.
17963 (GOMP_task): Likewise.
17965 2011-12-06 Jakub Jelinek <jakub@redhat.com>
17968 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17970 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
17971 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
17972 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
17973 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
17974 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
17976 2011-12-02 Alan Modra <amodra@gmail.com>
17978 * config/linux/affinity.c: Use atomic rather than sync builtin.
17979 * config/linux/lock.c: Likewise.
17980 * config/linux/ptrlock.h: Likewise.
17981 * config/linux/ptrlock.c: Likewise.
17982 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
17983 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
17984 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
17985 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
17986 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
17987 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
17988 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
17989 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
17990 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
17991 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
17993 2011-11-30 Alan Modra <amodra@gmail.com>
17996 * config/linux/bar.h: Use atomic rather than sync builtins.
17997 * config/linux/bar.c: Likewise. Add missing acquire
17998 synchronisation on generation field.
17999 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
18002 2011-11-30 Alan Modra <amodra@gmail.com>
18004 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
18005 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
18006 * config/linux/mutex.h: Use atomic rather than sync builtins.
18007 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
18008 * config/linux/omp-lock.h: Comment fix.
18009 * config/linux/arm/mutex.h: Delete.
18010 * config/linux/powerpc/mutex.h: Delete.
18011 * config/linux/ia64/mutex.h: Delete.
18012 * config/linux/mips/mutex.h: Delete.
18014 2011-11-30 Alan Modra <amodra@gmail.com>
18017 * config/linux/sem.h: Rewrite.
18018 * config/linux/sem.c: Rewrite.
18020 2011-11-28 Richard Henderson <rth@redhat.com>
18022 * libgomp.h (enum memmodel): New.
18024 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
18026 * configure: Regenerate.
18028 2011-10-10 Matthias Klose <doko@ubuntu.com>
18030 * config/posix95: Remove empty directory.
18032 2011-08-26 Jakub Jelinek <jakub@redhat.com>
18034 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
18036 2011-08-19 Jakub Jelinek <jakub@redhat.com>
18039 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
18040 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
18042 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18044 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
18046 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18049 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
18051 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
18053 * config/linux/proc.h: New.
18054 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
18055 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
18056 (gomp_init_num_threads): Update call to cpuset_popcount.
18057 (get_num_procs): Ditto.
18058 * config/linux/affinity.c (gomp_init_affinity): Call
18059 gomp_cpuset_popcount.
18061 2011-08-02 Jakub Jelinek <jakub@redhat.com>
18065 * omp.h.in (omp_in_final): New prototype.
18066 * omp_lib.f90.in (omp_in_final): New interface.
18067 (omp_integer_kind, omp_logical_kind): Remove
18068 and replace all its uses in the module with 4.
18069 (openmp_version): Change to 201107.
18070 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
18071 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
18072 kind for the parameters.
18073 (omp_in_final): New external.
18074 (openmp_version): Change to 201107.
18075 * task.c (omp_in_final): New function.
18076 (gomp_init_task): Initialize final_task.
18077 (GOMP_task): Remove unused attribute from flags. Handle final
18079 (GOMP_taskyield): New function.
18080 (omp_in_final): Return true if if (false) or final (true) task
18081 or descendant of final (true).
18082 * fortran.c (omp_in_final_): New function.
18083 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
18084 (GOMP_3.0): Export GOMP_taskyield.
18085 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
18087 (parse_unsigned_long_list): New function.
18088 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
18089 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
18090 even if parse_affinity returned false.
18091 * config/linux/affinity.c (gomp_init_affinity): Handle
18092 gomp_cpu_affinity_len == 0.
18093 * libgomp_g.h (GOMP_taskyield): New prototype.
18094 * libgomp.h (struct gomp_task): Add final_task field.
18095 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
18096 * team.c (gomp_team_start): Override new task's nthreads_var icv
18097 if list form OMP_NUM_THREADS has been used and it has value for
18098 the new nesting level.
18100 * testsuite/libgomp.c/atomic-11.c: New test.
18101 * testsuite/libgomp.c/atomic-12.c: New test.
18102 * testsuite/libgomp.c/atomic-13.c: New test.
18103 * testsuite/libgomp.c/atomic-14.c: New test.
18104 * testsuite/libgomp.c/reduction-6.c: New test.
18105 * testsuite/libgomp.c/task-5.c: New test.
18106 * testsuite/libgomp.c++/atomic-2.C: New test.
18107 * testsuite/libgomp.c++/atomic-3.C: New test.
18108 * testsuite/libgomp.c++/atomic-4.C: New test.
18109 * testsuite/libgomp.c++/atomic-5.C: New test.
18110 * testsuite/libgomp.c++/atomic-6.C: New test.
18111 * testsuite/libgomp.c++/atomic-7.C: New test.
18112 * testsuite/libgomp.c++/atomic-8.C: New test.
18113 * testsuite/libgomp.c++/atomic-9.C: New test.
18114 * testsuite/libgomp.c++/task-8.C: New test.
18115 * testsuite/libgomp.c++/reduction-4.C: New test.
18116 * testsuite/libgomp.fortran/allocatable7.f90: New test.
18117 * testsuite/libgomp.fortran/allocatable8.f90: New test.
18118 * testsuite/libgomp.fortran/crayptr3.f90: New test.
18119 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
18120 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
18121 * testsuite/libgomp.fortran/pointer1.f90: New test.
18122 * testsuite/libgomp.fortran/pointer2.f90: New test.
18123 * testsuite/libgomp.fortran/task4.f90: New test.
18125 2011-08-02 Tobias Burnus <burnus@net-b.de>
18127 * libgomp.texi: Update OpenMP spec references to 3.1.
18128 (omp_in_final,OMP_PROC_BIND): New sections.
18129 (OMP_NUM_THREADS): Document that the value can be now a list.
18130 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
18132 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
18134 * config/linux/x86/futex.h: Check __x86_64__ instead of
18137 2011-07-29 Jakub Jelinek <jakub@redhat.com>
18139 PR middle-end/49897
18140 PR middle-end/49898
18141 * testsuite/libgomp.c/pr49897-1.c: New test.
18142 * testsuite/libgomp.c/pr49897-2.c: New test.
18143 * testsuite/libgomp.c/pr49898-1.c: New test.
18144 * testsuite/libgomp.c/pr49898-2.c: New test.
18146 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
18148 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
18149 for ia32 instead of ilp32.
18151 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
18152 * testsuite/libgomp.c/atomic-6.c: Likewise.
18154 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
18156 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
18157 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
18159 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18162 * config/osf/sem.h: New file.
18163 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
18165 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18168 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
18171 2011-07-15 Jakub Jelinek <jakub@redhat.com>
18173 * config/linux/wait.h (do_spin): New inline, largely copied
18174 from do_wait, just don't do futex_wait here, instead return true if
18176 (do_wait): Implement using do_spin.
18177 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
18179 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18180 __sync_bool_compare_and_swap, pass the oldval to
18181 gomp_mutex_lock_slow.
18182 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
18183 If all mutex contenders are just spinning and not sleeping, don't
18184 change state to 2 unnecessarily. Optimize the loop when state has
18185 already become 2 to use just one atomic operation per loop instead
18187 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
18189 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
18190 __sync_bool_compare_and_swap, pass the oldval to
18191 gomp_mutex_lock_slow.
18193 2011-06-22 Jakub Jelinek <jakub@redhat.com>
18196 * iter.c (gomp_iter_static_next): For chunk size 0
18197 only use n ceil/ nthreads size for the first
18198 n % nthreads threads in the team instead of
18199 all threads except for the last few ones which
18200 get less work or none at all.
18201 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
18202 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
18203 chunk argument, set run_sched_modifier to 0 for static
18204 resp. 1 for other kinds. If chunk argument is 0
18205 and not static, set value to 1.
18207 2011-05-19 Jakub Jelinek <jakub@redhat.com>
18210 * testsuite/libgomp.c++/pr49043.C: New test.
18213 * testsuite/libgomp.c++/pr48869.C: New test.
18215 2011-05-06 Jakub Jelinek <jakub@redhat.com>
18218 * fortran.c: Include limits.h.
18220 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
18222 (omp_set_num_threads_8_, omp_set_schedule_8_,
18223 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
18224 omp_get_team_size_8_): Use TO_INT macro.
18225 * testsuite/libgomp.fortran/pr48894.f90: New test.
18227 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18229 PR middle-end/48591
18230 * testsuite/libgomp.c/pr48591.c: New test.
18232 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18235 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
18236 * configure: Regenerate.
18238 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18241 * testsuite/libgomp.fortran/task3.f90: New test.
18243 2011-02-24 Tobias Burnus <burnus@net-b.de>
18245 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
18247 2011-02-23 Jakub Jelinek <jakub@redhat.com>
18250 * libgomp.texi (omp_get_wtime): Don't say time in the past
18251 must be Unix Epoch.
18253 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18256 * testsuite/libgomp.fortran/fortran.exp: Check for both
18257 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
18258 but $blddir != "", still append ${blddir}/${lang_library_path}
18259 to ld_library_path.
18261 2011-02-16 Tobias Burnus <burnus@net-b.de>
18264 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
18265 of libquadmath.a before adding its libpath to ldflags.
18267 2011-02-14 Jakub Jelinek <jakub@redhat.com>
18270 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
18271 to FUTEX_WAIT futex syscall.
18272 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
18274 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18276 * configure: Regenerate.
18278 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
18281 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
18283 2011-01-16 Gerald Pfeifer
18285 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
18287 2010-12-14 Jakub Jelinek <jakub@redhat.com>
18290 * libgomp.fortran/allocatable6.f90: New test.
18292 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18294 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
18295 * configure: Regenerate.
18297 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
18301 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
18302 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
18303 * aclocal.m4: Regenerate.
18304 * configure: Regenerate.
18305 * Makefile.in: Regenerate.
18306 * testsuite/Makefile.in: Regenerate.
18308 2010-12-02 Jakub Jelinek <jakub@redhat.com>
18311 * libgomp.fortran/pr46753.f90: New test.
18314 * env.c (initialize_env): Default to spin count 300000
18315 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
18319 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
18320 at the end if sync builtins aren't supported.
18322 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18324 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
18326 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18328 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
18330 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
18332 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
18334 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18335 Tobias Burnus <burnus@net-b.de>
18339 * configure: Regenerate.
18341 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
18343 * config/linux/futex.h: New.
18344 * config/linux/arm/mutex.h: New.
18345 * configure.tgt (arm*-*-linux*): Add config path.
18347 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
18349 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18351 2010-09-23 Tobias Burnus <burnus@net-b.de>
18353 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
18354 Change Fortran datatype to LOGICAL.
18355 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
18356 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
18358 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18360 * configure: Regenerate.
18362 2010-07-26 Jakub Jelinek <jakub@redhat.com>
18364 * libgomp.texi: Add function keyword to a couple of Fortran
18365 interfaces, use integer instead of int for Fortran.
18367 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
18369 * libgomp.texi: Fix spelling and pasto problems throughout.
18370 Adjust prototypes to match code.
18372 2010-07-24 Tobias Burnus <burnus@net-b.de>
18374 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
18375 silence -fwhole-file warning.
18377 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18379 * configure.tgt (*-*-solaris2.[56]*): Removed.
18381 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18383 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
18384 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
18385 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
18386 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
18387 targetting solaris2*.
18388 * configure: Regenerate.
18389 * config.h.in: Regenerate.
18391 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
18392 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
18393 Add libgomp_version_dep.
18394 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
18396 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
18397 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
18398 * Makefile.in: Regenerate.
18400 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
18401 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18402 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
18403 to common block, protected by
18404 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
18406 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18408 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
18410 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
18413 * configure: Regenerate.
18415 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18418 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
18419 * configure: Regenerate.
18420 * Makefile.in: Regenerate.
18421 * testsuite/Makefile.in: Regenerate.
18423 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18426 * testsuite/libgomp.c/pr43893.c: New test.
18427 * testsuite/libgomp.c++/pr43893.C: New test.
18429 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18431 PR middle-end/43570
18432 * testsuite/libgomp.fortran/vla8.f90: New test.
18434 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18437 * config/linux/affinity.c (gomp_init_affinity): Decrease
18438 gomp_available_cpus if affinity mask confines the process to fewer
18440 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
18441 non-NULL, just return gomp_available_cpus.
18444 * sections.c (gomp_sections_init): Initialize ws->mode.
18446 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
18448 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
18449 not unused bar variable.
18450 * configure: Regenerate.
18452 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18454 * Makefile.in: Regenerate.
18455 * aclocal.m4: Regenerate.
18456 * testsuite/Makefile.in: Regenerate.
18458 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18461 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
18462 (initialize_env): Adjust callers.
18463 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
18464 when the argument is 0.
18466 * testsuite/libgomp.c/pr42942.c: New test.
18468 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
18470 PR middle-end/42644
18471 PR middle-end/42130
18472 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
18473 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
18475 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18477 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
18478 * testsuite/libgomp.c++/task-6.C: Likewise.
18480 2010-01-28 Steve Ellcey <sje@cup.hp.com>
18482 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
18484 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
18486 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
18487 * configure: Regenerate.
18489 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18492 * testsuite/libgomp.fortran/allocatable5.f90: New test.
18494 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
18496 * configure.ac: Test for executability of GFORTRAN.
18497 * configure: Regenerate.
18499 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18501 * configure: Regenerate.
18503 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18506 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
18508 2010-01-03 Richard Guenther <rguenther@suse.de>
18510 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
18512 2009-12-23 Sebastian Pop <sebpop@gmail.com>
18514 * testsuite/libgomp.graphite/pr4118.c: New.
18516 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18518 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
18519 for darwin, protect the test with require-effective-target tls_runtime.
18520 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
18522 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18525 * testsuite/lib/libgomp.exp: Provide -B options to allow for
18526 link spec %s substitutions for static libraries.
18528 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
18531 * libgomp.graphite/force-parallel-2.c: Reduce array size.
18533 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18535 * Makefile.in: Regenerate.
18536 * configure: Regenerate.
18537 * testsuite/Makefile.in: Regenerate.
18539 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
18541 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
18542 settings for LC_ALL and LANG.
18544 2009-11-25 Jakub Jelinek <jakub@redhat.com>
18547 * testsuite/libgomp.fortran/pr42162.f90: New test.
18549 2009-11-13 Jakub Jelinek <jakub@redhat.com>
18551 PR middle-end/42029
18552 * testsuite/libgomp.c/pr42029.c: New test.
18554 2009-10-26 Jakub Jelinek <jakub@redhat.com>
18556 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
18557 *s. Accept ld version without text in ()s.
18558 * configure: Regenerated.
18560 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
18562 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
18564 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18567 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
18568 or a hyphen (happens with fortran language disabled).
18569 * configure: Regenerate.
18571 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18573 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
18574 use sed script portable to Solaris /bin/sed for extracting ld
18576 * configure: Regenerate.
18578 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
18580 * testsuite/libgomp.graphite/bounds.c: New test.
18582 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18584 * Makefile.am (libgomp_la_LINK): New.
18585 * Makefile.in: Regenerate.
18587 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18589 * configure.ac (AC_PREREQ): Bump to 2.64.
18591 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18593 * Makefile.am (install-html, install-pdf): Remove.
18594 * Makefile.in: Regenerate.
18596 * Makefile.in: Regenerate.
18597 * aclocal.m4: Regenerate.
18598 * config.h.in: Regenerate.
18599 * configure: Regenerate.
18600 * testsuite/Makefile.in: Regenerate.
18602 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18604 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
18605 * Makefile.in: Regenerate.
18607 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
18609 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
18610 * Makefile.in: Regenerate.
18612 2009-08-19 Tobias Burnus <burnus@net-b.de>
18615 omp_lib.h.in: Fix -std=f95 errors.
18617 2009-08-14 David Edelsohn <edelsohn@gnu.org>
18619 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
18620 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
18621 * testsuite/libgomp.graphite/graphite.exp: New.
18623 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
18625 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
18628 2009-08-04 David Daney <ddaney@caviumnetworks.com>
18630 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
18631 needed memory barrier semantics.
18632 * config/linux/mips/mutex.h: New file.
18634 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18636 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
18638 2009-07-16 Joseph Myers <joseph@codesourcery.com>
18640 * configure: Regenerate.
18642 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
18647 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
18648 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
18649 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
18651 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
18653 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
18654 options when choosing a multilib.
18656 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
18658 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
18659 ld_library_path. Use add_path. Add just find_libgcc_s to
18660 ld_library_path, not every libgcc multilib directory.
18661 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
18662 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
18663 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
18665 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
18667 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
18669 * Makefile.am (LTLDFLAGS): Define.
18671 * Makefile.in: Regenerate.
18673 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
18676 * testsuite/libgomp.fortran/fortran.exp: Don't link with
18677 libgfortranbegin, check existence of libgfortran.a instead of
18678 libgfortranbegin.a.
18680 2009-05-20 Jakub Jelinek <jakub@redhat.com>
18683 * team.c (gomp_thread_start): Destroy thr->release semaphore.
18684 (gomp_free_pool_helper): Likewise.
18686 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
18687 Jakub Jelinek <jakub@redhat.com>
18690 * testsuite/libgomp.fortran/workshare2.f90: New test.
18692 2009-04-09 Nick Clifton <nickc@redhat.com>
18694 * iter.c: Change copyright header to refer to version 3 of the
18695 GNU General Public License with version 3.1 of the GCC Runtime
18696 Library Exception and to point readers at the COPYING3 and
18697 COPYING3.RUNTIME files and the FSF's license web page.
18698 * alloc.c: Likewise.
18699 * barrier.c: Likewise.
18700 * config/bsd/proc.c: Likewise.
18701 * config/linux/affinity.c: Likewise.
18702 * config/linux/alpha/futex.h: Likewise.
18703 * config/linux/bar.c: Likewise.
18704 * config/linux/bar.h: Likewise.
18705 * config/linux/ia64/futex.h: Likewise.
18706 * config/linux/ia64/mutex.h: Likewise.
18707 * config/linux/lock.c: Likewise.
18708 * config/linux/mips/futex.h: Likewise.
18709 * config/linux/mutex.c: Likewise.
18710 * config/linux/mutex.h: Likewise.
18711 * config/linux/powerpc/futex.h: Likewise.
18712 * config/linux/proc.c: Likewise.
18713 * config/linux/ptrlock.c: Likewise.
18714 * config/linux/ptrlock.h: Likewise.
18715 * config/linux/s390/futex.h: Likewise.
18716 * config/linux/sem.c: Likewise.
18717 * config/linux/sem.h: Likewise.
18718 * config/linux/sparc/futex.h: Likewise.
18719 * config/linux/wait.h: Likewise.
18720 * config/linux/x86/futex.h: Likewise.
18721 * config/mingw32/proc.c: Likewise.
18722 * config/mingw32/time.c: Likewise.
18723 * config/posix/affinity.c: Likewise.
18724 * config/posix/bar.c: Likewise.
18725 * config/posix/bar.h: Likewise.
18726 * config/posix/lock.c: Likewise.
18727 * config/posix/mutex.h: Likewise.
18728 * config/posix/proc.c: Likewise.
18729 * config/posix/ptrlock.h: Likewise.
18730 * config/posix/sem.c: Likewise.
18731 * config/posix/sem.h: Likewise.
18732 * config/posix/time.c: Likewise.
18733 * config/posix95/lock.c: Likewise.
18734 * critical.c: Likewise.
18736 * error.c: Likewise.
18737 * fortran.c: Likewise.
18738 * iter_ull.c: Likewise.
18739 * libgomp.h: Likewise.
18740 * libgomp_f.h.in: Likewise.
18741 * libgomp_g.h: Likewise.
18742 * loop.c: Likewise.
18743 * loop_ull.c: Likewise.
18744 * omp.h.in: Likewise.
18745 * omp_lib.f90.in: Likewise.
18746 * omp_lib.h.in: Likewise.
18747 * ordered.c: Likewise.
18748 * parallel.c: Likewise.
18749 * sections.c: Likewise.
18750 * single.c: Likewise.
18751 * task.c: Likewise.
18752 * team.c: Likewise.
18753 * work.c: Likewise.
18755 2009-04-09 Jakub Jelinek <jakub@redhat.com>
18757 * testsuite/config/default.exp: Change copyright header to refer to
18758 version 3 of the GNU General Public License and to point readers
18759 at the COPYING3 file and the FSF's license web page.
18761 2009-04-08 Jakub Jelinek <jakub@redhat.com>
18763 PR middle-end/39573
18764 * libgomp.c++/pr39573.C: New test.
18766 2009-04-01 Jakub Jelinek <jakub@redhat.com>
18769 * testsuite/libgomp.c/pr39591-1.c: New test.
18770 * testsuite/libgomp.c/pr39591-2.c: New test.
18771 * testsuite/libgomp.c/pr39591-3.c: New test.
18773 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
18775 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
18776 * testsuite/libgomp.c/atomic-6.c: Ditto.
18778 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18781 * testsuite/libgomp.c/loop-12.c: New test.
18782 * testsuite/libgomp.c/loop-11.c: New test.
18783 * testsuite/libgomp.c++/loop-11.C: New test.
18784 * testsuite/libgomp.c++/loop-12.C: New test.
18785 * testsuite/libgomp.c++/for-8.C: New test.
18787 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18789 * configure: Regenerate.
18791 2009-02-11 Jakub Jelinek <jakub@redhat.com>
18793 PR middle-end/39154
18794 * testsuite/libgomp.c/pr39154.c: New test.
18796 2009-01-30 Ian Lance Taylor <iant@google.com>
18798 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
18799 libgomp_ld_is_gold. Get gold version number.
18800 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
18801 * configure: Rebuild.
18803 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
18805 * testsuite/lib/libgomp.exp: Add -B option for targets that
18806 use libgfortran.a%s in their specs.
18808 2009-01-07 Jakub Jelinek <jakub@redhat.com>
18811 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
18812 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
18813 HAVE_AS_SYMVER_DIRECTIVE is not defined.
18814 * configure: Regenerated.
18815 * config.h.in: Likewise.
18817 2008-12-28 Jakub Jelinek <jakub@redhat.com>
18820 * testsuite/libgomp.c/pr38650.c: New test.
18821 * testsuite/libgomp.c++/pr38650.C: New test.
18823 2008-12-27 Jakub Jelinek <jakub@redhat.com>
18825 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
18827 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
18829 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
18831 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18833 * configure: Regenerate.
18835 2008-12-08 Jakub Jelinek <jakub@redhat.com>
18837 PR middle-end/36802
18838 * testsuite/libgomp.c/pr36802-1.c: New test.
18839 * testsuite/libgomp.c/pr36802-2.c: New test.
18840 * testsuite/libgomp.c/pr36802-3.c: New test.
18842 2008-12-01 Janis Johnson <janis187@us.ibm.com>
18845 * config/linux/powerpc/mutex.h: New.
18847 2008-12-01 Jakub Jelinek <jakub@redhat.com>
18850 * testsuite/libgomp.c++/for-7.C: New test.
18853 * testsuite/libgomp.c++/for-6.C: New test.
18855 2008-11-26 Janis Johnson <janis187@us.ibm.com>
18858 * testsuite/lib/libgomp.exp: Include new timeout library files.
18859 (libgomp_target_compile): Set timeout value from new proc.
18861 2008-11-13 Steve Ellcey <sje@cup.hp.com>
18864 * config/linux/ia64/mutex.h: New.
18866 2008-11-04 Tobias Burnus <burnus@net-b.de>
18869 * libgomp.texi (Runtime library routines, environment variables):
18870 Update for OpenMP version 3.0.
18872 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
18873 Steve Ellcey <sje@cup.hp.com>
18875 * configure: Regenerate for new libtool.
18876 * Makefile.in: Ditto.
18877 * testsuite/Makefile.in: Ditto.
18879 2008-09-19 Jakub Jelinek <jakub@redhat.com>
18880 Andreas Tobler <a.tobler@schweiz.org>
18882 * config/bsd/proc.c: New file.
18883 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
18884 * configure.ac: Check for header <sys/sysctl.h>
18885 * configure: Regenerate.
18886 * config.h.in: Likewise.
18888 2008-09-05 Janis Johnson <janis187@us.ibm.com>
18890 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
18892 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
18894 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
18895 * Makefile.in: Regenerated.
18896 * testsuite/Makefile.in: Regenerated.
18898 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
18900 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
18901 depend on blddir if blddir exists.
18902 (libgomp_target_compile): Likewise.
18903 * testsuite/libgomp.c++/c++.exp: Likewise.
18904 * testsuite/libgomp.fortran/fortran.exp: Likewise.
18906 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18908 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
18909 Do not list GPL as Invariant Section.
18911 2008-07-28 Ilie Garbacea <ilie@mips.com>
18912 Chao-ying Fu <fu@mips.com>
18914 * configure.tgt: Enable futex for MIPS.
18915 * config/linux/mips/futex.h: New file.
18917 2008-07-16 Jakub Jelinek <jakub@redhat.com>
18919 * team.c (gomp_team_end): Free team immediately if it has
18922 2008-07-08 David Edelsohn <edelsohn@gnu.org>
18924 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
18925 * testsuite/libgomp.fortran/fortran.exp: Same.
18926 * testsuite/libgomp.c/c.exp: Same.
18927 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
18928 directory to library path first.
18930 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
18932 * env.c (parse_stacksize): Add cast to avoid warning.
18933 (parse_spincount): Likewise.
18935 2008-06-27 Jakub Jelinek <jakub@redhat.com>
18937 * testsuite/libgomp.c/loop-10.c: New test.
18938 * libgomp.c/loop-3.c (main): Add lastprivate clause.
18939 * libgomp.c++/loop-6.C (main): Likewise.
18942 * testsuite/libgomp.c/debug-1.c: New test.
18944 2008-06-19 Jakub Jelinek <jakub@redhat.com>
18946 * testsuite/libgomp.c/nqueens-1.c: New test.
18949 * testsuite/libgomp.c++/task-7.C: New function.
18951 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18953 * configure: Regenerate.
18955 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18957 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
18958 mutex when HAVE_SYNC_BUILTINS isn't defined.
18960 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18962 * libgomp.texi (omp_test_lock): Fix typo.
18964 2008-06-12 Tobias Burnus <burnus@net-b.de>
18966 * omp_lib.f90.in: Add "implicit none".
18968 2008-06-12 Jakub Jelinek <jakub@redhat.com>
18970 PR middle-end/36506
18971 * testsuite/libgomp.c/reduction-5.c: New test.
18973 2008-06-11 Jakub Jelinek <jakub@redhat.com>
18975 * libgomp.h (struct gomp_task): Add in_tied_task field.
18976 * task.c (gomp_init_task): Initialize it.
18977 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
18978 unconditionally. Don't call gomp_team_barrier_wake if
18979 current task is implicit or if(0) from implicit and number of
18980 running tasks is equal to nthreads - 1.
18983 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
18984 omp_get_team_size_8): Fix pastos.
18987 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
18988 * configure: Regenerated.
18989 * config.h.in: Regenerated.
18990 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
18993 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
18996 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
18997 (GOMP_loop_ull_dynamic_start): Likewise.
18998 (GOMP_loop_ull_guided_start): Likewise.
18999 (GOMP_loop_ull_ordered_static_start): Likewise.
19000 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
19001 (GOMP_loop_ull_ordered_guided_start): Likewise.
19003 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19004 Richard Henderson <rth@redhat.com>
19005 Ulrich Drepper <drepper@redhat.com>
19006 Jakob Blomer <jakob.blomer@ira.uka.de>
19008 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
19009 Substitute also OMP_*LOCK_25*.
19010 * configure: Regenerated.
19011 * config.h.in: Regenerated.
19012 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
19013 ptrlock.c and task.c.
19014 * Makefile.in: Regenerated.
19015 * testsuite/Makefile.in: Regenerated.
19016 * task.c: New file.
19017 * loop_ull.c: New file.
19018 * iter_ull.c: New file.
19019 * libgomp.h: Include ptrlock.h.
19020 (enum gomp_task_kind): New type.
19021 (struct gomp_team): Add task_lock, task_queue, task_count,
19022 task_running_count, single_count fields. Add
19023 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
19024 Remove work_share_lock, generation_mask,
19025 oldest_live_gen, num_live_gen and init_work_shares fields, add
19026 work work_share_list_alloc, work_share_list_free and work_share_chunk
19027 fields. Change work_shares from pointer to pointers into an array.
19028 Change ordered_release field into gomp_sem_t ** from flexible array
19029 member. Add implicit_task and initial_work_shares fields.
19030 Move close to the end of the struct.
19031 (struct gomp_team_state): Add single_count, last_work_share,
19032 active_level and level fields, remove work_share_generation.
19033 (gomp_barrier_handle_tasks): New prototype.
19034 (gomp_finish_task): New inline function.
19035 (struct gomp_work_share): Move chunk_size, end, incr into
19036 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
19037 next_ll fields. Reshuffle fields. Add next_alloc,
19038 next_ws, next_free and inline_ordered_team_ids fields, change
19039 ordered_team_ids into pointer from flexible array member.
19040 Add mode field. Put lock and next into a different cache line
19041 from most of the write-once fields.
19042 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
19043 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
19044 gomp_iter_ull_guided_next): New prototypes.
19045 (gomp_new_icv): New prototype.
19046 (struct gomp_thread): Add thread_pool and task fields.
19047 (struct gomp_thread_pool): New type.
19048 (gomp_new_team): New prototype.
19049 (gomp_team_start): Change type of last argument.
19050 (gomp_new_work_share): Removed.
19051 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
19052 (gomp_work_share_init_done): New static inline.
19053 (gomp_throttled_spin_count_var, gomp_available_cpus,
19054 gomp_managed_threads): New extern decls.
19055 (gomp_init_task): New prototype.
19056 (gomp_spin_count_var): New extern var decl.
19057 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
19058 or no alias support, or if not PIC.
19059 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
19060 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
19061 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
19062 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
19063 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
19064 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
19065 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
19066 gomp_test_nest_lock_25): New prototypes.
19067 (omp_lock_symver, strong_alias): Define.
19068 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
19070 (gomp_end_task): New.
19071 (struct gomp_task_icv, gomp_global_icv): New.
19072 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
19073 (struct gomp_task): New.
19074 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19075 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19077 (gomp_schedule_type): Reorder enum to match
19079 * team.c (struct gomp_thread_start_data): Add thread_pool and task
19081 (gomp_thread_start): Add gomp_team_barrier_wait call.
19082 For non-nested case remove clearing of docked thread thr fields.
19083 Use pool fields instead of global gomp_* variables. Use
19084 gomp_barrier_wait_last when needed. Initialize ts.active_level.
19085 Create tasks for each member thread.
19086 (free_team): Only destroy team barrier, task_lock here and free it.
19087 (gomp_free_thread): Free last_team if non-NULL.
19088 (gomp_team_end): Call gomp_team_barrier_wait instead of
19089 gomp_barrier_wait. For nested case call one extra
19090 gomp_barrier_wait. Move here some destruction from free_team.
19091 Call free_team on pool->last_team if any, rather than freeing
19092 current team. Destroy work_share_list_free_lock ifndef
19093 HAVE_SYNC_BUILTINS.
19094 (gomp_new_icv): New function.
19095 (gomp_threads, gomp_threads_size, gomp_threads_used,
19096 gomp_threads_dock): Removed.
19097 (gomp_thread_destructor): New variable.
19098 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
19100 (gomp_team_start): Create new pool if current thread doesn't have
19101 one. Use pool fields instead of global gomp_* variables.
19102 Initialize thread_pool field for new threads. Clear single_count.
19103 Change last argument from ws to team, don't create
19104 new team, set ts.work_share to &team->work_shares[0] and clear
19105 ts.last_work_share. Don't clear ts.work_share_generation.
19106 If number of threads changed, adjust atomically gomp_managed_threads.
19107 Use gomp_init_task instead of gomp_new_task,
19108 set thr->task to the corresponding implicit_task array entry.
19109 Create tasks for each member thread. Initialize ts.level.
19110 (initialize_team): Call pthread_key_create on
19111 gomp_thread_destructor.
19112 (team_destructor): New function.
19113 (new_team): Removed.
19114 (gomp_new_team): New function.
19115 (free_team): Free gomp_work_share blocks chained through next_alloc,
19116 instead of freeing work_shares and destroying work_share_lock.
19117 (gomp_team_end): Call gomp_fini_work_share. If number of threads
19118 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
19119 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
19120 of gomp_barrier_wait.
19121 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
19122 instead of gomp_barrier_wait. Call gomp_work_share_init_done
19123 if gomp_work_share_start returned true. Don't unlock ws->lock.
19124 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
19125 of gomp_barrier_wait.
19126 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
19127 gomp_work_share_init_done if gomp_work_share_start returned true.
19128 Don't unlock ws->lock.
19129 * work.c: Include stddef.h.
19130 (free_work_share): Use work_share_list_free_lock instead
19131 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
19132 Call gomp_fini_work_share and then either free ws if orphaned, or
19133 put it into work_share_list_free list of the current team.
19134 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
19136 (gomp_work_share_start, gomp_work_share_end,
19137 gomp_work_share_end_nowait): Rewritten.
19138 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
19139 (openmp_version): Set to 200805.
19140 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19141 omp_sched_guided, omp_sched_auto): New parameters.
19142 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19143 omp_set_max_active_levels, omp_get_max_active_levels,
19144 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19145 omp_get_active_level): New interfaces.
19146 * omp_lib.h.in (openmp_version): Set to 200805.
19147 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
19148 omp_sched_guided, omp_sched_auto): New parameters.
19149 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19150 omp_set_max_active_levels, omp_get_max_active_levels,
19151 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19152 omp_get_active_level): New externals.
19153 * loop.c: Include limits.h.
19154 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
19156 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
19157 Likewise. Use gomp_icv.
19158 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
19159 ts.static_trip here.
19160 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
19161 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
19162 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
19163 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
19164 don't unlock ws->lock, otherwise lock it.
19165 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
19166 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
19167 (gomp_parallel_loop_start): Call gomp_new_team instead of
19168 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
19169 Adjust gomp_team_start caller. Pass 0 as second argument to
19170 gomp_resolve_num_threads.
19171 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
19172 If adding ws->chunk_size nthreads + 1 times after end won't
19173 overflow, set ws->mode to 1.
19174 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
19175 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
19176 GOMP_loop_ull_ordered_static_start,
19177 GOMP_loop_ull_ordered_dynamic_start,
19178 GOMP_loop_ull_ordered_guided_start,
19179 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
19180 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
19181 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
19182 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
19183 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
19185 * libgomp.map: Export lock routines also @@OMP_2.0.
19186 (GOMP_loop_ordered_dynamic_first,
19187 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
19188 GOMP_loop_ordered_static_first): Remove.
19189 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
19190 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
19191 GOMP_loop_ull_ordered_dynamic_next,
19192 GOMP_loop_ull_ordered_dynamic_start,
19193 GOMP_loop_ull_ordered_guided_next,
19194 GOMP_loop_ull_ordered_guided_start,
19195 GOMP_loop_ull_ordered_runtime_next,
19196 GOMP_loop_ull_ordered_runtime_start,
19197 GOMP_loop_ull_ordered_static_next,
19198 GOMP_loop_ull_ordered_static_start,
19199 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
19200 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
19201 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
19202 (omp_set_schedule, omp_get_schedule,
19203 omp_get_thread_limit, omp_set_max_active_levels,
19204 omp_get_max_active_levels, omp_get_level,
19205 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
19206 omp_set_schedule_, omp_set_schedule_8_,
19207 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19208 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19209 omp_get_max_active_levels_, omp_get_level_,
19210 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19211 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19212 New exports @@OMP_3.0.
19213 * omp.h.in (omp_sched_t): New type.
19214 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19215 omp_set_max_active_levels, omp_get_max_active_levels,
19216 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
19217 omp_get_active_level): New prototypes.
19218 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
19219 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
19220 gomp_thread_limit_var, gomp_remaining_threads_count,
19221 gomp_remaining_threads_lock): New variables.
19222 (parse_spincount): New function.
19223 (initialize_env): Call gomp_init_num_threads unconditionally.
19224 Initialize gomp_available_cpus. Call parse_spincount,
19225 initialize gomp_{,throttled_}spin_count_var
19226 depending on presence and value of OMP_WAIT_POLICY and
19227 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
19228 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
19229 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
19230 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
19231 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
19232 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
19233 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
19234 (gomp_global_icv): New.
19235 (parse_schedule): Use it. Parse "auto".
19236 (omp_set_num_threads): Use gomp_icv.
19237 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
19239 (omp_get_max_threads): Move from parallel.c.
19240 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
19241 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
19243 (parse_stacksize, parse_wait_policy): New functions.
19244 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
19245 both wrappers for compatibility and new locks.
19246 (omp_set_schedule, omp_get_schedule,
19247 omp_get_thread_limit, omp_set_max_active_levels,
19248 omp_get_max_active_levels, omp_get_level,
19249 omp_get_ancestor_thread_num, omp_get_team_size,
19250 omp_get_active_level): New ialias_redirect.
19251 (omp_set_schedule_, omp_set_schedule_8_,
19252 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
19253 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
19254 omp_get_max_active_levels_, omp_get_level_,
19255 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
19256 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
19258 * parallel.c: Include limits.h.
19259 (gomp_resolve_num_threads): Add count argument. Rewritten.
19260 (GOMP_parallel_start): Call gomp_new_team and pass that as last
19261 argument to gomp_team_start. Pass 0 as second argument to
19262 gomp_resolve_num_threads.
19263 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
19264 if gomp_thread_limit_var != ULONG_MAX.
19265 (omp_in_parallel): Implement using ts.active_level.
19266 (omp_get_max_threads): Move to env.c.
19267 (omp_get_level, omp_get_ancestor_thread_num,
19268 omp_get_team_size, omp_get_active_level): New functions,
19270 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
19271 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
19272 gomp_iter_dynamic_next instead of the _locked variant and don't take
19273 lock around it, otherwise acquire it before calling
19274 gomp_iter_dynamic_next_locked.
19275 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
19276 gomp_iter_dynamic_next instead of the _locked variant and don't take
19278 (GOMP_parallel_sections_start): Call gomp_new_team instead of
19279 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
19280 Adjust gomp_team_start caller. Pass count as second argument to
19281 gomp_resolve_num_threads, don't adjust num_threads after the call.
19283 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
19284 ws->chunk_size by incr.
19285 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
19287 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
19289 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
19290 (omp_check_defines): Check even the compat defines.
19291 * config/linux/ptrlock.c: New file.
19292 * config/linux/ptrlock.h: New file.
19293 * config/linux/wait.h: New file.
19294 * config/posix/ptrlock.c: New file.
19295 * config/posix/ptrlock.h: New file.
19296 * config/linux/bar.h (gomp_team_barrier_wait,
19297 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19298 (gomp_team_barrier_set_task_pending,
19299 gomp_team_barrier_clear_task_pending,
19300 gomp_team_barrier_set_waiting_for_tasks,
19301 gomp_team_barrier_waiting_for_tasks,
19302 gomp_team_barrier_done): New inlines.
19303 (gomp_barrier_t): Rewritten.
19304 (gomp_barrier_state_t): New typedef.
19305 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
19306 gomp_barrier_wait_start): Rewritten.
19307 (gomp_barrier_wait_end): Change second argument to
19308 gomp_barrier_state_t.
19309 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19311 * config/linux/bar.c: Include wait.h instead of libgomp.h and
19313 (gomp_barrier_wait_end): Rewritten.
19314 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19315 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
19316 * config/posix/bar.h (gomp_barrier_t): Add generation field.
19317 (gomp_barrier_state_t): New typedef.
19318 (gomp_team_barrier_wait,
19319 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
19320 (gomp_barrier_wait_start): Or all but low 2 bits from generation
19321 into the return value. Return gomp_barrier_state_t.
19322 (gomp_team_barrier_set_task_pending,
19323 gomp_team_barrier_clear_task_pending,
19324 gomp_team_barrier_set_waiting_for_tasks,
19325 gomp_team_barrier_waiting_for_tasks,
19326 gomp_team_barrier_done): New inlines.
19327 (gomp_barrier_wait_end): Change second argument to
19328 gomp_barrier_state_t.
19329 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
19331 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
19332 (gomp_barrier_wait_end): Change second argument to
19333 gomp_barrier_state_t.
19334 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
19335 gomp_team_barrier_wake): New functions.
19336 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
19338 (gomp_futex_wake, gomp_futex_wait): New variables.
19339 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
19340 * config/linux/lock.c: Rewrite to make locks task owned,
19341 for backwards compatibility provide the old entrypoints
19342 if symbol versioning. Include wait.h instead of libgomp.h and
19344 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
19345 * config/posix95/lock.c: Rewrite to make locks task owned,
19346 for backwards compatibility provide the old entrypoints
19347 if symbol versioning.
19348 * config/posix/lock.c: Rewrite to make locks task owned,
19349 for backwards compatibility provide the old entrypoints
19350 if symbol versioning.
19351 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
19352 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
19353 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
19354 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19355 (sys_futex0): Return error code.
19356 (futex_wake, futex_wait): If ENOSYS was returned, clear
19357 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19358 (cpu_relax, atomic_write_barrier): New static inlines.
19359 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19360 (futex_wake, futex_wait): If ENOSYS was returned, clear
19361 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19362 (cpu_relax, atomic_write_barrier): New static inlines.
19363 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19364 (sys_futex0): Return error code.
19365 (futex_wake, futex_wait): If ENOSYS was returned, clear
19366 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19367 (cpu_relax, atomic_write_barrier): New static inlines.
19368 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19369 (sys_futex0): Return error code.
19370 (futex_wake, futex_wait): If ENOSYS was returned, clear
19371 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19372 (cpu_relax, atomic_write_barrier): New static inlines.
19373 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19374 (sys_futex0): Return error code.
19375 (futex_wake, futex_wait): If ENOSYS was returned, clear
19376 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19377 (cpu_relax, atomic_write_barrier): New static inlines.
19378 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
19379 (sys_futex0): Return error code.
19380 (futex_wake, futex_wait): If ENOSYS was returned, clear
19381 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
19382 (cpu_relax, atomic_write_barrier): New static inlines.
19383 * config/linux/sem.c: Include wait.h instead of libgomp.h and
19385 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
19386 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
19387 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
19389 (omp_nest_lock_t): Change owner into void *, add lock field.
19390 * config/posix95/omp-lock.h: Include semaphore.h.
19391 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19392 (omp_lock_t): Use sem_t instead of mutex if semaphores
19394 (omp_nest_lock_t): Likewise. Change owner to void *.
19395 * config/posix/omp-lock.h: Include semaphore.h.
19396 (omp_lock_25_t, omp_nest_lock_25_t): New types.
19397 (omp_lock_t): Use sem_t instead of mutex if semaphores
19399 (omp_nest_lock_t): Likewise. Add owner field.
19401 2008-06-06 Jakub Jelinek <jakub@redhat.com>
19403 * testsuite/libgomp.c/collapse-1.c: New test.
19404 * testsuite/libgomp.c/collapse-2.c: New test.
19405 * testsuite/libgomp.c/collapse-3.c: New test.
19406 * testsuite/libgomp.c/icv-1.c: New test.
19407 * testsuite/libgomp.c/icv-2.c: New test.
19408 * testsuite/libgomp.c/lib-2.c: New test.
19409 * testsuite/libgomp.c/lock-1.c: New test.
19410 * testsuite/libgomp.c/lock-2.c: New test.
19411 * testsuite/libgomp.c/lock-3.c: New test.
19412 * testsuite/libgomp.c/loop-4.c: New test.
19413 * testsuite/libgomp.c/loop-5.c: New test.
19414 * testsuite/libgomp.c/loop-6.c: New test.
19415 * testsuite/libgomp.c/loop-7.c: New test.
19416 * testsuite/libgomp.c/loop-8.c: New test.
19417 * testsuite/libgomp.c/loop-9.c: New test.
19418 * testsuite/libgomp.c/nested-3.c: New test.
19419 * testsuite/libgomp.c/nestedfn-6.c: New test.
19420 * testsuite/libgomp.c/sort-1.c: New test.
19421 * testsuite/libgomp.c/task-1.c: New test.
19422 * testsuite/libgomp.c/task-2.c: New test.
19423 * testsuite/libgomp.c/task-3.c: New test.
19424 * testsuite/libgomp.c/task-4.c: New test.
19425 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
19426 to C++ testsuite default compiler options.
19427 * testsuite/libgomp.c++/collapse-1.C: New test.
19428 * testsuite/libgomp.c++/collapse-2.C: New test.
19429 * testsuite/libgomp.c++/ctor-10.C: New test.
19430 * testsuite/libgomp.c++/for-1.C: New test.
19431 * testsuite/libgomp.c++/for-2.C: New test.
19432 * testsuite/libgomp.c++/for-3.C: New test.
19433 * testsuite/libgomp.c++/for-4.C: New test.
19434 * testsuite/libgomp.c++/for-5.C: New test.
19435 * testsuite/libgomp.c++/loop-8.C: New test.
19436 * testsuite/libgomp.c++/loop-9.C: New test.
19437 * testsuite/libgomp.c++/loop-10.C: New test.
19438 * testsuite/libgomp.c++/task-1.C: New test.
19439 * testsuite/libgomp.c++/task-2.C: New test.
19440 * testsuite/libgomp.c++/task-3.C: New test.
19441 * testsuite/libgomp.c++/task-4.C: New test.
19442 * testsuite/libgomp.c++/task-5.C: New test.
19443 * testsuite/libgomp.c++/task-6.C: New test.
19444 * testsuite/libgomp.fortran/allocatable1.f90: New test.
19445 * testsuite/libgomp.fortran/allocatable2.f90: New test.
19446 * testsuite/libgomp.fortran/allocatable3.f90: New test.
19447 * testsuite/libgomp.fortran/allocatable4.f90: New test.
19448 * testsuite/libgomp.fortran/collapse1.f90: New test.
19449 * testsuite/libgomp.fortran/collapse2.f90: New test.
19450 * testsuite/libgomp.fortran/collapse3.f90: New test.
19451 * testsuite/libgomp.fortran/collapse4.f90: New test.
19452 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
19453 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
19454 * testsuite/libgomp.fortran/lib4.f90: New test.
19455 * testsuite/libgomp.fortran/lock-1.f90: New test.
19456 * testsuite/libgomp.fortran/lock-2.f90: New test.
19457 * testsuite/libgomp.fortran/nested1.f90: New test.
19458 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
19459 * testsuite/libgomp.fortran/strassen.f90: New test.
19460 * testsuite/libgomp.fortran/tabs1.f90: New test.
19461 * testsuite/libgomp.fortran/tabs2.f: New test.
19462 * testsuite/libgomp.fortran/task1.f90: New test.
19463 * testsuite/libgomp.fortran/task2.f90: New test.
19464 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
19465 * testsuite/libgomp.fortran/vla5.f90: Likewise.
19466 * testsuite/libgomp.c/pr26943-2.c: Likewise.
19467 * testsuite/libgomp.c/pr26943-3.c: Likewise.
19468 * testsuite/libgomp.c/pr26943-4.c: Likewise.
19470 2008-05-23 Jakub Jelinek <jakub@redhat.com>
19473 * testsuite/libgomp.c++/ctor-11.C: New test.
19474 * testsuite/libgomp.c++/ctor-12.C: New test.
19476 2008-05-15 Janis Johnson <janis187@us.ibm.com>
19478 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
19480 2008-05-07 Jakub Jelinek <jakub@redhat.com>
19482 PR middle-end/36106
19483 * testsuite/libgomp.c/atomic-5.c: New test.
19484 * testsuite/libgomp.c/atomic-6.c: New test.
19485 * testsuite/libgomp.c/autopar-1.c: New test.
19487 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19489 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
19490 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
19491 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
19492 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
19493 * configure: Regenerate.
19494 * Makefile.in, testsuite/Makefile.in: Likewise.
19496 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
19499 * aclocal.m4: Regenerate.
19500 * configure: Regenerate.
19502 2008-03-18 Jakub Jelinek <jakub@redhat.com>
19504 PR middle-end/35611
19505 * testsuite/libgomp.c/atomic-4.c: New test.
19508 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
19509 (gomp_iter_guided_next): Likewise.
19510 * testsuite/libgomp.c/pr35625.c: New test.
19512 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19514 * aclocal.m4: Regenerate.
19515 * configure: Likewise.
19516 * Makefile.in: Likewise.
19517 * testsuite/Makefile.in: Likewise.
19519 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19521 PR middle-end/35185
19522 * testsuite/libgomp.c++/pr35185.C: New test.
19524 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19526 PR middle-end/35549
19527 * testsuite/libgomp.c/pr35549.c: New test.
19529 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19531 * testsuite/libgomp.c/atomic-3.c: New test.
19533 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19536 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
19537 .F08 file suffixes.
19539 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
19542 * configure.ac: Add ACX_HEADER_STRING.
19543 * env.c: Include strings.h.
19544 * aclocal.m4: Regenerate.
19545 * config.h.in: Regenerate.
19546 * configure: Regenerate.
19547 * Makefile.in: Regenerate.
19548 * testsuite/Makefile.in: Regenerate.
19550 2008-02-15 Jakub Jelinek <jakub@redhat.com>
19552 PR middle-end/35196
19553 * testsuite/libgomp.c/pr35196.c: New test.
19555 PR middle-end/35130
19556 * testsuite/libgomp.fortran/pr35130.f90: New test.
19557 * testsuite/libgomp.c/pr35130.c: New test.
19559 2008-01-25 Jakub Jelinek <jakub@redhat.com>
19561 PR middle-end/33880
19562 * testsuite/libgomp.c/pr33880.c: New test.
19563 * testsuite/libgomp.fortran/pr33880.f90: New test.
19565 2008-01-24 David Edelsohn <edelsohn@gnu.org>
19567 * configure: Regenerate.
19569 2008-01-08 Jakub Jelinek <jakub@redhat.com>
19571 * configure.ac: Move futex checking into ../config/futex.m4.
19572 * configure: Rebuilt.
19573 * aclocal.m4: Rebuilt.
19574 * Makefile.in: Rebuilt.
19576 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
19577 2007-10-15 ../config/tls.m4 change.
19579 2007-12-19 Jakub Jelinek <jakub@redhat.com>
19582 * testsuite/libgomp.c/pr34513.c: New test.
19583 * testsuite/libgomp.c++/pr34513.C: New test.
19585 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
19588 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
19590 2007-12-04 Jakub Jelinek <jakub@redhat.com>
19592 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
19594 2007-12-03 Jakub Jelinek <jakub@redhat.com>
19596 * testsuite/libgomp.c/private-1.c: New test.
19598 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
19599 Paolo Bonzini <bonzini@gnu.org>
19601 * Makefile.am: Use space as vpath separator. Use 'vpath %'
19602 instead of 'VPATH ='.
19603 * Makefile.in: Regenerate.
19605 2007-11-23 Matthias Klose <doko@ubuntu.com>
19607 * configure.ac: Adjust makeinfo version check.
19608 * configure: Regenerate.
19610 2007-11-10 Jakub Jelinek <jakub@redhat.com>
19613 * testsuite/libgomp.fortran/pr34020.f90: New test.
19615 2007-11-06 Jakub Jelinek <jakub@redhat.com>
19618 * testsuite/libgomp.c++/atomic-1.C: New test.
19620 2007-10-25 Jakub Jelinek <jakub@redhat.com>
19623 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
19624 Make x and y integers rather than (implicit) reals. Add private (j)
19625 clause to the last omp parallel.
19627 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
19629 * configure: Regenerate following changes to ../config/tls.m4.
19631 2007-09-28 Jakub Jelinek <jakub@redhat.com>
19633 * testsuite/libgomp.fortran/stack.f90: New test.
19635 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
19637 * config/mingw32/proc.c: New file.
19639 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
19641 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
19642 (main): Use __get_cpuid to get i386 target fetaures.
19643 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
19644 (main): Use __get_cpuid to get x86_64 target fetaures.
19646 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
19649 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
19650 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
19652 2007-07-12 Jakub Jelinek <jakub@redhat.com>
19655 * testsuite/libgomp.fortran/pr32550.f90: New test.
19656 * testsuite/libgomp.fortran/crayptr2.f90: New test.
19658 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
19660 * aclocal.m4: Regenerated.
19662 2007-07-05 Tobias Burnus <burnus@net-b.de>
19665 * testsuite/libgomp.fortran/pr32359.f90: New.
19667 2007-07-02 Jakub Jelinek <jakub@redhat.com>
19670 * sections.c (GOMP_parallel_sections_start): Only decrease
19671 number of threads to COUNT if dyn_var is true.
19672 * testsuite/libgomp.c/pr32468.c: New test.
19674 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19677 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
19679 2007-06-21 Jakub Jelinek <jakub@redhat.com>
19681 PR middle-end/32362
19682 * testsuite/libgomp.c/pr32362-1.c: New test.
19683 * testsuite/libgomp.c/pr32362-2.c: New test.
19684 * testsuite/libgomp.c/pr32362-3.c: New test.
19686 2007-06-07 Jakub Jelinek <jakub@redhat.com>
19688 * team.c (gomp_team_start): Fix setting up thread_attr
19691 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
19693 * configure: Regenerate.
19695 2007-05-23 Steve Ellcey <sje@cup.hp.com>
19697 * Makefile.in: Regenerate.
19698 * configure: Regenerate.
19699 * aclocal.m4: Regenerate.
19700 * testsuite/Makefile.in: Regenerate.
19702 2007-05-04 Jakub Jelinek <jakub@redhat.com>
19704 * config/linux/proc.c: New file.
19707 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
19709 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
19711 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
19713 2007-04-16 Matthias Klose <doko@debian.org>
19715 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
19716 flags if not building with -m64.
19717 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
19718 flag for i?86-*-* targets, if current target matches -m64.
19720 2007-04-14 Steve Ellcey <sje@cup.hp.com>
19722 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
19723 * Makefile.in: Regenerate.
19725 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19728 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
19730 * testsuite/libgomp.fortran/fortran.exp: Likewise.
19732 2007-04-04 Jakub Jelinek <jakub@redhat.com>
19734 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
19736 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
19737 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
19738 (parse_affinity): New function.
19739 (initialize_env): Call it and gomp_init_affinity.
19740 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
19741 create new pthread_attr_t and call gomp_init_thread_affinity
19742 on it for each thread before passing the attribute to pthread_create.
19743 * config/linux/affinity.c: New file.
19744 * config/posix/affinity.c: New file.
19745 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
19746 * configure: Rebuilt.
19747 * config.h.in: Rebuilt.
19748 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
19749 * Makefile.in: Rebuilt.
19751 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
19753 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
19755 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
19756 and use it if found.
19758 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
19760 * testsuite/config/default.exp: New file.
19761 * testsuite/lib/libgomp.exp: New file.
19762 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
19763 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
19764 load_lib *, load_gcc_lib *): Move to libgomp.exp.
19765 (libgomp_load): Remove.
19766 * testsuite/lib/libgomp.exp (libgomp_init): Compute
19767 always_ld_library_path, not ld_library_path. Set additional_flags
19768 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
19769 (target_compile): Do not call libgomp_init. Append lang_library_path
19770 and lang_link_flags to options.
19771 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
19772 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
19774 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
19775 always_ld_library_path. Set LD_LIBRARY_PATH here.
19776 * testsuite/libgomp.fortran/fortran.exp: Ditto.
19777 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
19778 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
19780 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
19781 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
19782 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
19783 * testsuite/libgomp.c/pr29947-1.c: Ditto.
19784 * testsuite/libgomp.c/atomic-10.c: Ditto.
19786 2007-03-21 Jakub Jelinek <jakub@redhat.com>
19788 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
19789 dg-final cleanup-modules line.
19790 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
19791 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
19792 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
19793 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
19794 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
19795 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
19796 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
19798 2007-03-18 Andreas Schwab <schwab@suse.de>
19800 * acinclude.m4: Adjust regular expression for ld version
19802 * configure: Regenerate.
19804 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19806 * Makefile.am: Add install-pdf target as copied from
19807 automake v1.10 rules.
19808 * Makefile.in: Regenerate
19810 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19813 * configure: Regenerate.
19816 * testsuite/libgomp.c++/pr30703.C: New test.
19818 2007-02-02 Jakub Jelinek <jakub@redhat.com>
19821 2006-07-05 Eric Christopher <echristo@apple.com>
19822 * configure.ac: Depend addition of -pthread on host OS.
19823 * configure: Regenerate.
19825 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19827 * libgomp.texi: Fix spacing after abbreviations.
19829 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
19832 * configure.ac: Add check for makeinfo
19833 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
19834 if an appropriate version of makeinfo is found.
19835 * aclocal.m4: Regenerated.
19836 * configure: Regenerated.
19837 * Makefile.in: Regenerated.
19838 * testsuite/Makefile.in: Regenerated.
19840 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
19843 * libgomp.texi: More about implementation-dependent settings.
19845 2007-01-26 Tobias Burnus <burnus@net-b.de>
19847 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
19849 2007-01-24 Jakub Jelinek <jakub@redhat.com>
19851 PR middle-end/30494
19852 * testsuite/libgomp.c/pr30494.c: New test.
19854 2007-01-15 Tom Tromey <tromey@redhat.com>
19856 * configure: Rebuilt.
19857 * configure.ac: Fixed comment.
19859 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
19861 * libgomp.texi: Document implementation specific default values of
19862 environment variables.
19864 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
19867 * libgomp.texi: New file.
19868 * configure.ac: Add --enable-generated-files-in-srcdir option.
19869 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
19871 * Makefile.in: Regenerated.
19872 * config.h.in: Regenerated.
19873 * testsuite/Makefile.in: Regenerated.
19876 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
19879 * env.c (omp_set_num_threads): Set illegal thread count to 1.
19881 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
19883 * configure: Regenerate.
19885 2006-12-04 Jakub Jelinek <jakub@redhat.com>
19888 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
19889 start if there shouldn't be any loop iterations.
19890 (gomp_loop_ordered_static_start): Remove start == end test.
19891 * testsuite/libgomp.c/pr29947-1.c: New test.
19892 * testsuite/libgomp.c/pr29947-2.c: New test.
19894 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
19896 * configure.tgt: Force initial-exec TLS model on Linux only.
19898 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19900 * configure: Regenerated.
19902 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
19904 * env.c (parse_schedule): Reject out of range values.
19905 (parse_unsigned_long): Reject out of range, negative or zero values.
19907 2006-10-29 Jakub Jelinek <jakub@redhat.com>
19910 * testsuite/libgomp.fortran/pr29629.f90: New test.
19912 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
19915 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
19916 * config/posix95: New directory.
19917 * config/posix95/omp-lock.h: New file.
19918 * config/posix95/lock.c: Likewise.
19920 2006-10-14 Geoffrey Keating <geoffk@apple.com>
19922 * aclocal.m4: Regenerate.
19923 * configure: Regenerate.
19925 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19927 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
19930 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
19932 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
19934 * configure: Regenerate.
19935 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
19937 2006-09-26 Jakub Jelinek <jakub@redhat.com>
19939 PR middle-end/25261
19940 PR middle-end/28790
19941 * testsuite/libgomp.c/nestedfn-4.c: New test.
19942 * testsuite/libgomp.c/nestedfn-5.c: New test.
19943 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
19946 * testsuite/libgomp.fortran/condinc1.f: New test.
19947 * testsuite/libgomp.fortran/condinc2.f: New test.
19948 * testsuite/libgomp.fortran/condinc3.f90: New test.
19949 * testsuite/libgomp.fortran/condinc4.f90: New test.
19950 * testsuite/libgomp.fortran/condinc1.inc: New file.
19952 2006-09-18 Tom Tromey <tromey@redhat.com>
19954 * configure: Rebuilt.
19956 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
19959 PR preprocessor/14634
19960 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
19962 * configure: Regenerate.
19964 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
19966 * testsuite/libgomp.fortran/reduction3.f90: Change
19967 -2147483648 to -huge(i)-1 to avoid overflow.
19968 * testsuite/libgomp.fortran/reduction4.f90: Change
19969 Z'ffffffff' to not(0) to avoid overflow.
19971 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
19974 * Makefile.am (libsubincludedir): New.
19975 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
19976 * Makefile.in: Regenerate.
19978 2006-08-17 Jakub Jelinek <jakub@redhat.com>
19981 * env.c: Include ctype.h.
19982 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
19983 leading and/or trailing whitespace and compare strings case
19986 2006-07-16 Jakub Jelinek <jakub@redhat.com>
19989 * testsuite/libgomp.fortran/pr28390.f: New test.
19991 2006-07-05 Eric Christopher <echristo@apple.com>
19993 * configure.ac: Depend addition of -pthread on host OS.
19994 * configure: Regenerate.
19996 2006-06-21 Jakub Jelinek <jakub@redhat.com>
19998 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
19999 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
20002 2006-06-20 Jakub Jelinek <jakub@redhat.com>
20006 * configure.ac: If neither --enable-linux-futex nor
20007 --disable-linux-futex is passed, determine the default by checking
20008 for compiling and/or running against NPTL. With --enable-linux-futex,
20009 check if SYS_gettid and SYS_futex are defined.
20010 * configure: Rebuilt.
20012 2006-06-14 Richard Henderson <rth@redhat.com>
20015 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
20016 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
20018 2006-06-09 Richard Henderson <rth@redhat.com>
20020 * env.c (gomp_nthreads_var): Change to unsigned long.
20021 (gomp_run_sched_chunk): Likewise.
20022 (parse_unsigned_long): Rename from parse_num_threads and generalize.
20023 (initialize_env): Initialize gomp_thread_attr.
20024 * libgomp.h (gomp_nthreads_var): Update decl.
20025 (gomp_run_sched_chunk): Likewise.
20026 (gomp_thread_attr): Declare.
20027 * team.c (gomp_thread_attr): Export.
20028 (initialize_team): Don't initialize it.
20030 2006-06-09 Jakub Jelinek <jakub@redhat.com>
20033 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
20034 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
20036 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20038 * config/mingw32/time.c: New file.
20039 * configure.tgt: Use it.
20041 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
20043 * Makefile.am: Add install-html target. Add install-html to .PHONY
20044 * Makefile.in: Regenerate.
20046 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20049 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
20050 * testsuite/libgomp.c/critical-1.c: Likewise.
20051 * testsuite/libgomp.c/loop-1.c: Likewise.
20052 * testsuite/libgomp.c/loop-2.c: Likewise.
20053 * testsuite/libgomp.c/single-1.c: Likewise.
20054 * testsuite/libgomp.c/ordered-1.c: Likewise.
20055 * testsuite/libgomp.c/ordered-2.c: Likewise.
20057 2006-05-15 Jakub Jelinek <jakub@redhat.com>
20059 PR middle-end/27416
20060 * libgomp.fortran/pr27416-1.f90: New test.
20062 2006-05-03 Jakub Jelinek <jakub@redhat.com>
20065 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
20066 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
20068 2006-05-02 Jakub Jelinek <jakub@redhat.com>
20071 * testsuite/libgomp.c/pr26943-1.c: New test.
20072 * testsuite/libgomp.c/pr26943-2.c: New test.
20073 * testsuite/libgomp.c/pr26943-3.c: New test.
20074 * testsuite/libgomp.c/pr26943-4.c: New test.
20075 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
20076 * testsuite/libgomp.c++/pr26943.C: New test.
20078 2006-05-02 Jakub Jelinek <jakub@redhat.com>
20080 PR middle-end/27337
20081 * testsuite/libgomp.c++/pr27337.C: New test.
20083 2006-04-26 Jakub Jelinek <jakub@redhat.com>
20086 * testsuite/libgomp.c/pr26171.c: New test.
20088 2006-04-25 Richard Henderson <rth@redhat.com>
20091 * configure.ac: Use GCC_CHECK_TLS.
20092 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
20093 * Makefile.in, aclocal.m4, configure: Regenerate.
20095 2006-04-10 Matthias Klose <doko@debian.org>
20097 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
20098 directory names containing underscores.
20100 2006-03-21 Jakub Jelinek <jakub@redhat.com>
20103 * testsuite/libgomp.c++/pr26691.C: New test.
20105 2006-03-13 Jakub Jelinek <jakub@redhat.com>
20107 * testsuite/libgomp.fortran/retval2.f90: New test.
20109 2006-03-09 Diego Novillo <dnovillo@redhat.com>
20111 * testsuite/libgomp.c++: New directory.
20113 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
20115 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
20116 * config/posix/sem.c: Implement the above.
20118 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
20120 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
20121 define HAVE_BROKEN_POSIX_SEMAPHORES.
20122 * configure: Rebuilt.
20123 * config.h.in: Rebuilt.
20125 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20128 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
20129 for the other pthread check.
20130 * configure: Regenerate.
20131 * config.h.in: Regenerate.
20133 2006-02-15 Jakub Jelinek <jakub@redhat.com>
20137 * Makefile.am (fincludedir): New variable.
20138 (nodist_include_HEADERS): Remove Fortran files.
20139 (nodist_finclude_HEADERS): New variable.
20140 * Makefile.in: Regenerated.
20142 2006-02-13 Jakub Jelinek <jakub@redhat.com>
20144 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
20145 Remove tests for returning assumed character length arrays.
20147 2006-02-12 Roger Sayle <roger@eyesopen.com>
20148 John David Anglin <dave@hiauly1.hia.nrc.ca>
20151 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
20153 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
20155 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
20157 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
20159 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
20160 part of LD_LIBRARY_PATH manually.
20162 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
20165 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
20168 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
20171 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
20172 * configure.ac (PERL): Don't set.
20173 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
20174 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
20175 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
20176 * omp.h.in: Wrap the new configure substitutions with @ characters.
20177 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
20178 * aclocal.m4, configure, Makefile.in: Regenerate.
20179 * mkomp_h.pl: Delete.
20181 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
20184 * configure.ac: Use GCC_HEADER_STDINT.
20185 * libgomp.h: Include gstdint.h.
20186 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
20187 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
20189 2006-01-24 Richard Henderson <rth@redhat.com>
20192 * configure.ac: Add AM_MAINTAINER_MODE.
20193 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
20195 2006-01-24 Diego Novillo <dnovillo@redhat.com>
20197 * Makefile.in: Regenerate.
20198 * testsuite/Makefile.in: Regenerate.
20199 * aclocal.m4: Regenerate.
20201 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
20203 * config/posix/proc.c: Conditional include of sys/loadavg.h for
20205 * configure.ac: Add check for loadavg.h.
20206 (link_gomp): Adjust comment.
20207 * configure: Regenerate.
20208 * config.h.in: Regenerate.
20210 2006-01-21 Steve Ellcey <sje@cup.hp.com>
20213 * configure.ac: Remove check for alloca.h.
20214 * configure: Regenerate.
20215 * config.h.in: Regenerate.
20216 * libgomp.h: define gomp_alloca to be __builtin_alloca.
20217 * team.c: Remove use of alloca.h.
20218 Call gomp_alloca instead of alloca.
20220 2006-01-20 Steve Ellcey <sje@cup.hp.com>
20223 * team.c: Add include of alloca.h.
20224 * configure.ac: Add check for alloca.h.
20225 * configure: Regenerate.
20226 * config.h.in: Regenerate.
20228 2006-01-17 Jakub Jelinek <jakub@redhat.com>
20231 * testsuite/libgomp.fortran/pr25219.f90: New test.
20233 2005-12-05 Uros Bizjak <uros@kss-loka.si>
20235 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
20236 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
20237 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20238 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20239 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
20240 testsuite/libgomp.fortran/threadprivate1.f90,
20241 testsuite/libgomp.fortran/threadprivate2.f90,
20242 testsuite/libgomp.fortran/threadprivate3.f90,
20243 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20244 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20245 testsuite/libgomp.fortran/omp_parse3.f90: Change required
20246 effective-target to TLS runtime.
20248 * testsuite/libgomp.fortran/pr25162.f: Require
20249 effective-target TLS runtime.
20251 2005-12-01 Jakub Jelinek <jakub@redhat.com>
20253 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
20254 * testsuite/libgomp.c/nestedfn-3.c: New test.
20256 2005-11-30 Jakub Jelinek <jakub@redhat.com>
20259 * testsuite/libgomp.fortran/pr25162.f: New test.
20261 2005-11-28 Jakub Jelinek <jakub@redhat.com>
20263 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
20264 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
20266 2005-11-25 Jakub Jelinek <jakub@redhat.com>
20268 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
20269 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
20270 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
20271 single.c, team.c, work.c, config/linux/alpha/futex.h,
20272 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
20273 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
20274 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
20275 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
20276 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
20277 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
20278 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
20281 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20283 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
20284 to nodist_noinst_HEADERS.
20285 * Makefile.in: Rebuilt.
20287 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
20288 add integer count field.
20289 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
20290 omp_nest_lock_t type change.
20291 (omp_init_nest_lock): Likewise. Initialize count to 0.
20292 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
20294 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
20296 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
20297 Increment count if successful and return the new nesting level.
20298 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
20299 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
20300 * testsuite/libgomp.c/lib-1.c: New test.
20301 * testsuite/libgomp.fortran/lib1.f90: New test.
20302 * testsuite/libgomp.fortran/lib2.f: New test.
20303 * testsuite/libgomp.fortran/lib3.f: New test.
20305 2005-11-17 Richard Henderson <rth@redhat.com>
20308 * Makefile.am (nodist_toolexeclib_HEADERS): New.
20309 * configure.ac (link_gomp): New. Substitute it.
20310 (AC_CONFIG_FILES): Add libgomp.spec.
20311 * libgomp.spec.in: New file.
20312 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
20313 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
20315 2005-11-18 Jakub Jelinek <jakub@redhat.com>
20317 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
20318 reduction(-:var) behaving the same as reduction(+:var).
20319 * testsuite/libgomp.c/reduction-4.c: New test.
20321 2005-11-15 Uros Bizjak <uros@kss-loka.si>
20323 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
20324 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
20325 testsuite/libgomp.c/copyin-3.c,
20326 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
20327 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
20328 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
20329 testsuite/libgomp.c++/pr24455.C,
20330 testsuite/libgomp.fortran/threadprivate1.f90,
20331 testsuite/libgomp.fortran/threadprivate2.f90,
20332 testsuite/libgomp.fortran/threadprivate3.f90,
20333 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
20334 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
20335 testsuite/libgomp.fortran/omp_parse3.f90: Require
20336 effective-target TLS.
20338 2005-11-14 Diego Novillo <dnovillo@redhat.com>
20342 2005-11-13 Jakub Jelinek <jakub@redhat.com>
20345 * team.c (initialize_team): Pass NULL rather than free as
20346 pthread_key_create destructor. Initialize thread specific data
20347 pointer in initial thread to a static local variable rather than
20350 2005-11-11 Uros Bizjak <uros@kss-loka.si>
20352 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
20353 its location to ld_library_path.
20355 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20357 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
20359 2005-11-10 Diego Novillo <dnovillo@redhat.com>
20361 * testsuite/libgomp.c: Rename from libgomp.dg.
20363 2005-11-09 Diego Novillo <dnovillo@redhat.com>
20365 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
20366 threadprivate variable 'i'.
20368 2005-11-09 Jakub Jelinek <jakub@redhat.com>
20370 * config/linux/s390/futex.h: New file.
20371 * configure.tgt: Use it.
20373 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
20374 before the parallel.
20376 2005-11-08 Jakub Jelinek <jakub@redhat.com>
20379 * testsuite/libgomp.c++/master-1.C: New test.
20381 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20383 * testsuite/libgomp.dg/copyin-3.c: New test.
20385 2005-11-07 Jakub Jelinek <jakub@redhat.com>
20387 * testsuite/libgomp.fortran/retval1.f90: New test.
20388 * testsuite/libgomp.fortran/vla7.f90: New test.
20390 2005-11-06 Jakub Jelinek <jakub@redhat.com>
20392 * testsuite/libgomp.fortran/vla2.f90: New test.
20393 * testsuite/libgomp.fortran/vla3.f90: New test.
20394 * testsuite/libgomp.fortran/vla4.f90: New test.
20395 * testsuite/libgomp.fortran/vla5.f90: New test.
20396 * testsuite/libgomp.fortran/vla6.f90: New test.
20398 2005-11-01 Jakub Jelinek <jakub@redhat.com>
20400 * config/linux/sparc/futex.h: New file.
20401 * configure.tgt: Use it.
20402 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
20404 * critical.c: Include stdlib.h.
20405 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
20406 ignoring return value.
20407 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
20408 LIBGOMP_CHECK_SYNC_BUILTINS check.
20409 * configure: Rebuilt.
20411 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20413 * testsuite/libgomp.fortran/vla1.f90: New test.
20415 2005-10-31 Richard Henderson <rth@redhat.com>
20417 * testsuite/libgomp.fortran/character2.f90: Fix race condition
20418 setting 's' in different threads.
20420 2005-10-31 Jakub Jelinek <jakub@redhat.com>
20422 * libgomp.h (attribute_hidden, ialias): Define.
20423 * config/posix/proc.c (omp_get_num_procs): Add ialias.
20424 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
20425 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
20426 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20427 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20428 omp_test_lock, omp_test_nest_lock): Likewise.
20429 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
20430 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
20431 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
20432 omp_test_lock, omp_test_nest_lock): Likewise.
20433 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
20434 omp_get_dynamic, omp_get_nested): Likewise.
20435 * parallel.c (omp_get_num_threads, omp_get_max_threads,
20436 omp_get_thread_num, omp_in_parallel): Likewise.
20437 * fortran.c (ialias_redirect): Define.
20438 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
20439 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
20440 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
20441 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
20442 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
20443 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
20444 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
20445 omp_get_wtime): Add ialias_redirect.
20447 2005-10-30 Jakub Jelinek <jakub@redhat.com>
20449 * fortran.c: Include stdlib.h.
20451 2005-10-29 Jakub Jelinek <jakub@redhat.com>
20453 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
20454 * Makefile.in: Regenerated.
20456 2005-10-28 Jakub Jelinek <jakub@redhat.com>
20458 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
20459 * libgomp_f.h.in (omp_check_defines): New function.
20460 * env.c: Include libgomp_f.h.
20461 (initialize_env): Call omp_check_defines.
20463 * testsuite/libgomp.dg/copyin-2.c: New test.
20464 * testsuite/libgomp.c++/copyin-2.C: New test.
20465 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
20467 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
20468 * testsuite/libgomp.fortran/sharing2.f90: New test.
20470 * testsuite/libgomp.dg/copyin-1.c: New test.
20471 * testsuite/libgomp.c++/copyin-1.C: New test.
20473 2005-10-26 Jakub Jelinek <jakub@redhat.com>
20475 * testsuite/libgomp.fortran/crayptr1.f90: New test.
20477 * testsuite/libgomp.fortran/workshare1.f90: New test.
20479 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
20481 * libgomp.fortran/sharing1.f90: New test.
20483 2005-10-24 Jakub Jelinek <jakub@redhat.com>
20486 * testsuite/libgomp.c++/loop-7.C: New test.
20488 * testsuite/libgomp.dg/nestedfn-2.c: New test.
20490 * testsuite/libgomp.dg/nestedfn-1.c: New test.
20491 * testsuite/libgomp.fortran/reduction6.f90: New test.
20492 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
20494 2005-10-23 Richard Henderson <rth@redhat.com>
20496 * testsuite/libgomp.c++/ctor-1.C: New.
20497 * testsuite/libgomp.c++/ctor-2.C: New.
20498 * testsuite/libgomp.c++/ctor-3.C: New.
20499 * testsuite/libgomp.c++/ctor-4.C: New.
20500 * testsuite/libgomp.c++/ctor-5.C: New.
20501 * testsuite/libgomp.c++/ctor-6.C: New.
20502 * testsuite/libgomp.c++/ctor-7.C: New.
20503 * testsuite/libgomp.c++/ctor-8.C: New.
20504 * testsuite/libgomp.c++/ctor-9.C: New.
20506 2005-10-21 Diego Novillo <dnovillo@redhat.com>
20509 * testsuite/libgomp.c++/pr24455-1.C: New test.
20510 * testsuite/libgomp.c++/pr24455.C: New test.
20511 * testsuite/libgomp.dg/pr24455-1.c: New test.
20512 * testsuite/libgomp.dg/pr24455.c: New test.
20514 2005-10-20 Richard Henderson <rth@redhat.com>
20516 * testsuite/libgomp.c++/loop-6.C: New.
20517 * testsuite/libgomp.dg/loop-3.c: New.
20519 2005-10-20 Jakub Jelinek <jakub@redhat.com>
20521 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
20522 explicitly private.
20523 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
20526 2005-10-19 Diego Novillo <dnovillo@redhat.com>
20528 * testsuite/libgomp.fortran/jacobi.f: New test.
20530 2005-10-19 Richard Henderson <rth@redhat.com>
20532 * configure.tgt (i?86-linux): Default to with_arch instead of
20533 CFLAGS. Add -mtune to match target_cpu.
20534 (x86_64-linux): Tune to i686.
20536 * fortran.c (omp_test_nest_lock_): Fix typo.
20538 2005-10-19 Jakub Jelinek <jakub@redhat.com>
20540 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
20541 gomp_ordered_sync): Do nothing if team->nthreads == 1.
20542 * testsuite/libgomp.dg/ordered-3.c: New test.
20544 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
20545 Remove volatile keyword.
20547 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
20548 in COMMON block to avoid warnings on 64-bit targets.
20550 2005-10-18 Diego Novillo <dnovillo@redhat.com>
20552 * testsuite/libgomp.dg/shared-3.c: New test.
20554 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20556 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
20557 * testsuite/libgomp.fortran/reduction5.f90: New test.
20559 2005-10-18 Jakub Jelinek <jakub@redhat.com>
20561 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
20563 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
20564 flush loop now that __sync_synchronize has proper memory barrier.
20565 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
20566 Add -ffixed-form to dg-options.
20568 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20570 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
20571 from subdirectories.
20572 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
20573 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
20574 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
20575 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
20576 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
20577 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
20578 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
20579 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
20580 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
20581 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
20582 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
20583 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
20584 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
20585 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
20586 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
20587 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
20588 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
20589 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
20590 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
20591 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
20592 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
20593 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
20594 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
20595 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
20596 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
20598 2005-10-17 Jakub Jelinek <jakub@redhat.com>
20600 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
20601 lang_library_path exists. Use find instead of glob to gather tests.
20602 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
20604 2005-10-17 Diego Novillo <dnovillo@redhat.com>
20606 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
20607 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
20608 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
20609 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
20610 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
20611 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
20612 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
20613 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
20614 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
20615 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
20616 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
20617 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
20618 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
20620 2005-10-15 Jakub Jelinek <jakub@redhat.com>
20622 * testsuite/libgomp.dg/vla-1.c: New test.
20624 * testsuite/libgomp.fortran/reference2.f90: New test.
20626 * testsuite/libgomp.fortran/character2.f90: Remove explicit
20627 declaration of omp_get_thread_num.
20628 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
20631 * testsuite/libgomp.fortran/reduction1.f90: New test.
20632 * testsuite/libgomp.fortran/reduction2.f90: New test.
20633 * testsuite/libgomp.fortran/reduction3.f90: New test.
20634 * testsuite/libgomp.fortran/reduction4.f90: New test.
20636 2005-10-13 Richard Henderson <rth@redhat.com>
20638 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
20639 * Makefile.in: Regenerate.
20640 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
20641 * libgomp.h: Include bar.h.
20642 (struct gomp_barrier): Remove.
20643 (struct gomp_team): Add barrier. Replace master_barrier with
20644 master_release. Replace threads with ordered_release.
20645 (struct gomp_thread): Replace barrier with release.
20646 * ordered.c (gomp_ordered_first): Update for ordered_release change.
20647 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
20648 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
20649 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
20650 (GOMP_single_copy_end): Likewise.
20651 * team.c (gomp_threads_dock): New.
20652 (gomp_barrier_init, gomp_barrier_destroy): Remove.
20653 (gomp_thread_start): Use gomp_barrier_wait.
20654 (new_team, free_team): Update for gomp_team changes.
20655 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
20656 (gomp_team_end): Use gomp_barrier_wait.
20657 (initialize_team): Update for gomp_thread changes.
20658 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
20659 (gomp_work_share_end_nowait): Use atomic ops when available.
20660 * config/linux/bar.c, config/linux/bar.h: New files.
20661 * config/posix/bar.c, config/posix/bar.h: New files.
20663 2005-10-13 Jakub Jelinek <jakub@redhat.com>
20665 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
20666 * testsuite/libgomp.dg/single-2.c: New test.
20668 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
20669 lang_link_flags): Unset, so that they aren't inherited from previously
20672 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
20674 2005-10-12 Richard Henderson <rth@redhat.com>
20676 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
20677 (libgomp_init): Use lang_test_file, lang_library_path, and
20678 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
20680 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
20681 (lang_test_file, lang_link_flags): New.
20682 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
20684 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
20685 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
20686 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
20687 testsuite/libgomp.c++/parallel-1.C,
20688 testsuite/libgomp.c++/reduction-1.C,
20689 testsuite/libgomp.c++/reduction-2.C,
20690 testsuite/libgomp.c++/reduction-3.C,
20691 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
20692 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
20693 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
20694 New files, largely cribbed from the C testsuite.
20696 2005-10-12 Jakub Jelinek <jakub@redhat.com>
20698 * testsuite/libgomp.fortran/character1.f90: New test.
20699 * testsuite/libgomp.fortran/character2.f90: New test.
20701 * testsuite/libgomp.dg/nested-1.c: New test.
20702 * testsuite/libgomp.dg/nested-2.c: New test.
20703 * testsuite/libgomp.fortran/do1.f90: New test.
20704 * testsuite/libgomp.fortran/do2.f90: New test.
20706 * testsuite/libgomp.fortran/reference1.f90: New test.
20708 2005-10-11 Jakub Jelinek <jakub@redhat.com>
20710 * testsuite/libgomp.dg/reduction-1.c: New test.
20711 * testsuite/libgomp.dg/reduction-2.c: New test.
20712 * testsuite/libgomp.dg/reduction-3.c: New test.
20714 2005-10-10 Jakub Jelinek <jakub@redhat.com>
20716 * testsuite/libgomp.dg/atomic-1.c: New test.
20717 * testsuite/libgomp.dg/atomic-2.c: New test.
20719 2005-10-09 Richard Henderson <rth@redhat.com>
20721 * critical.c (atomic_lock): New.
20722 (initialize_critical): Initialize it.
20723 (GOMP_atomic_start, GOMP_atomic_end): New.
20724 * libgomp.map: Export them.
20725 * libgomp_g.h: Declare them.
20727 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
20729 2005-10-02 Richard Henderson <rth@redhat.com>
20731 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
20732 to XCFLAGS instead of CFLAGS.
20734 2005-09-30 Richard Henderson <rth@redhat.com>
20736 * configure.ac: Determine whether -pthread or -lpthread is needed.
20737 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
20738 * Makefile.in, configure: Rebuild.
20740 2005-09-28 Richard Henderson <rth@redhat.com>
20742 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
20743 * testsuite/libgomp.dg/omp-single-3.c: New test.
20745 2005-09-28 Diego Novillo <dnovillo@redhat.com>
20747 * testsuite/libgomp.dg/omp-single-2.c: New test.
20748 * testsuite/libgomp.dg/shared-2.c: Fix return code.
20750 2005-09-27 Richard Henderson <rth@redhat.com>
20752 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
20753 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
20755 2005-09-27 Jakub Jelinek <jakub@redhat.com>
20757 * testsuite/libgomp.dg/omp-loop03.c: New test.
20759 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20761 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
20763 2005-09-27 Diego Novillo <dnovillo@redhat.com>
20765 * testsuite/libgomp.dg/omp-single-1.c: New test.
20766 * testsuite/libgomp.dg/shared-1.c: Return 0.
20767 Add prototype for abort.
20768 * testsuite/libgomp.dg/shared-2.c: Likewise.
20770 2005-09-26 Jakub Jelinek <jakub@redhat.com>
20772 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
20775 2005-09-26 Diego Novillo <dnovillo@redhat.com>
20777 * testsuite/libgomp.dg/shared-1.c: New test.
20778 * testsuite/libgomp.dg/shared-2.c: New test.
20780 2005-09-24 Richard Henderson <rth@redhat.com>
20782 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
20784 2005-09-24 Richard Henderson <rth@redhat.com>
20786 * iter.c (gomp_iter_static_next): Round up when computing number
20787 of iterations. Don't bother distributing a remainder equally.
20789 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
20790 Don't call srand. Zero b before testing.
20793 2005-09-24 Jakub Jelinek <jakub@redhat.com>
20795 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
20796 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
20798 2005-09-23 Jakub Jelinek <jakub@redhat.com>
20800 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
20801 without !$omp end do, followed immediately by subroutine end.
20803 2005-09-23 Diego Novillo <dnovillo@redhat.com>
20805 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
20807 2005-09-22 Richard Henderson <rth@redhat.com>
20809 * critical.c (GOMP_critical_name_start): Change argument to void**.
20810 Reuse the pointer space if the mutex fits.
20811 (GOMP_critical_name_end): Likewise.
20812 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
20813 * libgomp_g.h (GOMP_critical_name_start): Update decl.
20814 (GOMP_critical_name_end): Likewise.
20815 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
20816 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
20818 2005-09-20 Richard Henderson <rth@redhat.com>
20820 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
20821 (create_lock_lock): New.
20822 (initialize_critical): Initialize it.
20823 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
20824 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
20826 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20828 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
20830 2005-09-20 Diego Novillo <dnovillo@redhat.com>
20832 * testsuite/libgomp.dg/omp-loop01.c: New test.
20833 * testsuite/libgomp.dg/omp-loop02.c: New test.
20835 2005-09-20 Jakub Jelinek <jakub@redhat.com>
20837 * configure.ac (AC_PROG_FC): Add.
20838 (USE_FORTRAN): New automake conditional.
20839 * configure: Rebuilt.
20840 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
20841 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
20842 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
20843 Add rules to build them.
20844 * Makefile.in: Rebuilt.
20845 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
20846 OMP_NEST_LOCK_KIND.
20847 * libgomp.map: Add Fortran wrappers.
20848 * libgomp_f.h.in: New file.
20849 * omp_lib.h.in: New file.
20850 * omp_lib.f90.in: New file.
20851 * fortran.c: New file.
20852 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
20853 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
20854 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
20855 libgfortran has been built.
20856 * testsuite/libgomp.fortran/fortran.exp: New file.
20857 * testsuite/libgomp.fortran/omp_cond1.f: New test.
20858 * testsuite/libgomp.fortran/omp_cond2.f: New test.
20859 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
20860 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
20861 * testsuite/libgomp.fortran/omp_hello.f: New test.
20862 * testsuite/libgomp.fortran/omp_orphan.f: New test.
20863 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
20864 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
20865 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
20866 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
20867 * testsuite/libgomp.fortran/omp_reduction.f: New test.
20868 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
20869 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
20871 2005-08-30 Richard Henderson <rth@redhat.com>
20873 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
20874 function for when aliases are not usable.
20875 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
20876 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
20877 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
20878 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
20879 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
20880 GOMP_loop_ordered_guided_next): Likewise.
20881 * ordered.c (GOMP_ordered_start): Likewise.
20883 2005-08-01 Diego Novillo <dnovillo@redhat.com>
20885 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
20886 * testsuite/libgomp.dg/omp_hello.c: Fix return code
20887 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
20888 * testsuite/libgomp.dg/omp_orphan.c: Likewise
20889 * testsuite/libgomp.dg/omp_reduction.c: Likewise
20890 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
20891 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
20892 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
20893 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
20895 2005-07-07 Eric Christopher <echristo@redhat.com>
20896 Diego Novillo <dnovillo@redhat.com>
20898 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
20899 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
20901 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
20902 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
20903 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
20904 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
20905 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
20906 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
20907 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
20909 2005-06-13 Diego Novillo <dnovillo@redhat.com>
20911 * TOPLEVEL.patch: Remove.
20913 2005-05-16 Richard Henderson <rth@redhat.com>
20915 * configure.ac: Test for clock_gettime.
20916 * config.h.in, configure: Rebuild.
20917 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
20918 (omp_get_wtime): Use clock_gettime if available.
20919 (omp_get_wtick): Use clock_getres if available.
20921 2005-05-11 Richard Henderson <rth@redhat.com>
20923 * config/linux/ia64/futex.h: New file.
20924 * configure.tgt: Use it.
20926 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
20928 2005-05-07 Richard Henderson <rth@redhat.com>
20930 * config/linux/powerpc/futex.h: New file.
20931 * configure.tgt: Use it.
20933 * config/linux/i486/futex.h: Merge ...
20934 * config/linux/x86_64/futex.h: ... into ...
20935 * config/linux/x86/futex.h: ... here.
20936 * configure.tgt: Update to match.
20938 2005-05-06 Richard Henderson <rth@redhat.com>
20940 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
20941 * config/linux/i486/futex.h: Likewise.
20942 * config/linux/x86_64/futex.h: Likewise.
20944 * config/linux/lock.c: New file.
20945 * config/linux/omp-lock.h: New file.
20947 * critical.c, env.h: Don't include omp.h
20948 * config/posix/lock.c: Include libgomp.h instead of omp.h.
20949 * config/posix/time.c: Likewise.
20950 * config/posix/omp-lock.h: New file.
20951 * libgomp.h: Include omp-lock.h and omp.h.
20952 * Makefile.am (nodist_include_HEADERS): New.
20954 * configure.ac (PERL): New.
20955 * mkomp_h.pl: New file.
20956 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
20958 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
20960 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
20961 build directory. Re-add -march=i486 hack.
20963 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
20964 (libgomp_link_flags): Remove.
20965 (libgomp_initialized): Remove.
20966 (libgomp_init): Don't protect from reinitialization. Copy code
20967 from libstdc++ for getting the multilib set correctly.
20969 2005-05-05 Richard Henderson <rth@redhat.com>
20971 * config/linux/alpha/futex.h: New file.
20972 * configure.tgt (alpha*-*-linux*): Use it.
20974 * config/posix/mutex.c: New file.
20975 * config/posix/sem.c: Use libgomp.h.
20977 * configure.tgt (x86_64-linux): Also test CC for -m32.
20978 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
20980 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
20983 * Makefile.am (SUBDIRS): New.
20984 (libgomp_la_LDFLAGS): Add -lpthread.
20985 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
20986 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
20988 * libgomp_g.h: New file.
20989 * libgomp.h: Split out all public declarations to libgomp_g.h.
20990 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
20991 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
20992 * config/linux/sem.h: Likewise.
20993 * config/posix/sem.h: Likewise.
20995 * Makefile.am (AM_LDFLAGS): New.
20996 (libgomp_version_script): Split out from ...
20997 (libgomp_la_LDFLAGS): ... here.
20998 (libgomp_version_info): New.
20999 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
21000 (LIBGOMP_ENABLE): New.
21001 (LIBGOMP_CHECK_LINKER_FEATURES): New.
21002 (LIBGOMP_ENABLE_SYMVERS): New.
21003 * configure.ac (AC_INIT): Version 1.0.
21004 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
21005 (enable-linux-futex): Likewise. Rename from enable-futex.
21006 (libtool_VERSION): New.
21007 (LIBGOMP_ENABLE_SYMVERS): Use it.
21008 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
21009 * Makefile.in, aclocal.m4, configure: Rebuild.
21011 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
21012 (gomp_mutex_unlock_slow): Fix typo.
21013 * config/linux/sem.c: Similarly.
21014 (gomp_sem_post_slow): Fix typo.
21015 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
21016 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
21017 [__PIC__] (sys_futex0): Don't use tmp output in asm.
21019 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
21020 (libgomp_la_LDFLAGS): Add top_srcdir to path.
21021 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
21022 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
21023 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
21024 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
21025 LDFLAGS. Pull enable_futex check to top-level.
21026 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
21027 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
21029 First attempt at real configury.
21030 * Makefile, config.h: Remove file.
21031 * Makefile.am, Makefile.in: New file.
21032 * acinclude.m4 aclocal.m4: New file.
21033 * configure.ac, configure.tgt, configure: New file.
21035 * config/posix/lock.c: Rename from sys-lock.c.
21036 * config/posix/mutex.h: Rename from sys-mutex.h.
21037 * config/posix/sem.c: Rename from sys-sem.c.
21038 * config/posix/sem.h: Rename from sys-sem.h.
21039 * config/posix/proc.c: Rename from sys-proc.c.
21040 * config/posix/time.c: Rename from sys-proc.c.
21042 * config/linux/mutex.c: New file.
21043 * config/linux/mutex.h: New file.
21044 * config/linux/sem.c: New file.
21045 * config/linux/sem.h: New file.
21046 * config/linux/i486/futex.h: New file.
21047 * config/linux/x86_64/futex.h: New file.
21049 2005-05-04 Richard Henderson <rth@redhat.com>
21051 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
21052 * libgomp.h: Declare them.
21053 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
21054 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
21056 2005-05-04 Richard Henderson <rth@redhat.com>
21058 * libgomp-1 code drop
21060 2005-05-04 Richard Henderson <rth@redhat.com>
21062 * iter.c (gomp_iter_static_next): Return tri-state on 0.
21063 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
21064 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
21065 (gomp_iter_static_next): Update.
21066 (gomp_ordered_static_next): Update.
21067 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
21068 (gomp_loop_ordered_static_start): Likewise. Exit early for a
21069 totally empty range.
21070 (gomp_loop_ordered_static_next): Refine test for calling
21071 gomp_ordered_static_next.
21072 * testsuite/ordered-1.c: Add case for more threads than iterations.
21074 * iter.c (gomp_iter_runtime_next_locked): Remove.
21075 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
21076 gomp_loop_guided_start, gomp_loop_ordered_static_start,
21077 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
21078 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
21079 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
21080 gomp_loop_ordered_guided_next): Downcase name, make static, add
21081 an external alias with the old name.
21082 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
21083 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
21084 switch and call one of the above static functions.
21085 * libgomp.h: Update.
21087 * work.c (gomp_work_share_start): Lock the mutex for !first too.
21088 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
21089 GOMP_loop_guided_start, GOMP_loop_runtime_start,
21090 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
21091 GOMP_loop_ordered_guided_start): Update to match.
21092 * sections.c (GOMP_sections_start): Likewise.
21093 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
21095 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
21096 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
21097 Use bounds check instead of modulus.
21098 (gomp_ordered_sync): Split out of GOMP_ordered_start.
21099 (gomp_ordered_last): Don't sync with ordered_owner here.
21100 (gomp_ordered_next): Likewise.
21101 (gomp_ordered_static_loop_next): Likewise.
21102 * loop.c, libgomp.h: Update to match.
21104 * libgomp.h (GOMP_barrier): Declare.
21106 * testsuite/barrier-1.c: New file.
21107 * testsuite/critical-1.c: New file.
21108 * testsuite/ordered-2.c: New file.
21109 * testsuite/ordered-1.c: New file.
21110 * testsuite/sections-1.c: New file.
21111 * testsuite/single-1.c: New file.
21112 * testsuite/Makefile (TESTS): Add them.
21114 2005-05-04 Richard Henderson <rth@redhat.com>
21116 * libgomp.h (struct gomp_work_share): Add ordered_owner.
21117 * loop.c (GOMP_loop_static_start): If not the startup thread,
21118 acquire the mutex to wait for initialization complete.
21119 (GOMP_loop_ordered_static_start): Likewise.
21120 (GOMP_loop_ordered_runtime_start): Likewise.
21121 (GOMP_loop_ordered_static_first): Remove.
21122 (GOMP_loop_ordered_dynamic_first): Remove.
21123 (GOMP_loop_ordered_guided_first): Remove.
21124 (GOMP_loop_ordered_runtime_first): Remove.
21125 * ordered.c (gomp_ordered_loop_first): Post to own release when
21126 we're the first thread.
21127 (gomp_ordered_loop_last): Wait on release if not owner.
21128 (gomp_ordered_loop_next): Likewise.
21129 (gomp_ordered_static_loop_init): New.
21130 (gomp_ordered_static_loop_next): Use ordered_owner.
21131 (GOMP_ordered_start): Likewise.
21132 * work.c (gomp_new_work_share): Initialize ordered_owner.
21134 2005-05-03 Richard Henderson <rth@redhat.com>
21136 * Makefile (OPT): New.
21139 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
21140 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
21141 * libgomp.h, libgomp.map, NOTES: Update to match.
21143 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
21144 Add initialized and thr members.
21145 (gomp_thread_start): Pause when initially spawned to wait for
21146 the whole team to be created.
21147 (gomp_team_start): Release team members at the end.
21149 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
21150 (f_foo_1): Use GOMP_loop_end.
21151 (f_foo_2): Use GOMP_loop_end_nowait.
21153 * testsuite/loop-2.c: New file.
21154 * testsuite/Makefile (TESTS): Add it.
21156 2005-05-03 Richard Henderson <rth@redhat.com>
21158 * iter.c (gomp_iter_static_next): Fix overflow check typo.
21159 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
21160 * team.c (new_team): Initialize oldest_live_gen to 1 if no
21161 initial work_share.
21163 * testsuite/Makefile: New file.
21164 * testsuite/loop-1.c: New file.
21166 2005-05-03 Richard Henderson <rth@redhat.com>
21168 Initial implementation and checkin.
21170 Copyright (C) 2005-2024 Free Software Foundation, Inc.
21172 Copying and distribution of this file, with or without modification,
21173 are permitted in any medium without royalty provided the copyright
21174 notice and this notice are preserved.